@dfinity/pic 0.16.0 → 0.16.1
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.
|
@@ -19,12 +19,12 @@ export type ActorInterface<T = object> = {
|
|
|
19
19
|
[K in keyof T]: ActorMethod;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
|
-
* A
|
|
22
|
+
* A type-safe class that implements the Candid interface of a canister.
|
|
23
23
|
* This is acquired by calling {@link PocketIc.setupCanister | setupCanister}
|
|
24
24
|
* or {@link PocketIc.createActor | createActor}.
|
|
25
25
|
*
|
|
26
26
|
* @category API
|
|
27
|
-
* @
|
|
27
|
+
* @typeParam T The type of the {@link Actor}. Must implement {@link ActorInterface}.
|
|
28
28
|
* @interface
|
|
29
29
|
*/
|
|
30
30
|
export type Actor<T extends ActorInterface<T> = ActorInterface> = T & {
|
|
@@ -2,6 +2,7 @@ import { Principal } from '@dfinity/principal';
|
|
|
2
2
|
import { ActorInterface, Actor } from './pocket-ic-actor';
|
|
3
3
|
import { IDL } from '@dfinity/candid';
|
|
4
4
|
import { CanisterInstallModeUpgradeOptions } from './management-canister';
|
|
5
|
+
export { type CanisterInstallModeUpgradeOptions } from './management-canister';
|
|
5
6
|
/**
|
|
6
7
|
* Options for creating a PocketIc instance.
|
|
7
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pocket-ic-types.js","sourceRoot":"","sources":["../src/pocket-ic-types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"pocket-ic-types.js","sourceRoot":"","sources":["../src/pocket-ic-types.ts"],"names":[],"mappings":";;;AAsOA;;GAEG;AACH,IAAY,eAWX;AAXD,WAAY,eAAe;IACzB;;OAEG;IACH,8BAAW,CAAA;IAEX;;;OAGG;IACH,wCAAqB,CAAA;AACvB,CAAC,EAXW,eAAe,+BAAf,eAAe,QAW1B;AAED;;GAEG;AACH,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;AACrB,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAyBD;;GAEG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,oDAA+B,CAAA;AACjC,CAAC,EALW,iBAAiB,iCAAjB,iBAAiB,QAK5B;AA6ED;;GAEG;AACH,IAAY,UAmCX;AAnCD,WAAY,UAAU;IACpB;;OAEG;IACH,yCAA2B,CAAA;IAE3B;;OAEG;IACH,iCAAmB,CAAA;IAEnB;;OAEG;IACH,qCAAuB,CAAA;IAEvB;;OAEG;IACH,qCAAuB,CAAA;IAEvB;;OAEG;IACH,yBAAW,CAAA;IAEX;;OAEG;IACH,yBAAW,CAAA;IAEX;;OAEG;IACH,+BAAiB,CAAA;AACnB,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB;AAkaD;;GAEG;AACH,IAAY,kBAeX;AAfD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,iCAAW,CAAA;IAEX;;OAEG;IACH,mCAAa,CAAA;IAEb;;OAEG;IACH,mCAAa,CAAA;AACf,CAAC,EAfW,kBAAkB,kCAAlB,kBAAkB,QAe7B;AAiFD,2BAA2B"}
|
package/dist/pocket-ic.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ export declare class PocketIc {
|
|
|
303
303
|
*
|
|
304
304
|
* @param interfaceFactory The InterfaceFactory to use for the {@link Actor}.
|
|
305
305
|
* @param canisterId The Principal of the canister to create the {@link Actor} for.
|
|
306
|
-
* @
|
|
306
|
+
* @typeParam T The type of the {@link Actor}. Must implement {@link ActorInterface}.
|
|
307
307
|
* @returns The {@link Actor} instance.
|
|
308
308
|
*
|
|
309
309
|
* @see [Principal](https://js.icp.build/core/latest/libs/principal/api/classes/principal/)
|
|
@@ -344,7 +344,7 @@ export declare class PocketIc {
|
|
|
344
344
|
*
|
|
345
345
|
* @param interfaceFactory The InterfaceFactory to use for the {@link DeferredActor}.
|
|
346
346
|
* @param canisterId The Principal of the canister to create the {@link DeferredActor} for.
|
|
347
|
-
* @
|
|
347
|
+
* @typeParam T The type of the {@link DeferredActor}. Must implement {@link ActorInterface}.
|
|
348
348
|
* @returns The {@link DeferredActor} instance.
|
|
349
349
|
*
|
|
350
350
|
* @see [Principal](https://js.icp.build/core/latest/libs/principal/api/classes/principal/)
|
package/dist/pocket-ic.js
CHANGED
|
@@ -460,7 +460,7 @@ class PocketIc {
|
|
|
460
460
|
*
|
|
461
461
|
* @param interfaceFactory The InterfaceFactory to use for the {@link Actor}.
|
|
462
462
|
* @param canisterId The Principal of the canister to create the {@link Actor} for.
|
|
463
|
-
* @
|
|
463
|
+
* @typeParam T The type of the {@link Actor}. Must implement {@link ActorInterface}.
|
|
464
464
|
* @returns The {@link Actor} instance.
|
|
465
465
|
*
|
|
466
466
|
* @see [Principal](https://js.icp.build/core/latest/libs/principal/api/classes/principal/)
|
|
@@ -504,7 +504,7 @@ class PocketIc {
|
|
|
504
504
|
*
|
|
505
505
|
* @param interfaceFactory The InterfaceFactory to use for the {@link DeferredActor}.
|
|
506
506
|
* @param canisterId The Principal of the canister to create the {@link DeferredActor} for.
|
|
507
|
-
* @
|
|
507
|
+
* @typeParam T The type of the {@link DeferredActor}. Must implement {@link ActorInterface}.
|
|
508
508
|
* @returns The {@link DeferredActor} instance.
|
|
509
509
|
*
|
|
510
510
|
* @see [Principal](https://js.icp.build/core/latest/libs/principal/api/classes/principal/)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfinity/pic",
|
|
3
3
|
"description": "An Internet Computer Protocol canister testing library for TypeScript and JavaScript.",
|
|
4
|
-
"version": "0.16.
|
|
4
|
+
"version": "0.16.1",
|
|
5
5
|
"author": "DFINITY Stiftung",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:dfinity/pic-js",
|