Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

glob

Package Overview
Dependencies
Maintainers
1
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob - npm Package Compare versions

Comparing version
11.1.0
to
12.0.0
+4
-5
dist/esm/bin.mjs

@@ -323,4 +323,3 @@ #!/usr/bin/env node

const knownShells = ['sh', 'ksh', 'zsh', 'bash', 'fish'];
if ((shell || /[ "']/.test(cmd)) &&
knownShells.includes(shellBase)) {
if ((shell || /[ "']/.test(cmd)) && knownShells.includes(shellBase)) {
const cmdWithArgs = `${cmd} "\$${shellBase === 'fish' ? 'argv' : '@'}"`;

@@ -335,6 +334,6 @@ if (shellBase !== 'fish') {

if (shell) {
process.emitWarning('The --shell option is unsafe, and will be removed. To pass ' +
'positional arguments to the subprocess, use -g/--cmd-arg instead.', 'DeprecationWarning', 'GLOB_SHELL');
process.emitWarning('The --shell option is not supported on this system. To pass ' +
'positional arguments to the subprocess, use -g/--cmd-arg instead.', 'UnsupportedWarning', 'GLOB_SHELL');
}
stream.on('end', () => foregroundChild(cmd, cmdArg, { shell }));
stream.on('end', () => foregroundChild(cmd, cmdArg));
}

@@ -341,0 +340,0 @@ }

@@ -5,3 +5,3 @@ {

"description": "the most correct and second fastest glob implementation in JavaScript",
"version": "11.1.0",
"version": "12.0.0",
"type": "module",

@@ -8,0 +8,0 @@ "tshy": {

@@ -438,7 +438,7 @@ # Glob

To start absolute and non-absolute patterns in the same path,
you can use `{root:''}`. However, be aware that on Windows
systems, a pattern like `x:/*` or `//host/share/*` will
_always_ start in the `x:/` or `//host/share` directory,
regardless of the `root` setting.
To start absolute and non-absolute patterns in the same path,
you can use `{root:''}`. However, be aware that on Windows
systems, a pattern like `x:/*` or `//host/share/*` will
_always_ start in the `x:/` or `//host/share` directory,
regardless of the `root` setting.

@@ -668,3 +668,2 @@ > [!NOTE] This _doesn't_ necessarily limit the walk to the

## Glob Primer

@@ -671,0 +670,0 @@

Sorry, the diff of this file is not supported yet