Socket
Socket
Sign inDemoInstall

glob-extra

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-extra - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

9

lib/index.js

@@ -8,2 +8,3 @@ 'use strict';

const {Minimatch} = require('minimatch');
const normalize = require('normalize-path');
const defaults = require('./defaults');

@@ -32,5 +33,9 @@ const utils = require('./utils');

paths = [].concat(paths);
// fast-glob requires only forward-slashes (https://github.com/mrmlnc/fast-glob#pattern-syntax)
if (globOpts.ignore) {
globOpts.ignore = globOpts.ignore.map(p => normalize(p));
}
const normalizedPaths = [].concat(paths).map(p => normalize(p));
return processPaths(paths, (path) => getFilesByMask(path, globOpts))
return processPaths(normalizedPaths, (path) => getFilesByMask(path, globOpts))
.then((matchedPaths) => processPaths(matchedPaths, (path) => expandPath(path, expandOpts)));

@@ -37,0 +42,0 @@ };

{
"name": "glob-extra",
"version": "5.0.0",
"version": "5.0.1",
"description": "Utility which provides expanding of masks, dirs and files to absolute file paths.",

@@ -32,3 +32,4 @@ "bugs": "https://github.com/gemini-testing/glob-extra/issues",

"lodash": "^4.15.0",
"minimatch": "^3.0.4"
"minimatch": "^3.0.4",
"normalize-path": "^3.0.0"
},

@@ -35,0 +36,0 @@ "devDependencies": {

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