Socket
Socket
Sign inDemoInstall

@npmcli/run-script

Package Overview
Dependencies
Maintainers
5
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@npmcli/run-script - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4

6

lib/escape.js

@@ -68,5 +68,11 @@ 'use strict'

// disabling the no-control-regex rule for this line as we very specifically _do_ want to
// replace those characters if they somehow exist at this point, which is highly unlikely
// eslint-disable-next-line no-control-regex
const filename = (input) => input.replace(/[<>:"/\\|?*\x00-\x31]/g, '')
module.exports = {
cmd,
sh,
filename,
}

5

lib/make-spawn-args.js

@@ -33,2 +33,3 @@ /* eslint camelcase: "off" */

const fileName = escape.filename(`${event}-${Date.now()}`)
let scriptFile

@@ -65,3 +66,3 @@ let script = ''

scriptFile = resolve(tmpdir(), `${event}-${Date.now()}.cmd`)
scriptFile = resolve(tmpdir(), `${fileName}.cmd`)
script += '@echo off\n'

@@ -76,3 +77,3 @@ script += cmd

: `#!/usr/bin/env ${scriptShell}`
scriptFile = resolve(tmpdir(), `${event}-${Date.now()}.sh`)
scriptFile = resolve(tmpdir(), `${fileName}.sh`)
script += `${shebang}\n`

@@ -79,0 +80,0 @@ script += cmd

6

package.json
{
"name": "@npmcli/run-script",
"version": "4.1.3",
"version": "4.1.4",
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)",

@@ -20,6 +20,2 @@ "author": "GitHub Inc.",

},
"tap": {
"check-coverage": true,
"coverage-map": "map.js"
},
"devDependencies": {

@@ -26,0 +22,0 @@ "@npmcli/eslint-config": "^3.0.1",

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