@ic-reactor/core 1.5.1 → 1.5.2
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
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.5.
|
|
22
|
+
<script src="https://github.com/B3Pay/ic-reactor/releases/download/v1.5.1/ic-reactor-core.min.js"></script>
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
### Using `createReactorCore`
|
|
@@ -76,7 +76,7 @@ class ActorManager {
|
|
|
76
76
|
};
|
|
77
77
|
this.initializeActor = (agent) => {
|
|
78
78
|
var _a;
|
|
79
|
-
console.info(`Initializing actor ${this.canisterId} on ${((_a = agent.isLocal) === null || _a === void 0 ? void 0 : _a.call(agent)) ? "local" : "ic"} network`);
|
|
79
|
+
console.info(`Initializing actor ${this.canisterId} on ${((_a = agent.isLocal) === null || _a === void 0 ? void 0 : _a.call(agent)) === true ? "local" : "ic"} network`);
|
|
80
80
|
const { _idlFactory, canisterId } = this;
|
|
81
81
|
this.updateState({
|
|
82
82
|
initializing: true,
|
|
@@ -139,7 +139,7 @@ class AgentManager {
|
|
|
139
139
|
};
|
|
140
140
|
this.getIsLocal = () => {
|
|
141
141
|
var _a, _b;
|
|
142
|
-
return ((_b = (_a = this._agent).isLocal) === null || _b === void 0 ? void 0 : _b.call(_a))
|
|
142
|
+
return ((_b = (_a = this._agent).isLocal) === null || _b === void 0 ? void 0 : _b.call(_a)) === true;
|
|
143
143
|
};
|
|
144
144
|
this.getAgentState = () => {
|
|
145
145
|
return this.agentStore.getState();
|
|
@@ -32,7 +32,9 @@ class CandidAdapter {
|
|
|
32
32
|
}
|
|
33
33
|
getDefaultDidJsId() {
|
|
34
34
|
var _a, _b;
|
|
35
|
-
return ((_b = (_a = this.agent).isLocal) === null || _b === void 0 ? void 0 : _b.call(_a))
|
|
35
|
+
return ((_b = (_a = this.agent).isLocal) === null || _b === void 0 ? void 0 : _b.call(_a)) === true
|
|
36
|
+
? constants_1.DEFAULT_LOCAL_DIDJS_ID
|
|
37
|
+
: constants_1.DEFAULT_IC_DIDJS_ID;
|
|
36
38
|
}
|
|
37
39
|
getCandidDefinition(canisterId) {
|
|
38
40
|
return __awaiter(this, void 0, void 0, function* () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
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",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=10"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "7052acfe64a7b66de507998e56139b517bb82736"
|
|
56
56
|
}
|