Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

bin-links

Package Overview
Dependencies
Maintainers
6
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bin-links - npm Package Compare versions

Comparing version 4.0.4 to 5.0.0

16

lib/link-gently.js

@@ -9,6 +9,12 @@ // if the thing isn't there, skip it

const { lstat, mkdir, readlink, rm, symlink } = require('fs/promises')
const throwNonEnoent = er => {
if (er.code !== 'ENOENT') {
throw er
const { log } = require('proc-log')
const throwSignificant = er => {
if (er.code === 'ENOENT') {
return
}
if (er.code === 'EACCES') {
log.warn('error adding file', er.message)
return
}
throw er
}

@@ -41,4 +47,4 @@

return Promise.all([
lstat(absFrom).catch(throwNonEnoent),
lstat(to).catch(throwNonEnoent),
lstat(absFrom).catch(throwSignificant),
lstat(to).catch(throwSignificant),
]).then(([stFrom, stTo]) => {

@@ -45,0 +51,0 @@ // not present in package, skip it

{
"name": "bin-links",
"version": "4.0.4",
"version": "5.0.0",
"description": "JavaScript package binary linker",

@@ -9,7 +9,8 @@ "main": "./lib/index.js",

"test": "tap",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lint": "npm run eslint",
"postlint": "template-oss-check",
"lintfix": "npm run lint -- --fix",
"lintfix": "npm run eslint -- --fix",
"posttest": "npm run lint",
"template-oss-apply": "template-oss-apply --force"
"template-oss-apply": "template-oss-apply --force",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},

@@ -27,10 +28,11 @@ "repository": {

"dependencies": {
"cmd-shim": "^6.0.0",
"npm-normalize-package-bin": "^3.0.0",
"read-cmd-shim": "^4.0.0",
"write-file-atomic": "^5.0.0"
"cmd-shim": "^7.0.0",
"npm-normalize-package-bin": "^4.0.0",
"proc-log": "^5.0.0",
"read-cmd-shim": "^5.0.0",
"write-file-atomic": "^6.0.0"
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.22.0",
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"require-inject": "^1.4.4",

@@ -52,3 +54,3 @@ "tap": "^16.0.1"

"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
"node": "^18.17.0 || >=20.5.0"
},

@@ -59,5 +61,5 @@ "author": "GitHub Inc.",

"windowsCI": false,
"version": "4.22.0",
"version": "4.23.3",
"publish": true
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc