@xyo-network/bowser-system-info-payload-plugin 6.1.0 → 7.0.1

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.
@@ -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").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").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").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";
7
+ import { PayloadZodOfSchema } from "@xyo-network/sdk";
8
+ import * as z from "zod/mini";
3
9
 
4
10
  // src/Schema.ts
5
- import { asSchema } from "@xyo-network/sdk-js";
11
+ import { asSchema } from "@xyo-network/sdk";
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";
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'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk'\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'\n\nexport type BowserSystemInfoSchema = typeof BowserSystemInfoSchema\nexport const BowserSystemInfoSchema = asSchema('network.xyo.system.info.bowser', true)\n", "import { createPayloadPlugin } from '@xyo-network/sdk'\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.1.0",
3
+ "version": "7.0.1",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -32,49 +32,46 @@
32
32
  ],
33
33
  "devDependencies": {
34
34
  "@bitauth/libauth": "~3.0.0",
35
- "@metamask/providers": "^22.1.1",
36
35
  "@noble/post-quantum": "~0.6.1",
37
36
  "@opentelemetry/api": "^1.9.1",
38
- "@opentelemetry/sdk-trace-base": "^2.7.1",
37
+ "@opentelemetry/sdk-trace-base": "^2.8.0",
39
38
  "@scure/base": "^2.2.0",
40
39
  "@scure/bip39": "~2.2.0",
41
- "@xylabs/geo": "^6.1.0",
42
- "@xylabs/sdk-js": "^6.1.0",
43
- "@xylabs/threads": "^6.1.0",
44
- "@xylabs/toolchain": "~8.1.20",
45
- "@xylabs/tsconfig": "~8.1.20",
46
- "@xylabs/vitest-extended": "^6.1.0",
47
- "@xyo-network/sdk-js": "^6.1.0",
48
- "@xyo-network/sdk-protocol-js": "~6.1",
40
+ "@xylabs/geo": "^7.0.1",
41
+ "@xylabs/sdk": "^7.0.1",
42
+ "@xylabs/threads": "^7.0.1",
43
+ "@xylabs/toolchain": "~8.5.3",
44
+ "@xylabs/tsconfig": "~8.5.3",
45
+ "@xylabs/vitest-extended": "^7.0.1",
46
+ "@xyo-network/sdk": "~7.0.3",
49
47
  "ajv": "^8.20.0",
50
48
  "async-mutex": "^0.5.0",
51
49
  "bowser": "^2.14.1",
50
+ "browserslist": "4.28.4",
52
51
  "debug": "~4.4.3",
53
- "eslint": "^10.4.1",
54
- "ethers": "^6.16.0",
52
+ "eslint": "^10.6.0",
53
+ "eslint-import-resolver-typescript": "^4.4.5",
54
+ "ethers": "^6.17.0",
55
55
  "hash-wasm": "^4.12.0",
56
56
  "idb": "^8.0.3",
57
57
  "lru-cache": "^11.5.1",
58
58
  "observable-fns": "~0.6.1",
59
59
  "typescript": "~6.0.3",
60
- "vite": "^8.0.16",
61
- "vitest": "^4.1.8",
62
- "webextension-polyfill": "^0.12.0",
60
+ "vite": "^8.1.0",
61
+ "vitest": "^4.1.9",
63
62
  "zod": "^4.4.3"
64
63
  },
65
64
  "peerDependencies": {
66
65
  "@bitauth/libauth": "~3.0",
67
- "@metamask/providers": "^22.1",
68
66
  "@noble/post-quantum": "~0.6.1",
69
67
  "@opentelemetry/api": "^1.9",
70
68
  "@opentelemetry/sdk-trace-base": "^2.7",
71
69
  "@scure/base": "^2.2",
72
70
  "@scure/bip39": "~2.2",
73
- "@xylabs/geo": "^6.0",
74
- "@xylabs/sdk-js": "^6.0",
75
- "@xylabs/threads": "^6.0",
76
- "@xyo-network/sdk-js": "^6.0",
77
- "@xyo-network/sdk-protocol-js": "^6.1",
71
+ "@xylabs/geo": "^7.0",
72
+ "@xylabs/sdk": "^7.0",
73
+ "@xylabs/threads": "^7.0",
74
+ "@xyo-network/sdk": "~7.0",
78
75
  "ajv": "^8.20",
79
76
  "async-mutex": "^0.5",
80
77
  "bowser": "^2.14",
@@ -84,7 +81,6 @@
84
81
  "idb": "^8.0",
85
82
  "lru-cache": "^11.3",
86
83
  "observable-fns": "~0.6",
87
- "webextension-polyfill": "^0.12",
88
84
  "zod": "^4.4"
89
85
  },
90
86
  "engines": {