Skip to content

Commit 41257cb

Browse files
committed
__proto__ nits
1 parent b537b94 commit 41257cb

26 files changed

+13
-41
lines changed

.config/rollup.base.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ export default (extendConfig = {}) => {
219219
? [config.output]
220220
: []
221221
).map(o => ({
222-
__proto__: null,
223222
...o,
224223
chunkFileNames: '[name].js',
225224
manualChunks(id) {

.config/rollup.dist.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export default () => {
8484
/(?<="dependencies":\s*)\{[^\}]*\}/,
8585
() => {
8686
const deps = {
87-
__proto__: null,
8887
...depStats.dependencies,
8988
...depStats.transitives
9089
}

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"tinyglobby": "^0.2.10",
8080
"which": "^5.0.0",
8181
"write-file-atomic": "^6.0.0",
82+
"yaml": "^2.6.0",
8283
"yargs-parser": "^21.1.1"
8384
},
8485
"devDependencies": {
@@ -145,9 +146,6 @@
145146
"validate-npm-package-name": "^6.0.0"
146147
},
147148
"overrides": {
148-
"@cyclonedx/cdxgen": {
149-
"packageurl-js": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-2.0.1.tgz"
150-
},
151149
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
152150
"es-define-property": "npm:@socketregistry/es-define-property@^1",
153151
"function-bind": "npm:@socketregistry/function-bind@^1",
@@ -161,12 +159,14 @@
161159
"is-core-module": "npm:@socketregistry/is-core-module@^1",
162160
"isarray": "npm:@socketregistry/isarray@^1",
163161
"npm-package-arg": "$npm-package-arg",
162+
"packageurl-js": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-2.0.1.tgz",
164163
"path-parse": "npm:@socketregistry/path-parse@^1",
165164
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
166165
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
167166
"semver": "$semver",
168167
"set-function-length": "npm:@socketregistry/set-function-length@^1",
169-
"side-channel": "npm:@socketregistry/side-channel@^1"
168+
"side-channel": "npm:@socketregistry/side-channel@^1",
169+
"yaml": "$yaml"
170170
},
171171
"resolutions": {
172172
"aggregate-error": "npm:@socketregistry/aggregate-error@^1",
@@ -182,12 +182,14 @@
182182
"is-core-module": "npm:@socketregistry/is-core-module@^1",
183183
"isarray": "npm:@socketregistry/isarray@^1",
184184
"npm-package-arg": "^12.0.0",
185+
"packageurl-js": "https://registry.npmjs.org/packageurl-js/-/packageurl-js-2.0.1.tgz",
185186
"path-parse": "npm:@socketregistry/path-parse@^1",
186187
"safe-buffer": "npm:@socketregistry/safe-buffer@^1",
187188
"safer-buffer": "npm:@socketregistry/safer-buffer@^1",
188189
"semver": "^7.6.3",
189190
"set-function-length": "npm:@socketregistry/set-function-length@^1",
190-
"side-channel": "npm:@socketregistry/side-channel@^1"
191+
"side-channel": "npm:@socketregistry/side-channel@^1",
192+
"yaml": "^2.6.0"
191193
},
192194
"engines": {
193195
"node": "^20.9.0 || >=22.0.0"

src/commands/analytics.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ function setupCommand(
102102
importMeta: ImportMeta
103103
): void | CommandContext {
104104
const flags: { [key: string]: any } = {
105-
__proto__: null,
106105
...commonFlags,
107106
...outputFlags,
108107
...analyticsFlags

src/commands/audit-log.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function setupCommand(
7373
importMeta: ImportMeta
7474
): CommandContext | undefined {
7575
const flags: { [key: string]: any } = {
76-
__proto__: null,
7776
...auditLogFlags,
7877
...commonFlags,
7978
...outputFlags

src/commands/cdxgen.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ export const cdxgen: CliSubcommand = {
153153
description: 'Create an SBOM with CycloneDX generator (cdxgen)',
154154
async run(argv_) {
155155
const yargv = <any>{
156-
__proto__: null,
157156
...yargsParse(<string[]>argv_, yargsConfig)
158157
}
159158
const unknown: string[] = yargv._

src/commands/dependencies.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function setupCommand(
5959
importMeta: ImportMeta
6060
): CommandContext | undefined {
6161
const flags: { [key: string]: any } = {
62-
__proto__: null,
6362
...commonFlags,
6463
...dependenciesFlags,
6564
...outputFlags

src/commands/diff-scan/get.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ function setupCommand(
7979
importMeta: ImportMeta
8080
): CommandContext | undefined {
8181
const flags: { [key: string]: any } = {
82-
__proto__: null,
8382
...commonFlags,
8483
...getDiffScanFlags,
8584
...outputFlags

src/commands/info.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ function setupCommand(
7171
importMeta: ImportMeta
7272
): void | CommandContext {
7373
const flags: { [key: string]: any } = {
74-
__proto__: null,
7574
...commonFlags,
7675
...outputFlags,
7776
...validationFlags

0 commit comments

Comments
 (0)