@uniformdev/cli 19.207.0 → 19.207.1-alpha.11

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/dist/index.mjs +10 -10
  2. package/package.json +8 -8
package/dist/index.mjs CHANGED
@@ -320,7 +320,7 @@ async function syncEngine({
320
320
  });
321
321
  }
322
322
  };
323
- actions.push(process2(sourceObject, targetObject));
323
+ actions.push(() => process2(sourceObject, targetObject));
324
324
  }
325
325
  }
326
326
  ids.forEach((i) => targetItems.delete(i));
@@ -352,15 +352,15 @@ async function syncEngine({
352
352
  [...invalidTargetObjects, targetObject].forEach((o) => {
353
353
  (Array.isArray(o?.id) ? o?.id : [o?.id])?.forEach((i) => i && targetItems.delete(i));
354
354
  });
355
- const deletes = invalidTargetObjects.filter((io) => typeof io !== "undefined").map(async (io) => {
356
- await processDelete(io);
355
+ const deletes = invalidTargetObjects.filter((io) => typeof io !== "undefined").map((io) => {
356
+ return () => processDelete(io);
357
357
  });
358
358
  if (targetObject) {
359
- deletes.push(processDelete(targetObject));
359
+ deletes.push(() => processDelete(targetObject));
360
360
  }
361
- actions.push(Promise.all(deletes).then(() => process2(sourceObject, ids[0])));
361
+ actions.push(() => Promise.all(deletes.map((d) => d())).then(() => process2(sourceObject, ids[0])));
362
362
  } else {
363
- actions.push(process2(sourceObject, ids[0]));
363
+ actions.push(() => process2(sourceObject, ids[0]));
364
364
  }
365
365
  }
366
366
  }
@@ -371,12 +371,12 @@ async function syncEngine({
371
371
  );
372
372
  }
373
373
  const deletes = [];
374
- targetItems.forEach(async (object) => {
375
- deletes.push(processDelete(object));
374
+ targetItems.forEach((object) => {
375
+ deletes.push(() => processDelete(object));
376
376
  });
377
- await Promise.all(deletes);
377
+ await Promise.all(deletes.map((d) => d()));
378
378
  }
379
- await Promise.all(actions);
379
+ await Promise.all(actions.map((a) => a()));
380
380
  await Promise.all([source.onSyncComplete?.(false), target.onSyncComplete?.(true)]);
381
381
  }
382
382
  var SyncEngineError = class _SyncEngineError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/cli",
3
- "version": "19.207.0",
3
+ "version": "19.207.1-alpha.11+682b1954b3",
4
4
  "description": "Uniform command line interface tool",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./cli.js",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@thi.ng/mime": "^2.2.23",
30
- "@uniformdev/assets": "19.207.0",
31
- "@uniformdev/canvas": "19.207.0",
32
- "@uniformdev/context": "19.207.0",
33
- "@uniformdev/files": "19.207.0",
34
- "@uniformdev/project-map": "19.207.0",
35
- "@uniformdev/redirect": "19.207.0",
30
+ "@uniformdev/assets": "19.207.1-alpha.11+682b1954b3",
31
+ "@uniformdev/canvas": "19.207.1-alpha.11+682b1954b3",
32
+ "@uniformdev/context": "19.207.1-alpha.11+682b1954b3",
33
+ "@uniformdev/files": "19.207.1-alpha.11+682b1954b3",
34
+ "@uniformdev/project-map": "19.207.1-alpha.11+682b1954b3",
35
+ "@uniformdev/redirect": "19.207.1-alpha.11+682b1954b3",
36
36
  "call-bind": "^1.0.2",
37
37
  "colorette": "2.0.20",
38
38
  "cosmiconfig": "9.0.0",
@@ -78,5 +78,5 @@
78
78
  "publishConfig": {
79
79
  "access": "public"
80
80
  },
81
- "gitHead": "e90334452c3b50b7657f7ae55ffb9c6fe97febb3"
81
+ "gitHead": "682b1954b3ddfeb43952e44367c314cfe6feda69"
82
82
  }