New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pnpm

Package Overview
Dependencies
Maintainers
0
Versions
1105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnpm - npm Package Compare versions

Comparing version 10.0.0 to 10.1.0

dist/node_modules/cross-spawn/node_modules/isexe/index.js

2

dist/node_modules/.pnpm-workspace-state.json
{
"lastValidatedTimestamp": 1736261097259,
"lastValidatedTimestamp": 1737928093608,
"projects": {},

@@ -4,0 +4,0 @@ "pnpmfileExists": false,

{
"name": "abbrev",
"version": "2.0.0",
"version": "3.0.0",
"description": "Like ruby's abbrev module, but in js",

@@ -9,17 +9,18 @@ "author": "GitHub Inc.",

"test": "tap",
"lint": "eslint \"**/*.js\"",
"lint": "npm run eslint",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"lintfix": "npm run eslint -- --fix",
"snap": "tap",
"posttest": "npm run lint"
"posttest": "npm run lint",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},
"repository": {
"type": "git",
"url": "https://github.com/npm/abbrev-js.git"
"url": "git+https://github.com/npm/abbrev-js.git"
},
"license": "ISC",
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.8.0",
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"tap": "^16.3.0"

@@ -38,8 +39,9 @@ },

"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
"node": "^18.17.0 || >=20.5.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.8.0"
"version": "4.23.3",
"publish": true
}
}

@@ -136,4 +136,9 @@ "use strict";

if (socket instanceof http.Agent) {
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
return socket.addRequest(req, connectOpts);
try {
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
return socket.addRequest(req, connectOpts);
}
catch (err) {
return cb(err);
}
}

@@ -140,0 +145,0 @@ this[INTERNAL].currentSocket = socket;

{
"name": "agent-base",
"version": "7.1.1",
"version": "7.1.3",
"description": "Turn a function into an `http.Agent` instance",

@@ -24,5 +24,2 @@ "main": "./dist/index.js",

"license": "MIT",
"dependencies": {
"debug": "^4.3.4"
},
"devDependencies": {

@@ -38,3 +35,3 @@ "@types/debug": "^4.1.7",

"typescript": "^5.0.4",
"ws": "^3.3.3",
"ws": "^5.2.4",
"tsconfig": "0.0.0"

@@ -41,0 +38,0 @@ },

{
"name": "debug",
"version": "4.3.7",
"version": "4.4.0",
"repository": {

@@ -59,3 +59,8 @@ "type": "git",

"node": ">=6.0"
},
"xo": {
"rules": {
"import/extensions": "off"
}
}
}

@@ -132,2 +132,3 @@ /* eslint-env browser */

// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
// eslint-disable-next-line no-return-assign
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||

@@ -134,0 +135,0 @@ // Is firebug? http://stackoverflow.com/a/398120/376773

@@ -169,20 +169,58 @@

let i;
const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
const len = split.length;
const split = (typeof namespaces === 'string' ? namespaces : '')
.trim()
.replace(' ', ',')
.split(',')
.filter(Boolean);
for (i = 0; i < len; i++) {
if (!split[i]) {
// ignore empty strings
continue;
for (const ns of split) {
if (ns[0] === '-') {
createDebug.skips.push(ns.slice(1));
} else {
createDebug.names.push(ns);
}
}
}
namespaces = split[i].replace(/\*/g, '.*?');
/**
* Checks if the given string matches a namespace template, honoring
* asterisks as wildcards.
*
* @param {String} search
* @param {String} template
* @return {Boolean}
*/
function matchesTemplate(search, template) {
let searchIndex = 0;
let templateIndex = 0;
let starIndex = -1;
let matchIndex = 0;
if (namespaces[0] === '-') {
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
while (searchIndex < search.length) {
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
// Match character or proceed with wildcard
if (template[templateIndex] === '*') {
starIndex = templateIndex;
matchIndex = searchIndex;
templateIndex++; // Skip the '*'
} else {
searchIndex++;
templateIndex++;
}
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
// Backtrack to the last '*' and try to match more characters
templateIndex = starIndex + 1;
matchIndex++;
searchIndex = matchIndex;
} else {
createDebug.names.push(new RegExp('^' + namespaces + '$'));
return false; // No match
}
}
// Handle trailing '*' in template
while (templateIndex < template.length && template[templateIndex] === '*') {
templateIndex++;
}
return templateIndex === template.length;
}

@@ -198,4 +236,4 @@

const namespaces = [
...createDebug.names.map(toNamespace),
...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
...createDebug.names,
...createDebug.skips.map(namespace => '-' + namespace)
].join(',');

@@ -214,11 +252,4 @@ createDebug.enable('');

function enabled(name) {
if (name[name.length - 1] === '*') {
return true;
}
let i;
let len;
for (i = 0, len = createDebug.skips.length; i < len; i++) {
if (createDebug.skips[i].test(name)) {
for (const skip of createDebug.skips) {
if (matchesTemplate(name, skip)) {
return false;

@@ -228,4 +259,4 @@ }

for (i = 0, len = createDebug.names.length; i < len; i++) {
if (createDebug.names[i].test(name)) {
for (const ns of createDebug.names) {
if (matchesTemplate(name, ns)) {
return true;

@@ -239,15 +270,2 @@ }

/**
* Convert regexp to namespace
*
* @param {RegExp} regxep
* @return {String} namespace
* @api private
*/
function toNamespace(regexp) {
return regexp.toString()
.substring(2, regexp.toString().length - 2)
.replace(/\.\*\?$/, '*');
}
/**
* Coerce `val`.

@@ -254,0 +272,0 @@ *

@@ -38,2 +38,13 @@ "use strict";

const debug = (0, debug_1.default)('https-proxy-agent');
const setServernameFromNonIpHost = (options) => {
if (options.servername === undefined &&
options.host &&
!net.isIP(options.host)) {
return {
...options,
servername: options.host,
};
}
return options;
};
/**

@@ -86,7 +97,3 @@ * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to

debug('Creating `tls.Socket`: %o', this.connectOpts);
const servername = this.connectOpts.servername || this.connectOpts.host;
socket = tls.connect({
...this.connectOpts,
servername,
});
socket = tls.connect(setServernameFromNonIpHost(this.connectOpts));
}

@@ -127,7 +134,5 @@ else {

debug('Upgrading socket connection to TLS');
const servername = opts.servername || opts.host;
return tls.connect({
...omit(opts, 'host', 'path', 'port'),
...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'),
socket,
servername,
});

@@ -134,0 +139,0 @@ }

{
"name": "https-proxy-agent",
"version": "7.0.5",
"version": "7.0.6",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",

@@ -24,3 +24,3 @@ "main": "./dist/index.js",

"dependencies": {
"agent-base": "^7.0.2",
"agent-base": "^7.1.2",
"debug": "4"

@@ -27,0 +27,0 @@ },

{
"name": "isexe",
"version": "2.0.0",
"version": "3.1.1",
"description": "Minimal module to check if a file is executable.",
"main": "index.js",
"directories": {
"test": "test"
"main": "./dist/cjs/index.js",
"module": "./dist/mjs/index.js",
"types": "./dist/cjs/index.js",
"files": [
"dist"
],
"exports": {
".": {
"import": {
"types": "./dist/mjs/index.d.ts",
"default": "./dist/mjs/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
},
"./posix": {
"import": {
"types": "./dist/mjs/posix.d.ts",
"default": "./dist/mjs/posix.js"
},
"require": {
"types": "./dist/cjs/posix.d.ts",
"default": "./dist/cjs/posix.js"
}
},
"./win32": {
"import": {
"types": "./dist/mjs/win32.d.ts",
"default": "./dist/mjs/win32.js"
},
"require": {
"types": "./dist/cjs/win32.d.ts",
"default": "./dist/cjs/win32.js"
}
},
"./package.json": "./package.json"
},
"devDependencies": {
"@types/node": "^20.4.5",
"@types/tap": "^15.0.8",
"c8": "^8.0.1",
"mkdirp": "^0.5.1",
"prettier": "^2.8.8",
"rimraf": "^2.5.0",
"tap": "^10.3.0"
"sync-content": "^1.0.2",
"tap": "^16.3.8",
"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
},
"scripts": {
"test": "tap test/*.js --100",
"preversion": "npm test",
"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
"prepublishOnly": "git push origin --follow-tags",
"prepare": "tsc -p tsconfig/cjs.json && tsc -p tsconfig/esm.json && bash ./scripts/fixup.sh",
"pretest": "npm run prepare",
"presnap": "npm run prepare",
"test": "c8 tap",
"snap": "c8 tap",
"format": "prettier --write . --loglevel warn --ignore-path ../../.prettierignore --cache",
"typedoc": "typedoc --tsconfig tsconfig/esm.json ./src/*.ts"
},
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "ISC",
"repository": {
"type": "git",
"url": "git+https://github.com/isaacs/isexe.git"
"tap": {
"coverage": false,
"node-arg": [
"--enable-source-maps",
"--no-warnings",
"--loader",
"ts-node/esm"
],
"ts": false
},
"keywords": [],
"bugs": {
"url": "https://github.com/isaacs/isexe/issues"
"prettier": {
"semi": false,
"printWidth": 75,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSameLine": true,
"arrowParens": "avoid",
"endOfLine": "lf"
},
"homepage": "https://github.com/isaacs/isexe#readme"
"repository": "https://github.com/isaacs/isexe",
"engines": {
"node": ">=16"
}
}

@@ -28,3 +28,5 @@ const abbrev = require('abbrev')

typeDefs,
invalidHandler,
invalidHandler, // opt is configured but its value does not validate against given type
unknownHandler, // opt is not configured
abbrevHandler, // opt is being expanded via abbrev
typeDefault,

@@ -42,3 +44,5 @@ dynamicTypes,

parse(args, data, argv.remain, { typeDefs, types, dynamicTypes, shorthands })
parse(args, data, argv.remain, {
typeDefs, types, dynamicTypes, shorthands, unknownHandler, abbrevHandler,
})

@@ -252,2 +256,4 @@ // now data is full

dynamicTypes,
unknownHandler,
abbrevHandler,
} = {}) {

@@ -288,3 +294,3 @@ const StringType = typeDefs.String?.type

// if so, splice and back up to re-parse it.
const shRes = resolveShort(arg, shortAbbr, abbrevs, { shorthands })
const shRes = resolveShort(arg, shortAbbr, abbrevs, { shorthands, abbrevHandler })
debug('arg=%j shRes=%j', arg, shRes)

@@ -305,3 +311,9 @@ if (shRes) {

if (abbrevs[arg]) {
// abbrev includes the original full string in its abbrev list
if (abbrevs[arg] && abbrevs[arg] !== arg) {
if (abbrevHandler) {
abbrevHandler(arg, abbrevs[arg])
} else if (abbrevHandler !== false) {
debug(`abbrev: ${arg} -> ${abbrevs[arg]}`)
}
arg = abbrevs[arg]

@@ -339,2 +351,19 @@ }

if (typeof argType === 'undefined') {
// la is going to unexpectedly be parsed outside the context of this arg
const hangingLa = !hadEq && la && !la?.startsWith('-') && !['true', 'false'].includes(la)
if (unknownHandler) {
if (hangingLa) {
unknownHandler(arg, la)
} else {
unknownHandler(arg)
}
} else if (unknownHandler !== false) {
debug(`unknown: ${arg}`)
if (hangingLa) {
debug(`unknown: ${la} parsed as normal opt`)
}
}
}
if (isBool) {

@@ -429,3 +458,3 @@ // just set and move along

function resolveShort (arg, ...rest) {
const { types = {}, shorthands = {} } = rest.length ? rest.pop() : {}
const { abbrevHandler, types = {}, shorthands = {} } = rest.length ? rest.pop() : {}
const shortAbbr = rest[0] ?? abbrev(Object.keys(shorthands))

@@ -467,3 +496,9 @@ const abbrevs = rest[1] ?? abbrev(Object.keys(types))

// if it's an abbr for a shorthand, then use that
// exact match has already happened so we don't need to account for that here
if (shortAbbr[arg]) {
if (abbrevHandler) {
abbrevHandler(arg, shortAbbr[arg])
} else if (abbrevHandler !== false) {
debug(`abbrev: ${arg} -> ${shortAbbr[arg]}`)
}
arg = shortAbbr[arg]

@@ -470,0 +505,0 @@ }

@@ -21,2 +21,4 @@ const lib = require('./nopt-lib')

invalidHandler: exports.invalidHandler,
unknownHandler: exports.unknownHandler,
abbrevHandler: exports.abbrevHandler,
})

@@ -30,3 +32,5 @@ }

invalidHandler: exports.invalidHandler,
unknownHandler: exports.unknownHandler,
abbrevHandler: exports.abbrevHandler,
})
}
{
"name": "nopt",
"version": "8.0.0",
"version": "8.1.0",
"description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.",

@@ -26,7 +26,7 @@ "author": "GitHub Inc.",

"dependencies": {
"abbrev": "^2.0.0"
"abbrev": "^3.0.0"
},
"devDependencies": {
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"@npmcli/template-oss": "4.23.6",
"tap": "^16.3.0"

@@ -50,5 +50,5 @@ },

"windowsCI": false,
"version": "4.23.3",
"version": "4.23.6",
"publish": true
}
}

@@ -10,3 +10,3 @@ export default async function pMap(

) {
return new Promise((resolve, reject_) => {
return new Promise((resolve_, reject_) => {
if (iterable[Symbol.iterator] === undefined && iterable[Symbol.asyncIterator] === undefined) {

@@ -34,2 +34,15 @@ throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof iterable})`);

const signalListener = () => {
reject(signal.reason);
};
const cleanup = () => {
signal?.removeEventListener('abort', signalListener);
};
const resolve = value => {
resolve_(value);
cleanup();
};
const reject = reason => {

@@ -39,2 +52,3 @@ isRejected = true;

reject_(reason);
cleanup();
};

@@ -47,5 +61,3 @@

signal.addEventListener('abort', () => {
reject(signal.reason);
});
signal.addEventListener('abort', signalListener, {once: true});
}

@@ -52,0 +64,0 @@

{
"name": "p-map",
"version": "7.0.2",
"version": "7.0.3",
"description": "Map over promises concurrently",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -34,5 +34,17 @@ "use strict";

const dns = __importStar(require("dns"));
const net = __importStar(require("net"));
const tls = __importStar(require("tls"));
const url_1 = require("url");
const debug = (0, debug_1.default)('socks-proxy-agent');
const setServernameFromNonIpHost = (options) => {
if (options.servername === undefined &&
options.host &&
!net.isIP(options.host)) {
return {
...options,
servername: options.host,
};
}
return options;
};
function parseSocksURL(url) {

@@ -153,7 +165,5 @@ let lookup = false;

debug('Upgrading socket connection to TLS');
const servername = opts.servername || opts.host;
const tlsSocket = tls.connect({
...omit(opts, 'host', 'path', 'port'),
...omit(setServernameFromNonIpHost(opts), 'host', 'path', 'port'),
socket,
servername,
});

@@ -160,0 +170,0 @@ tlsSocket.once('error', (error) => {

{
"name": "socks-proxy-agent",
"version": "8.0.4",
"version": "8.0.5",
"description": "A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS",

@@ -110,3 +110,3 @@ "main": "./dist/index.js",

"dependencies": {
"agent-base": "^7.1.1",
"agent-base": "^7.1.2",
"debug": "^4.3.4",

@@ -113,0 +113,0 @@ "socks": "^2.8.3"

{
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
"author": "GitHub Inc.",
"name": "which",
"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
"version": "2.0.2",
"version": "5.0.0",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/node-which.git"
"url": "git+https://github.com/npm/node-which.git"
},
"main": "which.js",
"main": "lib/index.js",
"bin": {
"node-which": "./bin/node-which"
"node-which": "./bin/which.js"
},
"license": "ISC",
"dependencies": {
"isexe": "^2.0.0"
"isexe": "^3.1.1"
},
"devDependencies": {
"mkdirp": "^0.5.0",
"rimraf": "^2.6.2",
"tap": "^14.6.9"
"@npmcli/eslint-config": "^5.0.0",
"@npmcli/template-oss": "4.23.3",
"tap": "^16.3.0"
},
"scripts": {
"test": "tap",
"preversion": "npm test",
"postversion": "npm publish",
"prepublish": "npm run changelog",
"prechangelog": "bash gen-changelog.sh",
"changelog": "git add CHANGELOG.md",
"postchangelog": "git commit -m 'update changelog - '${npm_package_version}",
"postpublish": "git push origin --follow-tags"
"lint": "npm run eslint",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run eslint -- --fix",
"snap": "tap",
"posttest": "npm run lint",
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""
},
"files": [
"which.js",
"bin/node-which"
"bin/",
"lib/"
],
"tap": {
"check-coverage": true
"check-coverage": true,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"engines": {
"node": ">= 8"
"node": "^18.17.0 || >=20.5.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.23.3",
"publish": "true"
}
}
{
"name": "pnpm",
"description": "Fast, disk space efficient package manager",
"version": "10.0.0",
"version": "10.1.0",
"bin": {

@@ -41,2 +41,3 @@ "pnpm": "bin/pnpm.cjs",

"@pnpm/error": "workspace:*",
"@pnpm/exec.build-commands": "workspace:*",
"@pnpm/filter-workspace-packages": "workspace:*",

@@ -116,3 +117,2 @@ "@pnpm/find-workspace-dir": "workspace:*",

"split-cmd": "catalog:",
"strip-ansi": "catalog:",
"symlink-dir": "catalog:",

@@ -185,3 +185,3 @@ "tempy": "catalog:",

"pretest:e2e": "rimraf node_modules/.bin/pnpm",
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7777 jest",
"_test": "cross-env PNPM_REGISTRY_MOCK_PORT=7778 jest",
"test": "pnpm run compile && pnpm run _test",

@@ -188,0 +188,0 @@ "_compile": "tsc --build",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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