@xyo-network/xml-plugin 6.0.3 → 7.0.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 +5 -0
- package/dist/neutral/Diviner/lib/StringDataField.d.ts +11 -7
- package/dist/neutral/Diviner/lib/StringDataField.d.ts.map +1 -1
- package/dist/neutral/Diviner/lib/toXml.d.ts +2 -2
- package/dist/neutral/Diviner/lib/toXml.d.ts.map +1 -1
- package/dist/neutral/Payload.d.ts +53 -13
- package/dist/neutral/Payload.d.ts.map +1 -1
- package/dist/neutral/index.mjs +22 -8
- package/dist/neutral/index.mjs.map +3 -3
- package/package.json +19 -20
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/xml-plugin
|
|
2
4
|
|
|
3
5
|
[![npm][npm-badge]][npm-link]
|
|
@@ -36,9 +38,12 @@ bun add {{name}}
|
|
|
36
38
|
|
|
37
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
38
40
|
|
|
41
|
+
## Credits
|
|
39
42
|
|
|
43
|
+
[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
|
|
40
44
|
|
|
41
45
|
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/xml-plugin.svg
|
|
42
46
|
[npm-link]: https://www.npmjs.com/package/@xyo-network/xml-plugin
|
|
43
47
|
[license-badge]: https://img.shields.io/npm/l/@xyo-network/xml-plugin.svg
|
|
44
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,16 +1,20 @@
|
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
/**
|
|
3
|
+
* Schema representing an object with a string data field
|
|
4
|
+
*/
|
|
5
|
+
export declare const StringDataFieldZod: z.ZodMiniObject<{
|
|
6
|
+
data: z.ZodMiniString<string>;
|
|
7
|
+
}, z.core.$strip>;
|
|
1
8
|
/**
|
|
2
9
|
* Interface representing an object with a string data field
|
|
3
10
|
*/
|
|
4
|
-
export
|
|
5
|
-
/**
|
|
6
|
-
* The string data
|
|
7
|
-
*/
|
|
8
|
-
data: string;
|
|
9
|
-
}
|
|
11
|
+
export type StringDataField = z.infer<typeof StringDataFieldZod>;
|
|
10
12
|
/**
|
|
11
13
|
* Identity for StringDataField
|
|
12
14
|
* @param obj The input object
|
|
13
15
|
* @returns True if the object is a StringDataField, false otherwise
|
|
14
16
|
*/
|
|
15
|
-
export declare const hasStringDataField: (
|
|
17
|
+
export declare const hasStringDataField: <T>(value: T) => value is T & {
|
|
18
|
+
data: string;
|
|
19
|
+
};
|
|
16
20
|
//# sourceMappingURL=StringDataField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StringDataField.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/lib/StringDataField.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StringDataField.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/lib/StringDataField.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B;;GAEG;AACH,eAAO,MAAM,kBAAkB;;iBAAiC,CAAA;AAEhE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEhE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB;;CAAmC,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { Xml } from '../../Payload.ts';
|
|
2
2
|
import type { StringDataField } from './StringDataField.ts';
|
|
3
3
|
/**
|
|
4
|
-
* Takes a string data field containing
|
|
5
|
-
* @param obj The input object which contains the stringified
|
|
4
|
+
* Takes a string data field containing XML and converts it to an XML object
|
|
5
|
+
* @param obj The input object which contains the stringified XML data
|
|
6
6
|
* @returns A promise that resolves to an XML payload
|
|
7
7
|
*/
|
|
8
8
|
export declare const toXml: (obj: StringDataField) => Promise<Xml>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toXml.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/lib/toXml.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toXml.d.ts","sourceRoot":"","sources":["../../../../src/Diviner/lib/toXml.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,KAAK,eAAe,KAAG,OAAO,CAAC,GAAG,CAavD,CAAA"}
|
|
@@ -1,22 +1,62 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Payload } from '@xyo-network/sdk-js';
|
|
3
|
-
import { XmlSchema } from './Schema.ts';
|
|
1
|
+
import * as z from 'zod/mini';
|
|
4
2
|
/**
|
|
5
|
-
* The fields of an
|
|
3
|
+
* The fields of an XML Payload
|
|
6
4
|
*/
|
|
7
|
-
export
|
|
8
|
-
xml:
|
|
9
|
-
}
|
|
5
|
+
export declare const XmlFieldsZod: z.ZodMiniObject<{
|
|
6
|
+
xml: z.ZodMiniCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
10
8
|
/**
|
|
11
|
-
*
|
|
9
|
+
* The fields of an XML Payload
|
|
12
10
|
*/
|
|
13
|
-
export type
|
|
11
|
+
export type XmlFields = z.infer<typeof XmlFieldsZod>;
|
|
14
12
|
/**
|
|
15
|
-
*
|
|
13
|
+
* An XML Payload
|
|
16
14
|
*/
|
|
17
|
-
export declare const
|
|
15
|
+
export declare const XmlZod: z.ZodMiniObject<{
|
|
16
|
+
schema: z.ZodMiniLiteral<"network.xyo.xml" & {
|
|
17
|
+
readonly __schema: true;
|
|
18
|
+
}>;
|
|
19
|
+
xml: z.ZodMiniCustom<Record<string, unknown>, Record<string, unknown>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
18
21
|
/**
|
|
19
|
-
*
|
|
22
|
+
* An XML Payload
|
|
20
23
|
*/
|
|
21
|
-
export
|
|
24
|
+
export type Xml = z.infer<typeof XmlZod>;
|
|
25
|
+
/**
|
|
26
|
+
* Identity function for determine if an object is an XML Payload
|
|
27
|
+
*/
|
|
28
|
+
export declare const isXml: <T>(value: T) => value is T & {
|
|
29
|
+
schema: "network.xyo.xml" & {
|
|
30
|
+
readonly __schema: true;
|
|
31
|
+
};
|
|
32
|
+
xml: Record<string, unknown>;
|
|
33
|
+
};
|
|
34
|
+
export declare const asXml: {
|
|
35
|
+
<T>(value: T): (T & {
|
|
36
|
+
schema: "network.xyo.xml" & {
|
|
37
|
+
readonly __schema: true;
|
|
38
|
+
};
|
|
39
|
+
xml: Record<string, unknown>;
|
|
40
|
+
}) | undefined;
|
|
41
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
42
|
+
schema: "network.xyo.xml" & {
|
|
43
|
+
readonly __schema: true;
|
|
44
|
+
};
|
|
45
|
+
xml: Record<string, unknown>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export declare const toXml: {
|
|
49
|
+
<T>(value: T): (T & {
|
|
50
|
+
schema: "network.xyo.xml" & {
|
|
51
|
+
readonly __schema: true;
|
|
52
|
+
};
|
|
53
|
+
xml: Record<string, unknown>;
|
|
54
|
+
}) | undefined;
|
|
55
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
56
|
+
schema: "network.xyo.xml" & {
|
|
57
|
+
readonly __schema: true;
|
|
58
|
+
};
|
|
59
|
+
xml: Record<string, unknown>;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
22
62
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B;;GAEG;AACH,eAAO,MAAM,YAAY;;iBAA4C,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;iBAAqE,CAAA;AAExF;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;CAAuB,CAAA;AACzC,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAAgC,CAAA;AAClD,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAAgC,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -22,9 +22,10 @@ import { asSchema } from "@xyo-network/sdk-js";
|
|
|
22
22
|
var XmlSchema = asSchema("network.xyo.xml", true);
|
|
23
23
|
|
|
24
24
|
// src/Diviner/lib/StringDataField.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
25
|
+
import { zodIsFactory } from "@xylabs/sdk-js";
|
|
26
|
+
import * as z from "zod/mini";
|
|
27
|
+
var StringDataFieldZod = z.object({ data: z.string() });
|
|
28
|
+
var hasStringDataField = zodIsFactory(StringDataFieldZod);
|
|
28
29
|
|
|
29
30
|
// src/Diviner/lib/toXml.ts
|
|
30
31
|
import { Parser } from "xml2js";
|
|
@@ -35,7 +36,8 @@ var toXml = (obj) => {
|
|
|
35
36
|
if (err) {
|
|
36
37
|
reject(err);
|
|
37
38
|
} else {
|
|
38
|
-
const
|
|
39
|
+
const parsed = result;
|
|
40
|
+
const xml = { schema: XmlSchema, xml: parsed };
|
|
39
41
|
resolve(xml);
|
|
40
42
|
}
|
|
41
43
|
});
|
|
@@ -61,13 +63,25 @@ XmlParsingDiviner = __decorateClass([
|
|
|
61
63
|
], XmlParsingDiviner);
|
|
62
64
|
|
|
63
65
|
// src/Payload.ts
|
|
64
|
-
import {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
import {
|
|
67
|
+
zodAsFactory,
|
|
68
|
+
zodIsFactory as zodIsFactory2,
|
|
69
|
+
zodToFactory
|
|
70
|
+
} from "@xylabs/sdk-js";
|
|
71
|
+
import { PayloadZodOfSchema } from "@xyo-network/sdk-js";
|
|
72
|
+
import * as z2 from "zod/mini";
|
|
73
|
+
var XmlFieldsZod = z2.object({ xml: z2.custom() });
|
|
74
|
+
var XmlZod = z2.extend(PayloadZodOfSchema(XmlSchema), { ...XmlFieldsZod.shape });
|
|
75
|
+
var isXml = zodIsFactory2(XmlZod);
|
|
76
|
+
var asXml = zodAsFactory(XmlZod, "asXml");
|
|
77
|
+
var toXml2 = zodToFactory(XmlZod, "toXml");
|
|
67
78
|
export {
|
|
79
|
+
XmlFieldsZod,
|
|
68
80
|
XmlParsingDiviner,
|
|
69
81
|
XmlSchema,
|
|
82
|
+
XmlZod,
|
|
83
|
+
asXml,
|
|
70
84
|
isXml,
|
|
71
|
-
|
|
85
|
+
toXml2 as toXml
|
|
72
86
|
};
|
|
73
87
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Diviner/Diviner.ts", "../../src/Schema.ts", "../../src/Diviner/lib/StringDataField.ts", "../../src/Diviner/lib/toXml.ts", "../../src/Diviner/Schema.ts", "../../src/Payload.ts"],
|
|
4
|
-
"sourcesContent": ["import type {\n DivinerInstance, DivinerModuleEventData, Payload, Schema,\n} from '@xyo-network/sdk-js'\nimport { AbstractDiviner, creatableModule } from '@xyo-network/sdk-js'\n\nimport type { Xml } from '../Payload.ts'\nimport { XmlSchema } from '../Schema.ts'\nimport type { StringDataField } from './lib/index.ts'\nimport { hasStringDataField, toXml } from './lib/index.ts'\nimport type { XmlParsingDivinerParams } from './Params.ts'\nimport { XmlParsingDivinerConfigSchema } from './Schema.ts'\n\n@creatableModule()\nexport class XmlParsingDiviner<\n TParams extends XmlParsingDivinerParams = XmlParsingDivinerParams,\n TIn extends Payload<StringDataField> = Payload<StringDataField>,\n TOut extends Xml | Payload = Xml | 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, XmlParsingDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = XmlParsingDivinerConfigSchema\n static override readonly targetSchema = XmlSchema\n\n protected override async divineHandler(payloads: TIn[] = []): Promise<TOut[]> {\n const results = await Promise.all(payloads.filter(hasStringDataField).map(toXml))\n return results as TOut[]\n }\n}\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport const XmlSchema = asSchema('network.xyo.xml', true)\nexport type XmlSchema = typeof XmlSchema\n", "/**\n *
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAGA,SAAS,iBAAiB,uBAAuB;;;ACHjD,SAAS,gBAAgB;AAElB,IAAM,YAAY,SAAS,mBAAmB,IAAI;;;
|
|
6
|
-
"names": ["asSchema"]
|
|
4
|
+
"sourcesContent": ["import type {\n DivinerInstance, DivinerModuleEventData, Payload, Schema,\n} from '@xyo-network/sdk-js'\nimport { AbstractDiviner, creatableModule } from '@xyo-network/sdk-js'\n\nimport type { Xml } from '../Payload.ts'\nimport { XmlSchema } from '../Schema.ts'\nimport type { StringDataField } from './lib/index.ts'\nimport { hasStringDataField, toXml } from './lib/index.ts'\nimport type { XmlParsingDivinerParams } from './Params.ts'\nimport { XmlParsingDivinerConfigSchema } from './Schema.ts'\n\n@creatableModule()\nexport class XmlParsingDiviner<\n TParams extends XmlParsingDivinerParams = XmlParsingDivinerParams,\n TIn extends Payload<StringDataField> = Payload<StringDataField>,\n TOut extends Xml | Payload = Xml | 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, XmlParsingDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = XmlParsingDivinerConfigSchema\n static override readonly targetSchema = XmlSchema\n\n protected override async divineHandler(payloads: TIn[] = []): Promise<TOut[]> {\n const results = await Promise.all(payloads.filter(hasStringDataField).map(toXml))\n return results as TOut[]\n }\n}\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport const XmlSchema = asSchema('network.xyo.xml', true)\nexport type XmlSchema = typeof XmlSchema\n", "import { zodIsFactory } from '@xylabs/sdk-js'\nimport * as z from 'zod/mini'\n\n/**\n * Schema representing an object with a string data field\n */\nexport const StringDataFieldZod = z.object({ data: z.string() })\n\n/**\n * Interface representing an object with a string data field\n */\nexport type StringDataField = z.infer<typeof StringDataFieldZod>\n\n/**\n * Identity for StringDataField\n * @param obj The input object\n * @returns True if the object is a StringDataField, false otherwise\n */\nexport const hasStringDataField = zodIsFactory(StringDataFieldZod)\n", "import type { JsonObject } from '@xylabs/sdk-js'\nimport { Parser } from 'xml2js'\n\nimport type { Xml } from '../../Payload.ts'\nimport { XmlSchema } from '../../Schema.ts'\nimport type { StringDataField } from './StringDataField.ts'\n\n/**\n * Takes a string data field containing XML and converts it to an XML object\n * @param obj The input object which contains the stringified XML data\n * @returns A promise that resolves to an XML payload\n */\nexport const toXml = (obj: StringDataField): Promise<Xml> => {\n const parser = new Parser()\n return new Promise<Xml>((resolve, reject) => {\n parser.parseString(obj.data, (err, result) => {\n if (err) {\n reject(err)\n } else {\n const parsed = result as JsonObject\n const xml = { schema: XmlSchema, xml: parsed } as const\n resolve(xml)\n }\n })\n })\n}\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport const XmlParsingDivinerConfigSchema = asSchema('network.xyo.diviner.xml.config', true)\nexport type XmlParsingDivinerConfigSchema = typeof XmlParsingDivinerConfigSchema\n", "import type { JsonObject } from '@xylabs/sdk-js'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-js'\nimport * as z from 'zod/mini'\n\nimport { XmlSchema } from './Schema.ts'\n\n/**\n * The fields of an XML Payload\n */\nexport const XmlFieldsZod = z.object({ xml: z.custom<JsonObject>() })\n\n/**\n * The fields of an XML Payload\n */\nexport type XmlFields = z.infer<typeof XmlFieldsZod>\n\n/**\n * An XML Payload\n */\nexport const XmlZod = z.extend(PayloadZodOfSchema(XmlSchema), { ...XmlFieldsZod.shape })\n\n/**\n * An XML Payload\n */\nexport type Xml = z.infer<typeof XmlZod>\n\n/**\n * Identity function for determine if an object is an XML Payload\n */\nexport const isXml = zodIsFactory(XmlZod)\nexport const asXml = zodAsFactory(XmlZod, 'asXml')\nexport const toXml = zodToFactory(XmlZod, 'toXml')\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAGA,SAAS,iBAAiB,uBAAuB;;;ACHjD,SAAS,gBAAgB;AAElB,IAAM,YAAY,SAAS,mBAAmB,IAAI;;;ACFzD,SAAS,oBAAoB;AAC7B,YAAY,OAAO;AAKZ,IAAM,qBAAuB,SAAO,EAAE,MAAQ,SAAO,EAAE,CAAC;AAYxD,IAAM,qBAAqB,aAAa,kBAAkB;;;ACjBjE,SAAS,cAAc;AAWhB,IAAM,QAAQ,CAAC,QAAuC;AAC3D,QAAM,SAAS,IAAI,OAAO;AAC1B,SAAO,IAAI,QAAa,CAAC,SAAS,WAAW;AAC3C,WAAO,YAAY,IAAI,MAAM,CAAC,KAAK,WAAW;AAC5C,UAAI,KAAK;AACP,eAAO,GAAG;AAAA,MACZ,OAAO;AACL,cAAM,SAAS;AACf,cAAM,MAAM,EAAE,QAAQ,WAAW,KAAK,OAAO;AAC7C,gBAAQ,GAAG;AAAA,MACb;AAAA,IACF,CAAC;AAAA,EACH,CAAC;AACH;;;ACzBA,SAAS,YAAAA,iBAAgB;AAElB,IAAM,gCAAgCA,UAAS,kCAAkC,IAAI;;;AJWrF,IAAM,oBAAN,cASG,gBAAgD;AAAA,EAKxD,MAAyB,cAAc,WAAkB,CAAC,GAAoB;AAC5E,UAAM,UAAU,MAAM,QAAQ,IAAI,SAAS,OAAO,kBAAkB,EAAE,IAAI,KAAK,CAAC;AAChF,WAAO;AAAA,EACT;AACF;AARE,cAVW,mBAUc,iBAA0B,CAAC,GAAG,iDAAM,kBAAe,6BAA6B;AACzG,cAXW,mBAWc,uBAA8B;AACvD,cAZW,mBAYc,gBAAe;AAZ7B,oBAAN;AAAA,EADN,gBAAgB;AAAA,GACJ;;;AKZb;AAAA,EACE;AAAA,EAAc,gBAAAC;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,0BAA0B;AACnC,YAAYC,QAAO;AAOZ,IAAM,eAAiB,UAAO,EAAE,KAAO,UAAmB,EAAE,CAAC;AAU7D,IAAM,SAAW,UAAO,mBAAmB,SAAS,GAAG,EAAE,GAAG,aAAa,MAAM,CAAC;AAUhF,IAAM,QAAQC,cAAa,MAAM;AACjC,IAAM,QAAQ,aAAa,QAAQ,OAAO;AAC1C,IAAMC,SAAQ,aAAa,QAAQ,OAAO;",
|
|
6
|
+
"names": ["asSchema", "zodIsFactory", "z", "zodIsFactory", "toXml"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/xml-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -35,27 +35,25 @@
|
|
|
35
35
|
"@metamask/providers": "^22.1.1",
|
|
36
36
|
"@noble/post-quantum": "~0.6.1",
|
|
37
37
|
"@opentelemetry/api": "^1.9.1",
|
|
38
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
38
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
39
39
|
"@scure/base": "^2.2.0",
|
|
40
40
|
"@scure/bip39": "~2.2.0",
|
|
41
41
|
"@types/xml2js": "~0.4.14",
|
|
42
|
-
"@xylabs/geo": "^6.
|
|
43
|
-
"@xylabs/sdk-js": "^6.
|
|
44
|
-
"@xylabs/threads": "^6.
|
|
45
|
-
"@xylabs/toolchain": "~8.
|
|
46
|
-
"@xylabs/tsconfig": "~8.
|
|
47
|
-
"@xylabs/vitest-extended": "
|
|
48
|
-
"@xylabs/vitest-matchers": "~6.
|
|
49
|
-
"@xyo-network/sdk-js": "^
|
|
50
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
42
|
+
"@xylabs/geo": "^6.1.3",
|
|
43
|
+
"@xylabs/sdk-js": "^6.1.3",
|
|
44
|
+
"@xylabs/threads": "^6.1.3",
|
|
45
|
+
"@xylabs/toolchain": "~8.2.7",
|
|
46
|
+
"@xylabs/tsconfig": "~8.2.7",
|
|
47
|
+
"@xylabs/vitest-extended": "^6.1.3",
|
|
48
|
+
"@xylabs/vitest-matchers": "~6.1.3",
|
|
49
|
+
"@xyo-network/sdk-js": "^7.0.0",
|
|
50
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
51
51
|
"ajv": "^8.20.0",
|
|
52
52
|
"async-mutex": "^0.5.0",
|
|
53
53
|
"base64-js": "^1.5.1",
|
|
54
|
-
"bn.js": "^5.2.3",
|
|
55
|
-
"buffer": "^6.0.3",
|
|
56
54
|
"debug": "~4.4.3",
|
|
57
55
|
"es6-dynamic-template": "^2.0.0",
|
|
58
|
-
"eslint": "^10.
|
|
56
|
+
"eslint": "^10.5.0",
|
|
59
57
|
"ethers": "^6.16.0",
|
|
60
58
|
"hash-wasm": "^4.12.0",
|
|
61
59
|
"idb": "^8.0.3",
|
|
@@ -64,11 +62,11 @@
|
|
|
64
62
|
"tslib": "^2.8.1",
|
|
65
63
|
"typescript": "~6.0.3",
|
|
66
64
|
"vite": "^8.0.16",
|
|
67
|
-
"vitest": "^4.1.
|
|
65
|
+
"vitest": "^4.1.9",
|
|
68
66
|
"webextension-polyfill": "^0.12.0",
|
|
69
67
|
"xml2js": "^0.6.2",
|
|
70
68
|
"zod": "^4.4.3",
|
|
71
|
-
"@xyo-network/api-call-witness": "~
|
|
69
|
+
"@xyo-network/api-call-witness": "~7.0.0"
|
|
72
70
|
},
|
|
73
71
|
"peerDependencies": {
|
|
74
72
|
"@bitauth/libauth": "~3.0",
|
|
@@ -81,12 +79,10 @@
|
|
|
81
79
|
"@xylabs/geo": "^6.0",
|
|
82
80
|
"@xylabs/sdk-js": "^6.0",
|
|
83
81
|
"@xylabs/threads": "^6.0",
|
|
84
|
-
"@xyo-network/sdk-js": "^
|
|
85
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
82
|
+
"@xyo-network/sdk-js": "^7.0",
|
|
83
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
86
84
|
"ajv": "^8.20",
|
|
87
85
|
"async-mutex": "^0.5",
|
|
88
|
-
"bn.js": "^5.2",
|
|
89
|
-
"buffer": "^6.0",
|
|
90
86
|
"debug": "~4.4",
|
|
91
87
|
"ethers": "^6.16",
|
|
92
88
|
"hash-wasm": "^4.12",
|
|
@@ -97,6 +93,9 @@
|
|
|
97
93
|
"xml2js": "^0.6",
|
|
98
94
|
"zod": "^4.4"
|
|
99
95
|
},
|
|
96
|
+
"engines": {
|
|
97
|
+
"node": "^24"
|
|
98
|
+
},
|
|
100
99
|
"publishConfig": {
|
|
101
100
|
"access": "public"
|
|
102
101
|
}
|