diff --git a/.gitignore b/.gitignore index f530642..1701465 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,34 @@ +# IDEs +.idea + +# Credentials +**/*.asc +**/*.key +**/*.pem +**/*.cert +**/.npmrc +**/.yarnrc + +# Bundles +bundle +build +buildstamp.json +dist +docs +flow-typed +lib +target +typings + +# Temp assets +.temp +temp + +# Codeclimate +codeclimate.* +cc-reporter +cc-reporter.* + # Logs logs *.log @@ -5,6 +36,7 @@ npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* +.pnpm-debug.log* # Diagnostic reports (https://nodejs.org/api/report.html) report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json @@ -20,6 +52,7 @@ lib-cov # Coverage directory used by tools like istanbul coverage +coverage.* *.lcov # nyc test coverage @@ -41,11 +74,14 @@ build/Release node_modules/ jspm_packages/ -# TypeScript v1 declaration files -typings/ +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ # TypeScript cache *.tsbuildinfo +.tsbuildinfo +buildcache +.buildcache # Optional npm cache directory .npm @@ -53,6 +89,9 @@ typings/ # Optional eslint cache .eslintcache +# Optional stylelint cache +.stylelintcache + # Microbundle cache .rpt2_cache/ .rts2_cache_cjs/ @@ -68,15 +107,20 @@ typings/ # Yarn Integrity file .yarn-integrity -# dotenv environment variables file +# dotenv environment variable files .env -.env.test +.env.development.local +.env.test.local +.env.production.local +.env.local # parcel-bundler cache (https://parceljs.org/) .cache +.parcel-cache # Next.js build output .next +out # Nuxt.js build / generate output .nuxt @@ -84,13 +128,20 @@ dist # Gatsby files .cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js +# Comment in the public line in if your project uses Gatsby and not Next.js # https://nextjs.org/blog/next-9-1#public-directory-support # public # vuepress build output .vuepress/dist +# vuepress v2.x temp and cache directory +.temp +.cache + +# Docusaurus cache and generated files +.docusaurus + # Serverless directories .serverless/ @@ -103,5 +154,12 @@ dist # TernJS port file .tern-port -# Creds -.npmrc \ No newline at end of file +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* diff --git a/cc-reporter b/cc-reporter deleted file mode 100755 index 23a0f53..0000000 Binary files a/cc-reporter and /dev/null differ diff --git a/cc-reporter.sha256 b/cc-reporter.sha256 deleted file mode 100755 index 23aaf3f..0000000 --- a/cc-reporter.sha256 +++ /dev/null @@ -1 +0,0 @@ -8c7899a7c69f0bfa91ffa739984de0efc6f15176db68897a05704078a1581649 test-reporter-latest-linux-amd64 diff --git a/cc-reporter.sha256.sig b/cc-reporter.sha256.sig deleted file mode 100755 index 9c33baa..0000000 Binary files a/cc-reporter.sha256.sig and /dev/null differ diff --git a/codeclimate.0.json b/codeclimate.0.json deleted file mode 100644 index e29f33e..0000000 --- a/codeclimate.0.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "ci_service": { - "branch": "master", - "build_identifier": "", - "build_url": "", - "commit_sha": "285d3da0c771d3fc558fd78f9ffc0fba92e2e53c", - "committed_at": 1708343893, - "name": "true" - }, - "environment": { - "gem_version": "3.3.5", - "package_version": "", - "pwd": "/home/runner/work/zx-extra/zx-extra", - "prefix": "/home/runner/work/zx-extra/zx-extra", - "rails_root": "", - "reporter_version": "0.11.1", - "simplecov_root": "" - }, - "git": { - "branch": "master", - "head": "285d3da0c771d3fc558fd78f9ffc0fba92e2e53c", - "committed_at": 1708343893 - }, - "covered_percent": 97.70992366412213, - "covered_strength": 0, - "line_counts": { - "missed": 9, - "covered": 384, - "total": 393 - }, - "source_files": [ - { - "blob_id": "a07dd09a81b0c5f45b2daa94fb05fb93f680ec82", - "coverage": "[1,1,1,1]", - "covered_percent": 100, - "covered_strength": 1, - "line_counts": { - "missed": 0, - "covered": 4, - "total": 4 - }, - "name": "src/main/js/cli.mjs" - }, - { - "blob_id": "34d31088f198301c88714c7405d71ca8afaa00c0", - "coverage": "[1,1,1,1,1,1,1]", - "covered_percent": 100, - "covered_strength": 1, - "line_counts": { - "missed": 0, - "covered": 7, - "total": 7 - }, - "name": "src/main/js/goods.mjs" - }, - { - "blob_id": "2b43b71d42fe02bb12ecbe363396af0436d1eece", - "coverage": "[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,11,11,11,11,1,1,68,20,19,19,1,1,1,1,1,1,1,1,20,48,48,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,1,1,4,12,12,12,12,12,4,4,8,4,4,9,6,6,6,3,9,1,1,2,2,2,2,2,9,4,1,1,5,5,5,2,2,5,5,2,0,0,0,5,1,1,5,5,5,5,4,4,1,1,1,5,5,5,1,1,3,3,5]", - "covered_percent": 97.5609756097561, - "covered_strength": 5.048780487804878, - "line_counts": { - "missed": 3, - "covered": 120, - "total": 123 - }, - "name": "src/main/js/index.mjs" - }, - { - "blob_id": "995c06f7e209827740423fb09bf7f5d3f0c58155", - "coverage": "[1,1,1,1,1,3,3,3,3]", - "covered_percent": 100, - "covered_strength": 1.8888888888888888, - "line_counts": { - "missed": 0, - "covered": 9, - "total": 9 - }, - "name": "src/main/js/util.mjs" - }, - { - "blob_id": "11ccf4d3d722adfea7de8c0e9b93eb32b30d595b", - "coverage": "[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]", - "covered_percent": 97.6, - "covered_strength": 1.024, - "line_counts": { - "missed": 6, - "covered": 244, - "total": 250 - }, - "name": "src/test/js/test.mjs" - } - ], - "repo_token": "a2d62c5cfe3438a5a3cc0a395b851a53fc0e58e7a6f6eb6a268cb0d33ff60891" -} \ No newline at end of file diff --git a/coverage.total.json b/coverage.total.json deleted file mode 100644 index 4f3140e..0000000 --- a/coverage.total.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "ci_service": { - "branch": "master", - "build_identifier": "", - "build_url": "", - "commit_sha": "285d3da0c771d3fc558fd78f9ffc0fba92e2e53c", - "committed_at": 1708343893, - "name": "true" - }, - "environment": { - "gem_version": "3.3.5", - "package_version": "", - "pwd": "/home/runner/work/zx-extra/zx-extra", - "prefix": "/home/runner/work/zx-extra/zx-extra", - "rails_root": "", - "reporter_version": "0.11.1", - "simplecov_root": "" - }, - "git": { - "branch": "master", - "head": "285d3da0c771d3fc558fd78f9ffc0fba92e2e53c", - "committed_at": 1708343893 - }, - "covered_percent": 97.70992366412213, - "covered_strength": 0, - "line_counts": { - "missed": 9, - "covered": 384, - "total": 393 - }, - "source_files": [ - { - "blob_id": "2b43b71d42fe02bb12ecbe363396af0436d1eece", - "coverage": "[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,11,11,11,11,11,1,1,68,20,19,19,1,1,1,1,1,1,1,1,20,48,48,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,4,4,4,4,4,4,4,1,1,4,12,12,12,12,12,4,4,8,4,4,9,6,6,6,3,9,1,1,2,2,2,2,2,9,4,1,1,5,5,5,2,2,5,5,2,0,0,0,5,1,1,5,5,5,5,4,4,1,1,1,5,5,5,1,1,3,3,5]", - "covered_percent": 97.5609756097561, - "covered_strength": 5.048780487804878, - "line_counts": { - "missed": 3, - "covered": 120, - "total": 123 - }, - "name": "src/main/js/index.mjs" - }, - { - "blob_id": "995c06f7e209827740423fb09bf7f5d3f0c58155", - "coverage": "[1,1,1,1,1,3,3,3,3]", - "covered_percent": 100, - "covered_strength": 1.8888888888888888, - "line_counts": { - "missed": 0, - "covered": 9, - "total": 9 - }, - "name": "src/main/js/util.mjs" - }, - { - "blob_id": "11ccf4d3d722adfea7de8c0e9b93eb32b30d595b", - "coverage": "[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,0,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]", - "covered_percent": 97.6, - "covered_strength": 1.024, - "line_counts": { - "missed": 6, - "covered": 244, - "total": 250 - }, - "name": "src/test/js/test.mjs" - }, - { - "blob_id": "a07dd09a81b0c5f45b2daa94fb05fb93f680ec82", - "coverage": "[1,1,1,1]", - "covered_percent": 100, - "covered_strength": 1, - "line_counts": { - "missed": 0, - "covered": 4, - "total": 4 - }, - "name": "src/main/js/cli.mjs" - }, - { - "blob_id": "34d31088f198301c88714c7405d71ca8afaa00c0", - "coverage": "[1,1,1,1,1,1,1]", - "covered_percent": 100, - "covered_strength": 1, - "line_counts": { - "missed": 0, - "covered": 7, - "total": 7 - }, - "name": "src/main/js/goods.mjs" - } - ], - "repo_token": "a2d62c5cfe3438a5a3cc0a395b851a53fc0e58e7a6f6eb6a268cb0d33ff60891" -} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5e8f9e6..46cfa00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "semver": "^7.6.0", "ssri": "^10.0.5", "tempy": "^3.1.0", - "zx": "^7.2.3" + "zx": "7.2.3-dev.7e728f6" }, "bin": { "zx-extra": "src/main/js/cli.mjs" @@ -147,6 +147,7 @@ "version": "11.0.4", "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "optional": true, "dependencies": { "@types/jsonfile": "*", "@types/node": "*" @@ -175,6 +176,7 @@ "version": "6.1.4", "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "optional": true, "dependencies": { "@types/node": "*" } @@ -187,11 +189,6 @@ "@types/node": "*" } }, - "node_modules/@types/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag==" - }, "node_modules/@types/node": { "version": "20.11.19", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.19.tgz", @@ -200,11 +197,6 @@ "undici-types": "~5.26.4" } }, - "node_modules/@types/ps-tree": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@types/ps-tree/-/ps-tree-1.1.5.tgz", - "integrity": "sha512-3LU5a3EZYI1/HvvOkQmmVGrdXopwKXpr3K5cxlZ0zRiP0QzW7IH0o1z4UDI7KdnyQnpPfYHXOOqflEXIl23LFw==" - }, "node_modules/@types/responselike": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@types/responselike/-/responselike-1.0.3.tgz", @@ -218,11 +210,6 @@ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.7.tgz", "integrity": "sha512-/wdoPq1QqkSj9/QOeKkFquEuPzQbHTWAMPH/PaUMB+JuR31lXhlWXRZ52IpfDYVlDOUBvX09uBrPwxGT1hjNBg==" }, - "node_modules/@types/which": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/which/-/which-3.0.2.tgz", - "integrity": "sha512-UqCG7NjNyume6e+BHcFkOQOS8of/E18V2z/jTRkiD98YiiryYOFBVvPxqA/8PQCwkn7icKqz/hFflMIRN2HGhQ==" - }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -344,17 +331,6 @@ "node": ">=8" } }, - "node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", - "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, "node_modules/clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", @@ -457,14 +433,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/data-uri-to-buffer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", - "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", - "engines": { - "node": ">= 12" - } - }, "node_modules/decompress-response": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", @@ -509,11 +477,6 @@ "node": ">=8" } }, - "node_modules/duplexer": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz", - "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==" - }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -537,20 +500,6 @@ "node": ">=6" } }, - "node_modules/event-stream": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.4.tgz", - "integrity": "sha512-QHpkERcGsR0T7Qm3HNJSyXKEEj8AHNxkY3PK8TS2KJvQ7NiSHe3DDpwVKKtoYprL/AreyzFBeIkBIWChAqn60g==", - "dependencies": { - "duplexer": "~0.1.1", - "from": "~0", - "map-stream": "~0.1.0", - "pause-stream": "0.0.11", - "split": "0.3", - "stream-combiner": "~0.0.4", - "through": "~2.3.1" - } - }, "node_modules/fast-glob": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", @@ -574,28 +523,6 @@ "reusify": "^1.0.4" } }, - "node_modules/fetch-blob": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", - "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -639,22 +566,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/formdata-polyfill": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", - "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==" - }, "node_modules/fs-extra": { "version": "11.1.1", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", @@ -674,14 +585,6 @@ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/fx": { - "version": "31.0.0", - "resolved": "https://registry.npmjs.org/fx/-/fx-31.0.0.tgz", - "integrity": "sha512-OoeYSPKqNKmfnH4s+rGYI0c8OZmqqOOXsUtqy0YyHqQQoQSDiDs3m3M9uXKx5OQR+jDx7/FhYqpO3kl/As/xgg==", - "bin": { - "fx": "index.js" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -953,7 +856,8 @@ "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true }, "node_modules/istanbul-lib-coverage": { "version": "3.2.2", @@ -1064,11 +968,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/map-stream": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.1.0.tgz", - "integrity": "sha512-CkYQrPYZfWnu/DAmVCpTSX/xHpKZ80eKh2lAkyA6AJTef6bW+6JpbQZN5rofum7da+SyN1bi5ctTm+lTfcCW3g==" - }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -1125,41 +1024,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "engines": { - "node": ">=10.5.0" - } - }, - "node_modules/node-fetch": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.1.tgz", - "integrity": "sha512-cRVc/kyto/7E5shrWca1Wsea4y6tL9iYJE5FBCius3JQfb/4P4I295PfhgbJQBLTx6lATE4z+wK0rPM4VS2uow==", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, "node_modules/normalize-url": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz", @@ -1326,14 +1190,6 @@ "node": ">=8" } }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", - "dependencies": { - "through": "~2.3" - } - }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", @@ -1353,20 +1209,6 @@ "node": ">=8" } }, - "node_modules/ps-tree": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.2.0.tgz", - "integrity": "sha512-0VnamPPYHl4uaU/nSFeZZpR21QAWRz+sRv4iW9+v/GS/J5U5iZB5BNN6J0RMoOvdx2gWM2+ZFMIm58q24e4UYA==", - "dependencies": { - "event-stream": "=3.3.4" - }, - "bin": { - "ps-tree": "bin/ps-tree.js" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/pump": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", @@ -1538,17 +1380,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/split": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", - "integrity": "sha512-wD2AeVmxXRBoX44wAycgjVpMhvbwdI2aZjCkvfNcH1YqHQvJVa1duWc73OyVGJUc05fhFaTZeQ/PYsrmyH0JVA==", - "dependencies": { - "through": "2" - }, - "engines": { - "node": "*" - } - }, "node_modules/ssri": { "version": "10.0.5", "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.5.tgz", @@ -1560,14 +1391,6 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/stream-combiner": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", - "integrity": "sha512-rT00SPnTVyRsaSz5zgSPma/aHSOic5U1prhYdRy5HS2kTZviFpmDgzilbtsJsxiroqACmayynDN/9VzIbX5DOw==", - "dependencies": { - "duplexer": "~0.1.1" - } - }, "node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -1645,11 +1468,6 @@ "node": ">=8" } }, - "node_modules/through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==" - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -1727,22 +1545,6 @@ "node": ">=10.12.0" } }, - "node_modules/web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/webpod": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/webpod/-/webpod-0.0.2.tgz", - "integrity": "sha512-cSwwQIeg8v4i3p4ajHhwgR7N6VyxAf+KYSSsY6Pd3aETE+xEU4vbitz7qQkB0I321xnhDdgtxuiSfk5r/FVtjg==", - "bin": { - "webpod": "dist/index.js" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -1794,14 +1596,6 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, - "node_modules/yaml": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.4.tgz", - "integrity": "sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==", - "engines": { - "node": ">= 14" - } - }, "node_modules/yargs": { "version": "17.7.2", "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", @@ -1842,53 +1636,18 @@ } }, "node_modules/zx": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/zx/-/zx-7.2.3.tgz", - "integrity": "sha512-QODu38nLlYXg/B/Gw7ZKiZrvPkEsjPN3LQ5JFXM7h0JvwhEdPNNl+4Ao1y4+o3CLNiDUNcwzQYZ4/Ko7kKzCMA==", - "dependencies": { - "@types/fs-extra": "^11.0.1", - "@types/minimist": "^1.2.2", - "@types/node": "^18.16.3", - "@types/ps-tree": "^1.1.2", - "@types/which": "^3.0.0", - "chalk": "^5.2.0", - "fs-extra": "^11.1.1", - "fx": "*", - "globby": "^13.1.4", - "minimist": "^1.2.8", - "node-fetch": "3.3.1", - "ps-tree": "^1.2.0", - "webpod": "^0", - "which": "^3.0.0", - "yaml": "^2.2.2" - }, + "version": "7.2.3-dev.7e728f6", + "resolved": "https://registry.npmjs.org/zx/-/zx-7.2.3-dev.7e728f6.tgz", + "integrity": "sha512-VWyonGwEGhnrjX+KkqoMbdf3WPMzIKksLO7peSb0LB1klzrHCCxpzHgI3CJTfDrDPoLSpcYqw+zogTQsVkvkKw==", "bin": { "zx": "build/cli.js" }, "engines": { "node": ">= 16.0.0" - } - }, - "node_modules/zx/node_modules/@types/node": { - "version": "18.18.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.9.tgz", - "integrity": "sha512-0f5klcuImLnG4Qreu9hPj/rEfFq6YRc5n2mAjSsH+ec/mJL+3voBH0+8T7o8RpFjH7ovc+TRsL/c7OYIQsPTfQ==", - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/zx/node_modules/which": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/which/-/which-3.0.1.tgz", - "integrity": "sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/which.js" }, - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + "optionalDependencies": { + "@types/fs-extra": "^11.0.4", + "@types/node": ">=20.11.19" } } } diff --git a/package.json b/package.json index 55f0c8c..f9cd2d9 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "semver": "^7.6.0", "ssri": "^10.0.5", "tempy": "^3.1.0", - "zx": "^7.2.3" + "zx": "7.2.3-dev.7e728f6" }, "devDependencies": { "c8": "^9.1.0" diff --git a/public-key.asc b/public-key.asc deleted file mode 100755 index 33bb8a6..0000000 --- a/public-key.asc +++ /dev/null @@ -1,54 +0,0 @@ ------BEGIN PGP PUBLIC KEY BLOCK----- -Comment: 9BD9 E2DD 46DA 965A 537E 5B0A 5CBF 3202 43B6 FD85 -Comment: Federico Moya - -xsFNBGE5WN0BEADBmt7KHKGnukz5kTLYGOVZBys72VXviyG86AxGF/TGHyS/DoTi -Q8mTOxMRwPkiObC8Dvb4VkdE32sfNlxGZyGmtBkdyUvfOTlqAPO8PBH+T5SCmTim -zWv5QkBaKFq1kj66DmcWmG4sYLplLXfJfgEGNAYL/yoLWMnUJu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Q7b9hQUC -YTlY3QIbDAUJCWYBgAAKCRBcvzICQ7b9hQTZD/0QE7I+5JhpyTOd/vvfzQeMyW+h -xIsdz4d1CCOPboVSoGmwn0anj8bah9xnh+Oc7kHW5GYcqdYyU3e8nzHTHcPzosjp -+midZJGYgegj3EPNTKK5jMSQJ6G7Eke7Qkf+xC82gy5vEErKE7x+3nnSaPbBZlxe -yFfIZHSUZGV5RLg8b5S62ZP8KZoy0R3J5DNI7gBdHv5zMBthpW/aN0Q+Hk8oCcfS -MX3F4xVAxnET+uBbuTB/IOjlBeajrgHOv0RVmiMKSft8UGtugZ5yUcOrkDqT7luc -y1UoosI/g9BBBXEszfd1mGEI3s3en/yAuRw5ur1xEXiXlZD0PnEkbsl6guhlFmOn -W2UhyHNOKZS56kt/uSCXlWBBL+KeqLokS4BYor3vK+dohP2HNIKGTu2veCdAKlCR -wuXnzTx/MRp0CxKg9k3d4JFGQyi5QTNff7YPJ5deU6QHQgLz/FPHDAYK6gytDTln -7Q/WUmwHIdejHpPlA3tKQhERMnXPv53hPJ0LhvlbWiu/vEjako/8WZM8qhb0eVa6 -Mo8c2DdLTBmSw0K6hPyb9dbQxZXvknROmN008RfraCKOmYJdjSqiHC45rBM5liJq -FgQVdoTmm3KneH5LXsiK11R8MCx4LH4qH4XKSWxNlVaLR5fiikfGsdl6ks2pEgXs -hQDdDhnylWEY62XJQA== -=AI17 ------END PGP PUBLIC KEY BLOCK----- diff --git a/src/main/js/index.d.ts b/src/main/js/index.d.ts index 222b864..d697f09 100644 --- a/src/main/js/index.d.ts +++ b/src/main/js/index.d.ts @@ -24,7 +24,7 @@ type Extra = { type Executor = Shell & BasicOptions & Extra declare module 'zx' { - export type Options = BasicOptions & Extra + export interface Options extends Extra {} } export function createHook(opts?: Executor, name?: string, cb?: (p: ProcessPromise) => any, configurable?: boolean) diff --git a/src/test/js/test.mjs b/src/test/js/test.mjs index 11ccf4d..53669ce 100644 --- a/src/test/js/test.mjs +++ b/src/test/js/test.mjs @@ -159,14 +159,14 @@ password = dbpassword { $.verbose = 0 try { - await $`ps-tree` + await $`semver` } catch (e){ assert.ok(/command not found/.test(e.message)) } $.preferLocal = true - await $`ps-tree` + await $`semver` $.preferLocal = false $.verbose = 2