Socket
Socket
Sign inDemoInstall

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.1.2-0 to 1.1.2-1

12

lib/index.js

@@ -107,4 +107,4 @@ import os from 'node:os';

}
if (!semver.gte(npmVersion, '8.0.0')) {
throw new Error(`Require npm version 8+. Got '${npmVersion}' when running '${versionCmd}'`);
if (!semver.gte(npmVersion, '7.0.0')) {
throw new Error(`Require npm version 7+. Got '${npmVersion}' when running '${versionCmd}'`);
}

@@ -178,4 +178,8 @@ }

if (WINDOWS) {
const paths = stdout.replace(/^PATH=/i, '').split(';');
const tempPath = paths.find((p) => /\\npm-cache\\_npx\\/.exec(p));
const paths = stdout
.replace(/^PATH=/i, '')
.replace(/\\\\\\\\/g, '\\\\')
.replace(/\\r\\n/g, ';')
.split(';');
const tempPath = paths.find((p) => /\\npm[-\\]+cache\\_npx\\/.exec(p));
if (!tempPath)

@@ -182,0 +186,0 @@ throw new Error(`Failed to find temporary install directory. Looking for paths matching '\\npm-cache\\_npx\\' in:\n${JSON.stringify(paths)}`);

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

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

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