@salesforce/plugin-trust 4.1.0 → 4.1.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.
- package/README.md +14 -30
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@salesforce/plugin-trust) [](https://npmjs.org/package/@salesforce/plugin-trust) [](https://opensource.org/license/apache-2-0)
|
|
4
4
|
|
|
5
|
-
Verify the authenticity of a plugin being installed with `plugins
|
|
5
|
+
Verify the authenticity of a plugin being installed with `plugins install`.
|
|
6
6
|
|
|
7
|
-
This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/
|
|
7
|
+
This plugin is bundled with the [Salesforce CLI](https://developer.salesforce.com/tools/salesforcecli). For more information on the CLI, read the [getting started guide](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_intro.htm).
|
|
8
8
|
|
|
9
9
|
We always recommend using the latest version of these commands bundled with the CLI, however, you can install a specific version or tag if needed.
|
|
10
10
|
|
|
@@ -32,7 +32,7 @@ Signature - The plugin tarball's RSA-SHA256 signature is verified against the pu
|
|
|
32
32
|
## Install
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
-
|
|
35
|
+
sf plugins install trust@x.y.z
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
## Issues
|
|
@@ -41,22 +41,7 @@ Please report any issues at <https://github.com/forcedotcom/cli/issues>
|
|
|
41
41
|
|
|
42
42
|
## Contributing
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
2. Create a new issue before starting your project so that we can keep track of
|
|
46
|
-
what you are trying to add/fix. That way, we can also offer suggestions or
|
|
47
|
-
let you know if there is already an effort in progress.
|
|
48
|
-
3. Fork this repository.
|
|
49
|
-
4. [Build the plugin locally](#build)
|
|
50
|
-
5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
|
|
51
|
-
6. Edit the code in your fork.
|
|
52
|
-
7. Write appropriate tests for your changes. Try to achieve at least 95% code coverage on any new code. No pull request will be accepted without unit tests.
|
|
53
|
-
8. Sign CLA (see [CLA](#cla) below).
|
|
54
|
-
9. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.
|
|
55
|
-
|
|
56
|
-
### CLA
|
|
57
|
-
|
|
58
|
-
External contributors will be required to sign a Contributor's License
|
|
59
|
-
Agreement. You can do so by going to <https://cla.salesforce.com/sign-cla>.
|
|
44
|
+
If you're interested in contributing, take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide.
|
|
60
45
|
|
|
61
46
|
### Build
|
|
62
47
|
|
|
@@ -67,24 +52,23 @@ To build the plugin locally, make sure to have yarn installed and run the follow
|
|
|
67
52
|
git clone git@github.com:salesforcecli/plugin-trust
|
|
68
53
|
|
|
69
54
|
# Install the dependencies and compile
|
|
70
|
-
yarn
|
|
71
|
-
yarn build
|
|
55
|
+
yarn && yarn build
|
|
72
56
|
```
|
|
73
57
|
|
|
74
|
-
To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
|
|
58
|
+
To use your plugin, run using the local `./bin/dev.js` or `./bin/dev.cmd` file.
|
|
75
59
|
|
|
76
60
|
```bash
|
|
77
61
|
# Run using local run file.
|
|
78
|
-
./bin/dev plugins
|
|
62
|
+
./bin/dev.js plugins trust
|
|
79
63
|
```
|
|
80
64
|
|
|
81
65
|
There should be no differences when running via the Salesforce CLI or using the local run file. However, it can be useful to link the plugin to do some additional testing or run your commands from anywhere on your machine.
|
|
82
66
|
|
|
83
67
|
```bash
|
|
84
|
-
# Link your plugin to the
|
|
85
|
-
|
|
68
|
+
# Link your plugin to the sf cli
|
|
69
|
+
sf plugins link .
|
|
86
70
|
# To verify
|
|
87
|
-
|
|
71
|
+
sf plugins
|
|
88
72
|
```
|
|
89
73
|
|
|
90
74
|
## Commands
|
|
@@ -131,7 +115,7 @@ EXAMPLES
|
|
|
131
115
|
$ @salesforce/plugin-trust plugins trust allowlist add --name @scope/my-plugin --name another-plugin
|
|
132
116
|
```
|
|
133
117
|
|
|
134
|
-
_See code: [src/commands/plugins/trust/allowlist/add.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.
|
|
118
|
+
_See code: [src/commands/plugins/trust/allowlist/add.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.1/src/commands/plugins/trust/allowlist/add.ts)_
|
|
135
119
|
|
|
136
120
|
## `@salesforce/plugin-trust plugins trust allowlist list`
|
|
137
121
|
|
|
@@ -159,7 +143,7 @@ EXAMPLES
|
|
|
159
143
|
$ @salesforce/plugin-trust plugins trust allowlist list
|
|
160
144
|
```
|
|
161
145
|
|
|
162
|
-
_See code: [src/commands/plugins/trust/allowlist/list.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.
|
|
146
|
+
_See code: [src/commands/plugins/trust/allowlist/list.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.1/src/commands/plugins/trust/allowlist/list.ts)_
|
|
163
147
|
|
|
164
148
|
## `@salesforce/plugin-trust plugins trust allowlist remove`
|
|
165
149
|
|
|
@@ -196,7 +180,7 @@ EXAMPLES
|
|
|
196
180
|
$ @salesforce/plugin-trust plugins trust allowlist remove --name @scope/my-plugin --name another-plugin
|
|
197
181
|
```
|
|
198
182
|
|
|
199
|
-
_See code: [src/commands/plugins/trust/allowlist/remove.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.
|
|
183
|
+
_See code: [src/commands/plugins/trust/allowlist/remove.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.1/src/commands/plugins/trust/allowlist/remove.ts)_
|
|
200
184
|
|
|
201
185
|
## `@salesforce/plugin-trust plugins trust verify`
|
|
202
186
|
|
|
@@ -225,6 +209,6 @@ EXAMPLES
|
|
|
225
209
|
$ @salesforce/plugin-trust plugins trust verify --npm @scope/npmName
|
|
226
210
|
```
|
|
227
211
|
|
|
228
|
-
_See code: [src/commands/plugins/trust/verify.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.
|
|
212
|
+
_See code: [src/commands/plugins/trust/verify.ts](https://github.com/salesforcecli/plugin-trust/blob/4.1.1/src/commands/plugins/trust/verify.ts)_
|
|
229
213
|
|
|
230
214
|
<!-- commandsstop -->
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/plugin-trust",
|
|
3
3
|
"description": "validate a digital signature for a npm package",
|
|
4
|
-
"version": "4.1.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sf-trust": "bin/run.js"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@salesforce/sf-plugins-core": "^13.0.4",
|
|
18
18
|
"cross-spawn": "^7.0.6",
|
|
19
19
|
"got": "^13.0.0",
|
|
20
|
-
"npm": "^11.21.
|
|
20
|
+
"npm": "^11.21.2",
|
|
21
21
|
"npm-run-path": "^4.0.1",
|
|
22
22
|
"proxy-agent": "^6.5.0",
|
|
23
23
|
"semver": "^7.8.2",
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
},
|
|
256
256
|
"type": "module",
|
|
257
257
|
"sfdx": {
|
|
258
|
-
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/4.1.
|
|
259
|
-
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/4.1.
|
|
258
|
+
"publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/4.1.1.crt",
|
|
259
|
+
"signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-trust/4.1.1.sig"
|
|
260
260
|
}
|
|
261
261
|
}
|