@xyo-network/diviner-transform-model 3.0.2 → 3.0.4

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/Schema.ts","../../src/Config/Config.ts","../../src/Query.ts"],"sourcesContent":["export type TransformDivinerSchema = 'network.xyo.diviner.transform'\nexport const TransformDivinerSchema: TransformDivinerSchema = 'network.xyo.diviner.transform'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TransformDictionary } from '../Payload/index.ts'\nimport { TransformDivinerSchema } from '../Schema.ts'\n\nexport type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`\nexport const TransformDivinerConfigSchema: TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n","import { Payload, Query } from '@xyo-network/payload-model'\n\nimport { TransformSettings } from './Config/index.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\n\nexport type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`\nexport const TransformDivinerQuerySchema: TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],"mappings":";;;;AACO,IAAMA,yBAAiD;;;ACKvD,IAAMC,+BAA6D,GAAGC,sBAAAA;;;ACAtE,IAAMC,8BAA2D,GAAGC,sBAAAA;AAGpE,IAAMC,iCAAiC,wBAACC,MAA0DA,GAAGC,WAAWJ,6BAAzE;","names":["TransformDivinerSchema","TransformDivinerConfigSchema","TransformDivinerSchema","TransformDivinerQuerySchema","TransformDivinerSchema","isTransformDivinerQueryPayload","x","schema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config/Config.ts","../../src/Query.ts"],"sourcesContent":["export type TransformDivinerSchema = 'network.xyo.diviner.transform'\nexport const TransformDivinerSchema: TransformDivinerSchema = 'network.xyo.diviner.transform'\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport type { TransformDictionary } from '../Payload/index.ts'\nimport { TransformDivinerSchema } from '../Schema.ts'\n\nexport type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`\nexport const TransformDivinerConfigSchema: TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`\n\nexport type TransformDivinerConfig = DivinerConfig<{ transform?: TransformDictionary } & { schema: TransformDivinerConfigSchema }>\n","import type { Payload, Query } from '@xyo-network/payload-model'\n\nimport type { TransformSettings } from './Config/index.ts'\nimport { TransformDivinerSchema } from './Schema.ts'\n\nexport type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`\nexport const TransformDivinerQuerySchema: TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`\n\nexport type TransformDivinerQueryPayload = Query<{ schema: TransformDivinerQuerySchema } & Partial<TransformSettings>>\nexport const isTransformDivinerQueryPayload = (x?: Payload | null): x is TransformDivinerQueryPayload => x?.schema === TransformDivinerQuerySchema\n"],"mappings":";;;;AACO,IAAMA,yBAAiD;;;ACKvD,IAAMC,+BAA6D,GAAGC,sBAAAA;;;ACAtE,IAAMC,8BAA2D,GAAGC,sBAAAA;AAGpE,IAAMC,iCAAiC,wBAACC,MAA0DA,GAAGC,WAAWJ,6BAAzE;","names":["TransformDivinerSchema","TransformDivinerConfigSchema","TransformDivinerSchema","TransformDivinerQuerySchema","TransformDivinerSchema","isTransformDivinerQueryPayload","x","schema"]}
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/sdk-xyo-client-js/issues"
10
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/object": "^4.0.0",
14
- "@xyo-network/diviner-model": "^3.0.2",
15
- "@xyo-network/payload-model": "^3.0.2"
13
+ "@xylabs/object": "^4.0.2",
14
+ "@xyo-network/diviner-model": "^3.0.4",
15
+ "@xyo-network/payload-model": "^3.0.4"
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": "Primary SDK for using XYO Protocol 2.0",
@@ -36,9 +36,9 @@
36
36
  },
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
39
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
40
40
  },
41
41
  "sideEffects": false,
42
- "version": "3.0.2",
42
+ "version": "3.0.4",
43
43
  "type": "module"
44
44
  }
@@ -1,6 +1,6 @@
1
- import { DivinerConfig } from '@xyo-network/diviner-model'
1
+ import type { DivinerConfig } from '@xyo-network/diviner-model'
2
2
 
3
- import { TransformDictionary } from '../Payload/index.ts'
3
+ import type { TransformDictionary } from '../Payload/index.ts'
4
4
  import { TransformDivinerSchema } from '../Schema.ts'
5
5
 
6
6
  export type TransformDivinerConfigSchema = `${TransformDivinerSchema}.config`
@@ -1,6 +1,6 @@
1
- import { Payload } from '@xyo-network/payload-model'
1
+ import type { Payload } from '@xyo-network/payload-model'
2
2
 
3
- import { TransformDivinerSchema } from '../Schema.ts'
3
+ import type { TransformDivinerSchema } from '../Schema.ts'
4
4
 
5
5
  export type TransformDictionary = { [key: string]: string }
6
6
 
@@ -1,5 +1,5 @@
1
- import { JsonValue } from '@xylabs/object'
2
- import { Payload } from '@xyo-network/payload-model'
1
+ import type { JsonValue } from '@xylabs/object'
2
+ import type { Payload } from '@xyo-network/payload-model'
3
3
 
4
4
  export type PayloadValueTransformer<TSource extends Payload = Payload> = (payload: TSource) => JsonValue
5
5
 
package/src/Query.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Payload, Query } from '@xyo-network/payload-model'
1
+ import type { Payload, Query } from '@xyo-network/payload-model'
2
2
 
3
- import { TransformSettings } from './Config/index.ts'
3
+ import type { TransformSettings } from './Config/index.ts'
4
4
  import { TransformDivinerSchema } from './Schema.ts'
5
5
 
6
6
  export type TransformDivinerQuerySchema = `${TransformDivinerSchema}.query`
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: {},