directus-template-cli 0.5.0-beta.8 → 0.5.0-beta.9

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.
@@ -49,8 +49,12 @@ exports.default = loadFlows;
49
49
  async function loadOperations(operations) {
50
50
  core_1.ux.action.status = `Loading ${operations.length} operations`;
51
51
  try {
52
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
53
- const opsIds = operations.map(({ reject, resolve, ...rest }) => rest);
52
+ const opsIds = operations.map(operation => {
53
+ const opCopy = { ...operation };
54
+ delete opCopy.reject;
55
+ delete opCopy.resolve;
56
+ return opCopy;
57
+ });
54
58
  await sdk_2.api.client.request((0, sdk_1.createOperations)(opsIds));
55
59
  const results = await Promise.allSettled(operations.map(operation => sdk_2.api.client.request((0, sdk_1.updateOperation)(operation.id, {
56
60
  reject: operation.reject,
@@ -234,5 +234,5 @@
234
234
  ]
235
235
  }
236
236
  },
237
- "version": "0.5.0-beta.8"
237
+ "version": "0.5.0-beta.9"
238
238
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus-template-cli",
3
- "version": "0.5.0-beta.8",
3
+ "version": "0.5.0-beta.9",
4
4
  "description": "CLI Utility for applying templates to a Directus instance.",
5
5
  "author": "bryantgillespie @bryantgillespie",
6
6
  "bin": {