@doist/todoist-api-typescript 5.1.1 → 5.1.2

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.
@@ -284,17 +284,16 @@ var TodoistApi = /** @class */ (function () {
284
284
  TodoistApi.prototype.moveTasks = function (ids, args, requestId) {
285
285
  var _a;
286
286
  return __awaiter(this, void 0, void 0, function () {
287
- var uuid, commands, syncRequest, response, syncTasks;
287
+ var commands, syncRequest, response, syncTasks;
288
288
  return __generator(this, function (_b) {
289
289
  switch (_b.label) {
290
290
  case 0:
291
291
  if (ids.length > MAX_COMMAND_COUNT) {
292
292
  throw new types_1.TodoistRequestError("Maximum number of items is ".concat(MAX_COMMAND_COUNT), 400);
293
293
  }
294
- uuid = (0, uuid_1.v4)();
295
294
  commands = ids.map(function (id) { return ({
296
295
  type: 'item_move',
297
- uuid: uuid,
296
+ uuid: (0, uuid_1.v4)(),
298
297
  args: __assign(__assign(__assign({ id: id }, (args.projectId && { project_id: args.projectId })), (args.sectionId && { section_id: args.sectionId })), (args.parentId && { parent_id: args.parentId })),
299
298
  }); });
300
299
  syncRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doist/todoist-api-typescript",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "A typescript wrapper for the Todoist REST API.",
5
5
  "author": "Doist developers",
6
6
  "repository": "git@github.com:doist/todoist-api-typescript.git",
@@ -48,7 +48,7 @@
48
48
  "husky": "8.0.3",
49
49
  "jest": "29.5.0",
50
50
  "lint-staged": "13.1.4",
51
- "npm-run-all": "4.1.5",
51
+ "npm-run-all2": "5.0.0",
52
52
  "prettier": "3.3.2",
53
53
  "rimraf": "3.0.2",
54
54
  "ts-jest": "29.0.5",