ic-mops 0.45.0 → 0.45.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/bundle/cli.tgz CHANGED
Binary file
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "bin/mops.js",
package/commands/docs.ts CHANGED
@@ -5,7 +5,7 @@ import path from 'node:path';
5
5
  import chalk from 'chalk';
6
6
  import {globSync} from 'glob';
7
7
  import {deleteSync} from 'del';
8
- import tar from 'tar';
8
+ import {create as createTar} from 'tar';
9
9
  import streamToPromise from 'stream-to-promise';
10
10
 
11
11
  import {getRootDir} from '../mops.js';
@@ -82,7 +82,7 @@ export async function docs({silent = false} = {}) {
82
82
  let files = globSync(`${docsDir}/**/*.adoc`, {ignore}).map(f => path.relative(docsDir, f));
83
83
  files.sort();
84
84
  if (files.length) {
85
- let stream = tar.create(
85
+ let stream = createTar(
86
86
  {
87
87
  cwd: docsDir,
88
88
  gzip: true,
@@ -8,7 +8,7 @@ import decompress from 'decompress';
8
8
  // import decompressTarxz from 'decomp-tarxz';
9
9
  import {deleteSync} from 'del';
10
10
  import {Octokit} from 'octokit';
11
- import tar from 'tar';
11
+ import {extract as extractTar} from 'tar';
12
12
 
13
13
  import {getRootDir} from '../../mops.js';
14
14
 
@@ -41,7 +41,7 @@ export let downloadAndExtract = async (url : string, destDir : string, destFileN
41
41
  fs.cpSync(path.join(tmpDir, path.parse(archive).name.replace('.tar', '')), destDir, {recursive: true});
42
42
  }
43
43
  else if (archive.endsWith('tar.gz')) {
44
- await tar.extract({
44
+ await extractTar({
45
45
  file: archive,
46
46
  cwd: destDir,
47
47
  });
@@ -5,7 +5,7 @@ import path from 'node:path';
5
5
  import chalk from 'chalk';
6
6
  import { globSync } from 'glob';
7
7
  import { deleteSync } from 'del';
8
- import tar from 'tar';
8
+ import { create as createTar } from 'tar';
9
9
  import streamToPromise from 'stream-to-promise';
10
10
  import { getRootDir } from '../mops.js';
11
11
  import { toolchain } from './toolchain/index.js';
@@ -72,7 +72,7 @@ export async function docs({ silent = false } = {}) {
72
72
  let files = globSync(`${docsDir}/**/*.adoc`, { ignore }).map(f => path.relative(docsDir, f));
73
73
  files.sort();
74
74
  if (files.length) {
75
- let stream = tar.create({
75
+ let stream = createTar({
76
76
  cwd: docsDir,
77
77
  gzip: true,
78
78
  portable: true,
@@ -8,7 +8,7 @@ import decompress from 'decompress';
8
8
  // import decompressTarxz from 'decomp-tarxz';
9
9
  import { deleteSync } from 'del';
10
10
  import { Octokit } from 'octokit';
11
- import tar from 'tar';
11
+ import { extract as extractTar } from 'tar';
12
12
  import { getRootDir } from '../../mops.js';
13
13
  export let downloadAndExtract = async (url, destDir, destFileName = '') => {
14
14
  let res = await fetch(url);
@@ -33,7 +33,7 @@ export let downloadAndExtract = async (url, destDir, destFileName = '') => {
33
33
  fs.cpSync(path.join(tmpDir, path.parse(archive).name.replace('.tar', '')), destDir, { recursive: true });
34
34
  }
35
35
  else if (archive.endsWith('tar.gz')) {
36
- await tar.extract({
36
+ await extractTar({
37
37
  file: archive,
38
38
  cwd: destDir,
39
39
  });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "bin/mops.js",
@@ -24,69 +24,69 @@
24
24
  "node": ">=18.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@dfinity/agent": "^0.19.3",
28
- "@dfinity/candid": "^0.19.3",
29
- "@dfinity/identity": "^0.19.3",
30
- "@dfinity/identity-secp256k1": "^0.19.3",
31
- "@dfinity/principal": "^0.19.3",
32
- "@iarna/toml": "^2.2.5",
33
- "@noble/hashes": "1.3.2",
34
- "as-table": "^1.0.55",
27
+ "@dfinity/agent": "2.0.0",
28
+ "@dfinity/candid": "2.0.0",
29
+ "@dfinity/identity": "2.0.0",
30
+ "@dfinity/identity-secp256k1": "2.0.0",
31
+ "@dfinity/principal": "2.0.0",
32
+ "@iarna/toml": "2.2.5",
33
+ "@noble/hashes": "1.4.0",
34
+ "as-table": "1.0.55",
35
35
  "buffer": "6.0.3",
36
- "cacheable-request": "10.2.12",
37
- "camelcase": "^7.0.1",
38
- "chalk": "^5.3.0",
36
+ "cacheable-request": "12.0.1",
37
+ "camelcase": "8.0.0",
38
+ "chalk": "5.3.0",
39
39
  "chokidar": "3.6.0",
40
- "commander": "12.0.0",
41
- "debounce": "^1.2.1",
40
+ "commander": "12.1.0",
41
+ "debounce": "2.1.0",
42
42
  "decomp-tarxz": "0.1.1",
43
- "decompress": "^4.2.1",
43
+ "decompress": "4.2.1",
44
44
  "del": "7.1.0",
45
45
  "dhall-to-json-cli": "1.7.6",
46
- "eslint": "8.57.0",
47
- "execa": "8.0.1",
46
+ "eslint": "9.8.0",
47
+ "execa": "9.3.0",
48
48
  "fs-extra": "11.2.0",
49
- "get-folder-size": "^4.0.0",
50
- "glob": "^10.3.3",
51
- "globby": "^13.2.2",
52
- "got": "13.0.0",
53
- "log-update": "6.0.0",
49
+ "get-folder-size": "5.0.0",
50
+ "glob": "11.0.0",
51
+ "globby": "14.0.2",
52
+ "got": "14.4.2",
53
+ "log-update": "6.1.0",
54
54
  "markdown-table": "3.0.3",
55
- "mdast-util-from-markdown": "^2.0.0",
56
- "mdast-util-to-markdown": "^2.1.0",
57
- "minimatch": "^9.0.3",
58
- "ncp": "^2.0.0",
59
- "node-fetch": "^3.3.2",
60
- "octokit": "3.1.2",
61
- "pem-file": "^1.0.1",
62
- "pic-ic": "0.3.2",
63
- "prompts": "^2.4.2",
64
- "semver": "7.6.0",
65
- "stream-to-promise": "^3.0.0",
66
- "string-width": "7.1.0",
67
- "tar": "6.2.0"
55
+ "mdast-util-from-markdown": "2.0.1",
56
+ "mdast-util-to-markdown": "2.1.0",
57
+ "minimatch": "10.0.1",
58
+ "ncp": "2.0.0",
59
+ "node-fetch": "3.3.2",
60
+ "octokit": "4.0.2",
61
+ "pem-file": "1.0.1",
62
+ "pic-ic": "0.3.3",
63
+ "prompts": "2.4.2",
64
+ "semver": "7.6.3",
65
+ "stream-to-promise": "3.0.0",
66
+ "string-width": "7.2.0",
67
+ "tar": "7.4.3"
68
68
  },
69
69
  "devDependencies": {
70
- "@tsconfig/strictest": "2.0.2",
71
- "@types/debounce": "^1.2.1",
72
- "@types/decompress": "^4.2.4",
70
+ "@tsconfig/strictest": "2.0.5",
71
+ "@types/debounce": "1.2.4",
72
+ "@types/decompress": "4.2.7",
73
73
  "@types/fs-extra": "11.0.4",
74
- "@types/glob": "^8.1.0",
75
- "@types/ncp": "^2.0.5",
76
- "@types/node": "20.11.24",
77
- "@types/prompts": "^2.4.4",
74
+ "@types/glob": "8.1.0",
75
+ "@types/ncp": "2.0.8",
76
+ "@types/node": "22.0.2",
77
+ "@types/prompts": "2.4.9",
78
78
  "@types/semver": "7.5.8",
79
- "@types/stream-to-promise": "^2.2.1",
80
- "@types/tar": "^6.1.5",
79
+ "@types/stream-to-promise": "2.2.4",
80
+ "@types/tar": "6.1.13",
81
81
  "bun": "1.0.35",
82
- "esbuild": "0.20.1",
83
- "tsx": "4.7.1",
84
- "typescript": "5.4.3"
82
+ "esbuild": "0.23.0",
83
+ "tsx": "4.16.5",
84
+ "typescript": "5.5.4"
85
85
  },
86
86
  "overrides": {
87
- "@dfinity/agent": "^0.19.3",
88
- "@dfinity/identity": "^0.19.3",
89
- "@dfinity/principal": "^0.19.3",
90
- "@dfinity/candid": "^0.19.3"
87
+ "@dfinity/agent": "2.0.0",
88
+ "@dfinity/identity": "2.0.0",
89
+ "@dfinity/principal": "2.0.0",
90
+ "@dfinity/candid": "2.0.0"
91
91
  }
92
92
  }
package/dist/pem.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" resolution-mode="require"/>
2
1
  import { Buffer } from 'node:buffer';
3
2
  import { Ed25519KeyIdentity } from '@dfinity/identity';
4
3
  import { Secp256k1KeyIdentity } from '@dfinity/identity-secp256k1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.45.0",
3
+ "version": "0.45.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/bin/mops.js",
@@ -39,69 +39,69 @@
39
39
  "esbuild": "esbuild"
40
40
  },
41
41
  "dependencies": {
42
- "@dfinity/agent": "^0.19.3",
43
- "@dfinity/candid": "^0.19.3",
44
- "@dfinity/identity": "^0.19.3",
45
- "@dfinity/identity-secp256k1": "^0.19.3",
46
- "@dfinity/principal": "^0.19.3",
47
- "@iarna/toml": "^2.2.5",
48
- "@noble/hashes": "1.3.2",
49
- "as-table": "^1.0.55",
42
+ "@dfinity/agent": "2.0.0",
43
+ "@dfinity/candid": "2.0.0",
44
+ "@dfinity/identity": "2.0.0",
45
+ "@dfinity/identity-secp256k1": "2.0.0",
46
+ "@dfinity/principal": "2.0.0",
47
+ "@iarna/toml": "2.2.5",
48
+ "@noble/hashes": "1.4.0",
49
+ "as-table": "1.0.55",
50
50
  "buffer": "6.0.3",
51
- "cacheable-request": "10.2.12",
52
- "camelcase": "^7.0.1",
53
- "chalk": "^5.3.0",
51
+ "cacheable-request": "12.0.1",
52
+ "camelcase": "8.0.0",
53
+ "chalk": "5.3.0",
54
54
  "chokidar": "3.6.0",
55
- "commander": "12.0.0",
56
- "debounce": "^1.2.1",
55
+ "commander": "12.1.0",
56
+ "debounce": "2.1.0",
57
57
  "decomp-tarxz": "0.1.1",
58
- "decompress": "^4.2.1",
58
+ "decompress": "4.2.1",
59
59
  "del": "7.1.0",
60
60
  "dhall-to-json-cli": "1.7.6",
61
- "eslint": "8.57.0",
62
- "execa": "8.0.1",
61
+ "eslint": "9.8.0",
62
+ "execa": "9.3.0",
63
63
  "fs-extra": "11.2.0",
64
- "get-folder-size": "^4.0.0",
65
- "glob": "^10.3.3",
66
- "globby": "^13.2.2",
67
- "got": "13.0.0",
68
- "log-update": "6.0.0",
64
+ "get-folder-size": "5.0.0",
65
+ "glob": "11.0.0",
66
+ "globby": "14.0.2",
67
+ "got": "14.4.2",
68
+ "log-update": "6.1.0",
69
69
  "markdown-table": "3.0.3",
70
- "mdast-util-from-markdown": "^2.0.0",
71
- "mdast-util-to-markdown": "^2.1.0",
72
- "minimatch": "^9.0.3",
73
- "ncp": "^2.0.0",
74
- "node-fetch": "^3.3.2",
75
- "octokit": "3.1.2",
76
- "pem-file": "^1.0.1",
77
- "pic-ic": "0.3.2",
78
- "prompts": "^2.4.2",
79
- "semver": "7.6.0",
80
- "stream-to-promise": "^3.0.0",
81
- "string-width": "7.1.0",
82
- "tar": "6.2.0"
70
+ "mdast-util-from-markdown": "2.0.1",
71
+ "mdast-util-to-markdown": "2.1.0",
72
+ "minimatch": "10.0.1",
73
+ "ncp": "2.0.0",
74
+ "node-fetch": "3.3.2",
75
+ "octokit": "4.0.2",
76
+ "pem-file": "1.0.1",
77
+ "pic-ic": "0.3.3",
78
+ "prompts": "2.4.2",
79
+ "semver": "7.6.3",
80
+ "stream-to-promise": "3.0.0",
81
+ "string-width": "7.2.0",
82
+ "tar": "7.4.3"
83
83
  },
84
84
  "devDependencies": {
85
- "@tsconfig/strictest": "2.0.2",
86
- "@types/debounce": "^1.2.1",
87
- "@types/decompress": "^4.2.4",
85
+ "@tsconfig/strictest": "2.0.5",
86
+ "@types/debounce": "1.2.4",
87
+ "@types/decompress": "4.2.7",
88
88
  "@types/fs-extra": "11.0.4",
89
- "@types/glob": "^8.1.0",
90
- "@types/ncp": "^2.0.5",
91
- "@types/node": "20.11.24",
92
- "@types/prompts": "^2.4.4",
89
+ "@types/glob": "8.1.0",
90
+ "@types/ncp": "2.0.8",
91
+ "@types/node": "22.0.2",
92
+ "@types/prompts": "2.4.9",
93
93
  "@types/semver": "7.5.8",
94
- "@types/stream-to-promise": "^2.2.1",
95
- "@types/tar": "^6.1.5",
94
+ "@types/stream-to-promise": "2.2.4",
95
+ "@types/tar": "6.1.13",
96
96
  "bun": "1.0.35",
97
- "esbuild": "0.20.1",
98
- "tsx": "4.7.1",
99
- "typescript": "5.4.3"
97
+ "esbuild": "0.23.0",
98
+ "tsx": "4.16.5",
99
+ "typescript": "5.5.4"
100
100
  },
101
101
  "overrides": {
102
- "@dfinity/agent": "^0.19.3",
103
- "@dfinity/identity": "^0.19.3",
104
- "@dfinity/principal": "^0.19.3",
105
- "@dfinity/candid": "^0.19.3"
102
+ "@dfinity/agent": "2.0.0",
103
+ "@dfinity/identity": "2.0.0",
104
+ "@dfinity/principal": "2.0.0",
105
+ "@dfinity/candid": "2.0.0"
106
106
  }
107
107
  }