@mcowger/plexus-cli 0.0.37 → 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.
- package/package.json +1 -1
- package/src/cli.ts +4 -0
package/package.json
CHANGED
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
|
|