@xyo-network/diviner-transform 6.0.4 → 6.1.0
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 +3 -1
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/MemoryTransformDiviner.d.ts.map +1 -1
- package/dist/neutral/Query.d.ts.map +1 -1
- package/dist/neutral/Schema.d.ts +1 -1
- package/dist/neutral/Schema.d.ts.map +1 -1
- package/dist/neutral/abstract.mjs.map +2 -2
- package/dist/neutral/index.mjs.map +2 -2
- package/dist/neutral/memory.mjs.map +2 -2
- package/dist/neutral/model.mjs.map +2 -2
- package/package.json +15 -16
package/README.md
CHANGED
|
@@ -38,10 +38,12 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
40
|
|
|
41
|
+
## Credits
|
|
41
42
|
|
|
43
|
+
[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
|
|
42
44
|
|
|
43
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
44
45
|
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-transform.svg
|
|
45
46
|
[npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-transform
|
|
46
47
|
[license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-transform.svg
|
|
47
48
|
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
|
49
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAI/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAI/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,eAAO,MAAM,4BAA4B,EAAE,MAAM,GAAG;IAClD,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC6B,CAAA;AACtD,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;IAAE,SAAS,CAAC,EAAE,mBAAmB,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryTransformDiviner.d.ts","sourceRoot":"","sources":["../../src/MemoryTransformDiviner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAInE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAmB/C,qBAAa,sBAAsB,CACjC,OAAO,SAAS,sBAAsB,GAAG,sBAAsB,EAC/D,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,CAC9B,SAAQ,wBAAwB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC;IACpD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAyD;IACzG,gBAAyB,mBAAmB,EAAE,MAAM,CAA+B;cAEhE,WAAW,CAAC,SAAS,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"MemoryTransformDiviner.d.ts","sourceRoot":"","sources":["../../src/MemoryTransformDiviner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAInE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAA;AAExE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAmB/C,qBAAa,sBAAsB,CACjC,OAAO,SAAS,sBAAsB,GAAG,sBAAsB,EAC/D,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,CAC9B,SAAQ,wBAAwB,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC;IACpD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAyD;IACzG,gBAAyB,mBAAmB,EAAE,MAAM,CAA+B;cAEhE,WAAW,CAAC,SAAS,EAAE,SAAS,GAAG,kBAAkB,CAAC,GAAG,EAAE,IAAI,CAAC;CAGpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,8BAA8B,CAAA;AAGrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"Query.d.ts","sourceRoot":"","sources":["../../src/Query.ts"],"names":[],"mappings":"AAAA,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,KAAK,EACnC,MAAM,8BAA8B,CAAA;AAGrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE/D,eAAO,MAAM,2BAA2B,EAAE,MAAM,GAAG;IACjD,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC4B,CAAA;AACrD,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,MAAM,4BAA4B,GAAG,KAAK,CAAC;IAAE,MAAM,EAAE,2BAA2B,CAAA;CAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAA;AACtH,eAAO,MAAM,8BAA8B,GAAI,IAAI,OAAO,GAAG,IAAI,KAAG,CAAC,IAAI,4BAAyE,CAAA"}
|
package/dist/neutral/Schema.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,EAAE,+BAA+B,GAAG;IACrE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC0B,CAAA;AACnD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/AbstractTransformDiviner.ts", "../../src/Config.ts", "../../src/Schema.ts"],
|
|
4
|
-
"sourcesContent": ["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type {\n DivinerInstance, DivinerModuleEventData, DivinerParams,\n} from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TransformDivinerConfig } from './Config.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { Transform } from './Transform.ts'\n\nexport type TransformDivinerParams = DivinerParams<AnyConfigSchema<TransformDivinerConfig>>\n\nexport abstract class AbstractTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override divineHandler(payloads?: TIn[]): TOut[] {\n const transforms: Transform[] = []\n if (this.config.transform) {\n transforms.push({ schema: TransformDivinerSchema, transform: this.config.transform })\n }\n return transforms.flatMap(transform => payloads?.map(this.transformer(transform)) ?? [])\n }\n\n protected abstract transformer(transform: Transform): PayloadTransformer<TIn, TOut>\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,uBAAuB;;;ACChC,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,
|
|
4
|
+
"sourcesContent": ["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type {\n DivinerInstance, DivinerModuleEventData, DivinerParams,\n} from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TransformDivinerConfig } from './Config.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { Transform } from './Transform.ts'\n\nexport type TransformDivinerParams = DivinerParams<AnyConfigSchema<TransformDivinerConfig>>\n\nexport abstract class AbstractTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override divineHandler(payloads?: TIn[]): TOut[] {\n const transforms: Transform[] = []\n if (this.config.transform) {\n transforms.push({ schema: TransformDivinerSchema, transform: this.config.transform })\n }\n return transforms.flatMap(transform => payloads?.map(this.transformer(transform)) ?? [])\n }\n\n protected abstract transformer(transform: Transform): PayloadTransformer<TIn, TOut>\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema: 'network.xyo.diviner.transform' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,uBAAuB;;;ACChC,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,yBAET,SAAS,iCAAiC,IAAI;;;ADE3C,IAAM,+BAETC,UAAS,GAAG,sBAAsB,WAAW,IAAI;;;ADO9C,IAAe,2BAAf,cASG,gBAAgD;AAAA,EACxD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,4BAA4B;AAAA,EACxG,OAAyB,sBAA8B;AAAA,EAEpC,cAAc,UAA0B;AACzD,UAAM,aAA0B,CAAC;AACjC,QAAI,KAAK,OAAO,WAAW;AACzB,iBAAW,KAAK,EAAE,QAAQ,wBAAwB,WAAW,KAAK,OAAO,UAAU,CAAC;AAAA,IACtF;AACA,WAAO,WAAW,QAAQ,eAAa,UAAU,IAAI,KAAK,YAAY,SAAS,CAAC,KAAK,CAAC,CAAC;AAAA,EACzF;AAGF;",
|
|
6
6
|
"names": ["asSchema", "asSchema"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/AbstractTransformDiviner.ts", "../../src/Config.ts", "../../src/Schema.ts", "../../src/MemoryTransformDiviner.ts", "../../src/Query.ts"],
|
|
4
|
-
"sourcesContent": ["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type {\n DivinerInstance, DivinerModuleEventData, DivinerParams,\n} from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TransformDivinerConfig } from './Config.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { Transform } from './Transform.ts'\n\nexport type TransformDivinerParams = DivinerParams<AnyConfigSchema<TransformDivinerConfig>>\n\nexport abstract class AbstractTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override divineHandler(payloads?: TIn[]): TOut[] {\n const transforms: Transform[] = []\n if (this.config.transform) {\n transforms.push({ schema: TransformDivinerSchema, transform: this.config.transform })\n }\n return transforms.flatMap(transform => payloads?.map(this.transformer(transform)) ?? [])\n }\n\n protected abstract transformer(transform: Transform): PayloadTransformer<TIn, TOut>\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n", "import type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\nimport { ValueSchema } from '@xyo-network/sdk-protocol-js'\nimport { JSONPath } from 'jsonpath-plus'\n\nimport type { TransformDivinerParams } from './AbstractTransformDiviner.ts'\nimport { AbstractTransformDiviner } from './AbstractTransformDiviner.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport type { Transform } from './Transform.ts'\n\nconst getJsonPathTransformer = <TSource extends Payload = Payload, TDestination extends Payload = Payload>(\n transform: Transform,\n): PayloadTransformer<TSource, TDestination> => {\n const transformer: PayloadTransformer<TSource, TDestination> = (source: TSource) => {\n const value = Object.fromEntries(\n Object.entries(transform.transform).map(([key, pathExpression]) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n const value = JSONPath({ path: pathExpression, json: source })[0]\n return [key, value]\n }),\n )\n // TODO: Render this cast unnecessary\n return { schema: ValueSchema, value } as unknown as TDestination\n }\n return transformer\n}\n\nexport class MemoryTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n> extends AbstractTransformDiviner<TParams, TIn, TOut> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override transformer(transform: Transform) {\n return getJsonPathTransformer<TIn, TOut>(transform)\n }\n}\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformSettings } from './TransformSettings.ts'\n\nexport const TransformDivinerQuerySchema = asSchema(`${TransformDivinerSchema}.query`, true)\nexport type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],
|
|
5
|
-
"mappings": ";AAAA,SAAS,uBAAuB;;;ACChC,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,
|
|
4
|
+
"sourcesContent": ["import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type {\n DivinerInstance, DivinerModuleEventData, DivinerParams,\n} from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TransformDivinerConfig } from './Config.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { Transform } from './Transform.ts'\n\nexport type TransformDivinerParams = DivinerParams<AnyConfigSchema<TransformDivinerConfig>>\n\nexport abstract class AbstractTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override divineHandler(payloads?: TIn[]): TOut[] {\n const transforms: Transform[] = []\n if (this.config.transform) {\n transforms.push({ schema: TransformDivinerSchema, transform: this.config.transform })\n }\n return transforms.flatMap(transform => payloads?.map(this.transformer(transform)) ?? [])\n }\n\n protected abstract transformer(transform: Transform): PayloadTransformer<TIn, TOut>\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema: 'network.xyo.diviner.transform' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n", "import type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\nimport { ValueSchema } from '@xyo-network/sdk-protocol-js'\nimport { JSONPath } from 'jsonpath-plus'\n\nimport type { TransformDivinerParams } from './AbstractTransformDiviner.ts'\nimport { AbstractTransformDiviner } from './AbstractTransformDiviner.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport type { Transform } from './Transform.ts'\n\nconst getJsonPathTransformer = <TSource extends Payload = Payload, TDestination extends Payload = Payload>(\n transform: Transform,\n): PayloadTransformer<TSource, TDestination> => {\n const transformer: PayloadTransformer<TSource, TDestination> = (source: TSource) => {\n const value = Object.fromEntries(\n Object.entries(transform.transform).map(([key, pathExpression]) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n const value = JSONPath({ path: pathExpression, json: source })[0]\n return [key, value]\n }),\n )\n // TODO: Render this cast unnecessary\n return { schema: ValueSchema, value } as unknown as TDestination\n }\n return transformer\n}\n\nexport class MemoryTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n> extends AbstractTransformDiviner<TParams, TIn, TOut> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override transformer(transform: Transform): PayloadTransformer<TIn, TOut> {\n return getJsonPathTransformer<TIn, TOut>(transform)\n }\n}\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformSettings } from './TransformSettings.ts'\n\nexport const TransformDivinerQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${TransformDivinerSchema}.query`, true)\nexport type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,uBAAuB;;;ACChC,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,yBAET,SAAS,iCAAiC,IAAI;;;ADE3C,IAAM,+BAETC,UAAS,GAAG,sBAAsB,WAAW,IAAI;;;ADO9C,IAAe,2BAAf,cASG,gBAAgD;AAAA,EACxD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,4BAA4B;AAAA,EACxG,OAAyB,sBAA8B;AAAA,EAEpC,cAAc,UAA0B;AACzD,UAAM,aAA0B,CAAC;AACjC,QAAI,KAAK,OAAO,WAAW;AACzB,iBAAW,KAAK,EAAE,QAAQ,wBAAwB,WAAW,KAAK,OAAO,UAAU,CAAC;AAAA,IACtF;AACA,WAAO,WAAW,QAAQ,eAAa,UAAU,IAAI,KAAK,YAAY,SAAS,CAAC,KAAK,CAAC,CAAC;AAAA,EACzF;AAGF;;;AGpCA,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AAQzB,IAAM,yBAAyB,CAC7B,cAC8C;AAC9C,QAAM,cAAyD,CAAC,WAAoB;AAClF,UAAM,QAAQ,OAAO;AAAA,MACnB,OAAO,QAAQ,UAAU,SAAS,EAAE,IAAI,CAAC,CAAC,KAAK,cAAc,MAAM;AAEjE,cAAMC,SAAQ,SAAS,EAAE,MAAM,gBAAgB,MAAM,OAAO,CAAC,EAAE,CAAC;AAChE,eAAO,CAAC,KAAKA,MAAK;AAAA,MACpB,CAAC;AAAA,IACH;AAEA,WAAO,EAAE,QAAQ,aAAa,MAAM;AAAA,EACtC;AACA,SAAO;AACT;AAEO,IAAM,yBAAN,cAIG,yBAA6C;AAAA,EACrD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,4BAA4B;AAAA,EACxG,OAAyB,sBAA8B;AAAA,EAEpC,YAAY,WAAqD;AAClF,WAAO,uBAAkC,SAAS;AAAA,EACpD;AACF;;;ACtCA;AAAA,EACE,YAAAC;AAAA,OACK;AAKA,IAAM,8BAETC,UAAS,GAAG,sBAAsB,UAAU,IAAI;AAI7C,IAAM,iCAAiC,CAAC,MAA0D,GAAG,WAAW;",
|
|
6
6
|
"names": ["asSchema", "asSchema", "value", "asSchema", "asSchema"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/MemoryTransformDiviner.ts", "../../src/AbstractTransformDiviner.ts", "../../src/Config.ts", "../../src/Schema.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\nimport { ValueSchema } from '@xyo-network/sdk-protocol-js'\nimport { JSONPath } from 'jsonpath-plus'\n\nimport type { TransformDivinerParams } from './AbstractTransformDiviner.ts'\nimport { AbstractTransformDiviner } from './AbstractTransformDiviner.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport type { Transform } from './Transform.ts'\n\nconst getJsonPathTransformer = <TSource extends Payload = Payload, TDestination extends Payload = Payload>(\n transform: Transform,\n): PayloadTransformer<TSource, TDestination> => {\n const transformer: PayloadTransformer<TSource, TDestination> = (source: TSource) => {\n const value = Object.fromEntries(\n Object.entries(transform.transform).map(([key, pathExpression]) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n const value = JSONPath({ path: pathExpression, json: source })[0]\n return [key, value]\n }),\n )\n // TODO: Render this cast unnecessary\n return { schema: ValueSchema, value } as unknown as TDestination\n }\n return transformer\n}\n\nexport class MemoryTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n> extends AbstractTransformDiviner<TParams, TIn, TOut> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override transformer(transform: Transform) {\n return getJsonPathTransformer<TIn, TOut>(transform)\n }\n}\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type {\n DivinerInstance, DivinerModuleEventData, DivinerParams,\n} from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TransformDivinerConfig } from './Config.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { Transform } from './Transform.ts'\n\nexport type TransformDivinerParams = DivinerParams<AnyConfigSchema<TransformDivinerConfig>>\n\nexport abstract class AbstractTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override divineHandler(payloads?: TIn[]): TOut[] {\n const transforms: Transform[] = []\n if (this.config.transform) {\n transforms.push({ schema: TransformDivinerSchema, transform: this.config.transform })\n }\n return transforms.flatMap(transform => payloads?.map(this.transformer(transform)) ?? [])\n }\n\n protected abstract transformer(transform: Transform): PayloadTransformer<TIn, TOut>\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n"],
|
|
5
|
-
"mappings": ";AACA,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;;;ACFzB,SAAS,uBAAuB;;;ACChC,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,
|
|
4
|
+
"sourcesContent": ["import type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\nimport { ValueSchema } from '@xyo-network/sdk-protocol-js'\nimport { JSONPath } from 'jsonpath-plus'\n\nimport type { TransformDivinerParams } from './AbstractTransformDiviner.ts'\nimport { AbstractTransformDiviner } from './AbstractTransformDiviner.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport type { Transform } from './Transform.ts'\n\nconst getJsonPathTransformer = <TSource extends Payload = Payload, TDestination extends Payload = Payload>(\n transform: Transform,\n): PayloadTransformer<TSource, TDestination> => {\n const transformer: PayloadTransformer<TSource, TDestination> = (source: TSource) => {\n const value = Object.fromEntries(\n Object.entries(transform.transform).map(([key, pathExpression]) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n const value = JSONPath({ path: pathExpression, json: source })[0]\n return [key, value]\n }),\n )\n // TODO: Render this cast unnecessary\n return { schema: ValueSchema, value } as unknown as TDestination\n }\n return transformer\n}\n\nexport class MemoryTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n> extends AbstractTransformDiviner<TParams, TIn, TOut> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override transformer(transform: Transform): PayloadTransformer<TIn, TOut> {\n return getJsonPathTransformer<TIn, TOut>(transform)\n }\n}\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type {\n DivinerInstance, DivinerModuleEventData, DivinerParams,\n} from '@xyo-network/diviner-model'\nimport type { AnyConfigSchema } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TransformDivinerConfig } from './Config.ts'\nimport { TransformDivinerConfigSchema } from './Config.ts'\nimport type { PayloadTransformer } from './PayloadValueTransformer.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { Transform } from './Transform.ts'\n\nexport type TransformDivinerParams = DivinerParams<AnyConfigSchema<TransformDivinerConfig>>\n\nexport abstract class AbstractTransformDiviner<\n TParams extends TransformDivinerParams = TransformDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends AbstractDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TransformDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TransformDivinerConfigSchema\n\n protected override divineHandler(payloads?: TIn[]): TOut[] {\n const transforms: Transform[] = []\n if (this.config.transform) {\n transforms.push({ schema: TransformDivinerSchema, transform: this.config.transform })\n }\n return transforms.flatMap(transform => payloads?.map(this.transformer(transform)) ?? [])\n }\n\n protected abstract transformer(transform: Transform): PayloadTransformer<TIn, TOut>\n}\n", "import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema: 'network.xyo.diviner.transform' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n"],
|
|
5
|
+
"mappings": ";AACA,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;;;ACFzB,SAAS,uBAAuB;;;ACChC,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,yBAET,SAAS,iCAAiC,IAAI;;;ADE3C,IAAM,+BAETC,UAAS,GAAG,sBAAsB,WAAW,IAAI;;;ADO9C,IAAe,2BAAf,cASG,gBAAgD;AAAA,EACxD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,4BAA4B;AAAA,EACxG,OAAyB,sBAA8B;AAAA,EAEpC,cAAc,UAA0B;AACzD,UAAM,aAA0B,CAAC;AACjC,QAAI,KAAK,OAAO,WAAW;AACzB,iBAAW,KAAK,EAAE,QAAQ,wBAAwB,WAAW,KAAK,OAAO,UAAU,CAAC;AAAA,IACtF;AACA,WAAO,WAAW,QAAQ,eAAa,UAAU,IAAI,KAAK,YAAY,SAAS,CAAC,KAAK,CAAC,CAAC;AAAA,EACzF;AAGF;;;AD3BA,IAAM,yBAAyB,CAC7B,cAC8C;AAC9C,QAAM,cAAyD,CAAC,WAAoB;AAClF,UAAM,QAAQ,OAAO;AAAA,MACnB,OAAO,QAAQ,UAAU,SAAS,EAAE,IAAI,CAAC,CAAC,KAAK,cAAc,MAAM;AAEjE,cAAMC,SAAQ,SAAS,EAAE,MAAM,gBAAgB,MAAM,OAAO,CAAC,EAAE,CAAC;AAChE,eAAO,CAAC,KAAKA,MAAK;AAAA,MACpB,CAAC;AAAA,IACH;AAEA,WAAO,EAAE,QAAQ,aAAa,MAAM;AAAA,EACtC;AACA,SAAO;AACT;AAEO,IAAM,yBAAN,cAIG,yBAA6C;AAAA,EACrD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,4BAA4B;AAAA,EACxG,OAAyB,sBAA8B;AAAA,EAEpC,YAAY,WAAqD;AAClF,WAAO,uBAAkC,SAAS;AAAA,EACpD;AACF;",
|
|
6
6
|
"names": ["asSchema", "asSchema", "value"]
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/Query.ts"],
|
|
4
|
-
"sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformSettings } from './TransformSettings.ts'\n\nexport const TransformDivinerQuerySchema = asSchema(`${TransformDivinerSchema}.query`, true)\nexport type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],
|
|
5
|
-
"mappings": ";AACA,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,
|
|
4
|
+
"sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformDictionary } from './Transform.ts'\n\nexport const TransformDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TransformDivinerSchema}.config`, true)\nexport type TransformDivinerConfigSchema = typeof TransformDivinerConfigSchema\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TransformDivinerSchema: 'network.xyo.diviner.transform' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.transform', true)\nexport type TransformDivinerSchema = typeof TransformDivinerSchema\n", "import {\n asSchema, type Payload, type Query,\n} from '@xyo-network/sdk-protocol-js'\n\nimport { TransformDivinerSchema } from './Schema.ts'\nimport type { TransformSettings } from './TransformSettings.ts'\n\nexport const TransformDivinerQuerySchema: string & {\n readonly __schema: true\n} = asSchema(`${TransformDivinerSchema}.query`, true)\nexport type TransformDivinerQuerySchema = typeof TransformDivinerQuerySchema\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],
|
|
5
|
+
"mappings": ";AACA,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,yBAET,SAAS,iCAAiC,IAAI;;;ADE3C,IAAM,+BAETC,UAAS,GAAG,sBAAsB,WAAW,IAAI;;;AERrD;AAAA,EACE,YAAAC;AAAA,OACK;AAKA,IAAM,8BAETC,UAAS,GAAG,sBAAsB,UAAU,IAAI;AAI7C,IAAM,iCAAiC,CAAC,MAA0D,GAAG,WAAW;",
|
|
6
6
|
"names": ["asSchema", "asSchema", "asSchema", "asSchema"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-transform",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"README.md"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@xyo-network/diviner-abstract": "~6.0
|
|
50
|
-
"@xyo-network/
|
|
51
|
-
"@xyo-network/
|
|
49
|
+
"@xyo-network/diviner-abstract": "~6.1.0",
|
|
50
|
+
"@xyo-network/module-model": "~6.1.0",
|
|
51
|
+
"@xyo-network/diviner-model": "~6.1.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@bitauth/libauth": "~3.0.0",
|
|
@@ -58,17 +58,15 @@
|
|
|
58
58
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
59
59
|
"@scure/base": "~2.2.0",
|
|
60
60
|
"@scure/bip39": "~2.2.0",
|
|
61
|
-
"@xylabs/geo": "^6.0
|
|
62
|
-
"@xylabs/sdk-js": "^6.0
|
|
63
|
-
"@xylabs/threads": "^6.0
|
|
64
|
-
"@xylabs/toolchain": "
|
|
65
|
-
"@xylabs/tsconfig": "
|
|
66
|
-
"@xylabs/vitest-extended": "
|
|
67
|
-
"@xyo-network/sdk-protocol-js": "
|
|
61
|
+
"@xylabs/geo": "^6.1.0",
|
|
62
|
+
"@xylabs/sdk-js": "^6.1.0",
|
|
63
|
+
"@xylabs/threads": "^6.1.0",
|
|
64
|
+
"@xylabs/toolchain": "^8.1.20",
|
|
65
|
+
"@xylabs/tsconfig": "^8.1.20",
|
|
66
|
+
"@xylabs/vitest-extended": "^6.1.0",
|
|
67
|
+
"@xyo-network/sdk-protocol-js": "^6.1.0",
|
|
68
68
|
"ajv": "^8.20.0",
|
|
69
69
|
"async-mutex": "^0.5.0",
|
|
70
|
-
"bn.js": "^5.2.3",
|
|
71
|
-
"buffer": "^6.0.3",
|
|
72
70
|
"debug": "~4.4.3",
|
|
73
71
|
"eslint": "^10.4.1",
|
|
74
72
|
"ethers": "^6.16.0",
|
|
@@ -94,11 +92,9 @@
|
|
|
94
92
|
"@xylabs/geo": "^6.0",
|
|
95
93
|
"@xylabs/sdk-js": "^6.0",
|
|
96
94
|
"@xylabs/threads": "^6.0",
|
|
97
|
-
"@xyo-network/sdk-protocol-js": "
|
|
95
|
+
"@xyo-network/sdk-protocol-js": "^6.1",
|
|
98
96
|
"ajv": "^8.20",
|
|
99
97
|
"async-mutex": "^0.5",
|
|
100
|
-
"bn.js": "^5.2",
|
|
101
|
-
"buffer": "^6.0",
|
|
102
98
|
"debug": "~4.4",
|
|
103
99
|
"ethers": "^6.16",
|
|
104
100
|
"hash-wasm": "~4.12",
|
|
@@ -109,6 +105,9 @@
|
|
|
109
105
|
"webextension-polyfill": "^0.12",
|
|
110
106
|
"zod": "^4.4"
|
|
111
107
|
},
|
|
108
|
+
"engines": {
|
|
109
|
+
"node": "^24"
|
|
110
|
+
},
|
|
112
111
|
"publishConfig": {
|
|
113
112
|
"access": "public"
|
|
114
113
|
}
|