Skip to content

Conversation

@Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Mar 1, 2024

This replaces Rollup with tsup, using the config from the module template.

@socket-security
Copy link

socket-security bot commented Mar 1, 2024

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

Package New capabilities Transitives Size Publisher
npm/ini@1.3.8 None 0 9.3 kB isaacs
npm/tsup@8.0.2 environment, eval, filesystem Transitive: network, shell, unsafe +146 336 MB egoist

🚮 Removed packages: npm/@rollup/plugin-typescript@9.0.2, npm/@rollup/pluginutils@5.1.0, npm/@samverschueren/stream-to-observable@0.3.1, npm/@sindresorhus/is@2.1.1, npm/@szmarczak/http-timer@4.0.6, npm/@types/cacheable-request@6.0.3, npm/@types/http-cache-semantics@4.0.4, npm/@types/keyv@3.1.4, npm/@types/minimist@1.2.5, npm/@types/normalize-package-data@2.4.4, npm/@types/responselike@1.0.3, npm/ansi-align@3.0.1, npm/any-observable@0.5.1, npm/async-exit-hook@2.0.1, npm/boxen@5.1.2, npm/cacheable-lookup@2.0.1, npm/cacheable-request@7.0.4, npm/camelcase-keys@6.2.2, npm/chardet@0.7.0, npm/cli-boxes@2.2.1, npm/cli-cursor@3.1.0, npm/cli-truncate@0.2.1, npm/cli-width@3.0.0, npm/clone-response@1.0.3, npm/code-point-at@1.1.0, npm/configstore@5.0.1, npm/crypto-random-string@2.0.0, npm/date-fns@1.30.1, npm/decamelize-keys@1.1.1, npm/decamelize@1.2.0, npm/decompress-response@5.0.0, npm/deep-extend@0.6.0, npm/defer-to-connect@2.0.1, npm/del@6.1.1, npm/dot-prop@6.0.1, npm/duplexer3@0.1.5, npm/elegant-spinner@1.0.1, npm/end-of-stream@1.4.4, npm/escape-goat@3.0.0, npm/external-editor@3.1.0, npm/figures@3.2.0, npm/github-url-from-git@1.5.0, npm/global-dirs@2.1.0, npm/got@10.7.0, npm/hard-rejection@2.1.0, npm/has-ansi@2.0.0, npm/has-yarn@2.1.0, npm/ignore-walk@3.0.4, npm/import-lazy@2.1.0, npm/indent-string@3.2.0, npm/ini@1.3.7, npm/inquirer-autosubmit-prompt@0.2.0, npm/inquirer@7.3.3, npm/is-ci@2.0.0, npm/is-docker@2.2.1, npm/is-fullwidth-code-point@2.0.0, npm/is-installed-globally@0.3.2, npm/is-interactive@1.0.0, npm/is-npm@5.0.0, npm/is-obj@2.0.0, npm/is-observable@1.1.0, npm/is-path-cwd@2.2.0, npm/is-plain-obj@1.1.0, npm/is-promise@2.2.2, npm/is-scoped@2.1.0, npm/is-typedarray@1.0.0, npm/is-unicode-supported@0.1.0, npm/is-url-superb@4.0.0, npm/is-wsl@2.2.0, npm/is-yarn-global@0.3.0, npm/issue-regex@3.1.0, npm/kind-of@6.0.3, npm/latest-version@5.1.0, npm/listr-input@0.2.1, npm/listr-silent-renderer@1.1.1, npm/listr-update-renderer@0.5.0, npm/listr-verbose-renderer@0.5.0, npm/listr@0.14.3, npm/lodash.isequal@4.5.0, npm/lodash.zip@4.2.0, npm/log-symbols@4.1.0, npm/log-update@2.3.0, npm/map-age-cleaner@0.1.3, npm/map-obj@4.3.0, npm/meow@8.1.2, npm/mimic-fn@1.2.0, npm/mimic-response@2.1.0, npm/min-indent@1.0.1, npm/minimist-options@4.1.0, npm/mute-stream@0.0.8, npm/new-github-release-url@1.0.0, npm/normalize-url@6.1.0, npm/np@7.7.0, npm/npm-name@6.0.1, npm/number-is-nan@1.0.1, npm/open@7.4.2, npm/org-regex@1.0.0, npm/os-tmpdir@1.0.2, npm/ow@0.21.0, npm/p-cancelable@2.1.1, npm/p-defer@1.0.0, npm/p-event@4.2.0, npm/p-finally@1.0.0, npm/p-memoize@4.0.4, npm/p-reflect@2.1.0, npm/p-settle@4.1.1, npm/p-timeout@4.1.0, npm/package-json@6.5.0, npm/prepend-http@2.0.0, npm/pump@3.0.0, npm/pupa@2.1.1, npm/quick-lru@4.0.1, npm/rc@1.2.8, npm/read-pkg-up@7.0.1, npm/read-pkg@5.2.0, npm/redent@3.0.0, npm/registry-auth-token@4.2.2, npm/registry-url@5.1.0, npm/responselike@2.0.1, npm/restore-cursor@3.1.0, npm/rollup@3.29.4, npm/run-async@2.4.1, npm/rxjs@6.6.7, npm/scoped-regex@2.1.0, npm/semver-diff@3.1.1, npm/slice-ansi@0.0.4, npm/split@1.0.1, npm/strip-indent@3.0.0, npm/supports-hyperlinks@2.3.0, npm/symbol-observable@3.0.0, npm/terminal-link@2.1.1, npm/through@2.3.8, npm/tmp@0.0.33, npm/to-readable-stream@2.1.0, npm/trim-newlines@3.0.1, npm/typedarray-to-buffer@3.1.5, npm/unique-string@2.0.0, npm/update-notifier@5.1.0, npm/url-parse-lax@3.0.0, npm/vali-date@1.0.0, npm/validate-npm-package-name@3.0.0, npm/widest-line@3.1.0, npm/xdg-basedir@4.0.0

View full report↗︎

@socket-security
Copy link

socket-security bot commented Mar 1, 2024

🚨 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
Shell access npm/commander@4.1.1
Shell access npm/mz@2.7.0
Network access npm/mz@2.7.0
Shell access npm/tree-kill@1.2.2
New author npm/source-map@0.8.0-beta.0

View full report↗︎

Next steps

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

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/commander@4.1.1
  • @SocketSecurity ignore npm/mz@2.7.0
  • @SocketSecurity ignore npm/tree-kill@1.2.2
  • @SocketSecurity ignore npm/source-map@0.8.0-beta.0

@Mrtenz Mrtenz mentioned this pull request Mar 1, 2024
Copy link

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@Mrtenz Mrtenz merged commit afb06cc into main Mar 1, 2024
@Mrtenz Mrtenz deleted the mrtenz/tsup branch March 1, 2024 17:59
Mrtenz added a commit that referenced this pull request Mar 1, 2024
I made a few small mistakes in #4, causing the tests to break. This
fixes it.

Blocked by #5.
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.

3 participants