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

npx-import

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npx-import - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4-0

8

lib/index.js

@@ -117,3 +117,3 @@ import semver from 'semver';

const fullCmd = `${installPackage} ${emitPath}`;
const { failed, stdout } = await execaCommand(fullCmd, {
const { failed, stdout, stderr } = await execaCommand(fullCmd, {
shell: true,

@@ -126,4 +126,8 @@ });

const tempPath = paths.find((p) => /\/\.npm\/_npx\//.exec(p));
if (!tempPath)
if (!tempPath) {
console.log({ stdout });
console.log({ stderr });
console.log({ paths });
throw new Error(`Failed to find temporary install directory. Looking for paths matching '/.npm/_npx/' in:\n${JSON.stringify(paths)}`);
}
// Expecting the path ends with node_modules/.bin

@@ -130,0 +134,0 @@ const nodeModulesPath = path.resolve(tempPath, '..');

{
"name": "npx-import",
"version": "1.0.3",
"version": "1.0.4-0",
"description": "Runtime dependencies, installed as if by magic ✨",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -152,3 +152,3 @@ import semver from 'semver'

const fullCmd = `${installPackage} ${emitPath}`
const { failed, stdout } = await execaCommand(fullCmd, {
const { failed, stdout, stderr } = await execaCommand(fullCmd, {
shell: true,

@@ -164,3 +164,6 @@ })

if (!tempPath)
if (!tempPath) {
console.log({stdout})
console.log({stderr})
console.log({paths})
throw new Error(

@@ -171,2 +174,3 @@ `Failed to find temporary install directory. Looking for paths matching '/.npm/_npx/' in:\n${JSON.stringify(

)
}

@@ -173,0 +177,0 @@ // Expecting the path ends with node_modules/.bin

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