@ic-reactor/core 1.8.4 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/classes/agent/index.js +3 -3
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ yarn add @ic-reactor/core
|
|
|
19
19
|
or you can use the UMD version:
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
|
-
<script src="https://github.com/B3Pay/ic-reactor/releases/download/v1.
|
|
22
|
+
<script src="https://github.com/B3Pay/ic-reactor/releases/download/v1.9.0/ic-reactor-core.min.js"></script>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Using `createReactorCore`
|
|
@@ -85,7 +85,7 @@ class AgentManager {
|
|
|
85
85
|
this._agent = agent;
|
|
86
86
|
}
|
|
87
87
|
else if (options) {
|
|
88
|
-
this._agent =
|
|
88
|
+
this._agent = agent_1.HttpAgent.createSync(options);
|
|
89
89
|
yield this.initializeAgent();
|
|
90
90
|
}
|
|
91
91
|
yield this.notifySubscribers();
|
|
@@ -139,7 +139,7 @@ class AgentManager {
|
|
|
139
139
|
return this._agent;
|
|
140
140
|
};
|
|
141
141
|
this.getAgentHost = () => {
|
|
142
|
-
return this._agent.
|
|
142
|
+
return this._agent.host;
|
|
143
143
|
};
|
|
144
144
|
this.getIsLocal = () => {
|
|
145
145
|
return this.getNetwork() !== "ic";
|
|
@@ -201,7 +201,7 @@ class AgentManager {
|
|
|
201
201
|
name: "reactor-agent",
|
|
202
202
|
store: "auth",
|
|
203
203
|
});
|
|
204
|
-
this._agent =
|
|
204
|
+
this._agent = agent_1.HttpAgent.createSync(agentOptions);
|
|
205
205
|
this.initializeAgent();
|
|
206
206
|
}
|
|
207
207
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "A library for intracting with the Internet Computer canisters",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,22 +26,22 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://b3pay.github.io/ic-reactor/modules/core.html",
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@dfinity/agent": "
|
|
30
|
-
"@dfinity/auth-client": "
|
|
31
|
-
"@dfinity/candid": "
|
|
32
|
-
"@dfinity/identity": "
|
|
33
|
-
"@dfinity/principal": "
|
|
29
|
+
"@dfinity/agent": ">=2.1.2",
|
|
30
|
+
"@dfinity/auth-client": ">=2.1.2",
|
|
31
|
+
"@dfinity/candid": ">=2.1.2",
|
|
32
|
+
"@dfinity/identity": ">=2.1.2",
|
|
33
|
+
"@dfinity/principal": ">=2.1.2"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dfinity/agent": "
|
|
37
|
-
"@dfinity/auth-client": "
|
|
38
|
-
"@dfinity/candid": "
|
|
39
|
-
"@dfinity/identity": "
|
|
40
|
-
"@dfinity/principal": "
|
|
41
|
-
"zustand": "
|
|
36
|
+
"@dfinity/agent": ">=2.1.2",
|
|
37
|
+
"@dfinity/auth-client": ">=2.1.2",
|
|
38
|
+
"@dfinity/candid": ">=2.1.2",
|
|
39
|
+
"@dfinity/identity": ">=2.1.2",
|
|
40
|
+
"@dfinity/principal": ">=2.1.2",
|
|
41
|
+
"zustand": "4.5.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@ic-reactor/parser": "
|
|
44
|
+
"@ic-reactor/parser": "0.4.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=10"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "782f22fe75e14aa19527bed694661cc995cd81a7"
|
|
60
60
|
}
|