Socket
Socket
Sign inDemoInstall

glob

Package Overview
Dependencies
Maintainers
1
Versions
155
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 9.3.0 to 9.3.1

2

dist/cjs/processor.js

@@ -133,2 +133,4 @@ "use strict";

}
if (t.isENOENT())
continue;
let p;

@@ -135,0 +137,0 @@ let rest;

58

dist/cjs/walker.js

@@ -293,15 +293,15 @@ "use strict";

throw this.signal.reason;
const t = this.path.isUnknown() ? await this.path.lstat() : this.path;
if (t) {
await new Promise((res, rej) => {
this.walkCB(t, this.patterns, () => {
if (this.signal?.aborted) {
rej(this.signal.reason);
}
else {
res(this.matches);
}
});
if (this.path.isUnknown()) {
await this.path.lstat();
}
await new Promise((res, rej) => {
this.walkCB(this.path, this.patterns, () => {
if (this.signal?.aborted) {
rej(this.signal.reason);
}
else {
res(this.matches);
}
});
}
});
return this.matches;

@@ -312,10 +312,10 @@ }

throw this.signal.reason;
const t = this.path.isUnknown() ? this.path.lstatSync() : this.path;
if (this.path.isUnknown()) {
this.path.lstatSync();
}
// nothing for the callback to do, because this never pauses
if (t) {
this.walkCBSync(t, this.patterns, () => {
if (this.signal?.aborted)
throw this.signal.reason;
});
}
this.walkCBSync(this.path, this.patterns, () => {
if (this.signal?.aborted)
throw this.signal.reason;
});
return this.matches;

@@ -344,9 +344,4 @@ }

if (target.isUnknown()) {
target.lstat().then(e => {
if (e) {
this.walkCB(target, this.patterns, () => this.results.end());
}
else {
this.results.end();
}
target.lstat().then(() => {
this.walkCB(target, this.patterns, () => this.results.end());
});

@@ -360,11 +355,6 @@ }

streamSync() {
const target = this.path.isUnknown()
? this.path.lstatSync()
: this.path;
if (target) {
this.walkCBSync(target, this.patterns, () => this.results.end());
if (this.path.isUnknown()) {
this.path.lstatSync();
}
else {
this.results.end();
}
this.walkCBSync(this.path, this.patterns, () => this.results.end());
return this.results;

@@ -371,0 +361,0 @@ }

@@ -127,2 +127,4 @@ // synchronous utility for filtering entries and calculating subwalks

}
if (t.isENOENT())
continue;
let p;

@@ -129,0 +131,0 @@ let rest;

@@ -286,15 +286,15 @@ /**

throw this.signal.reason;
const t = this.path.isUnknown() ? await this.path.lstat() : this.path;
if (t) {
await new Promise((res, rej) => {
this.walkCB(t, this.patterns, () => {
if (this.signal?.aborted) {
rej(this.signal.reason);
}
else {
res(this.matches);
}
});
if (this.path.isUnknown()) {
await this.path.lstat();
}
await new Promise((res, rej) => {
this.walkCB(this.path, this.patterns, () => {
if (this.signal?.aborted) {
rej(this.signal.reason);
}
else {
res(this.matches);
}
});
}
});
return this.matches;

@@ -305,10 +305,10 @@ }

throw this.signal.reason;
const t = this.path.isUnknown() ? this.path.lstatSync() : this.path;
if (this.path.isUnknown()) {
this.path.lstatSync();
}
// nothing for the callback to do, because this never pauses
if (t) {
this.walkCBSync(t, this.patterns, () => {
if (this.signal?.aborted)
throw this.signal.reason;
});
}
this.walkCBSync(this.path, this.patterns, () => {
if (this.signal?.aborted)
throw this.signal.reason;
});
return this.matches;

@@ -336,9 +336,4 @@ }

if (target.isUnknown()) {
target.lstat().then(e => {
if (e) {
this.walkCB(target, this.patterns, () => this.results.end());
}
else {
this.results.end();
}
target.lstat().then(() => {
this.walkCB(target, this.patterns, () => this.results.end());
});

@@ -352,11 +347,6 @@ }

streamSync() {
const target = this.path.isUnknown()
? this.path.lstatSync()
: this.path;
if (target) {
this.walkCBSync(target, this.patterns, () => this.results.end());
if (this.path.isUnknown()) {
this.path.lstatSync();
}
else {
this.results.end();
}
this.walkCBSync(this.path, this.patterns, () => this.results.end());
return this.results;

@@ -363,0 +353,0 @@ }

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

"description": "the most correct and second fastest glob implementation in JavaScript",
"version": "9.3.0",
"version": "9.3.1",
"repository": {

@@ -73,2 +73,3 @@ "type": "git",

"eslint-config-prettier": "^8.6.0",
"memfs": "^3.4.13",
"mkdirp": "^2.1.4",

@@ -75,0 +76,0 @@ "prettier": "^2.8.3",

@@ -9,3 +9,3 @@ # Glob

![a fun cartoon logo made of glob characters](logo/glob.png)
![a fun cartoon logo made of glob characters](https://github.com/isaacs/node-glob/raw/main/logo/glob.png)

@@ -20,2 +20,5 @@ ## Usage

**Note** the npm package name is _not_ `node-glob` that's a
different thing that was abandoned years ago. Just `glob`.
```js

@@ -789,3 +792,3 @@ // load using import

![](oh-my-glob.gif)
![lumpy space princess saying 'oh my GLOB'](https://github.com/isaacs/node-glob/raw/main/oh-my-glob.gif)

@@ -792,0 +795,0 @@ ### Benchmark Results

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