@mcowger/plexus-cli 0.0.36 → 0.0.38

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/package.json +1 -1
  2. package/src/cli.ts +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcowger/plexus-cli",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "Dynamic command line client for Plexus management APIs",
5
5
  "repository": {
6
6
  "type": "git",
package/src/cli.ts CHANGED
@@ -171,6 +171,10 @@ export function isStreamOperation(operation: OpenApiOperation): boolean {
171
171
  }
172
172
 
173
173
  export function isRisky(operation: Operation): boolean {
174
+ // GET/HEAD are safe methods — the name heuristic below only guards
175
+ // state-changing calls (its substrings also match harmless words like
176
+ // the "reset" in "provider-presets").
177
+ if (operation.method === 'get' || operation.method === 'head') return false;
174
178
  return operation.method === 'delete' || RISKY_OPERATION.test(`${operation.id} ${operation.path}`);
175
179
  }
176
180