ic-mops 0.44.1 → 0.45.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/bin/moc-wrapper.sh +2 -1
- package/bundle/bin/moc-wrapper.sh +2 -1
- package/bundle/cli.js +90 -33
- package/bundle/cli.tgz +0 -0
- package/bundle/declarations/bench/bench.did +2 -2
- package/bundle/declarations/bench/bench.did.d.ts +2 -2
- package/bundle/declarations/bench/bench.did.js +2 -2
- package/bundle/declarations/bench/index.js +8 -0
- package/bundle/declarations/main/main.did +5 -0
- package/bundle/declarations/main/main.did.d.ts +5 -0
- package/bundle/declarations/main/main.did.js +5 -0
- package/bundle/package.json +1 -1
- package/cache.ts +2 -1
- package/check-requirements.ts +2 -1
- package/cli.ts +5 -1
- package/commands/available-updates.ts +4 -0
- package/commands/install/install-mops-dep.ts +7 -5
- package/commands/publish.ts +10 -5
- package/commands/remove.ts +5 -4
- package/declarations/bench/bench.did +2 -2
- package/declarations/bench/bench.did.d.ts +2 -2
- package/declarations/bench/bench.did.js +2 -2
- package/declarations/bench/index.js +8 -0
- package/declarations/main/main.did +5 -0
- package/declarations/main/main.did.d.ts +5 -0
- package/declarations/main/main.did.js +5 -0
- package/dist/bin/moc-wrapper.sh +2 -1
- package/dist/cache.js +2 -1
- package/dist/check-requirements.js +2 -1
- package/dist/cli.js +5 -1
- package/dist/commands/available-updates.js +3 -0
- package/dist/commands/install/install-mops-dep.js +7 -5
- package/dist/commands/publish.d.ts +1 -0
- package/dist/commands/publish.js +8 -4
- package/dist/commands/remove.js +5 -4
- package/dist/declarations/bench/bench.did +2 -2
- package/dist/declarations/bench/bench.did.d.ts +2 -2
- package/dist/declarations/bench/bench.did.js +2 -2
- package/dist/declarations/bench/index.js +8 -0
- package/dist/declarations/main/main.did +5 -0
- package/dist/declarations/main/main.did.d.ts +5 -0
- package/dist/declarations/main/main.did.js +5 -0
- package/dist/helpers/get-dep-name.d.ts +1 -0
- package/dist/helpers/get-dep-name.js +3 -0
- package/dist/helpers/get-package-id.d.ts +1 -0
- package/dist/helpers/get-package-id.js +4 -0
- package/dist/integrity.js +2 -1
- package/dist/mops.js +5 -4
- package/dist/notify-installs.js +5 -2
- package/dist/package.json +1 -1
- package/dist/pem.js +1 -1
- package/dist/vessel.js +1 -1
- package/helpers/get-dep-name.ts +3 -0
- package/helpers/get-package-id.ts +5 -0
- package/integrity.ts +2 -1
- package/mops.ts +5 -4
- package/notify-installs.ts +6 -2
- package/package.json +2 -2
- package/pem.ts +1 -1
- package/vessel.ts +1 -1
- package/.npmrc +0 -2
- package/dist/commands/install-all.d.ts +0 -7
- package/dist/commands/install-all.js +0 -45
- package/dist/commands/install-local.d.ts +0 -4
- package/dist/commands/install-local.js +0 -47
- package/dist/commands/install.d.ts +0 -5
- package/dist/commands/install.js +0 -109
- package/dist/remove-scripts.d.ts +0 -1
- package/dist/remove-scripts.js +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## unreleased
|
|
4
4
|
|
|
5
|
+
## 0.45.0
|
|
6
|
+
- Updated npm dependencies
|
|
7
|
+
- Added `--no-install` flag to `mops sources` command
|
|
8
|
+
- Added `--verbose` flag to `mops publish` command
|
|
9
|
+
- Added support for [dependency version pinning](https://docs.mops.one/dependency-version-pinning)
|
|
10
|
+
- Suppress hashing tool detecting error in `moc-wrapper.sh` on Linux
|
|
11
|
+
- Fixed `moc-wrapper` error when no `.mops` folder exists
|
|
12
|
+
- Fixed cache folder delete on github install error
|
|
13
|
+
|
|
5
14
|
## 0.44.1
|
|
6
15
|
- Fixed fallback to dfx moc if there is no mops.toml
|
|
7
16
|
|
package/bin/moc-wrapper.sh
CHANGED
|
@@ -16,7 +16,7 @@ mopsToml="$rootDir/mops.toml"
|
|
|
16
16
|
if [[ $rootDir == "" ]] || [[ ! -f $mopsToml ]]; then
|
|
17
17
|
mocPath="$(mops toolchain bin moc --fallback)"
|
|
18
18
|
else
|
|
19
|
-
if command -v openssl
|
|
19
|
+
if command -v openssl >/dev/null 2>&1; then
|
|
20
20
|
mopsTomlHash=$(openssl sha256 $mopsToml | awk -F'= ' '{print $2}')
|
|
21
21
|
else
|
|
22
22
|
mopsTomlHash=$(shasum $mopsToml -a 256 | awk -F' ' '{print $1}')
|
|
@@ -31,6 +31,7 @@ else
|
|
|
31
31
|
echo -n $mocPath > "$cached"
|
|
32
32
|
fi;
|
|
33
33
|
else
|
|
34
|
+
mkdir -p "$(dirname $cached)"
|
|
34
35
|
mocPath="$(mops toolchain bin moc --fallback)"
|
|
35
36
|
echo -n $mocPath > "$cached"
|
|
36
37
|
fi;
|
|
@@ -16,7 +16,7 @@ mopsToml="$rootDir/mops.toml"
|
|
|
16
16
|
if [[ $rootDir == "" ]] || [[ ! -f $mopsToml ]]; then
|
|
17
17
|
mocPath="$(mops toolchain bin moc --fallback)"
|
|
18
18
|
else
|
|
19
|
-
if command -v openssl
|
|
19
|
+
if command -v openssl >/dev/null 2>&1; then
|
|
20
20
|
mopsTomlHash=$(openssl sha256 $mopsToml | awk -F'= ' '{print $2}')
|
|
21
21
|
else
|
|
22
22
|
mopsTomlHash=$(shasum $mopsToml -a 256 | awk -F' ' '{print $1}')
|
|
@@ -31,6 +31,7 @@ else
|
|
|
31
31
|
echo -n $mocPath > "$cached"
|
|
32
32
|
fi;
|
|
33
33
|
else
|
|
34
|
+
mkdir -p "$(dirname $cached)"
|
|
34
35
|
mocPath="$(mops toolchain bin moc --fallback)"
|
|
35
36
|
echo -n $mocPath > "$cached"
|
|
36
37
|
fi;
|