@vscode/vsce 3.9.1-0 → 3.9.2-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/package.js +6 -6
- package/package.json +2 -3
package/out/package.js
CHANGED
|
@@ -35,7 +35,7 @@ const yazl = __importStar(require("yazl"));
|
|
|
35
35
|
const nls_1 = require("./nls");
|
|
36
36
|
const util = __importStar(require("./util"));
|
|
37
37
|
const glob_1 = require("glob");
|
|
38
|
-
const minimatch_1 =
|
|
38
|
+
const minimatch_1 = require("minimatch");
|
|
39
39
|
const markdown_it_1 = __importDefault(require("markdown-it"));
|
|
40
40
|
const cheerio = __importStar(require("cheerio"));
|
|
41
41
|
const url = __importStar(require("url"));
|
|
@@ -50,7 +50,7 @@ const parse_semver_1 = __importDefault(require("parse-semver"));
|
|
|
50
50
|
const jsonc = __importStar(require("jsonc-parser"));
|
|
51
51
|
const vsceSign = __importStar(require("@vscode/vsce-sign"));
|
|
52
52
|
const secretLint_1 = require("./secretLint");
|
|
53
|
-
const
|
|
53
|
+
const minimatchOptions = { dot: true };
|
|
54
54
|
function isInMemoryFile(file) {
|
|
55
55
|
return !!file.contents;
|
|
56
56
|
}
|
|
@@ -1276,8 +1276,8 @@ function collectFiles(cwd, dependencies, dependencyEntryPoints, ignoreFile, mani
|
|
|
1276
1276
|
.then(ignore => ignore.reduce((r, e) => (!/^\s*!/.test(e) ? [[...r[0], e], r[1]] : [r[0], [...r[1], e]]), [[], []]))
|
|
1277
1277
|
.then(r => ({ ignore: r[0], negate: r[1] }))
|
|
1278
1278
|
// Filter out files
|
|
1279
|
-
.then(({ ignore, negate }) => files.filter(f => !ignore.some(i => (0, minimatch_1.
|
|
1280
|
-
negate.some(i => (0, minimatch_1.
|
|
1279
|
+
.then(({ ignore, negate }) => files.filter(f => !ignore.some(i => (0, minimatch_1.minimatch)(f, i, minimatchOptions)) ||
|
|
1280
|
+
negate.some(i => (0, minimatch_1.minimatch)(f, i.substr(1), minimatchOptions)))));
|
|
1281
1281
|
});
|
|
1282
1282
|
}
|
|
1283
1283
|
function processFiles(processors, files) {
|
|
@@ -1547,13 +1547,13 @@ async function printAndValidatePackagedFiles(files, cwd, manifest, options) {
|
|
|
1547
1547
|
const unusedIncludePatterns = filesIncludePatterns.filter(includePattern => {
|
|
1548
1548
|
let absoluteIncludePattern = includePattern.absolute;
|
|
1549
1549
|
// Check if the pattern provided by the user matches any file in the package
|
|
1550
|
-
if (localPaths.some(localFilePath => (0, minimatch_1.
|
|
1550
|
+
if (localPaths.some(localFilePath => (0, minimatch_1.minimatch)(localFilePath, absoluteIncludePattern, minimatchOptions))) {
|
|
1551
1551
|
return false;
|
|
1552
1552
|
}
|
|
1553
1553
|
// Check if the pattern provided by the user matches any folder in the package
|
|
1554
1554
|
if (!/(^|\/)[^/]*\*[^/]*$/.test(absoluteIncludePattern)) {
|
|
1555
1555
|
absoluteIncludePattern = (/\/$/.test(absoluteIncludePattern) ? `${absoluteIncludePattern}**` : `${absoluteIncludePattern}/**`);
|
|
1556
|
-
return !localPaths.some(localFilePath => (0, minimatch_1.
|
|
1556
|
+
return !localPaths.some(localFilePath => (0, minimatch_1.minimatch)(localFilePath, absoluteIncludePattern, minimatchOptions));
|
|
1557
1557
|
}
|
|
1558
1558
|
// Pattern does not match any file or folder
|
|
1559
1559
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/vsce",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2-0",
|
|
4
4
|
"description": "VS Code Extensions Manager",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"leven": "^3.1.0",
|
|
58
58
|
"markdown-it": "^14.1.0",
|
|
59
59
|
"mime": "^1.3.4",
|
|
60
|
-
"minimatch": "^
|
|
60
|
+
"minimatch": "^10.2.2",
|
|
61
61
|
"parse-semver": "^1.1.1",
|
|
62
62
|
"read": "^1.0.7",
|
|
63
63
|
"secretlint": "^10.1.2",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"@types/hosted-git-info": "^3.0.2",
|
|
77
77
|
"@types/markdown-it": "^0.0.2",
|
|
78
78
|
"@types/mime": "^1",
|
|
79
|
-
"@types/minimatch": "^3.0.3",
|
|
80
79
|
"@types/mocha": "^7.0.2",
|
|
81
80
|
"@types/node": "^20.0.0",
|
|
82
81
|
"@types/read": "^0.0.28",
|