PkgRadar

Package evidence

@hdsydsvenskan/[email protected]

Install-time lifecycle script: postinstall="husky install"

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
328
Versions published
22Mature · −50% score
First published
Dec 2016
Publisher
emilbjorklund

Effective trust discount applied: 50% (max across signals — discounts don’t stack). New install-lifecycle deltas vs the previous release would clear the discount.

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":["@hdsydsvenskan/[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":["@hdsydsvenskan/[email protected]"],"fail_on":"high"}'
Publisheremilbjorklund
Artifact bytes111,737
Previous version4.0.1
Published2021-07-23T08:39:38.928Z
SHA-256dad50349d5802143c2409f97dcc55e695b7ae31f17247283b81d04d31e00329b

Why flagged

What the scanner saw

New Lifecycle Script Vs Previous: postinstall added in 5.0.0-0 vs 4.0.1: "husky install"

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

Availability ledger

available

high
Last checked
highRisk
45Score
5.0.0-0Version
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 5.0.0-0 vs 4.0.1: "husky install"40
Show all 2 findings (low-signal and informational)
SeverityKindPathDetailPoints
highNew Lifecycle Script Vs Previouspackage.jsonpostinstall added in 5.0.0-0 vs 4.0.1: "husky install"40
lowInstall-time lifecycle scriptpackage.jsonpostinstall="husky install"5

Manifest

Package metadata

Scripts31
  • buildrun-s build:*
  • build-testrun-s build-test:*
  • build-test:01-make-foldersmkdir -p example/dist/bare/
  • build-test:02-generaterun-p build-test:02-generate:*
  • build-test:02-generate:csscp example/src/main.css example/dist/bare/main.css
  • build-test:02-generate:jsrun-s build-test:02-generate:js:*
  • build-test:02-generate:js:01webpack --mode='production' --devtool hidden-source-map --config example/webpack.config.js --output-public-path /dist/rev/
  • build-test:02-generate:js:02webpack --mode='production' --devtool hidden-source-map --config example/webpack.legacy.js --output-public-path /dist/rev/
  • build-test:03-clean-revrm -rf example/dist/rev
  • build-test:04-run-cl-with-sourcemap-flagDEBUG=asset-versions node cli.js -s -p example -o asset-versions-sourcemaps.json
  • build-test:05-run-cliDEBUG=asset-versions node cli.js -p example
  • build:0run-s clean
  • build:1-declarationtsc -p declaration.tsconfig.json
  • build:3-add-ignorests-ignore-import '**/*.d.ts'
  • checkrun-s clean && run-p check:*
  • check:dependency-checkdependency-check *.js --no-dev -i @types/* -i type-fest
  • check:eslinteslint .
  • check:installed-checkinstalled-check -i eslint
  • check:tsctsc
  • cleanrun-p clean:*
  • clean:declarationsrm -rf $(find . lib example example/* example/src/* -maxdepth 2 -type f -name '*.d.ts')
  • postinstallhusky install
  • prepublishOnlyrun-s build
  • startrun-s build-test && node example/app.js
  • testrun-p check && run-p test:*
  • test-checklessrun-p test:*
  • test:examplerun-s build-test && run-p test:example:*
  • test:example:manifestdiff --ignore-all-space example/example-manifest.json example/dist/bare/manifest.json
  • test:example:sourcemapsdiff --ignore-all-space example/example-asset-versions-sourcemaps.json example/asset-versions-sourcemaps.json
  • test:example:versionsdiff --ignore-all-space example/example-asset-versions.json example/asset-versions.json
  • …and 1 more.
Dependencies9
  • @types/verror^1.10.4
  • cp-file^9.0.0
  • dashdash^2.0.0
  • debug^4.1.1
  • load-json-file^6.2.0
  • rev-file^3.0.0
  • type-fest^0.16.0
  • verror^1.10.0
  • write-json-file^4.2.1