Skip to content

Commit 72accde

Browse files
committed
Ensure the @jdalton/packageurl-js is used for cdxgen
1 parent e899fe8 commit 72accde

File tree

2 files changed

+54
-47
lines changed

2 files changed

+54
-47
lines changed

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
"url": "https://socket.dev"
1515
},
1616
"license": "MIT",
17-
"engines": {
18-
"node": "^20.9.0 || >=21.1.0"
19-
},
2017
"type": "module",
2118
"bin": {
2219
"socket": "cli.js",
@@ -30,18 +27,32 @@
3027
"lib/**/*.cjs",
3128
"lib/shadow/**"
3229
],
33-
"scripts": {
34-
"check:dependency-check": "dependency-check '*.js' 'lib/shadow/*.cjs' '*.mjs' 'test/**/*.js' --no-dev --ignore-module node:* --ignore-module @cyclonedx/* --ignore-module synp",
35-
"check:installed-check": "installed-check -i eslint-plugin-jsdoc",
36-
"check:lint": "eslint --report-unused-disable-directives .",
37-
"check:tsc": "tsc",
38-
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
39-
"check": "run-p -c --aggregate-output check:*",
40-
"prepare": "husky install",
41-
"test:unit": "c8 --reporter=lcov --reporter text node --test",
42-
"test-ci": "run-s test:*",
43-
"test": "run-s check test:*",
44-
"//postinstall": "node ./cli.js wrapper --postinstall"
30+
"dependencies": {
31+
"@apideck/better-ajv-errors": "^0.3.6",
32+
"@cyclonedx/cdxgen": "^10.7.0",
33+
"@inquirer/select": "^2.3.5",
34+
"@socketsecurity/config": "^2.1.3",
35+
"@socketsecurity/sdk": "^1.2.0",
36+
"chalk": "^5.3.0",
37+
"chalk-table": "^1.0.2",
38+
"execa": "^9.1.0",
39+
"globby": "^14.0.1",
40+
"hpagent": "^1.2.0",
41+
"ignore": "^5.3.1",
42+
"ignore-by-default": "^2.1.0",
43+
"inquirer": "^9.2.23",
44+
"is-interactive": "^2.0.0",
45+
"is-unicode-supported": "^2.0.0",
46+
"meow": "^13.2.0",
47+
"open": "^10.1.0",
48+
"ora": "^8.0.1",
49+
"pony-cause": "^2.1.11",
50+
"prompts": "^2.4.2",
51+
"synp": "^1.9.13",
52+
"terminal-link": "^3.0.0",
53+
"update-notifier": "^7.0.0",
54+
"which": "^4.0.0",
55+
"yargs-parser": "^21.1.1"
4556
},
4657
"devDependencies": {
4758
"@socketsecurity/eslint-config": "^5.0.1",
@@ -82,31 +93,26 @@
8293
"type-coverage": "^2.29.0",
8394
"typescript": "~5.5.2"
8495
},
85-
"dependencies": {
86-
"@apideck/better-ajv-errors": "^0.3.6",
87-
"@cyclonedx/cdxgen": "^10.7.0",
88-
"@inquirer/select": "^2.3.5",
89-
"@socketsecurity/config": "^2.1.3",
90-
"@socketsecurity/sdk": "^1.2.0",
91-
"chalk": "^5.3.0",
92-
"chalk-table": "^1.0.2",
93-
"execa": "^9.1.0",
94-
"globby": "^14.0.1",
95-
"hpagent": "^1.2.0",
96-
"ignore": "^5.3.1",
97-
"ignore-by-default": "^2.1.0",
98-
"inquirer": "^9.2.23",
99-
"is-interactive": "^2.0.0",
100-
"is-unicode-supported": "^2.0.0",
101-
"meow": "^13.2.0",
102-
"open": "^10.1.0",
103-
"ora": "^8.0.1",
104-
"pony-cause": "^2.1.11",
105-
"prompts": "^2.4.2",
106-
"synp": "^1.9.13",
107-
"terminal-link": "^3.0.0",
108-
"update-notifier": "^7.0.0",
109-
"which": "^4.0.0",
110-
"yargs-parser": "^21.1.1"
96+
"overrides": {
97+
"@cyclonedx/cdxgen": {
98+
"packageurl-js": "https://registry.npmjs.org/@jdalton/packageurl-js/-/packageurl-js-1.2.7.tgz"
99+
}
100+
},
101+
"engines": {
102+
"node": "^20.9.0 || >=21.1.0"
103+
},
104+
105+
"scripts": {
106+
"check:dependency-check": "dependency-check '*.js' 'lib/shadow/*.cjs' '*.mjs' 'test/**/*.js' --no-dev --ignore-module node:* --ignore-module @cyclonedx/* --ignore-module synp",
107+
"check:installed-check": "installed-check -i eslint-plugin-jsdoc",
108+
"check:lint": "eslint --report-unused-disable-directives .",
109+
"check:tsc": "tsc",
110+
"check:type-coverage": "type-coverage --detail --strict --at-least 95 --ignore-files 'test/*'",
111+
"check": "run-p -c --aggregate-output check:*",
112+
"prepare": "husky install",
113+
"test:unit": "c8 --reporter=lcov --reporter text node --test",
114+
"test-ci": "run-s test:*",
115+
"test": "run-s check test:*",
116+
"//postinstall": "node ./cli.js wrapper --postinstall"
111117
}
112118
}

0 commit comments

Comments
 (0)