@salesforce/plugin-trust 2.6.21 → 2.6.23

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.
@@ -1,53 +1,77 @@
1
1
  {
2
- "version": "2.6.21",
3
2
  "commands": {
4
3
  "plugins:trust:verify": {
5
- "id": "plugins:trust:verify",
6
- "summary": "Validate a digital signature.",
7
- "description": "Verifies the digital signature on an npm package matches the signature and key stored at the expected URLs.",
8
- "strict": true,
9
- "pluginName": "@salesforce/plugin-trust",
10
- "pluginAlias": "@salesforce/plugin-trust",
11
- "pluginType": "core",
12
4
  "aliases": [],
5
+ "args": {},
6
+ "description": "Verifies the digital signature on an npm package matches the signature and key stored at the expected URLs.",
13
7
  "examples": [
14
8
  "<%= config.bin %> <%= command.id %> --npm @scope/npmName --registry http://my.repo.org:4874",
15
9
  "<%= config.bin %> <%= command.id %> --npm @scope/npmName"
16
10
  ],
17
11
  "flags": {
18
12
  "json": {
19
- "name": "json",
20
- "type": "boolean",
21
13
  "description": "Format output as json.",
22
14
  "helpGroup": "GLOBAL",
23
- "allowNo": false
15
+ "name": "json",
16
+ "allowNo": false,
17
+ "type": "boolean"
24
18
  },
25
19
  "npm": {
26
- "name": "npm",
27
- "type": "option",
28
20
  "char": "n",
29
- "summary": "Specify the npm name. This can include a tag/version.",
21
+ "name": "npm",
30
22
  "required": true,
31
- "multiple": false
23
+ "summary": "Specify the npm name. This can include a tag/version.",
24
+ "hasDynamicHelp": false,
25
+ "multiple": false,
26
+ "type": "option"
32
27
  },
33
28
  "registry": {
34
- "name": "registry",
35
- "type": "option",
36
29
  "char": "r",
30
+ "name": "registry",
37
31
  "summary": "The registry name. The behavior is the same as npm.",
38
- "multiple": false
32
+ "hasDynamicHelp": false,
33
+ "multiple": false,
34
+ "type": "option"
39
35
  },
40
36
  "loglevel": {
41
- "name": "loglevel",
42
- "type": "option",
43
- "hidden": true,
44
- "multiple": false,
45
37
  "deprecated": {
46
38
  "message": "The loglevel flag is no longer in use on this command. You may use it without error, but it will be ignored.\nSet the log level using the `SFDX_LOG_LEVEL` environment variable."
47
- }
39
+ },
40
+ "hidden": true,
41
+ "name": "loglevel",
42
+ "hasDynamicHelp": false,
43
+ "multiple": false,
44
+ "type": "option"
48
45
  }
49
46
  },
50
- "args": {}
47
+ "hasDynamicHelp": false,
48
+ "hiddenAliases": [],
49
+ "id": "plugins:trust:verify",
50
+ "pluginAlias": "@salesforce/plugin-trust",
51
+ "pluginName": "@salesforce/plugin-trust",
52
+ "pluginType": "core",
53
+ "strict": true,
54
+ "summary": "Validate a digital signature.",
55
+ "enableJsonFlag": true,
56
+ "SF_ENV": "SF_ENV",
57
+ "isESM": true,
58
+ "relativePath": [
59
+ "lib",
60
+ "commands",
61
+ "plugins",
62
+ "trust",
63
+ "verify.js"
64
+ ],
65
+ "aliasPermutations": [],
66
+ "permutations": [
67
+ "plugins:trust:verify",
68
+ "trust:plugins:verify",
69
+ "trust:verify:plugins",
70
+ "plugins:verify:trust",
71
+ "verify:plugins:trust",
72
+ "verify:trust:plugins"
73
+ ]
51
74
  }
52
- }
75
+ },
76
+ "version": "2.6.23"
53
77
  }
package/package.json CHANGED
@@ -1,70 +1,48 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-trust",
3
3
  "description": "validate a digital signature for a npm package",
4
- "version": "2.6.21",
4
+ "version": "2.6.23",
5
5
  "author": "Salesforce",
6
- "main": "lib/index.js",
7
6
  "bin": {
8
7
  "sf-trust": "bin/dev"
9
8
  },
10
9
  "bugs": "https://github.com/forcedotcom/cli/issues",
11
10
  "dependencies": {
12
- "@oclif/core": "^2.15.0",
13
- "@salesforce/core": "^5.3.9",
14
- "@salesforce/sf-plugins-core": "^3.1.23",
15
- "got": "^11",
11
+ "@oclif/core": "^3.10.1",
12
+ "@salesforce/core": "^5.3.16",
13
+ "@salesforce/sf-plugins-core": "^4.0.0",
14
+ "got": "^13.0.0",
16
15
  "npm": "9.8.1",
17
16
  "npm-run-path": "^4.0.1",
18
17
  "proxy-agent": "^6.3.1",
19
- "shelljs": "^0.8.4",
20
- "tslib": "^2"
18
+ "shelljs": "^0.8.4"
21
19
  },
22
20
  "devDependencies": {
23
- "@oclif/plugin-command-snapshot": "^4.0.14",
24
- "@salesforce/cli-plugins-testkit": "^4.4.6",
25
- "@salesforce/dev-config": "^4.0.1",
26
- "@salesforce/dev-scripts": "^5.11.0",
27
- "@salesforce/plugin-command-reference": "^3.0.40",
28
- "@salesforce/plugin-telemetry": "^2.3.6",
29
- "@salesforce/prettier-config": "^0.0.3",
30
- "@salesforce/ts-sinon": "^1.4.17",
31
- "@swc/core": "1.3.39",
21
+ "@oclif/plugin-command-snapshot": "^5.0.1",
22
+ "@salesforce/cli-plugins-testkit": "^5.0.1",
23
+ "@salesforce/dev-scripts": "^6.0.3",
24
+ "@salesforce/plugin-command-reference": "^3.0.43",
25
+ "@salesforce/plugin-telemetry": "^2.3.8",
26
+ "@salesforce/ts-sinon": "^1.4.18",
32
27
  "@types/shelljs": "^0.8.9",
33
- "@types/sinon-chai": "^3.2.10",
34
- "@typescript-eslint/eslint-plugin": "^5.62.0",
35
- "@typescript-eslint/parser": "^5.61.0",
36
- "chai": "^4.3.10",
37
- "eslint": "^8.51.0",
38
- "eslint-config-prettier": "^8.10.0",
39
- "eslint-config-salesforce": "^2.0.2",
40
- "eslint-config-salesforce-license": "^0.2.0",
41
- "eslint-config-salesforce-typescript": "^1.1.2",
42
- "eslint-plugin-header": "^3.1.1",
43
- "eslint-plugin-import": "2.28.1",
44
- "eslint-plugin-jsdoc": "^43.0.5",
45
- "eslint-plugin-sf-plugin": "^1.16.9",
46
- "husky": "^7.0.4",
47
- "mocha": "^9.1.3",
48
- "nyc": "^15.1.0",
49
- "oclif": "^3.17.2",
50
- "prettier": "^2.8.8",
51
- "pretty-quick": "^3.1.0",
28
+ "@types/sinon-chai": "^3.2.11",
29
+ "eslint-plugin-sf-plugin": "^1.16.13",
30
+ "oclif": "^4.0.3",
52
31
  "shx": "0.3.4",
53
- "sinon": "10.0.0",
54
32
  "sinon-chai": "^3.7.0",
55
- "ts-node": "^10.0.0",
56
- "typescript": "^4.9.5",
57
- "wireit": "^0.14.0"
33
+ "ts-node": "^10.9.1",
34
+ "typescript": "^5.2.2"
58
35
  },
59
36
  "config": {},
60
37
  "engines": {
61
- "node": ">=16.0.0"
38
+ "node": ">=18.0.0"
62
39
  },
63
40
  "files": [
64
41
  "bin",
65
42
  "/lib",
66
43
  "/messages",
67
- "/oclif.manifest.json"
44
+ "/oclif.manifest.json",
45
+ "/oclif.lock"
68
46
  ],
69
47
  "homepage": "https://github.com/salesforcecli/plugin-trust",
70
48
  "keywords": [
@@ -72,7 +50,9 @@
72
50
  "salesforce",
73
51
  "sfdx",
74
52
  "salesforcedx",
75
- "sfdx-plugin"
53
+ "sfdx-plugin",
54
+ "sf",
55
+ "sf-plugin"
76
56
  ],
77
57
  "license": "BSD-3-Clause",
78
58
  "oclif": {
@@ -97,19 +77,21 @@
97
77
  }
98
78
  }
99
79
  }
100
- }
80
+ },
81
+ "flexibleTaxonomy": true,
82
+ "topicSeparator": " "
101
83
  },
102
84
  "repository": "salesforcecli/plugin-trust",
103
85
  "scripts": {
104
86
  "build": "wireit",
105
87
  "clean": "sf-clean",
106
88
  "clean-all": "sf-clean all",
107
- "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json",
89
+ "clean:lib": "shx rm -rf lib && shx rm -rf coverage && shx rm -rf .nyc_output && shx rm -f oclif.manifest.json oclif.lock",
108
90
  "compile": "wireit",
109
91
  "docs": "sf-docs",
110
92
  "format": "wireit",
111
93
  "lint": "wireit",
112
- "postpack": "shx rm -f oclif.manifest.json",
94
+ "postpack": "shx rm -f oclif.manifest.json oclif.lock",
113
95
  "prepack": "sf-prepack",
114
96
  "prepare": "sf-install",
115
97
  "test": "wireit",
@@ -196,7 +178,7 @@
196
178
  "output": []
197
179
  },
198
180
  "test:command-reference": {
199
- "command": "\"./bin/dev\" commandreference:generate --erroronwarnings",
181
+ "command": "ts-node \"./bin/dev.js\" commandreference:generate --erroronwarnings",
200
182
  "files": [
201
183
  "src/**/*.ts",
202
184
  "messages/**",
@@ -207,7 +189,7 @@
207
189
  ]
208
190
  },
209
191
  "test:deprecation-policy": {
210
- "command": "\"./bin/dev\" snapshot:compare",
192
+ "command": "ts-node \"./bin/dev.js\" snapshot:compare",
211
193
  "files": [
212
194
  "src/**/*.ts"
213
195
  ],
@@ -217,7 +199,7 @@
217
199
  ]
218
200
  },
219
201
  "test:json-schema": {
220
- "command": "\"./bin/dev\" schema:compare",
202
+ "command": "ts-node \"./bin/dev.js\" schema:compare",
221
203
  "files": [
222
204
  "src/**/*.ts",
223
205
  "schemas"
@@ -225,8 +207,10 @@
225
207
  "output": []
226
208
  }
227
209
  },
210
+ "exports": "./lib/index.js",
211
+ "type": "module",
228
212
  "sfdx": {
229
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/2.6.21.crt",
230
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/2.6.21.sig"
213
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/2.6.23.crt",
214
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/2.6.23.sig"
231
215
  }
232
216
  }
package/bin/dev DELETED
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const oclif = require('@oclif/core');
4
-
5
- const path = require('path');
6
- const project = path.join(__dirname, '..', 'tsconfig.json');
7
-
8
- // In dev mode -> use ts-node and dev plugins
9
- process.env.NODE_ENV = 'development';
10
-
11
- // Enable SWC for faster typescript compiling
12
- require('ts-node').register({ project, swc: true });
13
-
14
- // In dev mode, always show stack traces
15
- const g = (global.oclif = global.oclif || {});
16
-
17
- // In dev mode, always show stack traces
18
- global.oclif.debug = true;
19
-
20
- // Start the CLI
21
- oclif.run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));
package/bin/run DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- require('@oclif/core').run().then(require('@oclif/core/flush')).catch(require('@oclif/core/handle'));