@xyo-network/value-payload-plugin 3.6.9 → 3.6.10

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,3 +1,3 @@
1
- export type ValueSchema = 'network.xyo.value';
2
- export declare const ValueSchema: ValueSchema;
1
+ export declare const ValueSchema: "network.xyo.value";
2
+ export type ValueSchema = typeof ValueSchema;
3
3
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,mBAAmB,CAAA;AAC7C,eAAO,MAAM,WAAW,EAAE,WAAiC,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,EAAG,mBAA4B,CAAA;AACvD,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import type { JsonValue } from '@xylabs/object'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { ValueSchema } from './Schema.ts'\n\nexport type Value<T extends JsonValue = JsonValue> = Payload<{\n schema: ValueSchema\n value: T\n}>\n\nexport const isValuePayload = isPayloadOfSchemaType<Value>(ValueSchema)\n","export type ValueSchema = 'network.xyo.value'\nexport const ValueSchema: ValueSchema = 'network.xyo.value'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { Value } from './Payload.ts'\nimport { ValueSchema } from './Schema.ts'\nimport { valuePayloadTemplate } from './Template.ts'\n\nexport const ValuePayloadPlugin = () =>\n createPayloadPlugin<Value>({\n schema: ValueSchema,\n template: valuePayloadTemplate,\n })\n","import type { Value } from './Payload.ts'\nimport { ValueSchema } from './Schema.ts'\n\nexport const valuePayloadTemplate = (): Value => ({\n schema: ValueSchema,\n value: null,\n})\n"],"mappings":";AAEA,SAAS,6BAA6B;;;ACD/B,IAAM,cAA2B;;;ADUjC,IAAM,iBAAiB,sBAA6B,WAAW;;;AEXtE,SAAS,2BAA2B;;;ACG7B,IAAM,uBAAuB,OAAc;AAAA,EAChD,QAAQ;AAAA,EACR,OAAO;AACT;;;ADAO,IAAM,qBAAqB,MAChC,oBAA2B;AAAA,EACzB,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import type { JsonValue } from '@xylabs/object'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { ValueSchema } from './Schema.ts'\n\nexport type Value<T extends JsonValue = JsonValue> = Payload<{\n schema: ValueSchema\n value: T\n}>\n\nexport const isValuePayload = isPayloadOfSchemaType<Value>(ValueSchema)\n","export const ValueSchema = 'network.xyo.value' as const\nexport type ValueSchema = typeof ValueSchema\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { Value } from './Payload.ts'\nimport { ValueSchema } from './Schema.ts'\nimport { valuePayloadTemplate } from './Template.ts'\n\nexport const ValuePayloadPlugin = () =>\n createPayloadPlugin<Value>({\n schema: ValueSchema,\n template: valuePayloadTemplate,\n })\n","import type { Value } from './Payload.ts'\nimport { ValueSchema } from './Schema.ts'\n\nexport const valuePayloadTemplate = (): Value => ({\n schema: ValueSchema,\n value: null,\n})\n"],"mappings":";AAEA,SAAS,6BAA6B;;;ACF/B,IAAM,cAAc;;;ADWpB,IAAM,iBAAiB,sBAA6B,WAAW;;;AEXtE,SAAS,2BAA2B;;;ACG7B,IAAM,uBAAuB,OAAc;AAAA,EAChD,QAAQ;AAAA,EACR,OAAO;AACT;;;ADAO,IAAM,qBAAqB,MAChC,oBAA2B;AAAA,EACzB,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/value-payload-plugin",
3
- "version": "3.6.9",
3
+ "version": "3.6.10",
4
4
  "description": "Typescript/Javascript Plugins for XYO Platform",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,16 +29,16 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/object": "^4.4.34",
33
- "@xyo-network/payload-model": "^3.6.9",
34
- "@xyo-network/payload-plugin": "^3.6.9"
32
+ "@xylabs/object": "^4.5.1",
33
+ "@xyo-network/payload-model": "^3.6.10",
34
+ "@xyo-network/payload-plugin": "^3.6.10"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@xylabs/ts-scripts-yarn3": "^4.2.6",
38
38
  "@xylabs/tsconfig": "^4.2.6",
39
- "@xylabs/vitest-extended": "^4.4.34",
40
- "typescript": "^5.7.2",
41
- "vitest": "^2.1.8"
39
+ "@xylabs/vitest-extended": "^4.5.1",
40
+ "typescript": "^5.7.3",
41
+ "vitest": "^3.0.4"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
package/src/Schema.ts CHANGED
@@ -1,2 +1,2 @@
1
- export type ValueSchema = 'network.xyo.value'
2
- export const ValueSchema: ValueSchema = 'network.xyo.value'
1
+ export const ValueSchema = 'network.xyo.value' as const
2
+ export type ValueSchema = typeof ValueSchema