@vscode/vsce 3.4.2-0 → 3.4.2-1

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.
Files changed (2) hide show
  1. package/out/secretLint.js +10 -2
  2. package/package.json +1 -1
package/out/secretLint.js CHANGED
@@ -15,8 +15,7 @@ const lintConfig = {
15
15
  {
16
16
  id: "@secretlint/secretlint-rule-basicauth",
17
17
  allowMessageIds: ["BasicAuth"]
18
- },
19
- {
18
+ }, {
20
19
  id: "@secretlint/secretlint-rule-privatekey",
21
20
  options: {
22
21
  allows: [
@@ -25,6 +24,15 @@ const lintConfig = {
25
24
  "/^(?![\\s\\S]*-----BEGIN .*PRIVATE KEY-----[A-Za-z0-9+/=\\r\\n]{50,}-----END .*PRIVATE KEY-----)[\\s\\S]*$/"
26
25
  ]
27
26
  }
27
+ }, {
28
+ id: "@secretlint/secretlint-rule-npm",
29
+ options: {
30
+ allows: [
31
+ // An npm token has the prefix npm_ followed by 36 Base62 characters (30 random + 6-character checksum), totaling 40 characters.
32
+ // https://github.com/microsoft/vscode-vsce/issues/1153
33
+ "/^(?!(?:npm_[0-9A-Za-z]{36})$).+$/"
34
+ ]
35
+ }
28
36
  }
29
37
  ]
30
38
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "3.4.2-0",
3
+ "version": "3.4.2-1",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",