@ductape/cli 0.2.22 → 0.2.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.
@@ -19,7 +19,7 @@ export async function runGeneratePayload(opts) {
19
19
  method: opts.method,
20
20
  targets,
21
21
  include_session: true,
22
- include_cache: true,
22
+ include_cache: false,
23
23
  schema_mode: 'best_effort',
24
24
  });
25
25
  printJson(result, Boolean(opts.json));
@@ -7,7 +7,12 @@ export async function generateExecutablePayload(apiUrl, creds, request) {
7
7
  Authorization: `Bearer ${creds.auth_token}`,
8
8
  'x-access-key': creds.public_key,
9
9
  },
10
- body: JSON.stringify(request),
10
+ body: JSON.stringify({
11
+ ...request,
12
+ operation_family: request.operation_family.toLowerCase() === 'features'
13
+ ? 'feature'
14
+ : request.operation_family,
15
+ }),
11
16
  });
12
17
  const body = await res.json();
13
18
  if (!res.ok) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ductape/cli",
3
- "version": "0.2.22",
3
+ "version": "0.2.23",
4
4
  "description": "Ductape CLI — local platform, login, link projects, and manage resources via the proxy (Workbench-compatible)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@ export async function runGeneratePayload(opts: {
29
29
  method: opts.method,
30
30
  targets,
31
31
  include_session: true,
32
- include_cache: true,
32
+ include_cache: false,
33
33
  schema_mode: 'best_effort',
34
34
  });
35
35
 
@@ -49,7 +49,12 @@ export async function generateExecutablePayload(
49
49
  Authorization: `Bearer ${creds.auth_token}`,
50
50
  'x-access-key': creds.public_key,
51
51
  },
52
- body: JSON.stringify(request),
52
+ body: JSON.stringify({
53
+ ...request,
54
+ operation_family: request.operation_family.toLowerCase() === 'features'
55
+ ? 'feature'
56
+ : request.operation_family,
57
+ }),
53
58
  });
54
59
 
55
60
  const body = await res.json();