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.1.0 to 4.2.0

35

index.js

@@ -345,6 +345,16 @@ 'use strict';

// if (Test-Path "$basedir/node") {
// & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
// # Support pipeline input
// if ($MyInvocation.ExpectingInput) {
// $input | & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
// } else {
// & "$basedir/node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
// }
// $ret=$LASTEXITCODE
// } else {
// & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
// # Support pipeline input
// if ($MyInvocation.ExpectingInput) {
// $input | & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
// } else {
// & "node$exe" "$basedir/node_modules/npm/bin/npm-cli.js" $args
// }
// $ret=$LASTEXITCODE

@@ -375,6 +385,16 @@ // }

`if (Test-Path ${pwshLongProg}) {\n` +
` & ${pwshLongProg} ${args} ${shTarget} $args\n` +
' # Support pipeline input\n' +
' if ($MyInvocation.ExpectingInput) {\n' +
` $input | & ${pwshLongProg} ${args} ${shTarget} $args\n` +
' } else {\n' +
` & ${pwshLongProg} ${args} ${shTarget} $args\n` +
' }\n' +
' $ret=$LASTEXITCODE\n' +
'} else {\n' +
` & ${pwshProg} ${args} ${shTarget} $args\n` +
' # Support pipeline input\n' +
' if ($MyInvocation.ExpectingInput) {\n' +
` $input | & ${pwshProg} ${args} ${shTarget} $args\n` +
' } else {\n' +
` & ${pwshProg} ${args} ${shTarget} $args\n` +
' }\n' +
' $ret=$LASTEXITCODE\n' +

@@ -387,3 +407,8 @@ '}\n' +

pwsh = pwsh +
`& ${pwshProg} ${args} ${shTarget} $args\n` +
'# Support pipeline input\n' +
'if ($MyInvocation.ExpectingInput) {\n' +
` $input | & ${pwshProg} ${args} ${shTarget} $args\n` +
'} else {\n' +
` & ${pwshProg} ${args} ${shTarget} $args\n` +
'}\n' +
(opts.nodePath ? '$env:NODE_PATH=$env_node_path\n' : '') +

@@ -390,0 +415,0 @@ 'exit $LASTEXITCODE\n';

2

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

@@ -5,0 +5,0 @@ "author": {

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