@dfinity/pic 0.14.0 → 0.14.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.
- package/README.md +2 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,19 +12,13 @@ Other languages available include [Python](https://github.com/dfinity/pocketic-p
|
|
|
12
12
|
npm i -D @dfinity/pic
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Install peer dependencies if they are not already installed:
|
|
16
|
-
|
|
17
|
-
```shell
|
|
18
|
-
npm i -D @dfinity/{agent,candid,identity,principal}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
15
|
## Usage
|
|
22
16
|
|
|
23
17
|
The easiest way to use PocketIC is to use `setupCanister` convenience method:
|
|
24
18
|
|
|
25
19
|
```ts
|
|
26
20
|
import { PocketIc } from '@dfinity/pic';
|
|
27
|
-
import { _SERVICE, idlFactory } from '../declarations';
|
|
21
|
+
import { type _SERVICE, idlFactory } from '../declarations';
|
|
28
22
|
|
|
29
23
|
const wasmPath = resolve('..', '..', 'canister.wasm');
|
|
30
24
|
|
|
@@ -41,7 +35,7 @@ If more control is needed, then the `createCanister`, `installCode` and `createA
|
|
|
41
35
|
|
|
42
36
|
```ts
|
|
43
37
|
import { PocketIc } from '@dfinity/pic';
|
|
44
|
-
import { _SERVICE, idlFactory } from '../declarations';
|
|
38
|
+
import { type _SERVICE, idlFactory } from '../declarations';
|
|
45
39
|
|
|
46
40
|
const wasmPath = resolve('..', '..', 'canister.wasm');
|
|
47
41
|
|
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.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"author": "DFINITY Stiftung",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": "github:dfinity/pic-js",
|