ic-mops 1.11.0 → 1.12.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/CHANGELOG.md +9 -0
- package/api/actors.ts +2 -2
- package/api/downloadPackageFiles.ts +1 -1
- package/bun.lock +234 -198
- package/bundle/bench/bench-canister.mo +101 -109
- package/bundle/bench/user-bench.mo +6 -10
- package/bundle/cli.js +960 -889
- package/bundle/cli.tgz +0 -0
- package/bundle/declarations/bench/bench.did +3 -3
- package/bundle/declarations/bench/bench.did.d.ts +3 -3
- package/bundle/declarations/bench/index.d.ts +3 -3
- package/bundle/declarations/bench/index.js +1 -1
- package/bundle/declarations/main/index.d.ts +3 -3
- package/bundle/declarations/main/index.js +1 -1
- package/bundle/declarations/main/main.did +78 -121
- package/bundle/declarations/main/main.did.d.ts +48 -98
- package/bundle/declarations/main/main.did.js +53 -107
- package/bundle/declarations/storage/index.d.ts +3 -3
- package/bundle/declarations/storage/index.js +4 -4
- package/bundle/declarations/storage/storage.did.d.ts +3 -3
- package/bundle/package.json +1 -1
- package/bundle/templates/src/lib.mo +13 -13
- package/bundle/templates/test/lib.test.mo +2 -2
- package/commands/add.ts +1 -1
- package/commands/available-updates.ts +20 -7
- package/commands/bench-replica.ts +21 -9
- package/commands/maintainer.ts +1 -1
- package/commands/outdated.ts +8 -1
- package/commands/owner.ts +1 -1
- package/commands/replica.ts +31 -18
- package/commands/test/test.ts +37 -97
- package/commands/test/utils.ts +75 -1
- package/commands/update.ts +19 -2
- package/declarations/bench/bench.did.d.ts +3 -3
- package/declarations/bench/index.d.ts +3 -3
- package/declarations/bench/index.js +1 -1
- package/declarations/main/index.d.ts +3 -3
- package/declarations/main/index.js +1 -1
- package/declarations/main/main.did.d.ts +3 -3
- package/declarations/storage/index.d.ts +3 -3
- package/declarations/storage/index.js +4 -4
- package/declarations/storage/storage.did.d.ts +3 -3
- package/dist/api/actors.d.ts +2 -2
- package/dist/api/actors.js +1 -1
- package/dist/api/downloadPackageFiles.d.ts +1 -1
- package/dist/api/downloadPackageFiles.js +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/available-updates.js +19 -7
- package/dist/commands/bench-replica.d.ts +3 -2
- package/dist/commands/bench-replica.js +17 -6
- package/dist/commands/maintainer.js +1 -1
- package/dist/commands/outdated.js +7 -1
- package/dist/commands/owner.js +1 -1
- package/dist/commands/replica.d.ts +4 -3
- package/dist/commands/replica.js +25 -13
- package/dist/commands/test/test.js +29 -81
- package/dist/commands/test/utils.d.ts +6 -0
- package/dist/commands/test/utils.js +61 -0
- package/dist/commands/update.js +16 -2
- package/dist/declarations/bench/bench.did.d.ts +3 -3
- package/dist/declarations/bench/index.d.ts +3 -3
- package/dist/declarations/bench/index.js +1 -1
- package/dist/declarations/main/index.d.ts +3 -3
- package/dist/declarations/main/index.js +1 -1
- package/dist/declarations/main/main.did.d.ts +3 -3
- package/dist/declarations/storage/index.d.ts +3 -3
- package/dist/declarations/storage/index.js +4 -4
- package/dist/declarations/storage/storage.did.d.ts +3 -3
- package/dist/helpers/get-dep-name.d.ts +1 -0
- package/dist/helpers/get-dep-name.js +3 -0
- package/dist/mops.d.ts +1 -1
- package/dist/package.json +5 -15
- package/dist/pem.d.ts +2 -2
- package/dist/pem.js +2 -2
- package/helpers/get-dep-name.ts +4 -0
- package/mops.ts +1 -1
- package/package.json +5 -15
- package/pem.ts +2 -2
- package/tsconfig.json +2 -2
package/mops.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import fs from 'node:fs';
|
|
4
|
-
import {Identity} from '@
|
|
4
|
+
import {Identity} from '@icp-sdk/core/agent';
|
|
5
5
|
import TOML from '@iarna/toml';
|
|
6
6
|
import chalk from 'chalk';
|
|
7
7
|
import prompts from 'prompts';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ic-mops",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mops": "dist/bin/mops.js",
|
|
@@ -44,12 +44,8 @@
|
|
|
44
44
|
"esbuild": "esbuild"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@dfinity/agent": "3.1.0",
|
|
48
|
-
"@dfinity/candid": "3.1.0",
|
|
49
|
-
"@dfinity/identity": "3.1.0",
|
|
50
|
-
"@dfinity/identity-secp256k1": "3.1.0",
|
|
51
|
-
"@dfinity/principal": "3.1.0",
|
|
52
47
|
"@iarna/toml": "2.2.5",
|
|
48
|
+
"@icp-sdk/core": "4.0.2",
|
|
53
49
|
"@noble/hashes": "1.8.0",
|
|
54
50
|
"as-table": "1.0.55",
|
|
55
51
|
"buffer": "6.0.3",
|
|
@@ -80,7 +76,8 @@
|
|
|
80
76
|
"node-fetch": "3.3.2",
|
|
81
77
|
"octokit": "3.1.2",
|
|
82
78
|
"pem-file": "1.0.1",
|
|
83
|
-
"pic-ic": "0.5.
|
|
79
|
+
"pic-ic": "0.5.4",
|
|
80
|
+
"pic-js-mops": "0.14.8",
|
|
84
81
|
"prettier": "3.5.3",
|
|
85
82
|
"prettier-plugin-motoko": "0.11.0",
|
|
86
83
|
"promisify-child-process": "4.1.2",
|
|
@@ -108,13 +105,6 @@
|
|
|
108
105
|
"eslint": "8.57.0",
|
|
109
106
|
"rexreplace": "7.1.13",
|
|
110
107
|
"tsx": "4.19.2",
|
|
111
|
-
"typescript": "5.
|
|
112
|
-
},
|
|
113
|
-
"overrides": {
|
|
114
|
-
"@dfinity/agent": "3.1.0",
|
|
115
|
-
"@dfinity/candid": "3.1.0",
|
|
116
|
-
"@dfinity/identity": "3.1.0",
|
|
117
|
-
"@dfinity/identity-secp256k1": "3.1.0",
|
|
118
|
-
"@dfinity/principal": "3.1.0"
|
|
108
|
+
"typescript": "5.9.2"
|
|
119
109
|
}
|
|
120
110
|
}
|
package/pem.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import {Buffer} from 'node:buffer';
|
|
3
3
|
import crypto from 'node:crypto';
|
|
4
|
-
import {Ed25519KeyIdentity} from '@
|
|
5
|
-
import {Secp256k1KeyIdentity} from '@
|
|
4
|
+
import {Ed25519KeyIdentity} from '@icp-sdk/core/identity';
|
|
5
|
+
import {Secp256k1KeyIdentity} from '@icp-sdk/core/identity/secp256k1';
|
|
6
6
|
import pemfile from 'pem-file';
|
|
7
7
|
|
|
8
8
|
export function decodeFile(file : string, password ?: string) {
|
package/tsconfig.json
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"types": ["node"],
|
|
9
9
|
"outDir": "./dist",
|
|
10
10
|
"allowJs": true,
|
|
11
|
-
"module": "
|
|
12
|
-
"moduleResolution": "
|
|
11
|
+
"module": "ES2022",
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
13
|
"noEmitOnError": false,
|
|
14
14
|
"noUnusedLocals": false,
|
|
15
15
|
"noUnusedParameters": false,
|