Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: read postcss esm configs #460

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lideen
Copy link

@lideen lideen commented Feb 28, 2024

Upgraded postcss-load-config to v5 to allow reading of ESM configuration for postcss. Also upgraded some packages to get the tests running on node 20.

Related issues: #454, #455, #459

Upgraded "postcss-load-config" to v5 to allow reading of esm configuration for postcss
Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/code-frame@7.23.5 Transitive: environment +10 191 kB nicolo-ribaudo
npm/@babel/compat-data@7.23.5 None 0 64.6 kB nicolo-ribaudo
npm/@babel/core@7.23.9 environment, filesystem, unsafe Transitive: shell +51 10.5 MB nicolo-ribaudo
npm/@babel/generator@7.23.6 Transitive: environment +10 3.37 MB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.23.6 Transitive: environment, filesystem, shell +11 2.33 MB nicolo-ribaudo
npm/@babel/helper-create-class-features-plugin@7.23.10 Transitive: environment, filesystem, shell, unsafe +57 10.9 MB nicolo-ribaudo
npm/@babel/helper-create-regexp-features-plugin@7.22.15 Transitive: environment, filesystem, shell, unsafe +62 11.3 MB nicolo-ribaudo
npm/@babel/helper-function-name@7.23.0 Transitive: environment +16 4.61 MB nicolo-ribaudo
npm/@babel/helper-member-expression-to-functions@7.23.0 Transitive: environment +4 2.55 MB nicolo-ribaudo
npm/@babel/helper-module-imports@7.22.15 Transitive: environment +4 2.55 MB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.22.5 None 0 11.9 kB nicolo-ribaudo
npm/@babel/helper-skip-transparent-expression-wrappers@7.22.5 Transitive: environment +4 2.5 MB nicolo-ribaudo
npm/@babel/helper-validator-option@7.23.5 None 0 11.7 kB nicolo-ribaudo
npm/@babel/highlight@7.23.4 Transitive: environment +9 168 kB nicolo-ribaudo
npm/@babel/parser@7.23.9 None 0 1.88 MB nicolo-ribaudo
npm/@babel/plugin-syntax-top-level-await@7.14.5 Transitive: environment, filesystem, shell, unsafe +53 10.5 MB nicolo-ribaudo
npm/@babel/plugin-syntax-typescript@7.23.3 Transitive: environment, filesystem, shell, unsafe +53 10.5 MB nicolo-ribaudo
npm/@babel/plugin-transform-optional-chaining@7.23.4 Transitive: environment, filesystem, shell, unsafe +55 10.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-parameters@7.23.3 Transitive: environment, filesystem, shell, unsafe +53 10.6 MB nicolo-ribaudo
npm/@babel/preset-env@7.23.9 environment Transitive: filesystem, shell, unsafe +159 15 MB nicolo-ribaudo
npm/@babel/template@7.23.9 Transitive: environment +15 4.59 MB nicolo-ribaudo
npm/@babel/traverse@7.23.9 Transitive: environment +30 6.21 MB nicolo-ribaudo
npm/@babel/types@7.23.9 environment +3 2.49 MB nicolo-ribaudo
npm/@gar/promisify@1.1.3 None 0 4.2 kB gar
npm/@jridgewell/gen-mapping@0.3.4 None +4 354 kB jridgewell
npm/@jridgewell/sourcemap-codec@1.4.15 None 0 45.9 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.23 None +2 261 kB jridgewell
npm/@types/babel__core@7.20.5 Transitive: environment +8 4.51 MB types
npm/@types/babel__traverse@7.20.5 Transitive: environment +4 2.58 MB types
npm/@types/istanbul-lib-coverage@2.0.6 None 0 5.45 kB types
npm/abab@2.0.6 None 0 10.4 kB jeffcarp
npm/acorn-jsx@5.3.2 None +1 1.22 MB rreverser
npm/agent-base@6.0.2 Transitive: environment +2 83.8 kB tootallnate
npm/agentkeepalive@4.5.0 network +2 54.2 kB fengmk2
npm/autoprefixer@10.4.17 environment Transitive: filesystem, shell +12 2.79 MB ai
npm/available-typed-arrays@1.0.7 None +1 31.3 kB ljharb
npm/babel-jest@27.5.1 environment Transitive: eval, filesystem, network, shell, unsafe +144 17.8 MB simenb
npm/boolbase@1.0.0 None 0 1.33 kB feedic
npm/browserslist@4.23.0 environment, filesystem Transitive: shell +5 2.1 MB ai
npm/call-bind@1.0.7 Transitive: eval +11 231 kB ljharb
npm/caniuse-lite@1.0.30001591 None 0 1.97 MB caniuse-lite
npm/chalk@4.1.2 None +3 63.1 kB sindresorhus
npm/core-js-compat@3.36.0 Transitive: environment, filesystem, shell +6 2.81 MB zloirock
npm/cssnano@5.1.15 Transitive: environment, filesystem, network, shell +68 8.6 MB ludovicofischer
npm/debug@4.3.4 environment +1 49.2 kB qix
npm/define-data-property@1.1.4 Transitive: eval +8 179 kB ljharb
npm/domhandler@4.3.1 None 0 44.6 kB feedic
npm/encoding@0.1.13 None +2 398 kB andris
npm/es-abstract@1.22.4 Transitive: eval +55 3.22 MB ljharb
npm/es-errors@1.3.0 None 0 12.3 kB ljharb
npm/estraverse@5.3.0 None 0 37.1 kB michaelficarra
npm/fs-minipass@2.1.0 filesystem +2 76.9 kB isaacs
npm/fsevents@2.3.3 None 0 173 kB pipobscure
npm/get-intrinsic@1.2.4 eval +5 129 kB ljharb
npm/glob@7.2.3 filesystem Transitive: environment +10 145 kB isaacs
npm/graceful-fs@4.2.11 environment, filesystem 0 32.5 kB isaacs
npm/has-bigints@1.0.2 None 0 12.8 kB ljharb
npm/has-property-descriptors@1.0.2 Transitive: eval +7 152 kB ljharb
npm/has-proto@1.0.3 None 0 12 kB ljharb
npm/has-symbols@1.0.3 None 0 20.6 kB ljharb
npm/has-tostringtag@1.0.2 None +1 38.2 kB ljharb
npm/hasown@2.0.1 None +1 42.6 kB ljharb
npm/http-cache-semantics@4.1.1 None 0 35.9 kB kornel
npm/is-callable@1.2.7 None 0 28.9 kB ljharb
npm/is-core-module@2.13.1 None +2 72.8 kB ljharb
npm/is-string@1.0.7 None +2 57.3 kB ljharb
npm/is-symbol@1.0.4 None +1 42.6 kB ljharb
npm/istanbul-lib-coverage@3.2.2 None 0 34.4 kB oss-bot
npm/istanbul-lib-instrument@5.2.1 Transitive: environment, filesystem, shell, unsafe +54 10.6 MB oss-bot
npm/jest@27.5.1 Transitive: environment, eval, filesystem, network, shell, unsafe +317 30.7 MB simenb
npm/json5@2.2.3 None 0 235 kB jordanbtucker
npm/magic-string@0.25.9 None +1 405 kB antfu
npm/micromatch@4.0.5 None +5 244 kB jonschlinkert
npm/minimatch@3.1.2 None +3 57.8 kB isaacs
npm/minimist@1.2.8 None 0 54.5 kB ljharb
npm/minipass-pipeline@1.2.4 None +2 69.8 kB isaacs
npm/minipass@3.3.6 None +1 62.8 kB isaacs
npm/minizlib@2.1.2 None +2 80.2 kB isaacs
npm/negotiator@0.6.3 None 0 27.4 kB dougwilson
npm/node-sass@9.0.0 environment, filesystem, network Transitive: shell +194 11 MB xzyfer
npm/object.values@1.1.7 Transitive: eval +56 3.25 MB ljharb
npm/picomatch@2.3.1 None 0 90 kB mrmlnc
npm/postcss-load-config@5.0.3 environment Transitive: filesystem +6 1.09 MB ai
npm/postcss-modules@4.3.1 filesystem Transitive: environment +18 785 kB outpunk
npm/postcss-selector-parser@6.0.15 None +2 209 kB evilebottnawi
npm/postcss-value-parser@4.2.0 None 0 27.2 kB evilebottnawi
npm/punycode@2.3.1 None 0 33.5 kB google-wombot
npm/resolve@1.22.8 environment, filesystem +5 232 kB ljharb
npm/rollup@2.79.1 environment, filesystem, unsafe +1 6.88 MB lukastaegert
npm/safe-array-concat@1.1.0 Transitive: eval +13 253 kB ljharb
npm/semver@6.3.1 None 0 68.3 kB lukekarrys
npm/signal-exit@3.0.7 None 0 9.96 kB isaacs
npm/source-map-resolve@0.5.3 None +5 97.3 kB lydell
npm/source-map-support@0.5.21 filesystem +2 895 kB linusu
npm/ssri@9.0.1 None +2 100 kB nlf
npm/string-width@4.2.3 None +4 68 kB sindresorhus
npm/strip-ansi@6.0.1 None +1 9.64 kB sindresorhus
npm/tar@6.2.0 environment, filesystem +7 354 kB isaacs
npm/v8-compile-cache@2.4.0 environment, filesystem, unsafe 0 14.9 kB yungsters
npm/whatwg-url@8.7.0 None +2 1.53 MB domenic
npm/yaml@1.10.2 environment 0 448 kB eemeli
npm/yargs-parser@20.2.9 environment, filesystem 0 124 kB oss-bot

🚮 Removed packages: npm/@babel/code-frame@7.12.13, npm/@babel/compat-data@7.13.8, npm/@babel/core@7.13.8, npm/@babel/helper-compilation-targets@7.13.8, npm/@babel/helper-module-imports@7.12.13, npm/@babel/helper-plugin-utils@7.13.0, npm/@babel/helper-replace-supers@7.13.0, npm/@babel/highlight@7.13.8, npm/@babel/parser@7.13.9, npm/@babel/plugin-proposal-nullish-coalescing-operator@7.13.8, npm/@babel/plugin-proposal-object-rest-spread@7.13.8, npm/@babel/plugin-proposal-optional-chaining@7.13.8, npm/@babel/plugin-proposal-unicode-property-regex@7.12.13, npm/@babel/plugin-syntax-top-level-await@7.12.13, npm/@babel/plugin-transform-dotall-regex@7.12.13, npm/@babel/preset-env@7.13.9, npm/@babel/template@7.12.13, npm/@babel/traverse@7.13.0, npm/@babel/types@7.13.0, npm/@types/babel__core@7.1.12, npm/@types/babel__traverse@7.11.0, npm/@types/istanbul-lib-coverage@2.0.3, npm/acorn-jsx@5.3.1, npm/ajv@6.12.6, npm/assert-plus@1.0.0, npm/autoprefixer@10.2.5, npm/babel-jest@26.6.3, npm/browserslist@4.16.3, npm/call-bind@1.0.2, npm/caniuse-lite@1.0.30001196, npm/chalk@4.1.0, npm/color@3.1.3, npm/colorette@1.2.2, npm/convert-source-map@1.7.0, npm/core-js-compat@3.9.1, npm/core-util-is@1.0.2, npm/cssnano@5.0.1, npm/debug@4.3.1, npm/deep-is@0.1.3, npm/estraverse@4.3.0, npm/extend@3.0.2, npm/extsprintf@1.3.0, npm/fast-levenshtein@2.0.6, npm/fsevents@2.3.2, npm/get-intrinsic@1.1.1, npm/get-stream@5.2.0, npm/get-value@2.0.6, npm/glob@7.1.6, npm/graceful-fs@4.2.6, npm/has-symbols@1.0.2, npm/has@1.0.3, npm/import-fresh@3.3.0, npm/is-buffer@1.1.6, npm/is-extendable@0.1.1, npm/is-extglob@2.1.1, npm/is-typedarray@1.0.0, npm/is-windows@1.0.2, npm/isobject@3.0.1, npm/istanbul-lib-instrument@4.0.3, npm/jest@26.6.3, npm/json5@2.2.0, npm/lowercase-keys@1.0.1, npm/magic-string@0.25.7, npm/merge2@1.4.1, npm/mime-types@2.1.29, npm/mimic-response@1.0.1, npm/minimatch@3.0.4, npm/minimist@1.2.5, npm/mkdirp@0.5.5, npm/node-sass@5.0.0, npm/normalize-url@4.5.0, npm/npmlog@4.1.2, npm/object.assign@4.1.2, npm/object.values@1.1.3, npm/picomatch@2.2.2, npm/postcss-load-config@3.0.1, npm/postcss-modules@4.0.0, npm/postcss-selector-parser@6.0.4, npm/postcss-value-parser@4.1.0, npm/punycode@2.1.1, npm/readable-stream@2.3.7, npm/regjsparser@0.6.7, npm/request@2.88.2, npm/resolve@1.20.0, npm/rollup@2.40.0, npm/semver@6.3.0, npm/signal-exit@3.0.3, npm/source-map-support@0.5.19, npm/string-width@1.0.2, npm/strip-ansi@6.0.0, npm/tweetnacl@0.14.5, npm/type-check@0.3.2, npm/v8-compile-cache@2.3.0, npm/walker@1.0.7, npm/word-wrap@1.2.3

View full report↗︎

Copy link

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Native code npm/node-sass@9.0.0

View full report↗︎

Next steps

What's wrong with native code?

Contains native code which could be a vector to obscure malicious code, and generally decrease the likelihood of reproducible or reliable installs.

Ensure that native code bindings are expected. Consumers may consider pure JS and functionally similar alternatives to avoid the challenges and risks associated with native code bindings.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/node-sass@9.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant