@tskmgr/common 2.2.0 → 2.4.1

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/README.md CHANGED
@@ -4,4 +4,4 @@ This library was generated with [Nx](https://nx.dev).
4
4
 
5
5
  ## Running unit tests
6
6
 
7
- Run `nx test common` to execute the unit tests via [Jest](https://jestjs.io).
7
+ Run `nx test common` to execute the unit tests via [Vitest](https://vitest.dev).
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@tskmgr/common",
3
- "version": "2.2.0",
3
+ "version": "2.4.1",
4
4
  "license": "MIT",
5
+ "types": "./src/index.d.ts",
5
6
  "main": "./src/index.js",
6
7
  "type": "commonjs"
7
- }
8
+ }
package/src/lib/common.js CHANGED
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.common = void 0;
3
+ exports.common = common;
4
4
  function common() {
5
5
  return 'common';
6
6
  }
7
- exports.common = common;
8
7
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../libs/common/src/lib/common.ts"],"names":[],"mappings":";;;AAAA,SAAgB,MAAM;IACpB,OAAO,QAAQ,CAAC;AAClB,CAAC;AAFD,wBAEC"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../libs/common/src/lib/common.ts"],"names":[],"mappings":";;AAAA,wBAEC;AAFD,SAAgB,MAAM;IACpB,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -9,5 +9,9 @@ export declare class CreateTaskDto {
9
9
  readonly arguments?: string[];
10
10
  readonly options?: object;
11
11
  readonly priority?: TaskPriority;
12
+ /**
13
+ * @deprecated Use `dependencies` instead.
14
+ */
12
15
  readonly dependsOn?: string[];
16
+ readonly dependencies?: string[];
13
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"create-tasks.dto.js","sourceRoot":"","sources":["../../../../../../../libs/common/src/lib/tasks/dto/create-tasks.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC"}
1
+ {"version":3,"file":"create-tasks.dto.js","sourceRoot":"","sources":["../../../../../../../libs/common/src/lib/tasks/dto/create-tasks.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,aAAa;CAYzB;AAZD,sCAYC"}
@@ -1,6 +1,6 @@
1
1
  export declare enum TaskPriority {
2
- Newest = "NEWEST",
3
- Oldest = "OLDEST",
4
- Longest = "LONGEST",
2
+ Newest = "NEWEST",// FIFO
3
+ Oldest = "OLDEST",// LIFO
4
+ Longest = "LONGEST",// Average duration DESC
5
5
  Shortest = "SHORTEST"
6
6
  }