Browse Source

new version

Paul 5 years ago
parent
commit
3c14833034
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      package.json
  2. 1
    1
      src/client.ts

+ 1
- 1
package.json View File

1
 {
1
 {
2
   "name": "ts-linker-sdk",
2
   "name": "ts-linker-sdk",
3
-  "version": "1.0.4",
3
+  "version": "1.0.5",
4
   "description": "linker's ts sdk",
4
   "description": "linker's ts sdk",
5
   "main": "lib/src/client.js",
5
   "main": "lib/src/client.js",
6
   "scripts": {
6
   "scripts": {

+ 1
- 1
src/client.ts View File

138
     operator: string,
138
     operator: string,
139
     listener: (data: string) => void,
139
     listener: (data: string) => void,
140
   ): void {
140
   ): void {
141
-    this.listeners[Utils.crc32(operator)] = listener;
141
+    this.listeners.set(Utils.crc32(operator), listener);
142
   }
142
   }
143
 
143
 
144
   /**
144
   /**