@layerzerolabs/base-definitions 0.2.90 → 0.2.92

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/base-definitions",
3
- "version": "0.2.90",
3
+ "version": "0.2.92",
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,16 +17,16 @@
18
17
  ],
19
18
  "dependencies": {
20
19
  "zod": "4.3.5",
21
- "@layerzerolabs/dependency-graph": "0.2.90",
22
- "@layerzerolabs/dfs": "0.2.90",
23
- "@layerzerolabs/typescript-utils": "0.2.90",
24
- "@layerzerolabs/function-pointer": "0.2.90"
20
+ "@layerzerolabs/dependency-graph": "0.2.92",
21
+ "@layerzerolabs/typescript-utils": "0.2.92",
22
+ "@layerzerolabs/dfs": "0.2.92",
23
+ "@layerzerolabs/function-pointer": "0.2.92"
25
24
  },
26
25
  "devDependencies": {
27
26
  "tsup": "^8.4.0",
28
27
  "vitest": "^3.2.3",
29
- "@layerzerolabs/tsup-configuration": "0.2.90",
30
- "@layerzerolabs/typescript-configuration": "0.2.90"
28
+ "@layerzerolabs/tsup-configuration": "0.2.92",
29
+ "@layerzerolabs/typescript-configuration": "0.2.92"
31
30
  },
32
31
  "publishConfig": {
33
32
  "access": "public",
@@ -35,6 +34,7 @@
35
34
  },
36
35
  "externalRepoConfig": {
37
36
  "targets": [
37
+ "console-pen-test",
38
38
  "onesig-client"
39
39
  ]
40
40
  },
package/dist/JKTGUQY4.cjs DELETED
@@ -1,74 +0,0 @@
1
- 'use strict';
2
-
3
- var YJF4D23A_cjs = require('./YJF4D23A.cjs');
4
-
5
- // src/lzyringe.ts
6
- var DependencyStore = class {
7
- static {
8
- YJF4D23A_cjs.__name(this, "DependencyStore");
9
- }
10
- store = {};
11
- throwIfRegistered(key) {
12
- if (this.store[key] != null) {
13
- throw new Error(`${key} is already registered`);
14
- }
15
- }
16
- throwIfUnregistered(key) {
17
- if (this.store[key] == null) {
18
- throw new Error(`${key} is not registered`);
19
- }
20
- }
21
- /** Registers a value that will be resolved literally by resolve()
22
- * @throws if already registered
23
- */
24
- register(key, value) {
25
- this.throwIfRegistered(key);
26
- this.store[key] = {
27
- type: "value",
28
- value
29
- };
30
- }
31
- /** Registers a promise value that will be resolved literally by resolve()
32
- * @throws if already registered
33
- */
34
- registerPromise(key, value) {
35
- this.throwIfRegistered(key);
36
- this.store[key] = {
37
- type: "value",
38
- value
39
- };
40
- }
41
- /** Registers a factory function that will be called by resolve()
42
- * @throws if already registered
43
- */
44
- registerFactory(key, factory) {
45
- this.throwIfRegistered(key);
46
- this.store[key] = {
47
- type: "factory",
48
- value: factory
49
- };
50
- }
51
- /** Unregisters a key
52
- * @throws if not registered
53
- */
54
- unregister(key) {
55
- this.throwIfUnregistered(key);
56
- this.store[key] = void 0;
57
- }
58
- /**
59
- * Drops all registered values
60
- */
61
- invalidate() {
62
- this.store = {};
63
- }
64
- /** Resolves a key to a value */
65
- resolve(key) {
66
- this.throwIfUnregistered(key);
67
- const stored = this.store[key];
68
- return stored.type === "factory" ? stored.value() : stored.value;
69
- }
70
- };
71
-
72
- exports.DependencyStore = DependencyStore;
73
- //# sourceMappingURL=JKTGUQY4.cjs.map
74
- //# sourceMappingURL=JKTGUQY4.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/lzyringe.ts"],"names":["DependencyStore","store","throwIfRegistered","key","Error","throwIfUnregistered","register","value","type","registerPromise","registerFactory","factory","unregister","undefined","invalidate","resolve","stored"],"mappings":";;;;;A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A;;;;AAKOC,EAAAA,UAAAA,CAAWT,GAAAA,EAAa;AAC3B,IAAA,IAAA,CAAKE,oBAAoBF,GAAAA,CAAAA;AACzB,IAAA,IAAA,CAAKF,KAAAA,CAAME,GAAAA,CAAAA,GAAOU,MAAAA;AACtB,EAAA;;;;EAKOC,UAAAA,GAAa;AAChB,IAAA,IAAA,CAAKb,QAAQ,EAAC;AAClB,EAAA;;AAGOc,EAAAA,OAAAA,CAAQZ,GAAAA,EAAa;AACxB,IAAA,IAAA,CAAKE,oBAAoBF,GAAAA,CAAAA;AACzB,IAAA,MAAMa,MAAAA,GAAS,IAAA,CAAKf,KAAAA,CAAME,GAAAA,CAAAA;AAC1B,IAAA,OAAOa,OAAOR,IAAAA,KAAS,SAAA,GAAYQ,MAAAA,CAAOT,KAAAA,KAAUS,MAAAA,CAAOT,KAAAA;AAC/D,EAAA;AACJ","file":"JKTGUQY4.cjs","sourcesContent":["type StoreValue = {\n type: 'value';\n value: any;\n};\ntype StoreFactory = {\n type: 'factory';\n value: () => any;\n};\ntype StoreAny = StoreValue | StoreFactory;\n\nexport class DependencyStore {\n private store: Record<string, StoreAny | undefined> = {};\n\n private throwIfRegistered(key: string) {\n if (this.store[key] != null) {\n throw new Error(`${key} is already registered`);\n }\n }\n\n private throwIfUnregistered(key: string) {\n if (this.store[key] == null) {\n throw new Error(`${key} is not registered`);\n }\n }\n\n /** Registers a value that will be resolved literally by resolve()\n * @throws if already registered\n */\n public register<T>(key: string, value: T extends Promise<any> ? never : T) {\n this.throwIfRegistered(key);\n this.store[key] = { type: 'value', value };\n }\n\n /** Registers a promise value that will be resolved literally by resolve()\n * @throws if already registered\n */\n public registerPromise(key: string, value: Promise<any>) {\n this.throwIfRegistered(key);\n this.store[key] = { type: 'value', value };\n }\n\n /** Registers a factory function that will be called by resolve()\n * @throws if already registered\n */\n public registerFactory(key: string, factory: () => any) {\n this.throwIfRegistered(key);\n this.store[key] = { type: 'factory', value: factory };\n }\n\n /** Unregisters a key\n * @throws if not registered\n */\n public unregister(key: string) {\n this.throwIfUnregistered(key);\n this.store[key] = undefined;\n }\n\n /**\n * Drops all registered values\n */\n public invalidate() {\n this.store = {};\n }\n\n /** Resolves a key to a value */\n public resolve(key: string) {\n this.throwIfUnregistered(key);\n const stored = this.store[key]!;\n return stored.type === 'factory' ? stored.value() : stored.value;\n }\n}\n"]}
package/dist/KY4LVDYW.cjs DELETED
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var XFGZZMRR_cjs = require('./XFGZZMRR.cjs');
4
- var YJF4D23A_cjs = require('./YJF4D23A.cjs');
5
-
6
- // src/utils.ts
7
- var extractSchemaFromFactory = /* @__PURE__ */ YJF4D23A_cjs.__name((factory, dimension) => {
8
- const schema = (factory.dimensionToSchemaMap.byDimension && Object.values(factory.dimensionToSchemaMap.byDimension).find(([dim]) => XFGZZMRR_cjs.serializeDimensions(dim) === XFGZZMRR_cjs.serializeDimensions(dimension))?.[1]) ?? factory.dimensionToSchemaMap.base;
9
- if (!schema?.shape) {
10
- throw new Error(`Couldn't resolve the schema of factory ${factory.name} for dim ${JSON.stringify(dimension)}`);
11
- }
12
- return schema;
13
- }, "extractSchemaFromFactory");
14
-
15
- exports.extractSchemaFromFactory = extractSchemaFromFactory;
16
- //# sourceMappingURL=KY4LVDYW.cjs.map
17
- //# sourceMappingURL=KY4LVDYW.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils.ts"],"names":["extractSchemaFromFactory","__name","factory","dimension","schema","dimensionToSchemaMap","byDimension","Object","values","find","dim","serializeDimensions","base","shape","Error","name","JSON","stringify"],"mappings":";;;;;;AAOO,IAAMA,wBAAAA,mBAA2BC,mBAAA,CAAA,CACpCC,OAAAA,EACAC,SAAAA,KAAAA;AAEA,EAAA,MAAMC,MAAAA,GAAAA,CACDF,OAAAA,CAAQG,oBAAAA,CAAqBC,WAAAA,IAC1BC,MAAAA,CAAOC,OAAON,OAAAA,CAAQG,oBAAAA,CAAqBC,WAAW,CAAA,CAAoBG,IAAAA,CACtE,CAAC,CAACC,GAAAA,CAAAA,KAASC,gCAAAA,CAAoBD,GAAAA,CAAAA,KAASC,gCAAAA,CAAoBR,SAAAA,CAAAA,CAAAA,GAC5D,CAAA,CAAA,KACRD,OAAAA,CAAQG,oBAAAA,CAAqBO,IAAAA;AACjC,EAAA,IAAI,CAACR,QAAQS,KAAAA,EAAO;AAChB,IAAA,MAAM,IAAIC,KAAAA,CACN,CAAA,uCAAA,EAA0CZ,OAAAA,CAAQa,IAAI,YAAYC,IAAAA,CAAKC,SAAAA,CAAUd,SAAAA,CAAAA,CAAAA,CAAY,CAAA;AAErG,EAAA;AAEA,EAAA,OAAOC,MAAAA;AACX,CAAA,EAjBwC,0BAAA","file":"KY4LVDYW.cjs","sourcesContent":["import type z from 'zod';\n\nimport type { AdvancedRecord } from '@layerzerolabs/typescript-utils';\n\nimport type { Factory } from './definitions';\nimport { type FactoryDefinition, serializeDimensions } from './definitions';\n\nexport const extractSchemaFromFactory = <Dim extends z.ZodObject>(\n factory: FactoryDefinition<any, Dim, any, any, any> | Factory<any, any, any, any>,\n dimension: z.infer<Dim>,\n): z.ZodObject => {\n const schema =\n (factory.dimensionToSchemaMap.byDimension &&\n Object.values(factory.dimensionToSchemaMap.byDimension as AdvancedRecord).find(\n ([dim]) => serializeDimensions(dim) === serializeDimensions(dimension),\n )?.[1]) ??\n factory.dimensionToSchemaMap.base;\n if (!schema?.shape) {\n throw new Error(\n `Couldn't resolve the schema of factory ${factory.name} for dim ${JSON.stringify(dimension)}`,\n );\n }\n\n return schema;\n};\n"]}
package/dist/XFGZZMRR.cjs DELETED
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- var YJF4D23A_cjs = require('./YJF4D23A.cjs');
4
- var dependencyGraph = require('@layerzerolabs/dependency-graph');
5
-
6
- var FactoryDefinition = class extends dependencyGraph.DependencyNode {
7
- static {
8
- YJF4D23A_cjs.__name(this, "FactoryDefinition");
9
- }
10
- dimensions;
11
- specialization;
12
- dimensionToSchemaMap;
13
- getFactory;
14
- constructor({ dimensions, specialization, dimensionToSchemaMap, getFactory, ...args }) {
15
- super(args);
16
- this.dimensions = dimensions;
17
- this.specialization = specialization;
18
- this.dimensionToSchemaMap = dimensionToSchemaMap;
19
- this.getFactory = getFactory;
20
- }
21
- };
22
- var ObjectDefinition = class extends dependencyGraph.DependencyNode {
23
- static {
24
- YJF4D23A_cjs.__name(this, "ObjectDefinition");
25
- }
26
- schema;
27
- constructor({ schema, ...args }) {
28
- super(args);
29
- this.schema = schema;
30
- }
31
- };
32
- var serializeDimensions = /* @__PURE__ */ YJF4D23A_cjs.__name((dim = {}) => {
33
- return Object.keys(dim).length ? Object.entries(dim).sort().map(([dimName, dimVal]) => `${dimName}_${dimVal}`).join("&") : "_base";
34
- }, "serializeDimensions");
35
- var deserializeDimensions = /* @__PURE__ */ YJF4D23A_cjs.__name((serializedDim) => {
36
- if (serializedDim === "_base") {
37
- return {};
38
- }
39
- return Object.fromEntries(serializedDim.split("&").map((pair) => {
40
- const [dimName, ...dimValParts] = pair.split("_");
41
- return [
42
- dimName,
43
- dimValParts.join("_")
44
- ];
45
- }));
46
- }, "deserializeDimensions");
47
-
48
- exports.FactoryDefinition = FactoryDefinition;
49
- exports.ObjectDefinition = ObjectDefinition;
50
- exports.deserializeDimensions = deserializeDimensions;
51
- exports.serializeDimensions = serializeDimensions;
52
- //# sourceMappingURL=XFGZZMRR.cjs.map
53
- //# sourceMappingURL=XFGZZMRR.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/definitions.ts"],"names":["FactoryDefinition","DependencyNode","dimensions","specialization","dimensionToSchemaMap","getFactory","args","ObjectDefinition","schema","serializeDimensions","__name","dim","Object","keys","length","entries","sort","map","dimName","dimVal","join","deserializeDimensions","serializedDim","fromEntries","split","pair","dimValParts"],"mappings":";;;;;AAkIO,IAAMA,iBAAAA,GAAN,cAMGC,8BAAAA,CAAAA;EArIV;;;AAsIoBC,EAAAA,UAAAA;AAC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MAAAA,CAAOW,YACVD,aAAAA,CAAcE,KAAAA,CAAM,GAAA,CAAA,CAAKP,GAAAA,CAAI,CAACQ,IAAAA,KAAAA;AAC1B,IAAA,MAAM,CAACP,OAAAA,EAAS,GAAGQ,WAAAA,CAAAA,GAAeD,IAAAA,CAAKD,MAAM,GAAA,CAAA;AAC7C,IAAA,OAAO;AAACN,MAAAA,OAAAA;AAASQ,MAAAA,WAAAA,CAAYN,KAAK,GAAA;;AACtC,EAAA,CAAA,CAAA,CAAA;AAER,CAAA,EAXqC,uBAAA","file":"XFGZZMRR.cjs","sourcesContent":["import type { z } from 'zod';\n\nimport type { Dependencies } from '@layerzerolabs/dependency-graph';\nimport { DependencyNode } from '@layerzerolabs/dependency-graph';\nimport type { FunctionPointer } from '@layerzerolabs/function-pointer';\nimport type {\n AdvancedRecord,\n AdvancedRecordLookup,\n Merge,\n MethodNameOf,\n RemoveNever,\n UnionToIntersection,\n} from '@layerzerolabs/typescript-utils';\nimport type { IsAny } from '@layerzerolabs/typescript-utils';\n\nexport type DimensionToSchemaMap<DimConstraint extends object = object> = {\n byDimension?: AdvancedRecord<DimConstraint, z.ZodType>;\n base: z.ZodType;\n};\n\nexport type FactorySpecialization<DMap extends DimensionToSchemaMap = DimensionToSchemaMap> = {\n spec: z.ZodObject<any>;\n exempt: readonly MethodNameOf<GetSupersetOfModelsFromSchema<DMap>>[];\n};\n\nexport type WithInjectedSpecialization<T, Specialization extends FactorySpecialization<any>> = [\n {},\n] extends [z.infer<Specialization['spec']>]\n ? T\n : {\n [K in keyof T]: K extends Specialization['exempt'][number]\n ? T[K]\n : T[K] extends (...args: infer A) => infer R\n ? (specialization: z.infer<Specialization['spec']>, ...args: A) => R\n : T[K];\n };\n\nexport type WithSpecializeMethod<WithInjection, WithoutInjection, S> = {} extends S\n ? WithoutInjection\n : WithInjection extends (...args: infer Args) => infer Ret\n ? (...args: Args) => Ret\n : WithInjection & {\n specialize: (specialization: S) => WithoutInjection;\n };\n\nexport type GetModelFromSchema<DMap extends DimensionToSchemaMap, Dim> =\n IsAny<Dim> extends true\n ? z.infer<DMap['base']>\n : AdvancedRecordLookup<DMap['byDimension'], Dim> extends never\n ? z.infer<DMap['base']>\n : Merge<z.infer<DMap['base']>, z.infer<AdvancedRecordLookup<DMap['byDimension'], Dim>>>;\n\nexport type GetSupersetOfModelsFromSchema<DMap extends DimensionToSchemaMap> = UnionToIntersection<\n {\n [Key in keyof DMap['byDimension']]: DMap['byDimension'][Key] extends [any, any]\n ? z.infer<DMap['byDimension'][Key][1]>\n : never;\n }[keyof DMap['byDimension']]\n> &\n z.infer<DMap['base']>;\n\ntype GetImplFunctionWithConditionalOptionalDim<Dim, Return> = {} extends Dim\n ? (dim?: Dim) => Return\n : (dim: Dim) => Return;\n\ntype GetImplOverloads<\n Dim extends z.ZodObject<any>,\n Specialization extends FactorySpecialization<DMap>,\n DMap extends DimensionToSchemaMap<z.infer<Dim>>,\n> = UnionToIntersection<\n | {\n [I in keyof DMap['byDimension']]: DMap['byDimension'][I] extends readonly [infer K, any]\n ? {\n getImpl: GetImplFunctionWithConditionalOptionalDim<\n K,\n WithSpecializeMethod<\n WithInjectedSpecialization<GetModelFromSchema<DMap, K>, Specialization>,\n GetModelFromSchema<DMap, K>,\n z.infer<Specialization['spec']>\n >\n >;\n }\n : never;\n }[keyof DMap['byDimension']]\n | {\n getImpl: GetImplFunctionWithConditionalOptionalDim<\n z.infer<Dim>,\n WithSpecializeMethod<\n WithInjectedSpecialization<z.infer<DMap['base']>, Specialization>,\n z.infer<DMap['base']>,\n z.infer<Specialization['spec']>\n >\n >;\n }\n>;\n\nexport type Factory<\n _Dependencies extends Dependencies,\n Dim extends z.ZodObject<any>,\n Specialization extends FactorySpecialization<DMap>,\n DMap extends DimensionToSchemaMap<z.infer<Dim>>,\n> = {\n name: string;\n implKeys: string[];\n dimensionToSchemaMap: DMap;\n} & GetImplOverloads<Dim, Specialization, DMap>;\n\nexport type GetFactory<\n _Dependencies extends Dependencies,\n Dim extends z.ZodObject<any>,\n Specialization extends FactorySpecialization<DMap>,\n DMap extends DimensionToSchemaMap<z.infer<Dim>>,\n> = () =>\n | Factory<_Dependencies, Dim, Specialization, DMap>\n | Promise<Factory<_Dependencies, Dim, Specialization, DMap>>;\n\n/**\n * <!-- anchor:FactoryDefinition -->\n * Factory definitions are a type of dependency node that shall be resolved to a *factory*.\n * A factory is an object that provides a getImpl method which accepts some parameters `dim`,\n * and returns some object `getImplMetadata.getModel(dim)`.\n * That is, a factory definition is given by the set of parameters it uses to get its implementations,\n * and a function defining the schema it will return for each set of parameters.\n * @param name inherited from {@link DependencyNode}\n * @param dependencies inherited from {@link DependencyNode}\n * @param dimensions a Zod schema for the parameters this factory operates on.\n * @param dimensionToSchemaMap A map from dimension objects to the Zod schema for the implementation.\n * @param getFactory a method that should return an object with a `getImpl` method that returns\n * entities adhering to the schema for the corresponding `getModel` call\n */\nexport class FactoryDefinition<\n Name extends string,\n Dim extends z.ZodObject<any>,\n const Specialization extends FactorySpecialization<DMap>,\n DMap extends DimensionToSchemaMap<z.infer<Dim>>,\n _Dependencies extends Dependencies,\n> extends DependencyNode<Name, _Dependencies> {\n public readonly dimensions: Dim;\n public readonly specialization: Specialization;\n public readonly dimensionToSchemaMap: DMap;\n public readonly getFactory: GetFactory<_Dependencies, Dim, Specialization, DMap>;\n constructor({\n dimensions,\n specialization,\n dimensionToSchemaMap,\n getFactory,\n ...args\n }: {\n dimensions: Dim;\n specialization: Specialization;\n dimensionToSchemaMap: DMap;\n getFactory: GetFactory<_Dependencies, Dim, Specialization, DMap>;\n } & ConstructorParameters<typeof DependencyNode<Name, _Dependencies>>[0]) {\n super(args);\n this.dimensions = dimensions;\n this.specialization = specialization;\n this.dimensionToSchemaMap = dimensionToSchemaMap;\n this.getFactory = getFactory;\n }\n}\n\n/**\n * <!-- anchor:ObjectDefinition -->\n * An object definition is a dependency node that refers to some entity\n * matching a given schema. That is, it may be resolved to any entity\n * that adheres to the {@link schema}.\n * The object definition is abstract, as it cannot be meaningfully resolved without\n * additional information. For an example of an object definition, see ReflexiveObjectDefinition or ContextDefinition\n * @param name inherited from {@link DependencyNode}\n * @param dependencies inherited from {@link DependencyNode}\n * @param schema a Zod schema defining the expected resolution for this definition\n */\nexport abstract class ObjectDefinition<\n Name extends string,\n Schema extends z.ZodSchema,\n _Dependencies extends Dependencies,\n> extends DependencyNode<Name, _Dependencies> {\n public readonly schema: Schema;\n\n constructor({\n schema,\n ...args\n }: {\n schema: Schema;\n } & ConstructorParameters<typeof DependencyNode<Name, _Dependencies>>[0]) {\n super(args);\n this.schema = schema;\n }\n}\n\nexport type Definition<Name extends string> =\n | FactoryDefinition<Name, any, any, any, any>\n | ObjectDefinition<Name, any, any>;\n\n/**\n * Infers the expected type of a definition once it has been resolved\n */\nexport type ResolvedDefinition<Definition extends DependencyNode<any, any>> =\n Definition extends ObjectDefinition<any, infer Schema, any>\n ? z.infer<Schema>\n : Definition extends FactoryDefinition<\n any,\n infer Dim,\n infer Specialization,\n infer DMap,\n any\n >\n ? Factory<Definition['dependencies'], Dim, Specialization, DMap>\n : Definition extends FactoryDefinition<any, any, any, any, any>\n ? Factory<\n Definition['dependencies'],\n Definition['dimensions'],\n Definition['specialization'],\n Definition['dimensionToSchemaMap']\n >\n : unknown;\n\n/**\n * Given a record from string to definition, maps each definition T to ResolvedDefinition<T>. Removes `definition` suffix from name\n */\nexport type ResolvedDefinitionMap<Deps extends Dependencies> = {\n [Key in keyof Deps as Key extends `${infer Name}Definition` ? Name : Key]: ResolvedDefinition<\n Deps[Key]\n >;\n};\n\n/**\n * For some factory definition F and some dimension D s.t. D ⊇ F.dimensions, infers the expected return type of\n * ResolvedDefinition<F>.getImpl(D)\n */\nexport type ResolvedFactoryImplementation<Definition extends DependencyNode<any, any>, Dim> =\n Definition extends FactoryDefinition<any, any, any, any, any>\n ? WithSpecializeMethod<\n WithInjectedSpecialization<\n GetModelFromSchema<Definition['dimensionToSchemaMap'], Dim>,\n Definition['specialization']\n >,\n GetModelFromSchema<Definition['dimensionToSchemaMap'], Dim>,\n z.infer<Definition['specialization']['spec']>\n >\n : never;\n\ntype RemoveDefinitionSuffix<Key extends string> = Key extends `${infer Name}Definition`\n ? Name\n : Key;\ntype ReplaceFactorySuffix<Key extends string> = Key extends `${infer Name}Factory`\n ? `${Name}Impl`\n : Key;\n\n/**\n * Given a record from string to definition and some dimension D, maps each definition T to ResolvedFactoryImplementation<T, D>\n * Removes Definition | ActivityFactory | Factory from the suffix of the key\n */\nexport type ResolvedFactoryImplementationMap<Deps extends Dependencies, Dim> = RemoveNever<{\n [Key in keyof Deps as Key extends string\n ? ReplaceFactorySuffix<RemoveDefinitionSuffix<Key>>\n : never]: ResolvedFactoryImplementation<Deps[Key], Dim>;\n}>;\n\ntype ActivityFactoryContext<\n _FactoryDefinition extends FactoryDefinition<any, any, any, any, any>,\n Dim,\n _PrivateSchemaExtension extends z.ZodObject = z.ZodObject<{}, z.core.$strip>,\n> = {\n getFunctionPointer: <\n MethodName extends MethodNameOf<\n ResolvedFactoryImplementation<_FactoryDefinition, Dim> &\n z.infer<_PrivateSchemaExtension>\n >,\n >(\n methodName: MethodName,\n ) => (ResolvedFactoryImplementation<_FactoryDefinition, Dim> &\n z.infer<_PrivateSchemaExtension>)[MethodName] extends infer M extends (\n ...args: any[]\n ) => any\n ? FunctionPointer<M>\n : never;\n};\n\n/**\n * The parameters that shall be received by a factory's implementation getter\n */\nexport type Context<\n _FactoryDefinition extends FactoryDefinition<any, any, any, any, any>,\n Dim,\n _PrivateSchemaExtension extends z.ZodObject = z.ZodObject<{}, z.core.$strip>,\n> = {\n name: _FactoryDefinition extends FactoryDefinition<infer Name, any, any, any, any>\n ? Name\n : never;\n dependencies: _FactoryDefinition extends FactoryDefinition<any, any, any, any, infer Deps>\n ? ResolvedDefinitionMap<Deps>\n : never;\n dim: Dim;\n impls: _FactoryDefinition extends FactoryDefinition<any, any, any, any, infer Deps>\n ? ResolvedFactoryImplementationMap<Deps, Dim>\n : never;\n self: ResolvedFactoryImplementation<_FactoryDefinition, Dim> & z.infer<_PrivateSchemaExtension>;\n} & ActivityFactoryContext<_FactoryDefinition, Dim, _PrivateSchemaExtension>;\n\nexport const serializeDimensions = (dim: object = {}) => {\n return Object.keys(dim).length\n ? Object.entries(dim)\n .sort()\n .map(([dimName, dimVal]) => `${dimName}_${dimVal}`)\n .join('&')\n : '_base';\n};\n\nexport const deserializeDimensions = (serializedDim: string) => {\n if (serializedDim === '_base') {\n return {};\n }\n\n return Object.fromEntries(\n serializedDim.split('&').map((pair) => {\n const [dimName, ...dimValParts] = pair.split('_');\n return [dimName, dimValParts.join('_')];\n }),\n );\n};\n"]}
package/dist/YJF4D23A.cjs DELETED
@@ -1,8 +0,0 @@
1
- 'use strict';
2
-
3
- var __defProp = Object.defineProperty;
4
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
5
-
6
- exports.__name = __name;
7
- //# sourceMappingURL=YJF4D23A.cjs.map
8
- //# sourceMappingURL=YJF4D23A.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"YJF4D23A.cjs"}
package/dist/ZBUMYCUA.cjs DELETED
@@ -1,248 +0,0 @@
1
- 'use strict';
2
-
3
- var YJF4D23A_cjs = require('./YJF4D23A.cjs');
4
- var dependencyGraph = require('@layerzerolabs/dependency-graph');
5
- var dfs = require('@layerzerolabs/dfs');
6
-
7
- var RegistrarBuilder = class {
8
- static {
9
- YJF4D23A_cjs.__name(this, "RegistrarBuilder");
10
- }
11
- defaultHandler;
12
- nodeHandlers = {};
13
- classHandlers = [];
14
- classAliases = [];
15
- nodeAliases = {};
16
- getEntrypoints = /* @__PURE__ */ YJF4D23A_cjs.__name((node) => [
17
- node
18
- ], "getEntrypoints");
19
- constructor() {
20
- this.defaultHandler = async (node) => {
21
- throw new Error(`This registrar does not provide a handler for the dependency type used by ${JSON.stringify(node)}`);
22
- };
23
- }
24
- addNodeHandler(node, identifier, fn) {
25
- if (this.nodeHandlers[node.name]) {
26
- throw new Error(`Cannot define a node handler for an identifier that already has a handler: ${node.name}`);
27
- }
28
- this.nodeHandlers[node.name] = {
29
- fn,
30
- identifier
31
- };
32
- return this;
33
- }
34
- /**
35
- * Returns the class handler identifier that would be used for a given node,
36
- * or undefined if no class handler matches.
37
- */
38
- getClassIdentifierForNode(node) {
39
- for (const { nodeClass, identifier } of this.classHandlers) {
40
- if (node instanceof nodeClass) {
41
- return identifier;
42
- }
43
- }
44
- return void 0;
45
- }
46
- /**
47
- * Add a function fn to be called on all nodes of class
48
- * @param nodeClass
49
- * @param identifier
50
- * @param fn
51
- */
52
- addClassHandler(nodeClass, identifier, fn) {
53
- if (this.classAliases.find(({ fromNodeClass }) => fromNodeClass === nodeClass)) {
54
- throw new Error(`Cannot define a handler for a class that is aliased to something else. This would be pointless`);
55
- }
56
- let i = 0;
57
- for (const handler of this.classHandlers) {
58
- if (handler.nodeClass === nodeClass) {
59
- this.classHandlers[i] = {
60
- nodeClass,
61
- identifier,
62
- fn
63
- };
64
- return this;
65
- }
66
- if (handler.nodeClass.prototype.isPrototypeOf(nodeClass.prototype)) {
67
- this.classHandlers.splice(i, 0, {
68
- nodeClass,
69
- identifier,
70
- fn
71
- });
72
- return this;
73
- }
74
- i++;
75
- }
76
- this.classHandlers.push({
77
- nodeClass,
78
- identifier,
79
- fn
80
- });
81
- return this;
82
- }
83
- /**
84
- * Alias some class *from*, such that any node of that class in the tree will be
85
- * treated as though it were some other node *to*. The *to* node is given as a
86
- * function returning a class instance, so that its dependencies, name, etc can be fixed.
87
- * The registrar will ignore the dependencies of the original node, and follow the alias's
88
- * dependencies instead.
89
- *
90
- * Additionally, this method does not affect the typing of the registrar. The output type
91
- * of the build() method will not reflect the alias.
92
- *
93
- * @param fromNodeClass alias instances of this class
94
- * @param getToNode method that returns the *to* part of the alias
95
- */
96
- addClassAlias(fromNodeClass, getToNode) {
97
- if (this.classHandlers.find(({ nodeClass }) => nodeClass === fromNodeClass)) {
98
- throw new Error(`Cannot define an alias for a class that already has a handler`);
99
- }
100
- let i = 0;
101
- for (const alias of this.classAliases) {
102
- if (alias.fromNodeClass === fromNodeClass) {
103
- this.classAliases[i] = {
104
- fromNodeClass,
105
- getToNode
106
- };
107
- return this;
108
- }
109
- if (alias.fromNodeClass.prototype.isPrototypeOf(fromNodeClass.prototype)) {
110
- this.classAliases.splice(i, 0, {
111
- fromNodeClass,
112
- getToNode
113
- });
114
- return this;
115
- }
116
- i++;
117
- }
118
- this.classAliases.push({
119
- fromNodeClass,
120
- getToNode
121
- });
122
- return this;
123
- }
124
- /**
125
- * Alias a specific named node, such that when encountered in the tree,
126
- * it will be transformed to a different node before processing.
127
- * The transformed node's dependencies will be traversed instead.
128
- * This is useful for short-circuiting dependency traversal for specific nodes.
129
- *
130
- * @param nodeName name of the node to alias
131
- * @param getToNode method that returns the transformed node
132
- */
133
- addNodeAlias(node, getToNode) {
134
- this.nodeAliases[node.name] = getToNode;
135
- return this;
136
- }
137
- /**
138
- * Returns a function that resolves node/class aliases registered on this builder.
139
- * Useful for external traversals (e.g. CDK nodeExplorer) that need to follow
140
- * the same alias rules as the DFS built by {@link build}.
141
- */
142
- getPrehandler() {
143
- return (node) => {
144
- const nodeAlias = this.nodeAliases[node.name];
145
- if (nodeAlias) return nodeAlias(node);
146
- for (const { fromNodeClass, getToNode } of this.classAliases) {
147
- if (node instanceof fromNodeClass) return getToNode(node);
148
- }
149
- return node;
150
- };
151
- }
152
- /**
153
- * Set a custom entrypoint getter function. By default, the entrypoint getter
154
- * returns the node passed in as the sole entrypoint.
155
- */
156
- setEntrypointsGetter(fn) {
157
- this.getEntrypoints = fn;
158
- return this;
159
- }
160
- /**
161
- * Add a default function fn to be used on nodes whose types do not have handlers.
162
- * If this is not set, the default behaviour will be to throw
163
- * @param fn
164
- */
165
- addDefault(fn) {
166
- this.defaultHandler = fn;
167
- return this;
168
- }
169
- build() {
170
- const mergedNodePrehandler = /* @__PURE__ */ YJF4D23A_cjs.__name((node) => {
171
- const nodeAlias = this.nodeAliases[node.name];
172
- if (nodeAlias) {
173
- return nodeAlias(node);
174
- }
175
- for (const { fromNodeClass, getToNode: toNode } of this.classAliases) {
176
- if (node instanceof fromNodeClass) {
177
- return toNode(node);
178
- }
179
- }
180
- return node;
181
- }, "mergedNodePrehandler");
182
- const mergedNodeHandler = /* @__PURE__ */ YJF4D23A_cjs.__name(async (node, ancestry) => {
183
- if (node.name === "_virtualEntrypoint") {
184
- return {
185
- key: node.name,
186
- value: void 0
187
- };
188
- }
189
- const nodeHandler = this.nodeHandlers[node.name];
190
- if (nodeHandler) {
191
- return {
192
- key: nodeHandler.identifier ?? node.name,
193
- value: await nodeHandler.fn(node, ancestry)
194
- };
195
- }
196
- for (const { nodeClass, identifier, fn } of this.classHandlers) {
197
- if (node instanceof nodeClass) {
198
- return {
199
- key: identifier,
200
- value: await fn(node, ancestry)
201
- };
202
- }
203
- }
204
- return {
205
- key: "default",
206
- value: await this.defaultHandler(node, ancestry)
207
- };
208
- }, "mergedNodeHandler");
209
- return {
210
- traverseDependencies: /* @__PURE__ */ YJF4D23A_cjs.__name(async (node) => {
211
- const entrypoints = await this.getEntrypoints(node);
212
- if (entrypoints.length === 1) return await dfs.dfs(node, mergedNodeHandler, mergedNodePrehandler)();
213
- const dependencies = entrypoints.reduce((acc, cur) => {
214
- acc[cur.name] = cur;
215
- return acc;
216
- }, {});
217
- let VirtualNode = class VirtualNode extends dependencyGraph.DependencyNode {
218
- static {
219
- YJF4D23A_cjs.__name(this, "VirtualNode");
220
- }
221
- };
222
- const virtualEntrypoint = new VirtualNode({
223
- name: "_virtualEntrypoint",
224
- dependencies
225
- });
226
- return await dfs.dfs(virtualEntrypoint, mergedNodeHandler, mergedNodePrehandler)();
227
- }, "traverseDependencies")
228
- };
229
- }
230
- };
231
- var multiplexOrderedRegistrars = /* @__PURE__ */ YJF4D23A_cjs.__name((...registrars) => {
232
- const multiplexRegistrar = {
233
- traverseDependencies: /* @__PURE__ */ YJF4D23A_cjs.__name(async (...params) => {
234
- const acc = {};
235
- for (const [name, registrar] of registrars) {
236
- const result = await registrar.traverseDependencies(...params);
237
- acc[name] = result;
238
- }
239
- return acc;
240
- }, "traverseDependencies")
241
- };
242
- return multiplexRegistrar;
243
- }, "multiplexOrderedRegistrars");
244
-
245
- exports.RegistrarBuilder = RegistrarBuilder;
246
- exports.multiplexOrderedRegistrars = multiplexOrderedRegistrars;
247
- //# sourceMappingURL=ZBUMYCUA.cjs.map
248
- //# sourceMappingURL=ZBUMYCUA.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/registrarBuilder.ts"],"names":["RegistrarBuilder","defaultHandler","nodeHandlers","classHandlers","classAliases","nodeAliases","getEntrypoints","node","Error","JSON","stringify","addNodeHandler","identifier","fn","name","getClassIdentifierForNode","nodeClass","undefined","addClassHandler","find","fromNodeClass","i","handler","prototype","isPrototypeOf","splice","push","addClassAlias","getToNode","alias","addNodeAlias","getPrehandler","nodeAlias","setEntrypointsGetter","addDefault","build","mergedNodePrehandler","toNode","mergedNodeHandler","__name","ancestry","key","value","nodeHandler","traverseDependencies","entrypoints","length","dfs","dependencies","reduce","acc","cur","VirtualNode","DependencyNode","virtualEntrypoint","multiplexOrderedRegistrars","registrars","multiplexRegistrar","params","registrar","result"],"mappings":";;;;;;AAsBO,IAAMA,mBAAN,MAAMA;EArBb;;;AAsBcC,EAAAA,cAAAA;AAEAC,EAAAA,YAAAA,GAMN,EAAC;AAEKC,EAAAA,aAAAA,GAIJ,EAAA;AAEIC,EAAAA,YAAAA,GAGJ,EAAA;AAEIC,EAAAA,WAAAA,GAAwE,EAAC;AAEzEC,EAAAA,cAAAA,wCAE2CC,IAAAA,KAAS;AAACA,IAAAA;AAAX,GAAA,EAAA,gBAAA,CAAA;EAEpD,WAAA,GAAc;AACV,IAAA,IAAA,CAAKN,cAAAA,GAAiB,OAAOM,IAAAA,KAAAA;AACzB,MAAA,MAAM,IAAIC,KAAAA,CACN,CAAA,0EAAA,EAA6EC,KAAKC,SAAAA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AA;AACJ;AAEO,IAAMmB,0BAAAA,2CAGNC,UAAAA,KAAAA;AAEH,EAAA,MAAMC,kBAAAA,GAID;AACDb,IAAAA,oBAAAA,gDACOc,MAAAA,KAAAA;AAEH,MAAA,MAAMR,MAA2B,EAAC;AAClC,MAAA,KAAA,MAAW,CAACpC,IAAAA,EAAM6C,SAAAA,CAAAA,IAAcH,UAAAA,EAAY;AACxC,QAAA,MAAMI,MAAAA,GAAS,MAAMD,SAAAA,CAAUf,oBAAAA,CAAoB,GAAIc,MAAAA,CAAAA;AACvDR,QAAAA,GAAAA,CAAIpC,IAAAA,CAAAA,GAAQ8C,MAAAA;AAChB,MAAA;AAEA,MAAA,OAAOV,GAAAA;IACX,CAAA,EAVsB,sBAAA;AAW1B,GAAA;AAEA,EAAA,OAAOO,kBAAAA;AACX,CAAA,EAxB0C,4BAAA","file":"ZBUMYCUA.cjs","sourcesContent":["import type { Dependencies } from '@layerzerolabs/dependency-graph';\nimport { DependencyNode } from '@layerzerolabs/dependency-graph';\nimport type { Registrar } from '@layerzerolabs/dfs';\nimport { dfs } from '@layerzerolabs/dfs';\nexport type { Registrar };\n\ntype NodeClass = new (...args: any[]) => DependencyNode;\ntype AbstractNodeClass = abstract new (...args: any[]) => DependencyNode;\n\n/**\n * <!-- anchor:RegistrarBuilder -->\n * A builder class for a {@link Registrar}.\n * Builds a registrar that switches on node class--i.e., enables defining\n * specific registration behaviour for specific node classes.\n * Intelligently handles inheritance, always using the most specific\n * handler defined for any given class.\n * The registrar built shall return an object that maps from a handler ID,\n * to a map from node name to the return of each handler,\n * e.g., { objectNodes: { myObjectNode: 'my handler return' }}.\n * This can be used to extract a specific resolved value after resolving the tree,\n * given that the handlers return the resolved nodes.\n */\nexport class RegistrarBuilder<_ReturnTypes> {\n protected defaultHandler: (node: DependencyNode, ancestry: DependencyNode[]) => Promise<any>;\n\n protected nodeHandlers: Record<\n string,\n {\n fn: (node: DependencyNode, ancestry: DependencyNode[]) => Promise<any>;\n identifier: string;\n }\n > = {};\n\n protected classHandlers: {\n nodeClass: AbstractNodeClass;\n identifier: string;\n fn: (node: DependencyNode, ancestry: DependencyNode[]) => Promise<any>;\n }[] = [];\n\n protected classAliases: {\n fromNodeClass: AbstractNodeClass;\n getToNode: (from: DependencyNode) => DependencyNode;\n }[] = [];\n\n protected nodeAliases: Record<string, (node: DependencyNode) => DependencyNode> = {};\n\n protected getEntrypoints: (\n node: DependencyNode,\n ) => DependencyNode[] | Promise<DependencyNode[]> = (node) => [node];\n\n constructor() {\n this.defaultHandler = async (node: DependencyNode) => {\n throw new Error(\n `This registrar does not provide a handler for the dependency type used by ${JSON.stringify(node)}`,\n );\n };\n }\n\n public addNodeHandler<\n Node extends DependencyNode,\n Function extends (node: Node, ancestry: DependencyNode[]) => Promise<any>,\n >(node: DependencyNode, identifier: string, fn: Function) {\n if (this.nodeHandlers[node.name]) {\n throw new Error(\n `Cannot define a node handler for an identifier that already has a handler: ${node.name}`,\n );\n }\n this.nodeHandlers[node.name] = {\n fn: fn as unknown as (node: DependencyNode, ancestry: DependencyNode[]) => Promise<any>,\n identifier,\n };\n return this as RegistrarBuilder<\n _ReturnTypes & {\n ['nodeHandlers']: { [nodeName: string]: Awaited<ReturnType<Function>> };\n }\n >;\n }\n\n /**\n * Returns the class handler identifier that would be used for a given node,\n * or undefined if no class handler matches.\n */\n public getClassIdentifierForNode(node: DependencyNode): string | undefined {\n for (const { nodeClass, identifier } of this.classHandlers) {\n if (node instanceof nodeClass) {\n return identifier;\n }\n }\n return undefined;\n }\n\n /**\n * Add a function fn to be called on all nodes of class\n * @param nodeClass\n * @param identifier\n * @param fn\n */\n public addClassHandler<\n Identifier extends string,\n _NodeClass extends NodeClass,\n Function extends (node: InstanceType<_NodeClass>, ancestry: DependencyNode[]) => any,\n >(nodeClass: _NodeClass, identifier: Identifier, fn: Function) {\n if (this.classAliases.find(({ fromNodeClass }) => fromNodeClass === nodeClass)) {\n throw new Error(\n `Cannot define a handler for a class that is aliased to something else. This would be pointless`,\n );\n }\n\n let i = 0;\n for (const handler of this.classHandlers) {\n //check if we are overriding an existing handler\n if (handler.nodeClass === nodeClass) {\n this.classHandlers[i] = {\n nodeClass,\n identifier,\n fn: fn as unknown as (node: DependencyNode) => Promise<any>,\n };\n\n return this as RegistrarBuilder<\n _ReturnTypes & {\n [_K in Identifier]: { [nodeName: string]: Awaited<ReturnType<Function>> };\n }\n >;\n }\n //check if the new handler has an ordering requirement against an existing handler\n //(we always want to use more specific handlers if they exist)\n // eslint-disable-next-line no-prototype-builtins\n if (handler.nodeClass.prototype.isPrototypeOf(nodeClass.prototype)) {\n this.classHandlers.splice(i, 0, {\n nodeClass,\n identifier,\n fn: fn as unknown as (node: DependencyNode) => Promise<any>,\n });\n\n return this as RegistrarBuilder<\n _ReturnTypes & {\n [_K in Identifier]: { [nodeName: string]: Awaited<ReturnType<Function>> };\n }\n >;\n }\n i++;\n }\n\n this.classHandlers.push({\n nodeClass,\n identifier,\n fn: fn as unknown as (node: DependencyNode) => Promise<any>,\n });\n\n return this as RegistrarBuilder<\n _ReturnTypes & {\n [_K in Identifier]: { [nodeName: string]: Awaited<ReturnType<Function>> };\n }\n >;\n }\n\n /**\n * Alias some class *from*, such that any node of that class in the tree will be\n * treated as though it were some other node *to*. The *to* node is given as a\n * function returning a class instance, so that its dependencies, name, etc can be fixed.\n * The registrar will ignore the dependencies of the original node, and follow the alias's\n * dependencies instead.\n *\n * Additionally, this method does not affect the typing of the registrar. The output type\n * of the build() method will not reflect the alias.\n *\n * @param fromNodeClass alias instances of this class\n * @param getToNode method that returns the *to* part of the alias\n */\n public addClassAlias<FromNodeClass extends AbstractNodeClass>(\n fromNodeClass: FromNodeClass,\n getToNode: (fromNodeInstance: InstanceType<FromNodeClass>) => DependencyNode,\n ) {\n if (this.classHandlers.find(({ nodeClass }) => nodeClass === fromNodeClass)) {\n throw new Error(`Cannot define an alias for a class that already has a handler`);\n }\n\n let i = 0;\n for (const alias of this.classAliases) {\n //check if we are overriding an existing alias\n if (alias.fromNodeClass === fromNodeClass) {\n this.classAliases[i] = {\n fromNodeClass,\n getToNode: getToNode as unknown as (from: DependencyNode) => DependencyNode,\n };\n\n return this;\n }\n //check if the new alias has an ordering requirement against an existing alias\n //(we always want to use more specific handlers if they exist)\n // eslint-disable-next-line no-prototype-builtins\n if (alias.fromNodeClass.prototype.isPrototypeOf(fromNodeClass.prototype)) {\n this.classAliases.splice(i, 0, {\n fromNodeClass,\n getToNode: getToNode as unknown as (from: DependencyNode) => DependencyNode,\n });\n\n return this;\n }\n i++;\n }\n\n this.classAliases.push({\n fromNodeClass,\n getToNode: getToNode as unknown as (from: DependencyNode) => DependencyNode,\n });\n\n return this;\n }\n\n /**\n * Alias a specific named node, such that when encountered in the tree,\n * it will be transformed to a different node before processing.\n * The transformed node's dependencies will be traversed instead.\n * This is useful for short-circuiting dependency traversal for specific nodes.\n *\n * @param nodeName name of the node to alias\n * @param getToNode method that returns the transformed node\n */\n public addNodeAlias(\n node: DependencyNode,\n getToNode: (fromNodeInstance: DependencyNode) => DependencyNode,\n ) {\n this.nodeAliases[node.name] = getToNode;\n return this;\n }\n\n /**\n * Returns a function that resolves node/class aliases registered on this builder.\n * Useful for external traversals (e.g. CDK nodeExplorer) that need to follow\n * the same alias rules as the DFS built by {@link build}.\n */\n public getPrehandler(): (node: DependencyNode) => DependencyNode {\n return (node) => {\n const nodeAlias = this.nodeAliases[node.name];\n if (nodeAlias) return nodeAlias(node);\n for (const { fromNodeClass, getToNode } of this.classAliases) {\n if (node instanceof fromNodeClass) return getToNode(node);\n }\n return node;\n };\n }\n\n /**\n * Set a custom entrypoint getter function. By default, the entrypoint getter\n * returns the node passed in as the sole entrypoint.\n */\n public setEntrypointsGetter(\n fn: (node: DependencyNode) => DependencyNode[] | Promise<DependencyNode[]>,\n ) {\n this.getEntrypoints = fn;\n return this;\n }\n\n /**\n * Add a default function fn to be used on nodes whose types do not have handlers.\n * If this is not set, the default behaviour will be to throw\n * @param fn\n */\n public addDefault(fn: (node: DependencyNode, ancestry: DependencyNode[]) => any) {\n this.defaultHandler = fn;\n return this;\n }\n\n public build(): Registrar<_ReturnTypes> {\n const mergedNodePrehandler = (node: DependencyNode) => {\n // Check node aliases first (more specific)\n const nodeAlias = this.nodeAliases[node.name];\n if (nodeAlias) {\n return nodeAlias(node);\n }\n\n // Then check class aliases\n for (const { fromNodeClass, getToNode: toNode } of this.classAliases) {\n if (node instanceof fromNodeClass) {\n return toNode(node);\n }\n }\n return node;\n };\n\n const mergedNodeHandler = async (node: DependencyNode, ancestry: DependencyNode[]) => {\n if (node.name === '_virtualEntrypoint') {\n return {\n key: node.name,\n value: undefined,\n };\n }\n\n const nodeHandler = this.nodeHandlers[node.name];\n if (nodeHandler) {\n return {\n key: nodeHandler.identifier ?? node.name,\n value: await nodeHandler.fn(node, ancestry),\n };\n }\n\n for (const { nodeClass, identifier, fn } of this.classHandlers) {\n if (node instanceof nodeClass) {\n return {\n key: identifier,\n value: await fn(node, ancestry),\n };\n }\n }\n\n return {\n key: 'default',\n value: await this.defaultHandler(node, ancestry),\n };\n };\n return {\n traverseDependencies: async (node: DependencyNode) => {\n const entrypoints = await this.getEntrypoints(node);\n if (entrypoints.length === 1)\n return await dfs<_ReturnTypes>(node, mergedNodeHandler, mergedNodePrehandler)();\n\n const dependencies = entrypoints.reduce((acc, cur) => {\n acc[cur.name] = cur;\n return acc;\n }, {} as Dependencies);\n\n class VirtualNode extends DependencyNode {}\n\n const virtualEntrypoint = new VirtualNode({\n name: '_virtualEntrypoint',\n dependencies,\n });\n\n return await dfs<_ReturnTypes>(\n virtualEntrypoint,\n mergedNodeHandler,\n mergedNodePrehandler,\n )();\n },\n };\n }\n}\n\nexport const multiplexOrderedRegistrars = <\n const T extends [name: string, registrar: Registrar<{}>][],\n>(\n ...registrars: T\n) => {\n const multiplexRegistrar: Registrar<{\n [K in Extract<keyof T, number> as T[K] extends readonly [infer Name extends string, any]\n ? Name\n : never]: T[K] extends readonly [any, Registrar<infer Ret>] ? Ret : never;\n }> = {\n traverseDependencies: async (\n ...params: Parameters<Registrar<any>['traverseDependencies']>\n ) => {\n const acc: Record<string, any> = {};\n for (const [name, registrar] of registrars) {\n const result = await registrar.traverseDependencies(...params);\n acc[name] = result;\n }\n\n return acc;\n },\n } as any;\n\n return multiplexRegistrar;\n};\n"]}
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- var XFGZZMRR_cjs = require('./XFGZZMRR.cjs');
4
- require('./YJF4D23A.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "FactoryDefinition", {
9
- enumerable: true,
10
- get: function () { return XFGZZMRR_cjs.FactoryDefinition; }
11
- });
12
- Object.defineProperty(exports, "ObjectDefinition", {
13
- enumerable: true,
14
- get: function () { return XFGZZMRR_cjs.ObjectDefinition; }
15
- });
16
- Object.defineProperty(exports, "deserializeDimensions", {
17
- enumerable: true,
18
- get: function () { return XFGZZMRR_cjs.deserializeDimensions; }
19
- });
20
- Object.defineProperty(exports, "serializeDimensions", {
21
- enumerable: true,
22
- get: function () { return XFGZZMRR_cjs.serializeDimensions; }
23
- });
24
- //# sourceMappingURL=definitions.cjs.map
25
- //# sourceMappingURL=definitions.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"definitions.cjs"}
package/dist/index.cjs DELETED
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var JKTGUQY4_cjs = require('./JKTGUQY4.cjs');
4
- var ZBUMYCUA_cjs = require('./ZBUMYCUA.cjs');
5
- var KY4LVDYW_cjs = require('./KY4LVDYW.cjs');
6
- var XFGZZMRR_cjs = require('./XFGZZMRR.cjs');
7
- require('./YJF4D23A.cjs');
8
-
9
-
10
-
11
- Object.defineProperty(exports, "DependencyStore", {
12
- enumerable: true,
13
- get: function () { return JKTGUQY4_cjs.DependencyStore; }
14
- });
15
- Object.defineProperty(exports, "RegistrarBuilder", {
16
- enumerable: true,
17
- get: function () { return ZBUMYCUA_cjs.RegistrarBuilder; }
18
- });
19
- Object.defineProperty(exports, "multiplexOrderedRegistrars", {
20
- enumerable: true,
21
- get: function () { return ZBUMYCUA_cjs.multiplexOrderedRegistrars; }
22
- });
23
- Object.defineProperty(exports, "extractSchemaFromFactory", {
24
- enumerable: true,
25
- get: function () { return KY4LVDYW_cjs.extractSchemaFromFactory; }
26
- });
27
- Object.defineProperty(exports, "FactoryDefinition", {
28
- enumerable: true,
29
- get: function () { return XFGZZMRR_cjs.FactoryDefinition; }
30
- });
31
- Object.defineProperty(exports, "ObjectDefinition", {
32
- enumerable: true,
33
- get: function () { return XFGZZMRR_cjs.ObjectDefinition; }
34
- });
35
- Object.defineProperty(exports, "deserializeDimensions", {
36
- enumerable: true,
37
- get: function () { return XFGZZMRR_cjs.deserializeDimensions; }
38
- });
39
- Object.defineProperty(exports, "serializeDimensions", {
40
- enumerable: true,
41
- get: function () { return XFGZZMRR_cjs.serializeDimensions; }
42
- });
43
- //# sourceMappingURL=index.cjs.map
44
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
package/dist/lzyringe.cjs DELETED
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var JKTGUQY4_cjs = require('./JKTGUQY4.cjs');
4
- require('./YJF4D23A.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "DependencyStore", {
9
- enumerable: true,
10
- get: function () { return JKTGUQY4_cjs.DependencyStore; }
11
- });
12
- //# sourceMappingURL=lzyringe.cjs.map
13
- //# sourceMappingURL=lzyringe.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"lzyringe.cjs"}
@@ -1,17 +0,0 @@
1
- 'use strict';
2
-
3
- var ZBUMYCUA_cjs = require('./ZBUMYCUA.cjs');
4
- require('./YJF4D23A.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "RegistrarBuilder", {
9
- enumerable: true,
10
- get: function () { return ZBUMYCUA_cjs.RegistrarBuilder; }
11
- });
12
- Object.defineProperty(exports, "multiplexOrderedRegistrars", {
13
- enumerable: true,
14
- get: function () { return ZBUMYCUA_cjs.multiplexOrderedRegistrars; }
15
- });
16
- //# sourceMappingURL=registrarBuilder.cjs.map
17
- //# sourceMappingURL=registrarBuilder.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"registrarBuilder.cjs"}
package/dist/utils.cjs DELETED
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var KY4LVDYW_cjs = require('./KY4LVDYW.cjs');
4
- require('./XFGZZMRR.cjs');
5
- require('./YJF4D23A.cjs');
6
-
7
-
8
-
9
- Object.defineProperty(exports, "extractSchemaFromFactory", {
10
- enumerable: true,
11
- get: function () { return KY4LVDYW_cjs.extractSchemaFromFactory; }
12
- });
13
- //# sourceMappingURL=utils.cjs.map
14
- //# sourceMappingURL=utils.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"utils.cjs"}