@xyo-network/value-payload-plugin 3.0.2 → 3.0.3
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/dist/neutral/index.mjs.map +1 -1
- package/package.json +8 -8
- package/src/Payload.ts +3 -2
- package/src/Plugin.ts +1 -1
- package/src/Template.ts +1 -1
- package/xy.config.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import { JsonValue } from '@xylabs/object'\nimport { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta
|
|
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, isPayloadOfSchemaTypeWithMeta } 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)\nexport const isValuePayloadWithMeta = isPayloadOfSchemaTypeWithMeta<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,uBAAuB,qCAAqC;;;ACD9D,IAAM,cAA2B;;;ADUjC,IAAM,iBAAiB,sBAA6B,WAAW;AAC/D,IAAM,yBAAyB,8BAAqC,WAAW;;;AEZtF,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
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
},
|
|
8
8
|
"bugs": {
|
|
9
9
|
"email": "support@xyo.network",
|
|
10
|
-
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
10
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/object": "^4.0.
|
|
14
|
-
"@xyo-network/payload-model": "^3.0.
|
|
15
|
-
"@xyo-network/payload-plugin": "^3.0.
|
|
13
|
+
"@xylabs/object": "^4.0.2",
|
|
14
|
+
"@xyo-network/payload-model": "^3.0.3",
|
|
15
|
+
"@xyo-network/payload-plugin": "^3.0.3"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.
|
|
19
|
-
"@xylabs/tsconfig": "^4.0.0-rc.
|
|
18
|
+
"@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
|
|
19
|
+
"@xylabs/tsconfig": "^4.0.0-rc.20",
|
|
20
20
|
"typescript": "^5.5.4"
|
|
21
21
|
},
|
|
22
22
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
39
|
+
"url": "git+https://github.com/XYOracleNetwork/plugins.git"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
|
-
"version": "3.0.
|
|
42
|
+
"version": "3.0.3",
|
|
43
43
|
"type": "module"
|
|
44
44
|
}
|
package/src/Payload.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { JsonValue } from '@xylabs/object'
|
|
2
|
-
import {
|
|
1
|
+
import type { JsonValue } from '@xylabs/object'
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
3
|
+
import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta } from '@xyo-network/payload-model'
|
|
3
4
|
|
|
4
5
|
import { ValueSchema } from './Schema.ts'
|
|
5
6
|
|
package/src/Plugin.ts
CHANGED
package/src/Template.ts
CHANGED
package/xy.config.ts
CHANGED