Socket
Socket
Sign inDemoInstall

libnpmexec

Package Overview
Dependencies
Maintainers
7
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libnpmexec - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

10

lib/index.js

@@ -7,3 +7,3 @@ 'use strict'

const Arborist = require('@npmcli/arborist')
const ciDetect = require('@npmcli/ci-detect')
const ciInfo = require('ci-info')
const crypto = require('crypto')

@@ -114,3 +114,3 @@ const log = require('proc-log')

const needPackageCommandSwap = (args.length > 0) && (packages.length === 0)
let needPackageCommandSwap = (args.length > 0) && (packages.length === 0)
// If they asked for a command w/o specifying a package, see if there is a

@@ -131,5 +131,7 @@ // bin that directly matches that name:

// bin links get set up
flatOptions.installLinks = false
// args[0] will exist when the package is installed
packages.push(path)
yes = true
flatOptions.installLinks = false
needPackageCommandSwap = false
} else {

@@ -248,3 +250,3 @@ const dir = dirname(dirname(localBin))

if (noTTY() || ciDetect()) {
if (noTTY() || ciInfo.isCI) {
log.warn('exec', `The following package${

@@ -251,0 +253,0 @@ add.length === 1 ? ' was' : 's were'

8

lib/run-script.js
const chalk = require('chalk')
const ciDetect = require('@npmcli/ci-detect')
const ciInfo = require('ci-info')
const runScript = require('@npmcli/run-script')

@@ -47,6 +47,4 @@ const readPackageJson = require('read-package-json-fast')

if (script === scriptShell) {
const isTTY = !noTTY()
if (isTTY) {
if (ciDetect()) {
if (!noTTY()) {
if (ciInfo.isCI) {
return log.warn('exec', 'Interactive mode disabled in CI environment')

@@ -53,0 +51,0 @@ }

{
"name": "libnpmexec",
"version": "5.0.3",
"version": "5.0.4",
"files": [

@@ -54,3 +54,3 @@ "bin/",

"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.9.0",
"@npmcli/template-oss": "4.10.0",
"bin-links": "^4.0.1",

@@ -62,6 +62,6 @@ "minify-registry-metadata": "^2.2.0",

"dependencies": {
"@npmcli/arborist": "^6.1.2",
"@npmcli/ci-detect": "^3.0.1",
"@npmcli/arborist": "^6.1.3",
"@npmcli/run-script": "^6.0.0",
"chalk": "^4.1.0",
"ci-info": "^3.6.1",
"npm-package-arg": "^10.0.0",

@@ -78,5 +78,5 @@ "npmlog": "^7.0.1",

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.9.0",
"version": "4.10.0",
"content": "../../scripts/template-oss/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