@vscode/vsce 3.5.1-3 → 3.5.1-5
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 +4 -2
- package/package.json +6 -6
package/out/package.js
CHANGED
|
@@ -1589,9 +1589,11 @@ async function scanFilesForSecrets(files, fileExclusion, options) {
|
|
|
1589
1589
|
return; // No need to scan
|
|
1590
1590
|
}
|
|
1591
1591
|
const onDiskFiles = files.filter(file => !isInMemoryFile(file));
|
|
1592
|
-
const
|
|
1592
|
+
const onDiskFilteredFiles = onDiskFiles
|
|
1593
|
+
.filter(file => !file.localPath.includes('node_modules'))
|
|
1594
|
+
.filter(file => !/\.(jpg|jpeg|png|gif|svg)$/i.test(file.localPath));
|
|
1593
1595
|
const inMemoryFiles = files.filter(file => isInMemoryFile(file));
|
|
1594
|
-
const onDiskResult = await (0, secretLint_1.lintFiles)(
|
|
1596
|
+
const onDiskResult = await (0, secretLint_1.lintFiles)(onDiskFilteredFiles.map(file => file.localPath), scanForSecrets, scanDotEnv);
|
|
1595
1597
|
const inMemoryResults = await Promise.all(inMemoryFiles.map(file => (0, secretLint_1.lintText)(typeof file.contents === 'string' ? file.contents : file.contents.toString('utf8'), file.path, scanForSecrets, scanDotEnv)));
|
|
1596
1598
|
const secretsFound = [...inMemoryResults, onDiskResult].filter(result => !result.ok).flatMap(result => result.results);
|
|
1597
1599
|
// secrets found
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/vsce",
|
|
3
|
-
"version": "3.5.1-
|
|
3
|
+
"version": "3.5.1-5",
|
|
4
4
|
"description": "VS Code Extensions Manager",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@azure/identity": "^4.1.0",
|
|
42
|
-
"@secretlint/node": "^
|
|
43
|
-
"@secretlint/secretlint-formatter-sarif": "^
|
|
44
|
-
"@secretlint/secretlint-rule-no-dotenv": "^
|
|
45
|
-
"@secretlint/secretlint-rule-preset-recommend": "^
|
|
42
|
+
"@secretlint/node": "^10.1.1",
|
|
43
|
+
"@secretlint/secretlint-formatter-sarif": "^10.1.1",
|
|
44
|
+
"@secretlint/secretlint-rule-no-dotenv": "^10.1.1",
|
|
45
|
+
"@secretlint/secretlint-rule-preset-recommend": "^10.1.1",
|
|
46
46
|
"@vscode/vsce-sign": "^2.0.0",
|
|
47
47
|
"azure-devops-node-api": "^12.5.0",
|
|
48
48
|
"chalk": "^4.1.2",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"minimatch": "^3.0.3",
|
|
60
60
|
"parse-semver": "^1.1.1",
|
|
61
61
|
"read": "^1.0.7",
|
|
62
|
-
"secretlint": "^
|
|
62
|
+
"secretlint": "^10.1.1",
|
|
63
63
|
"semver": "^7.5.2",
|
|
64
64
|
"tmp": "^0.2.3",
|
|
65
65
|
"typed-rest-client": "^1.8.4",
|