@layerzerolabs/dependency-graph 0.0.19 → 0.0.21

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.
@@ -1,26 +1,26 @@
1
1
 
2
- > @layerzerolabs/dependency-graph@0.0.2 build /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph
2
+ > @layerzerolabs/dependency-graph@0.0.2 build /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/dependencyNode.ts, src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
- CLI Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph/tsup.config.ts
8
+ CLI Using tsup config: /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph/tsup.config.ts
9
9
  CLI Target: es2022
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
13
  CJS dist/dependencyNode.cjs 285.00 B
14
14
  CJS dist/index.cjs 267.00 B
15
- CJS dist/QHT3NC3M.cjs 503.00 B
15
+ CJS dist/XBOMFZB4.cjs 503.00 B
16
16
  CJS dist/dependencyNode.cjs.map 79.00 B
17
- CJS dist/QHT3NC3M.cjs.map 1.48 KB
18
17
  CJS dist/index.cjs.map 70.00 B
19
- CJS ⚡️ Build success in 122ms
20
- ESM dist/dependencyNode.js 133.00 B
18
+ CJS dist/XBOMFZB4.cjs.map 1.51 KB
19
+ CJS ⚡️ Build success in 73ms
21
20
  ESM dist/index.js 115.00 B
22
- ESM dist/RL6YOPZH.js 472.00 B
21
+ ESM dist/dependencyNode.js 133.00 B
22
+ ESM dist/UBM64M7K.js 472.00 B
23
23
  ESM dist/dependencyNode.js.map 78.00 B
24
- ESM dist/RL6YOPZH.js.map 1.47 KB
25
24
  ESM dist/index.js.map 69.00 B
26
- ESM ⚡️ Build success in 123ms
25
+ ESM dist/UBM64M7K.js.map 1.51 KB
26
+ ESM ⚡️ Build success in 74ms
@@ -1,4 +1,4 @@
1
1
 
2
- > @layerzerolabs/dependency-graph@0.0.2 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/dependency-graph
2
+ > @layerzerolabs/dependency-graph@0.0.2 lint /home/runner/work/monorepo-internal/monorepo-internal/packages/framework/dependency-graph
3
3
  > eslint . --max-warnings 0
4
4
 
@@ -15,5 +15,5 @@ var DependencyNode = class {
15
15
  };
16
16
 
17
17
  export { DependencyNode };
18
- //# sourceMappingURL=RL6YOPZH.js.map
19
- //# sourceMappingURL=RL6YOPZH.js.map
18
+ //# sourceMappingURL=UBM64M7K.js.map
19
+ //# sourceMappingURL=UBM64M7K.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies"],"mappings":";;;;AASO,IAAeA,iBAAf,MAAeA;EATtB;;;AAUoBC,EAAAA,IAAAA;AACAC,EAAAA,YAAAA;AAChB,EAAA,WAAA,CAAY,EACRD,IAAAA,EACAC,YAAAA,GAAe,IAAmB,EAInC;AACC,IAAA,IAAA,CAAKD,IAAAA,GAAOA,IAAAA;AACZ,IAAA,IAAA,CAAKC,YAAAA,GAAeA,YAAAA;AACxB,EAAA;AACJ","file":"RL6YOPZH.js","sourcesContent":["/**\n * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,\n * but as an abstract class, lacks the required information to actually be resolved to anything.\n * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition\n * @param name the name of this node. It should be unique across the entire graph.\n * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.\n * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does\n * not have to be unique.\n */\nexport abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
1
+ {"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies"],"mappings":";;;;AASO,IAAeA,iBAAf,MAAeA;EATtB;;;AAaoBC,EAAAA,IAAAA;AACAC,EAAAA,YAAAA;AAChB,EAAA,WAAA,CAAY,EACRD,IAAAA,EACAC,YAAAA,GAAe,IAAmB,EAInC;AACC,IAAA,IAAA,CAAKD,IAAAA,GAAOA,IAAAA;AACZ,IAAA,IAAA,CAAKC,YAAAA,GAAeA,YAAAA;AACxB,EAAA;AACJ","file":"UBM64M7K.js","sourcesContent":["/**\n * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,\n * but as an abstract class, lacks the required information to actually be resolved to anything.\n * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition\n * @param name the name of this node. It should be unique across the entire graph.\n * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.\n * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does\n * not have to be unique.\n */\nexport abstract class DependencyNode<\n Name extends string = string,\n _Dependencies extends Dependencies = Dependencies,\n> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
@@ -17,5 +17,5 @@ var DependencyNode = class {
17
17
  };
18
18
 
19
19
  exports.DependencyNode = DependencyNode;
20
- //# sourceMappingURL=QHT3NC3M.cjs.map
21
- //# sourceMappingURL=QHT3NC3M.cjs.map
20
+ //# sourceMappingURL=XBOMFZB4.cjs.map
21
+ //# sourceMappingURL=XBOMFZB4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies"],"mappings":";;;;;;AASO,IAAeA,iBAAf,MAAeA;EATtB;;;AAUoBC,EAAAA,IAAAA;AACAC,EAAAA,YAAAA;AAChB,EAAA,WAAA,CAAY,EACRD,IAAAA,EACAC,YAAAA,GAAe,IAAmB,EAInC;AACC,IAAA,IAAA,CAAKD,IAAAA,GAAOA,IAAAA;AACZ,IAAA,IAAA,CAAKC,YAAAA,GAAeA,YAAAA;AACxB,EAAA;AACJ","file":"QHT3NC3M.cjs","sourcesContent":["/**\n * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,\n * but as an abstract class, lacks the required information to actually be resolved to anything.\n * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition\n * @param name the name of this node. It should be unique across the entire graph.\n * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.\n * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does\n * not have to be unique.\n */\nexport abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
1
+ {"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies"],"mappings":";;;;;;AASO,IAAeA,iBAAf,MAAeA;EATtB;;;AAaoBC,EAAAA,IAAAA;AACAC,EAAAA,YAAAA;AAChB,EAAA,WAAA,CAAY,EACRD,IAAAA,EACAC,YAAAA,GAAe,IAAmB,EAInC;AACC,IAAA,IAAA,CAAKD,IAAAA,GAAOA,IAAAA;AACZ,IAAA,IAAA,CAAKC,YAAAA,GAAeA,YAAAA;AACxB,EAAA;AACJ","file":"XBOMFZB4.cjs","sourcesContent":["/**\n * Dependency nodes are abstract nodes in the dependency graph. They're used to build the graph,\n * but as an abstract class, lacks the required information to actually be resolved to anything.\n * If you want to implement a new dependency node, see ObjectDefinition or FactoryDefinition\n * @param name the name of this node. It should be unique across the entire graph.\n * @param dependencies a map of other nodes that this node depends on. These children will be resolved first.\n * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does\n * not have to be unique.\n */\nexport abstract class DependencyNode<\n Name extends string = string,\n _Dependencies extends Dependencies = Dependencies,\n> {\n public readonly name: Name;\n public readonly dependencies: _Dependencies;\n constructor({\n name,\n dependencies = {} as _Dependencies,\n }: {\n name: Name;\n dependencies?: _Dependencies;\n }) {\n this.name = name;\n this.dependencies = dependencies;\n }\n}\n\nexport type Dependencies = { [key: string]: DependencyNode<any, any> };\n"]}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var QHT3NC3M_cjs = require('./QHT3NC3M.cjs');
3
+ var XBOMFZB4_cjs = require('./XBOMFZB4.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DependencyNode", {
8
8
  enumerable: true,
9
- get: function () { return QHT3NC3M_cjs.DependencyNode; }
9
+ get: function () { return XBOMFZB4_cjs.DependencyNode; }
10
10
  });
11
11
  //# sourceMappingURL=dependencyNode.cjs.map
12
12
  //# sourceMappingURL=dependencyNode.cjs.map
@@ -7,7 +7,7 @@
7
7
  * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does
8
8
  * not have to be unique.
9
9
  */
10
- export declare abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {
10
+ export declare abstract class DependencyNode<Name extends string = string, _Dependencies extends Dependencies = Dependencies> {
11
11
  readonly name: Name;
12
12
  readonly dependencies: _Dependencies;
13
13
  constructor({ name, dependencies, }: {
@@ -1 +1 @@
1
- {"version":3,"file":"dependencyNode.d.ts","sourceRoot":"","sources":["../src/dependencyNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,8BAAsB,cAAc,CAAC,IAAI,SAAS,MAAM,EAAE,aAAa,SAAS,YAAY;IACxF,SAAgB,IAAI,EAAE,IAAI,CAAC;IAC3B,SAAgB,YAAY,EAAE,aAAa,CAAC;gBAChC,EACR,IAAI,EACJ,YAAkC,GACrC,EAAE;QACC,IAAI,EAAE,IAAI,CAAC;QACX,YAAY,CAAC,EAAE,aAAa,CAAC;KAChC;CAIJ;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"dependencyNode.d.ts","sourceRoot":"","sources":["../src/dependencyNode.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,8BAAsB,cAAc,CAChC,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD,SAAgB,IAAI,EAAE,IAAI,CAAC;IAC3B,SAAgB,YAAY,EAAE,aAAa,CAAC;gBAChC,EACR,IAAI,EACJ,YAAkC,GACrC,EAAE;QACC,IAAI,EAAE,IAAI,CAAC;QACX,YAAY,CAAC,EAAE,aAAa,CAAC;KAChC;CAIJ;AAED,MAAM,MAAM,YAAY,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;CAAE,CAAC"}
@@ -1,3 +1,3 @@
1
- export { DependencyNode } from './RL6YOPZH.js';
1
+ export { DependencyNode } from './UBM64M7K.js';
2
2
  //# sourceMappingURL=dependencyNode.js.map
3
3
  //# sourceMappingURL=dependencyNode.js.map
package/dist/index.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var QHT3NC3M_cjs = require('./QHT3NC3M.cjs');
3
+ var XBOMFZB4_cjs = require('./XBOMFZB4.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "DependencyNode", {
8
8
  enumerable: true,
9
- get: function () { return QHT3NC3M_cjs.DependencyNode; }
9
+ get: function () { return XBOMFZB4_cjs.DependencyNode; }
10
10
  });
11
11
  //# sourceMappingURL=index.cjs.map
12
12
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { DependencyNode } from './RL6YOPZH.js';
1
+ export { DependencyNode } from './UBM64M7K.js';
2
2
  //# sourceMappingURL=index.js.map
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/dependency-graph",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -15,9 +15,9 @@
15
15
  "types": "./dist/index.d.ts",
16
16
  "devDependencies": {
17
17
  "tsup": "^8.4.0",
18
- "@layerzerolabs/typescript-configuration": "0.0.19",
19
- "@layerzerolabs/typescript-utils": "0.0.19",
20
- "@layerzerolabs/tsup-configuration": "0.0.19"
18
+ "@layerzerolabs/tsup-configuration": "0.0.21",
19
+ "@layerzerolabs/typescript-configuration": "0.0.21",
20
+ "@layerzerolabs/typescript-utils": "0.0.21"
21
21
  },
22
22
  "publishConfig": {
23
23
  "access": "restricted",
@@ -7,7 +7,10 @@
7
7
  * The key of the dependencies map should be some arbitrary name within the context of *this* node. It does
8
8
  * not have to be unique.
9
9
  */
10
- export abstract class DependencyNode<Name extends string, _Dependencies extends Dependencies> {
10
+ export abstract class DependencyNode<
11
+ Name extends string = string,
12
+ _Dependencies extends Dependencies = Dependencies,
13
+ > {
11
14
  public readonly name: Name;
12
15
  public readonly dependencies: _Dependencies;
13
16
  constructor({