Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@dac-software/exit-popup
Advanced tools
Library shows simple popup when user move mouse cursor on the edge of site
Library shows simple popup when user move mouse cursor on the edge of site
Installing dependencies
npm install
Build production library files
npm run build
* Build task build two types of library entrypoints :
tsc -p tsconfig-prod.json && copyfiles "./lib/**/*.!(tsx|ts|d.ts|html)" "dist/esm" -u 1
##Development
Running dev server in standalone mode
npm run start
Running dev mode through bundler in other project. Project should be linked by npm.
npm run build:dev
* build dev emmits files into dist/esm/exit-popup.js without CSS / files extraction, it is determined by webpack condition on compilation mode
Running tests
npm run test
####Codestyle
We are in consonance with standardjs.
Validation codestyle:
npm run codestyle-check-typescript
Automatic fix:
npm run codestyle-typescript-fix
####CI (bitbucket pipelines)
Checks codestyles and run tests
npm login
npm publish --access=public
dev tag publish using pipeline named:
custom: dev-npm-publish
This pipeline automatically defines branch related tag name, for example :
1.0.0-some-branch-name.0
production tag publish using pipeline named:
custom: prod-npm-publish
This pipeline requires what kind of semver tag should be defined for publish. You need to fill additional field in pipeline form and type one of version type : - patch - minor - major
FAQs
Library shows simple popup when user move mouse cursor on the edge of site
We found that @dac-software/exit-popup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.