Skip to content

Commit 0e18463

Browse files
committed
More __proto__: null use
1 parent 9d0f1d0 commit 0e18463

File tree

11 files changed

+11
-0
lines changed

11 files changed

+11
-0
lines changed

.config/rollup.base.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export default (extendConfig = {}) => {
200200
? [config.output]
201201
: []
202202
).map(o => ({
203+
__proto__: null,
203204
...o,
204205
chunkFileNames: '[name].js',
205206
manualChunks(id) {

.config/rollup.dist.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export default () => {
8383
/(?<="dependencies":\s*)\{[^\}]*\}/,
8484
() => {
8585
const deps = {
86+
__proto__: null,
8687
...depStats.dependencies,
8788
...depStats.transitives
8889
}

src/commands/analytics.ts

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

src/commands/audit-log.ts

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

src/commands/dependencies.ts

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

src/commands/diff-scan/get.ts

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

src/commands/info.ts

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

src/commands/report/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ async function setupCommand(
9595
importMeta: ImportMeta
9696
): Promise<void | CommandContext> {
9797
const flags: { [key: string]: any } = {
98+
__proto__: null,
9899
...outputFlags,
99100
...validationFlags,
100101
debug: {

src/commands/report/view.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ function setupCommand(
6666
importMeta: ImportMeta
6767
): CommandContext | undefined {
6868
const flags: { [key: string]: any } = {
69+
__proto__: null,
6970
...outputFlags,
7071
...validationFlags
7172
}

src/commands/repos/create.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function setupCommand(
8686
importMeta: ImportMeta
8787
): CommandContext | undefined {
8888
const flags: { [key: string]: any } = {
89+
__proto__: null,
8990
...outputFlags,
9091
...repositoryCreationFlags
9192
}

0 commit comments

Comments
 (0)