🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

editorconfig

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

editorconfig - npm Package Compare versions

Comparing version
3.0.1
to
3.0.2
+1
-1
lib/index.d.ts

@@ -0,3 +1,3 @@

import { Minimatch } from 'minimatch';
import { Buffer } from 'node:buffer';
import { Minimatch } from 'minimatch';
export interface KnownProps {

@@ -4,0 +4,0 @@ /**

@@ -50,5 +50,5 @@ "use strict";

const semver = __importStar(require("semver"));
const minimatch_1 = require("minimatch");
const wasm_1 = require("@one-ini/wasm");
const node_buffer_1 = require("node:buffer");
const minimatch_1 = require("minimatch");
const package_json_1 = __importDefault(require("../package.json"));

@@ -246,11 +246,5 @@ const escapedSep = new RegExp(path.sep.replace(/\\/g, '\\\\'), 'g');

}
// After Windows path backslash's are turned into slashes, so that
// the backslashes we add here aren't turned into forward slashes:
// All of these characters are special to minimatch, but can be
// forced into path names on many file systems. Escape them. Note
// that these are in the order of the case statement in minimatch.
pathPrefix = pathPrefix.replace(/[?*+@!()|[\]{}]/g, '\\$&');
// I can't think of a way for this to happen in the filesystems I've
// seen (because of the path.dirname above), but let's be thorough.
pathPrefix = pathPrefix.replace(/^#/, '\\#');
// Use minimatch's escape() with bracket escaping for the path prefix.
pathPrefix = (0, minimatch_1.escape)(pathPrefix, { windowsPathsNoEscape: true });
pathPrefix = pathPrefix.replace(/^#/, '[#]');
const globbed = parseBuffer(contents).map(([name, body]) => [

@@ -257,0 +251,0 @@ name,

{
"name": "editorconfig",
"version": "3.0.1",
"version": "3.0.2",
"description": "EditorConfig File Locator and Interpreter for Node.js",

@@ -19,3 +19,4 @@ "keywords": [

"Joe Hildebrand (https://github.com/hildjj/)",
"SunsetTechuila (https://github.com/SunsetTechuila/)"
"SunsetTechuila (https://github.com/SunsetTechuila/)",
"Rex Lorenzo (https://github.com/rlorenzo/)"
],

@@ -34,6 +35,6 @@ "directories": {

"dependencies": {
"@one-ini/wasm": "0.2.0",
"commander": "^14.0.0",
"minimatch": "10.0.1",
"semver": "^7.7.2"
"@one-ini/wasm": "0.2.1",
"commander": "^14.0.3",
"minimatch": "~10.2.4",
"semver": "^7.7.4"
},

@@ -40,0 +41,0 @@ "engines": {