Skip to content

Commit

Permalink
remove packages that pollutes global objects (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Jan 28, 2025
1 parent e8abfac commit deb7fff
Show file tree
Hide file tree
Showing 5 changed files with 3,379 additions and 3,482 deletions.
4 changes: 3 additions & 1 deletion generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ const ignoreList = new Set([
// breaks node.js > v22.7.0
"esm",
// contains a global `var hasOwnProperty = Object.prototype.hasOwnProperty;` which got polluted from some where.
"react-shallow-renderer"
"react-shallow-renderer",
// pollutes protytype
"pirates", "dd-trace", "harmony-reflect"
]);

const ignorePrefixes = [
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"@apidevtools/json-schema-ref-parser": "latest",
"@apollo/client": "latest",
"@ardatan/relay-compiler": "latest",
"@ardatan/sync-fetch": "latest",
"@aws-crypto/crc32": "latest",
"@aws-crypto/crc32c": "latest",
"@aws-crypto/ie11-detection": "latest",
Expand Down Expand Up @@ -567,6 +568,7 @@
"@vue/server-renderer": "latest",
"@vue/shared": "latest",
"@vueuse/core": "latest",
"@wdio/logger": "latest",
"@webassemblyjs/ast": "latest",
"@webassemblyjs/floating-point-hex-parser": "latest",
"@webassemblyjs/helper-api-error": "latest",
Expand Down Expand Up @@ -1099,7 +1101,6 @@
"date-format": "latest",
"dateformat": "latest",
"dayjs": "latest",
"dd-trace": "latest",
"de-indent": "latest",
"debounce": "latest",
"debug": "latest",
Expand Down Expand Up @@ -1473,7 +1474,6 @@
"har-schema": "latest",
"har-validator": "latest",
"hard-rejection": "latest",
"harmony-reflect": "latest",
"has": "latest",
"has-ansi": "latest",
"has-bigints": "latest",
Expand Down Expand Up @@ -2027,6 +2027,7 @@
"mri": "latest",
"mrmime": "latest",
"ms": "latest",
"msgpack-lite": "latest",
"msgpackr": "latest",
"msgpackr-extract": "latest",
"msw": "latest",
Expand Down Expand Up @@ -2233,7 +2234,6 @@
"pino-abstract-transport": "latest",
"pino-pretty": "latest",
"pino-std-serializers": "latest",
"pirates": "latest",
"piscina": "latest",
"pkg-conf": "latest",
"pkg-dir": "latest",
Expand Down Expand Up @@ -3035,4 +3035,4 @@
"zustand": "latest",
"zwitch": "latest"
}
}
}
Loading

0 comments on commit deb7fff

Please sign in to comment.