Socket
Socket
Sign inDemoInstall

micromatch

Package Overview
Dependencies
70
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.2 to 3.1.3

12

lib/utils.js

@@ -299,15 +299,15 @@ 'use strict';

utils.unixify = function(options) {
options = options || {};
var opts = options || {};
return function(filepath) {
if (utils.isWindows() || options.unixify === true) {
filepath = utils.toPosixPath(filepath);
}
if (options.stripPrefix !== false) {
if (opts.stripPrefix !== false) {
filepath = utils.stripPrefix(filepath);
}
if (options.unescape === true) {
if (opts.unescape === true) {
filepath = utils.unescape(filepath);
}
if (opts.unixify === true || utils.isWindows()) {
filepath = utils.toPosixPath(filepath);
}
return filepath;
};
};
{
"name": "micromatch",
"description": "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch.",
"version": "3.1.2",
"version": "3.1.3",
"homepage": "https://github.com/micromatch/micromatch",

@@ -47,3 +47,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"kind-of": "^6.0.0",
"nanomatch": "^1.2.4",
"nanomatch": "^1.2.5",
"object.pick": "^1.3.0",

@@ -50,0 +50,0 @@ "regex-not": "^1.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc