@salesforce/plugin-api 2.0.27 → 2.0.28

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 CHANGED
@@ -10,22 +10,7 @@ Please report any issues at https://github.com/forcedotcom/cli/issues
10
10
 
11
11
  ## Contributing
12
12
 
13
- 1. Please read our [Code of Conduct](CODE_OF_CONDUCT.md)
14
- 2. Create a new issue before starting your project so that we can keep track of
15
- what you are trying to add/fix. That way, we can also offer suggestions or
16
- let you know if there is already an effort in progress.
17
- 3. Fork this repository.
18
- 4. [Build the plugin locally](#build)
19
- 5. Create a _topic_ branch in your fork. Note, this step is recommended but technically not required if contributing using a fork.
20
- 6. Edit the code in your fork.
21
- 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.
22
- 8. Sign CLA (see [CLA](#cla) below).
23
- 9. Send us a pull request when you are done. We'll review your code, suggest any needed changes, and merge it in.
24
-
25
- ### CLA
26
-
27
- External contributors will be required to sign a Contributor's License
28
- Agreement. You can do so by going to https://cla.salesforce.com/sign-cla.
13
+ If you're interested in contributing, take a look at the [CONTRIBUTING](CONTRIBUTING.md) guide.
29
14
 
30
15
  ### Build
31
16
 
@@ -33,17 +18,17 @@ To build the plugin locally, make sure to have yarn installed and run the follow
33
18
 
34
19
  ```bash
35
20
  # Clone the repository
36
- git clone git@github.com:salesforcecli/plugin-template-sf
21
+ git clone git@github.com:salesforcecli/plugin-api
37
22
 
38
23
  # Install the dependencies and compile
39
24
  yarn && yarn build
40
25
  ```
41
26
 
42
- To use your plugin, run using the local `./bin/dev` or `./bin/dev.cmd` file.
27
+ To use your plugin, run using the local `./bin/dev.js` or `./bin/dev.cmd` file.
43
28
 
44
29
  ```bash
45
30
  # Run using local run file.
46
- ./bin/dev hello world
31
+ ./bin/dev.js api request rest '/services/data/v62.0/limits' -o myOrg@example.com
47
32
  ```
48
33
 
49
34
  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.
@@ -113,7 +98,7 @@ EXAMPLES
113
98
  $ sf api request graphql --body example.txt --stream-to-file output.txt --include
114
99
  ```
115
100
 
116
- _See code: [src/commands/api/request/graphql.ts](https://github.com/salesforcecli/plugin-api/blob/2.0.27/src/commands/api/request/graphql.ts)_
101
+ _See code: [src/commands/api/request/graphql.ts](https://github.com/salesforcecli/plugin-api/blob/2.0.28/src/commands/api/request/graphql.ts)_
117
102
 
118
103
  ## `sf api request rest [URL]`
119
104
 
@@ -223,7 +208,7 @@ FLAG DESCRIPTIONS
223
208
  https://github.com/salesforcecli/plugin-api/tree/main/test/test-files/data-project.
224
209
  ```
225
210
 
226
- _See code: [src/commands/api/request/rest.ts](https://github.com/salesforcecli/plugin-api/blob/2.0.27/src/commands/api/request/rest.ts)_
211
+ _See code: [src/commands/api/request/rest.ts](https://github.com/salesforcecli/plugin-api/blob/2.0.28/src/commands/api/request/rest.ts)_
227
212
 
228
213
  <!-- commandsstop -->
229
214
 
@@ -247,5 +247,5 @@
247
247
  ]
248
248
  }
249
249
  },
250
- "version": "2.0.27"
250
+ "version": "2.0.28"
251
251
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-api",
3
3
  "description": "A plugin to call API endpoints via CLI commands",
4
- "version": "2.0.27",
4
+ "version": "2.0.28",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "enableO11y": true,
@@ -18,10 +18,10 @@
18
18
  "proxy-agent": "^6.5.0"
19
19
  },
20
20
  "devDependencies": {
21
- "@oclif/plugin-command-snapshot": "^6.0.6",
21
+ "@oclif/plugin-command-snapshot": "^6.0.7",
22
22
  "@salesforce/cli-plugins-testkit": "^5.3.66",
23
23
  "@salesforce/dev-scripts": "^15.0.0",
24
- "@salesforce/plugin-command-reference": "^3.1.142",
24
+ "@salesforce/plugin-command-reference": "^3.1.147",
25
25
  "@types/chai": "^4.3.17",
26
26
  "@types/mocha": "^10.0.10",
27
27
  "@types/node": "^18",
@@ -30,7 +30,7 @@
30
30
  "eslint-config-salesforce-typescript": "^6.0.0",
31
31
  "eslint-plugin-sf-plugin": "^3.0.1",
32
32
  "nock": "^13.5.4",
33
- "oclif": "^5.0.1",
33
+ "oclif": "^5.0.2",
34
34
  "ts-node": "^10.9.2",
35
35
  "typescript": "^6.0.0"
36
36
  },
@@ -216,7 +216,7 @@
216
216
  "exports": "./lib/index.js",
217
217
  "type": "module",
218
218
  "sfdx": {
219
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-api/2.0.27.crt",
220
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-api/2.0.27.sig"
219
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-api/2.0.28.crt",
220
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-api/2.0.28.sig"
221
221
  }
222
222
  }