@xyo-network/bowser-system-info-payload-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 CHANGED
@@ -1,3 +1,5 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/bowser-system-info-payload-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/bowser-system-info-payload-plugin.svg
42
46
  [npm-link]: https://www.npmjs.com/package/@xyo-network/bowser-system-info-payload-plugin
43
47
  [license-badge]: https://img.shields.io/npm/l/@xyo-network/bowser-system-info-payload-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,8 +1,44 @@
1
- import type { Payload } from '@xyo-network/sdk-js';
2
1
  import type { Parser } from 'bowser';
3
- import type { BowserSystemInfoSchema } from './Schema.ts';
4
- export type BowserSystemInfoPayload = Payload<{
5
- bowser?: Parser.ParsedResult;
6
- schema: BowserSystemInfoSchema;
7
- }>;
2
+ import * as z from 'zod/mini';
3
+ export declare const BowserSystemInfoPayloadZod: z.ZodMiniObject<{
4
+ schema: z.ZodMiniLiteral<"network.xyo.system.info.bowser" & {
5
+ readonly __schema: true;
6
+ }>;
7
+ bowser: z.ZodMiniOptional<z.ZodMiniCustom<Parser.ParsedResult, Parser.ParsedResult>>;
8
+ }, z.core.$strip>;
9
+ export type BowserSystemInfoPayload = z.infer<typeof BowserSystemInfoPayloadZod>;
10
+ export declare const isBowserSystemInfoPayload: <T>(value: T) => value is T & {
11
+ schema: "network.xyo.system.info.bowser" & {
12
+ readonly __schema: true;
13
+ };
14
+ bowser?: Parser.ParsedResult | undefined;
15
+ };
16
+ export declare const asBowserSystemInfoPayload: {
17
+ <T>(value: T): (T & {
18
+ schema: "network.xyo.system.info.bowser" & {
19
+ readonly __schema: true;
20
+ };
21
+ bowser?: Parser.ParsedResult | undefined;
22
+ }) | undefined;
23
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
24
+ schema: "network.xyo.system.info.bowser" & {
25
+ readonly __schema: true;
26
+ };
27
+ bowser?: Parser.ParsedResult | undefined;
28
+ };
29
+ };
30
+ export declare const toBowserSystemInfoPayload: {
31
+ <T>(value: T): (T & {
32
+ schema: "network.xyo.system.info.bowser" & {
33
+ readonly __schema: true;
34
+ };
35
+ bowser?: Parser.ParsedResult | undefined;
36
+ }) | undefined;
37
+ <T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
38
+ schema: "network.xyo.system.info.bowser" & {
39
+ readonly __schema: true;
40
+ };
41
+ bowser?: Parser.ParsedResult | undefined;
42
+ };
43
+ };
8
44
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC,YAAY,CAAA;IAC5B,MAAM,EAAE,sBAAsB,CAAA;CAC/B,CAAC,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,0BAA0B;;;;;iBAAgH,CAAA;AAEvJ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF,eAAO,MAAM,yBAAyB;;;;;CAA2C,CAAA;AACjF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;CAAwE,CAAA;AAC9G,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;CAAwE,CAAA"}
@@ -1,3 +1,7 @@
1
- import type { BowserSystemInfoPayload } from './Payload.ts';
2
- export declare const BowserSystemInfoPayloadPlugin: () => import("@xyo-network/sdk-js").PayloadPlugin<BowserSystemInfoPayload>;
1
+ export declare const BowserSystemInfoPayloadPlugin: () => import("@xyo-network/sdk-js").PayloadPlugin<{
2
+ schema: "network.xyo.system.info.bowser" & {
3
+ readonly __schema: true;
4
+ };
5
+ bowser?: import("bowser").Parser.ParsedResult | undefined;
6
+ }>;
3
7
  //# sourceMappingURL=Plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA;AAI3D,eAAO,MAAM,6BAA6B,4EAItC,CAAA"}
1
+ {"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B;;;;;EAItC,CAAA"}
@@ -1,10 +1,25 @@
1
- // src/Plugin.ts
2
- import { createPayloadPlugin } from "@xyo-network/sdk-js";
1
+ // src/Payload.ts
2
+ import {
3
+ zodAsFactory,
4
+ zodIsFactory,
5
+ zodToFactory
6
+ } from "@xylabs/sdk-js";
7
+ import { PayloadZodOfSchema } from "@xyo-network/sdk-js";
8
+ import * as z from "zod/mini";
3
9
 
4
10
  // src/Schema.ts
5
11
  import { asSchema } from "@xyo-network/sdk-js";
6
12
  var BowserSystemInfoSchema = asSchema("network.xyo.system.info.bowser", true);
7
13
 
14
+ // src/Payload.ts
15
+ var BowserSystemInfoPayloadZod = z.extend(PayloadZodOfSchema(BowserSystemInfoSchema), { bowser: z.optional(z.custom()) });
16
+ var isBowserSystemInfoPayload = zodIsFactory(BowserSystemInfoPayloadZod);
17
+ var asBowserSystemInfoPayload = zodAsFactory(BowserSystemInfoPayloadZod, "asBowserSystemInfoPayload");
18
+ var toBowserSystemInfoPayload = zodToFactory(BowserSystemInfoPayloadZod, "toBowserSystemInfoPayload");
19
+
20
+ // src/Plugin.ts
21
+ import { createPayloadPlugin } from "@xyo-network/sdk-js";
22
+
8
23
  // src/Template.ts
9
24
  var bowserSystemInfoPayloadTemplate = () => ({ schema: BowserSystemInfoSchema });
10
25
 
@@ -15,8 +30,12 @@ var BowserSystemInfoPayloadPlugin = () => createPayloadPlugin({
15
30
  });
16
31
  export {
17
32
  BowserSystemInfoPayloadPlugin,
33
+ BowserSystemInfoPayloadZod,
18
34
  BowserSystemInfoSchema,
35
+ asBowserSystemInfoPayload,
19
36
  bowserSystemInfoPayloadTemplate,
20
- BowserSystemInfoPayloadPlugin as default
37
+ BowserSystemInfoPayloadPlugin as default,
38
+ isBowserSystemInfoPayload,
39
+ toBowserSystemInfoPayload
21
40
  };
22
41
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/Plugin.ts", "../../src/Schema.ts", "../../src/Template.ts"],
4
- "sourcesContent": ["import { createPayloadPlugin } from '@xyo-network/sdk-js'\n\nimport type { BowserSystemInfoPayload } from './Payload.ts'\nimport { BowserSystemInfoSchema } from './Schema.ts'\nimport { bowserSystemInfoPayloadTemplate } from './Template.ts'\n\nexport const BowserSystemInfoPayloadPlugin = () =>\n createPayloadPlugin<BowserSystemInfoPayload>({\n schema: BowserSystemInfoSchema,\n template: bowserSystemInfoPayloadTemplate,\n })\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type BowserSystemInfoSchema = typeof BowserSystemInfoSchema\nexport const BowserSystemInfoSchema = asSchema('network.xyo.system.info.bowser', true)\n", "import type { BowserSystemInfoPayload } from './Payload.ts'\nimport { BowserSystemInfoSchema } from './Schema.ts'\n\nexport const bowserSystemInfoPayloadTemplate = (): BowserSystemInfoPayload => ({ schema: BowserSystemInfoSchema })\n"],
5
- "mappings": ";AAAA,SAAS,2BAA2B;;;ACApC,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ACA9E,IAAM,kCAAkC,OAAgC,EAAE,QAAQ,uBAAuB;;;AFGzG,IAAM,gCAAgC,MAC3C,oBAA6C;AAAA,EAC3C,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;",
3
+ "sources": ["../../src/Payload.ts", "../../src/Schema.ts", "../../src/Plugin.ts", "../../src/Template.ts"],
4
+ "sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-js'\nimport type { Parser } from 'bowser'\nimport * as z from 'zod/mini'\n\nimport { BowserSystemInfoSchema } from './Schema.ts'\n\nexport const BowserSystemInfoPayloadZod = z.extend(PayloadZodOfSchema(BowserSystemInfoSchema), { bowser: z.optional(z.custom<Parser.ParsedResult>()) })\n\nexport type BowserSystemInfoPayload = z.infer<typeof BowserSystemInfoPayloadZod>\n\nexport const isBowserSystemInfoPayload = zodIsFactory(BowserSystemInfoPayloadZod)\nexport const asBowserSystemInfoPayload = zodAsFactory(BowserSystemInfoPayloadZod, 'asBowserSystemInfoPayload')\nexport const toBowserSystemInfoPayload = zodToFactory(BowserSystemInfoPayloadZod, 'toBowserSystemInfoPayload')\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type BowserSystemInfoSchema = typeof BowserSystemInfoSchema\nexport const BowserSystemInfoSchema = asSchema('network.xyo.system.info.bowser', true)\n", "import { createPayloadPlugin } from '@xyo-network/sdk-js'\n\nimport type { BowserSystemInfoPayload } from './Payload.ts'\nimport { BowserSystemInfoSchema } from './Schema.ts'\nimport { bowserSystemInfoPayloadTemplate } from './Template.ts'\n\nexport const BowserSystemInfoPayloadPlugin = () =>\n createPayloadPlugin<BowserSystemInfoPayload>({\n schema: BowserSystemInfoSchema,\n template: bowserSystemInfoPayloadTemplate,\n })\n", "import type { BowserSystemInfoPayload } from './Payload.ts'\nimport { BowserSystemInfoSchema } from './Schema.ts'\n\nexport const bowserSystemInfoPayloadTemplate = (): BowserSystemInfoPayload => ({ schema: BowserSystemInfoSchema })\n"],
5
+ "mappings": ";AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,0BAA0B;AAEnC,YAAY,OAAO;;;ACLnB,SAAS,gBAAgB;AAGlB,IAAM,yBAAyB,SAAS,kCAAkC,IAAI;;;ADM9E,IAAM,6BAA+B,SAAO,mBAAmB,sBAAsB,GAAG,EAAE,QAAU,WAAW,SAA4B,CAAC,EAAE,CAAC;AAI/I,IAAM,4BAA4B,aAAa,0BAA0B;AACzE,IAAM,4BAA4B,aAAa,4BAA4B,2BAA2B;AACtG,IAAM,4BAA4B,aAAa,4BAA4B,2BAA2B;;;AEf7G,SAAS,2BAA2B;;;ACG7B,IAAM,kCAAkC,OAAgC,EAAE,QAAQ,uBAAuB;;;ADGzG,IAAM,gCAAgC,MAC3C,oBAA6C;AAAA,EAC3C,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/bowser-system-info-payload-plugin",
3
- "version": "6.0.3",
3
+ "version": "7.0.0",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -35,24 +35,22 @@
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.7.1",
38
+ "@opentelemetry/sdk-trace-base": "^2.8.0",
39
39
  "@scure/base": "^2.2.0",
40
40
  "@scure/bip39": "~2.2.0",
41
- "@xylabs/geo": "^6.0.8",
42
- "@xylabs/sdk-js": "^6.0.8",
43
- "@xylabs/threads": "^6.0.8",
44
- "@xylabs/toolchain": "~8.1.16",
45
- "@xylabs/tsconfig": "~8.1.16",
46
- "@xylabs/vitest-extended": "~6.0.8",
47
- "@xyo-network/sdk-js": "^6.0.4",
48
- "@xyo-network/sdk-protocol-js": "~6.0.9",
41
+ "@xylabs/geo": "^6.1.3",
42
+ "@xylabs/sdk-js": "^6.1.3",
43
+ "@xylabs/threads": "^6.1.3",
44
+ "@xylabs/toolchain": "~8.2.7",
45
+ "@xylabs/tsconfig": "~8.2.7",
46
+ "@xylabs/vitest-extended": "^6.1.3",
47
+ "@xyo-network/sdk-js": "^7.0.0",
48
+ "@xyo-network/sdk-protocol-js": "~7.0",
49
49
  "ajv": "^8.20.0",
50
50
  "async-mutex": "^0.5.0",
51
- "bn.js": "^5.2.3",
52
51
  "bowser": "^2.14.1",
53
- "buffer": "^6.0.3",
54
52
  "debug": "~4.4.3",
55
- "eslint": "^10.4.1",
53
+ "eslint": "^10.5.0",
56
54
  "ethers": "^6.16.0",
57
55
  "hash-wasm": "^4.12.0",
58
56
  "idb": "^8.0.3",
@@ -60,7 +58,7 @@
60
58
  "observable-fns": "~0.6.1",
61
59
  "typescript": "~6.0.3",
62
60
  "vite": "^8.0.16",
63
- "vitest": "^4.1.8",
61
+ "vitest": "^4.1.9",
64
62
  "webextension-polyfill": "^0.12.0",
65
63
  "zod": "^4.4.3"
66
64
  },
@@ -75,13 +73,11 @@
75
73
  "@xylabs/geo": "^6.0",
76
74
  "@xylabs/sdk-js": "^6.0",
77
75
  "@xylabs/threads": "^6.0",
78
- "@xyo-network/sdk-js": "^6.0",
79
- "@xyo-network/sdk-protocol-js": "~6.0",
76
+ "@xyo-network/sdk-js": "^7.0",
77
+ "@xyo-network/sdk-protocol-js": "~7.0",
80
78
  "ajv": "^8.20",
81
79
  "async-mutex": "^0.5",
82
- "bn.js": "^5.2",
83
80
  "bowser": "^2.14",
84
- "buffer": "^6.0",
85
81
  "debug": "~4.4",
86
82
  "ethers": "^6.16",
87
83
  "hash-wasm": "^4.12",
@@ -91,6 +87,9 @@
91
87
  "webextension-polyfill": "^0.12",
92
88
  "zod": "^4.4"
93
89
  },
90
+ "engines": {
91
+ "node": "^24"
92
+ },
94
93
  "publishConfig": {
95
94
  "access": "public"
96
95
  }