Socket
Socket
Sign inDemoInstall

micromatch

Package Overview
Dependencies
35
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.6 to 2.3.7

43

lib/utils.js

@@ -6,37 +6,22 @@ 'use strict';

var fileRe = require('filename-regex');
var utils = require('lazy-cache')(require);
var utils = module.exports;
/**
* Temporarily re-assign require to trick browserify
* into recognizing lazy-cached deps.
* Module dependencies
*/
/* eslint-disable no-undef */
var fn = require;
require = utils;
utils.diff = require('arr-diff');
utils.unique = require('array-unique');
utils.braces = require('braces');
utils.brackets = require('expand-brackets');
utils.extglob = require('extglob');
utils.isExtglob = require('is-extglob');
utils.isGlob = require('is-glob');
utils.typeOf = require('kind-of');
utils.normalize = require('normalize-path');
utils.omit = require('object.omit');
utils.parseGlob = require('parse-glob');
utils.cache = require('regex-cache');
/**
* Lazily required module dependencies
*/
require('arr-diff', 'diff');
require('array-unique', 'unique');
require('braces');
require('expand-brackets', 'brackets');
require('extglob');
require('is-extglob');
require('is-glob', 'isGlob');
require('kind-of', 'typeOf');
require('normalize-path', 'normalize');
require('object.omit', 'omit');
require('parse-glob');
require('regex-cache', 'cache');
/**
* Restore `require`
*/
require = fn;
/**
* Get the filename of a filepath

@@ -43,0 +28,0 @@ *

{
"name": "micromatch",
"description": "Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just use `micromatch.isMatch()` instead of `minimatch()`, or use `micromatch()` instead of `multimatch()`.",
"version": "2.3.6",
"version": "2.3.7",
"homepage": "https://github.com/jonschlinkert/micromatch",

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

"kind-of": "^3.0.2",
"lazy-cache": "^1.0.0",
"normalize-path": "^2.0.1",

@@ -36,0 +35,0 @@ "object.omit": "^2.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