@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.
@@ -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, Payload } 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 { 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 { Value } from './Payload.ts'\nimport { ValueSchema } from './Schema.ts'\n\nexport const valuePayloadTemplate = (): Value => ({\n schema: ValueSchema,\n value: null,\n})\n"],"mappings":";AACA,SAAS,uBAAuB,qCAA8C;;;ACAvE,IAAM,cAA2B;;;ADSjC,IAAM,iBAAiB,sBAA6B,WAAW;AAC/D,IAAM,yBAAyB,8BAAqC,WAAW;;;AEXtF,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, 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.0",
14
- "@xyo-network/payload-model": "^3.0.2",
15
- "@xyo-network/payload-plugin": "^3.0.2"
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.15",
19
- "@xylabs/tsconfig": "^4.0.0-rc.15",
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.2",
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 { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, Payload } from '@xyo-network/payload-model'
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
@@ -1,6 +1,6 @@
1
1
  import { createPayloadPlugin } from '@xyo-network/payload-plugin'
2
2
 
3
- import { Value } from './Payload.ts'
3
+ import type { Value } from './Payload.ts'
4
4
  import { ValueSchema } from './Schema.ts'
5
5
  import { valuePayloadTemplate } from './Template.ts'
6
6
 
package/src/Template.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Value } from './Payload.ts'
1
+ import type { Value } from './Payload.ts'
2
2
  import { ValueSchema } from './Schema.ts'
3
3
 
4
4
  export const valuePayloadTemplate = (): Value => ({
package/xy.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
1
+ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},