@ic-reactor/core 1.5.2 → 1.5.3

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.1/ic-reactor-core.min.js"></script>
22
+ <script src="https://github.com/B3Pay/ic-reactor/releases/download/v1.5.2/ic-reactor-core.min.js"></script>
23
23
  ```
24
24
 
25
25
  ### Using `createReactorCore`
@@ -1,4 +1,4 @@
1
- import type { CanisterId, ActorMethodParameters, ActorMethodReturnType, ActorStore, ActorManagerParameters, FunctionName, VisitService, BaseActor, ActorMethodState, MethodAttributes } from "./types";
1
+ import type { ActorMethodParameters, ActorMethodReturnType, ActorStore, ActorManagerParameters, FunctionName, VisitService, BaseActor, ActorMethodState, MethodAttributes } from "./types";
2
2
  import { IDL } from "@dfinity/candid";
3
3
  import type { AgentManager } from "../agent";
4
4
  import type { UpdateAgentParameters } from "../../types";
@@ -8,7 +8,7 @@ export declare class ActorManager<A = BaseActor> {
8
8
  private _agentManager;
9
9
  private _unsubscribeAgent;
10
10
  private _subscribers;
11
- canisterId: CanisterId;
11
+ canisterId: string;
12
12
  actorStore: ActorStore<A>;
13
13
  visitFunction: VisitService<A>;
14
14
  methodAttributes: MethodAttributes<A>;
@@ -139,7 +139,7 @@ class ActorManager {
139
139
  if (!canisterId) {
140
140
  throw new Error("CanisterId is required!");
141
141
  }
142
- this.canisterId = canisterId;
142
+ this.canisterId = canisterId.toString();
143
143
  if (!idlFactory) {
144
144
  throw new Error("IDL factory is required!");
145
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-reactor/core",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
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": "7052acfe64a7b66de507998e56139b517bb82736"
55
+ "gitHead": "8a92edfc841cfd1899f008a094846166886e8f33"
56
56
  }