@ic-reactor/core 1.9.0 → 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 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.8.0/ic-reactor-core.min.js"></script>
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 = new agent_1.HttpAgent(options);
88
+ this._agent = agent_1.HttpAgent.createSync(options);
89
89
  yield this.initializeAgent();
90
90
  }
91
91
  yield this.notifySubscribers();
@@ -201,7 +201,7 @@ class AgentManager {
201
201
  name: "reactor-agent",
202
202
  store: "auth",
203
203
  });
204
- this._agent = new agent_1.HttpAgent(agentOptions);
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.9.0",
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,18 +26,18 @@
26
26
  },
27
27
  "homepage": "https://b3pay.github.io/ic-reactor/modules/core.html",
28
28
  "peerDependencies": {
29
- "@dfinity/agent": "2.1.1",
30
- "@dfinity/auth-client": "2.1.1",
31
- "@dfinity/candid": "2.1.1",
32
- "@dfinity/identity": "2.1.1",
33
- "@dfinity/principal": "2.1.1"
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": "2.1.1",
37
- "@dfinity/auth-client": "2.1.1",
38
- "@dfinity/candid": "2.1.1",
39
- "@dfinity/identity": "2.1.1",
40
- "@dfinity/principal": "2.1.1",
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
41
  "zustand": "4.5.5"
42
42
  },
43
43
  "devDependencies": {
@@ -56,5 +56,5 @@
56
56
  "engines": {
57
57
  "node": ">=10"
58
58
  },
59
- "gitHead": "182c3b0316df865dc5c24e2fa146c5ba1837fe9c"
59
+ "gitHead": "782f22fe75e14aa19527bed694661cc995cd81a7"
60
60
  }