editorconfig
Advanced tools
Comparing version 0.14.1 to 0.14.2
// Based on minimatch.js by isaacs <https://npmjs.org/package/minimatch> | ||
;(function (require, exports, module, platform) { | ||
var platform = typeof process === "object" ? process.platform : "win32" | ||
@@ -8,29 +8,2 @@ if (module) module.exports = minimatch | ||
if (!require) { | ||
require = function (id) { | ||
switch (id) { | ||
case "sigmund": return function sigmund (obj) { | ||
return JSON.stringify(obj) | ||
} | ||
case "path": return { basename: function (f) { | ||
f = f.split(/[\/\\]/) | ||
var e = f.pop() | ||
if (!e) e = f.pop() | ||
return e | ||
}} | ||
case "lru-cache": return function LRUCache () { | ||
// not quite an LRU, but still space-limited. | ||
var cache = {} | ||
var cnt = 0 | ||
this.set = function (k, v) { | ||
cnt ++ | ||
if (cnt >= 100) cache = {} | ||
cache[k] = v | ||
} | ||
this.get = function (k) { return cache[k] } | ||
} | ||
} | ||
} | ||
} | ||
minimatch.Minimatch = Minimatch | ||
@@ -1076,7 +1049,1 @@ | ||
} | ||
})( typeof require === "function" ? require : null, | ||
this, | ||
typeof module === "object" ? module : null, | ||
typeof process === "object" ? process.platform : "win32" | ||
) |
{ | ||
"name": "editorconfig", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "EditorConfig File Locator and Interpreter for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
48391
9
2
1159