@xyo-network/value-payload-plugin 5.2.17 → 5.2.19
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import type { JsonValue } from '@xylabs/
|
|
1
|
+
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import type { JsonValue } from '@xylabs/sdk-js'\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": "5.2.
|
|
3
|
+
"version": "5.2.19",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"!**/*.test.*"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xylabs/
|
|
40
|
-
"@xyo-network/payload-model": "~5.2.
|
|
41
|
-
"@xyo-network/payload-plugin": "~5.2.
|
|
39
|
+
"@xylabs/sdk-js": "~5.0.61",
|
|
40
|
+
"@xyo-network/payload-model": "~5.2.19",
|
|
41
|
+
"@xyo-network/payload-plugin": "~5.2.19"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@xylabs/ts-scripts-yarn3": "~7.2.
|
|
45
|
-
"@xylabs/tsconfig": "~7.2.
|
|
46
|
-
"@xylabs/vitest-extended": "~5.0.
|
|
44
|
+
"@xylabs/ts-scripts-yarn3": "~7.2.32",
|
|
45
|
+
"@xylabs/tsconfig": "~7.2.32",
|
|
46
|
+
"@xylabs/vitest-extended": "~5.0.61",
|
|
47
47
|
"typescript": "~5.9.3",
|
|
48
|
-
"vitest": "~4.0.
|
|
48
|
+
"vitest": "~4.0.16"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/src/Payload.ts
CHANGED