From 0c66e7c956e8600a5da479d757cb932e9aaf3c8f Mon Sep 17 00:00:00 2001 From: Bobby Lat Date: Tue, 19 Nov 2024 15:04:21 +0800 Subject: [PATCH] chore: fix npm audit vulnerability --- .nsprc | 5 +++++ package-lock.json | 19 ++++++++++--------- package.json | 1 + packages/algo-ts/.nsprc | 5 +++++ packages/algo-ts/package-lock.json | 19 ++++++++++--------- packages/algo-ts/package.json | 3 ++- 6 files changed, 33 insertions(+), 19 deletions(-) diff --git a/.nsprc b/.nsprc index 2c63c085..840cbf71 100644 --- a/.nsprc +++ b/.nsprc @@ -1,2 +1,7 @@ { + "1100467": { + "active": true, + "notes": "Waiting for https://github.com/npm/cli/issues/7902 to be resolved", + "expiry": "2024-12-31" + } } diff --git a/package-lock.json b/package-lock.json index 1896e9c9..b1012353 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,6 +44,7 @@ "better-npm-audit": "3.11.0", "conventional-changelog-conventionalcommits": "^8.0.0", "copyfiles": "2.4.1", + "cross-spawn": "^7.0.6", "eslint": "9.11.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", @@ -1263,9 +1264,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.0.tgz", - "integrity": "sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz", + "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -3748,9 +3749,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -7114,9 +7115,9 @@ "license": "MIT" }, "node_modules/npm-run-all/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 2e072a5d..9d3e4d89 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "better-npm-audit": "3.11.0", "conventional-changelog-conventionalcommits": "^8.0.0", "copyfiles": "2.4.1", + "cross-spawn": "^7.0.6", "eslint": "9.11.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", diff --git a/packages/algo-ts/.nsprc b/packages/algo-ts/.nsprc index 2c63c085..840cbf71 100644 --- a/packages/algo-ts/.nsprc +++ b/packages/algo-ts/.nsprc @@ -1,2 +1,7 @@ { + "1100467": { + "active": true, + "notes": "Waiting for https://github.com/npm/cli/issues/7902 to be resolved", + "expiry": "2024-12-31" + } } diff --git a/packages/algo-ts/package-lock.json b/packages/algo-ts/package-lock.json index 2279f273..bb4e58d1 100644 --- a/packages/algo-ts/package-lock.json +++ b/packages/algo-ts/package-lock.json @@ -24,6 +24,7 @@ "@vitest/coverage-v8": "2.1.1", "better-npm-audit": "3.11.0", "copyfiles": "2.4.1", + "cross-spawn": "^7.0.6", "eslint": "9.11.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.2.1", @@ -782,9 +783,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.0.tgz", - "integrity": "sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==", + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.3.tgz", + "integrity": "sha512-2b/g5hRmpbb1o4GnTZax9N9m0FXzz9OV42ZzI4rDDMDuHUqigAiQCEWChBWCY4ztAGVRjoWT19v0yMmc5/L5kA==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -2299,9 +2300,9 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "license": "MIT", "dependencies": { @@ -4381,9 +4382,9 @@ "license": "MIT" }, "node_modules/npm-run-all/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", "dev": true, "license": "MIT", "dependencies": { diff --git a/packages/algo-ts/package.json b/packages/algo-ts/package.json index e6b099b8..f841c6a5 100644 --- a/packages/algo-ts/package.json +++ b/packages/algo-ts/package.json @@ -47,7 +47,8 @@ "rollup": "4.22.4", "tsx": "4.19.1", "typescript": "^5.6.2", - "vitest": "2.1.1" + "vitest": "2.1.1", + "cross-spawn": "^7.0.6" }, "overrides": { "micromatch": "4.0.8"