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

@zkochan/cmd-shim

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zkochan/cmd-shim - npm Package Compare versions

Comparing version 4.2.0 to 4.2.1

22

index.js

@@ -271,10 +271,9 @@ 'use strict';

//
// export NODE_PATH="<nodepath>"
//
// if [ -x "$basedir/node.exe" ]; then
// "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
// ret=$?
// exec "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
// else
// node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
// ret=$?
// exec node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
// fi
// exit $ret
let sh = '#!/bin/sh\n';

@@ -288,13 +287,10 @@ sh = sh +

'\n';
const env = opts.nodePath ? `NODE_PATH="${shNodePath}" ` : '';
const env = opts.nodePath ? `export NODE_PATH="${shNodePath}"\n` : '';
if (shLongProg) {
sh = sh +
sh = sh + env +
'if [ -x ' + shLongProg + ' ]; then\n' +
' ' + env + shLongProg + ' ' + args + ' ' + shTarget + ' "$@"\n' +
' ret=$?\n' +
' exec ' + shLongProg + ' ' + args + ' ' + shTarget + ' "$@"\n' +
'else \n' +
' ' + env + shProg + ' ' + args + ' ' + shTarget + ' "$@"\n' +
' ret=$?\n' +
'fi\n' +
'exit $ret\n';
' exec ' + shProg + ' ' + args + ' ' + shTarget + ' "$@"\n' +
'fi\n';
}

@@ -301,0 +297,0 @@ else {

{
"name": "@zkochan/cmd-shim",
"version": "4.2.0",
"version": "4.2.1",
"description": "Used in pnpm for command line application support",

@@ -13,3 +13,3 @@ "author": {

"build": "tsc --build --verbose --listEmittedFiles",
"test:unit": "tape test/*.js",
"test:unit": "jest",
"test": "pnpm run build && standard && pnpm run test:unit && mos test",

@@ -37,2 +37,3 @@ "md": "mos",

"@types/node": "^12.7.2",
"jest": "^24.9.0",
"lodash": "^4.17.15",

@@ -44,5 +45,3 @@ "memory-fs": "^0.4.1",

"standard": "^14.0.2",
"tape": "^4.11.0",
"tape-promise": "^4.0.0",
"typescript": "^3.5.3"
"typescript": "^3.7.4"
},

@@ -56,3 +55,11 @@ "engines": {

]
},
"standard": {
"env": {
"jest": true
}
},
"jest": {
"testEnvironment": "node"
}
}

@@ -9,7 +9,4 @@ # @zkochan/cmd-shim

The cmd-shim used in [pnpm](https://github.com/rstacruz/pnpm) to create executable scripts on Windows,
since symlinks are not suitable for this purpose there.
The cmd-shim used in [pnpm](https://github.com/rstacruz/pnpm) to create executable scripts.
On Unix systems, you should use a symbolic link instead.
## Installation

@@ -16,0 +13,0 @@

Sorry, the diff of this file is not supported yet

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