@layerzerolabs/dependency-graph 0.2.90 → 0.2.91

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/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@layerzerolabs/dependency-graph",
3
- "version": "0.2.90",
3
+ "version": "0.2.91",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  "types": "./dist/index.d.ts",
9
- "require": "./dist/index.cjs",
10
9
  "import": "./dist/index.js",
11
- "default": "./dist/index.cjs"
10
+ "default": "./dist/index.js"
12
11
  },
13
- "main": "./dist/index.cjs",
12
+ "main": "./dist/index.js",
14
13
  "module": "./dist/index.js",
15
14
  "types": "./dist/index.d.ts",
16
15
  "files": [
@@ -18,8 +17,8 @@
18
17
  ],
19
18
  "devDependencies": {
20
19
  "tsup": "^8.4.0",
21
- "@layerzerolabs/tsup-configuration": "0.2.90",
22
- "@layerzerolabs/typescript-configuration": "0.2.90"
20
+ "@layerzerolabs/tsup-configuration": "0.2.91",
21
+ "@layerzerolabs/typescript-configuration": "0.2.91"
23
22
  },
24
23
  "publishConfig": {
25
24
  "access": "public",
@@ -27,6 +26,7 @@
27
26
  },
28
27
  "externalRepoConfig": {
29
28
  "targets": [
29
+ "console-pen-test",
30
30
  "onesig-client"
31
31
  ]
32
32
  },
package/dist/4LBVNANM.cjs DELETED
@@ -1,37 +0,0 @@
1
- 'use strict';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
-
6
- // src/dependencyNode.ts
7
- var DependencyNode = class {
8
- static {
9
- __name(this, "DependencyNode");
10
- }
11
- name;
12
- dependencies;
13
- constructor({ name, dependencies = {} }) {
14
- this.name = name;
15
- this.dependencies = dependencies;
16
- }
17
- };
18
- var withDependencies = /* @__PURE__ */ __name((node, extraDeps) => {
19
- const mergedDeps = {
20
- ...node.dependencies,
21
- ...Object.fromEntries(extraDeps.map((dep, i) => [
22
- `__extra${i}`,
23
- dep
24
- ]))
25
- };
26
- const descriptors = Object.getOwnPropertyDescriptors(node);
27
- descriptors.dependencies = {
28
- ...descriptors.dependencies,
29
- value: mergedDeps
30
- };
31
- return Object.create(Object.getPrototypeOf(node), descriptors);
32
- }, "withDependencies");
33
-
34
- exports.DependencyNode = DependencyNode;
35
- exports.withDependencies = withDependencies;
36
- //# sourceMappingURL=4LBVNANM.cjs.map
37
- //# sourceMappingURL=4LBVNANM.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/dependencyNode.ts"],"names":["DependencyNode","name","dependencies","withDependencies","node","extraDeps","mergedDeps","Object","fromEntries","map","dep","i","descriptors","getOwnPropertyDescriptors","value","create","getPrototypeOf"],"mappings":";;;;;;AAUO,IAAeA,iBAAf,MAAeA;EAVtB;;;AAcoBC,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;AAQO,IAAMC,gBAAAA,mBAAmB,MAAA,CAAA,CAI5BC,IAAAA,EACAC,SAAAA,KAAAA;AAEA,EAAA,MAAMC,UAAAA,GAAa;AACf,IAAA,GAAGF,IAAAA,CAAKF,YAAAA;AACR,IAAA,GAAGK,OAAOC,WAAAA,CAAYH,SAAAA,CAAUI,GAAAA,CAAI,CAACC,KAAKC,CAAAA,KAAM;AAAC,MAAA,CAAA,OAAA,EAAUA,CAAAA,CAAAA,CAAAA;AAAKD,MAAAA;KAAI,CAAA;AACxE,GAAA;AACA,EAAA,MAAME,WAAAA,GAAqCL,MAAAA,CAAOM,yBAAAA,CAA0BT,IAAAA,CAAAA;AAC5EQ,EAAAA,WAAAA,CAAYV,YAAAA,GAAe;AAAE,IAAA,GAAGU,WAAAA,CAAYV,YAAAA;IAAcY,KAAAA,EAAOR;AAAW,GAAA;AAC5E,EAAA,OAAOC,OAAOQ,MAAAA,CAAOR,MAAAA,CAAOS,cAAAA,CAAeZ,IAAAA,GAAOQ,WAAAA,CAAAA;AACtD,CAAA,EAdgC,kBAAA","file":"4LBVNANM.cjs","sourcesContent":["/**\n * <!-- anchor:DependencyNode -->\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\ntype IndexedDeps<Extra extends readonly DependencyNode[]> = {\n [K in keyof Extra as K extends `${number}` ? `__extra${K}` : never]: Extra[K];\n};\n\nexport const withDependencies = <\n N extends DependencyNode,\n const Extra extends readonly DependencyNode[],\n>(\n node: N,\n extraDeps: Extra,\n): N & { dependencies: N['dependencies'] & IndexedDeps<Extra> } => {\n const mergedDeps = {\n ...node.dependencies,\n ...Object.fromEntries(extraDeps.map((dep, i) => [`__extra${i}`, dep])),\n };\n const descriptors: PropertyDescriptorMap = Object.getOwnPropertyDescriptors(node);\n descriptors.dependencies = { ...descriptors.dependencies, value: mergedDeps };\n return Object.create(Object.getPrototypeOf(node), descriptors);\n};\n"]}
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var _4LBVNANM_cjs = require('./4LBVNANM.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "DependencyNode", {
8
- enumerable: true,
9
- get: function () { return _4LBVNANM_cjs.DependencyNode; }
10
- });
11
- Object.defineProperty(exports, "withDependencies", {
12
- enumerable: true,
13
- get: function () { return _4LBVNANM_cjs.withDependencies; }
14
- });
15
- //# sourceMappingURL=dependencyNode.cjs.map
16
- //# sourceMappingURL=dependencyNode.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"dependencyNode.cjs"}
package/dist/index.cjs DELETED
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var _4LBVNANM_cjs = require('./4LBVNANM.cjs');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "DependencyNode", {
8
- enumerable: true,
9
- get: function () { return _4LBVNANM_cjs.DependencyNode; }
10
- });
11
- Object.defineProperty(exports, "withDependencies", {
12
- enumerable: true,
13
- get: function () { return _4LBVNANM_cjs.withDependencies; }
14
- });
15
- //# sourceMappingURL=index.cjs.map
16
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}