PkgRadar

Package evidence

@paypal/[email protected]

Install-time lifecycle script: postinstall="npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'"

Trust signals

Why this verdict

PkgRadar discounts a release’s score when public reputation argues against novel malware. The verdict above already reflects these — the panel just explains what was applied.

Weekly downloads
11
Versions published
3
First published
Apr 2020
Publisher
ravishekhar00

Recommended action

Block this update

Static evidence trips multiple high-signal indicators. Quarantine the release until the publisher validates the change or you can rule out the indicators below.

Block this release in CIcurl · GitHub Actions

Fail the build when this package version is added or upgraded. Replace $PKGRADAR_TOKEN with a Pro / Team API key from your dashboard.

curl -fsS https://pkgradar.com/gate/npm \
  -H "Authorization: Bearer $PKGRADAR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"specs":["@paypal/[email protected]"],"fail_on":"high"}'

GitHub Actions step:

- name: PkgRadar gate
  run: |
    curl -fsS https://pkgradar.com/gate/npm \
      -H "Authorization: Bearer ${{ secrets.PKGRADAR_TOKEN }}" \
      -H "Content-Type: application/json" \
      -d '{"specs":["@paypal/[email protected]"],"fail_on":"high"}'
Publisherravishekhar00
Artifact bytes781,729
Previous version2.0.249-alpha.0
Published2021-02-19T10:50:41.779Z
SHA-2560de38edcc4c3a95a818b69abf66a38f01c378d26db690820dcd63aec589b27f0

Why flagged

What the scanner saw

New Lifecycle Script Vs Previous: postinstall added in 2.0.368 vs 2.0.249-alpha.0: "npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'"

Not observed: package install, lifecycle script execution, or sandbox execution. PkgRadar only inspects on-disk artifacts.

Availability ledger

available

high
Last checked
highRisk
45Score
2.0.368Version
Status history (1 event)
  1. newavailable · risk high · score 45 · status changed

Evidence

Static findings

1 static · 1 from release diff · showing high-signal first.

SeverityKindPathDetailPoints
highNew Lifecycle Script Vs Previouspackage.jsonpostinstall added in 2.0.368 vs 2.0.249-alpha.0: "npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'"40
Show all 2 findings (low-signal and informational)
SeverityKindPathDetailPoints
highNew Lifecycle Script Vs Previouspackage.jsonpostinstall added in 2.0.368 vs 2.0.249-alpha.0: "npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'"40
lowInstall-time lifecycle scriptpackage.jsonpostinstall="npm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'"5

Manifest

Package metadata

Scripts24
  • activateCDN='https://www.paypalobjects.com' grabthar-activate
  • babelbabel server --ignore=node_modules --out-dir server && babel webpack.config.js globals.js --out-dir .
  • buildnpm run test && npm run webpack
  • build-commitnpm run build && git add dist && (git commit -m 'Dist' || echo 'Nothing to commit') && git push
  • cdnifygrabthar-cdnify --cdn=https://www.paypalobjects.com
  • cleanrimraf dist coverage
  • coverecho no-cover
  • debugcross-env NODE_ENV=debug
  • deploynpm run cdnify
  • flowflow
  • flow-typedrm -rf ./flow-typed && flow-typed install --ignoreDeps peer && flow-typed install jest@22 mocha@4 && flow-typed install [email protected] && sed -i -e 's/http$IncomingMessage,/http$IncomingMessage<>,/g' ./flow-typed/npm/express_v4.16.x.js
  • jestjest test/server --collectCoverage --collectCoverageFrom='server/' --env=node --no-cache --runInBand
  • karmacross-env NODE_ENV=test babel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/karma start
  • linteslint --ext .js --ext .jsx src/ server/ test/ *.js
  • postinstallnpm_config_registry=https://npm.paypal.com npm install @paypalcorp/web --no-save --proxy='null' --https-proxy='null' || echo 'Unable to install cdnx cli tools'
  • postpublishgit clean -f && git checkout .
  • prepublishOnlynpm run babel
  • reinstallrimraf flow-typed && rimraf node_modules && npm install && flow-typed install
  • releasenpm run build-commit && grabthar-release
  • release:prenpm run build-commit && grabthar-release prerelease
  • setupnpm install && npm run flow-typed
  • startbabel-node ./server/devServer
  • testif [ ! $SKIP_TEST ]; then npm run lint && npm run flow-typed && npm run flow check && npm run karma && npm run jest; fi;
  • webpackbabel-node --plugins=transform-es2015-modules-commonjs ./node_modules/.bin/webpack --progress
Dependencies19
  • @paypal/checkout-components^5.0.30
  • @paypal/common-components^1.0.16
  • @paypal/installments^1.0.0
  • @paypal/sdk-client^4.0.123
  • @paypal/sdk-constants^1.0.85
  • @paypal/sdk-logos^1.0.26
  • @paypal/sdk-release^5.0.138
  • beaver-logger^4.0.12
  • belter^1.0.19
  • cross-domain-utils^2.0.16
  • get-browser-fingerprint^1.1.0
  • grabthar^4
  • jsx-pragmatic^2
  • module-alias^2.2.2
  • preact^10
  • preact-render-to-string^5.1.4
  • strict-merge^1.0.1
  • typed-graphqlify^2.2.3
  • zalgo-promise^1.0.28