Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-glob

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-glob - npm Package Compare versions

Comparing version 3.3.1 to 3.3.2

8

out/utils/path.js

@@ -10,7 +10,7 @@ "use strict";

* All non-escaped special characters.
* Posix: ()*?[\]{|}, !+@ before (, ! at the beginning, \\ before non-special characters.
* Windows: (){}, !+@ before (, ! at the beginning.
* Posix: ()*?[]{|}, !+@ before (, ! at the beginning, \\ before non-special characters.
* Windows: (){}[], !+@ before (, ! at the beginning.
*/
const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g;
const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
/**

@@ -26,3 +26,3 @@ * The device path (\\.\ or \\?\).

*/
const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
/**

@@ -29,0 +29,0 @@ * Designed to work only with simple paths: `dir\\file`.

@@ -137,3 +137,3 @@ "use strict";

function expandBraceExpansion(pattern) {
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true });
const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
/**

@@ -140,0 +140,0 @@ * Sort the patterns by length so that the same depth patterns are processed side by side.

{
"name": "fast-glob",
"version": "3.3.1",
"version": "3.3.2",
"description": "It's a very fast and efficient glob library for Node.js",

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

@@ -275,6 +275,6 @@ # fast-glob

* Windows:
* `(){}`
* `(){}[]`
* `!` at the beginning of line;
* `@+!` before the opening parenthesis;
* Characters like `*?|[]` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped;
* Characters like `*?|` cannot be used in the path ([windows_naming_conventions][windows_naming_conventions]), so they will not be escaped;

@@ -298,3 +298,3 @@ ```js

* Posix. Works similarly to the `fg.posix.escapePath` method.
* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}`).
* Windows. Works similarly to the `fg.win32.escapePath` method, additionally converting backslashes to forward slashes in cases where they are not escape characters (`!()+@{}[]`).

@@ -301,0 +301,0 @@ ```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