@xyo-network/diviner-jsonpath-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.ts"],"sourcesContent":["/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema: JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'\n","import { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":";AAOO,IAAMA,wBAA+C;;;ACKrD,IAAMC,8BAA2D,GAAGC,qBAAAA;","names":["JsonPathDivinerSchema","JsonPathDivinerConfigSchema","JsonPathDivinerSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema: JsonPathDivinerSchema = 'network.xyo.diviner.jsonpath'\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport type { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: JsonPathDivinerConfigSchema = `${JsonPathDivinerSchema}.config`\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: string\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n"],"mappings":";AAOO,IAAMA,wBAA+C;;;ACKrD,IAAMC,8BAA2D,GAAGC,qBAAAA;","names":["JsonPathDivinerSchema","JsonPathDivinerConfigSchema","JsonPathDivinerSchema"]}
package/package.json CHANGED
@@ -7,17 +7,17 @@
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/module-model": "^3.0.2",
16
- "@xyo-network/payload-model": "^3.0.2"
13
+ "@xylabs/object": "^4.0.2",
14
+ "@xyo-network/diviner-model": "^3.0.4",
15
+ "@xyo-network/module-model": "^3.0.4",
16
+ "@xyo-network/payload-model": "^3.0.4"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.15",
20
- "@xylabs/tsconfig": "^4.0.0-rc.15",
19
+ "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.20",
20
+ "@xylabs/tsconfig": "^4.0.0-rc.20",
21
21
  "typescript": "^5.5.4"
22
22
  },
23
23
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "repository": {
39
39
  "type": "git",
40
- "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
40
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
41
41
  },
42
42
  "sideEffects": false,
43
- "version": "3.0.2",
43
+ "version": "3.0.4",
44
44
  "type": "module"
45
45
  }
package/src/Config.ts CHANGED
@@ -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 { JsonPathTransformExpression } from './jsonpath/index.ts'
3
+ import type { JsonPathTransformExpression } from './jsonpath/index.ts'
4
4
  import { JsonPathDivinerSchema } from './Schema.ts'
5
5
 
6
6
  /**
package/src/Params.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { DivinerParams } from '@xyo-network/diviner-model'
2
- import { AnyConfigSchema } from '@xyo-network/module-model'
1
+ import type { DivinerParams } from '@xyo-network/diviner-model'
2
+ import type { AnyConfigSchema } from '@xyo-network/module-model'
3
3
 
4
- import { JsonPathDivinerConfig } from './Config.ts'
4
+ import type { JsonPathDivinerConfig } from './Config.ts'
5
5
 
6
6
  /**
7
7
  * The params type the JSON Path diviner
@@ -1,4 +1,4 @@
1
- import { JsonValue } from '@xylabs/object'
1
+ import type { JsonValue } from '@xylabs/object'
2
2
 
3
3
  /**
4
4
  * Describes the JSON-path transformation to retrieve a field on a source object
@@ -1,4 +1,4 @@
1
- import { Payload } from '@xyo-network/payload-model'
1
+ import type { Payload } from '@xyo-network/payload-model'
2
2
 
3
3
  // TODO: Support for multiple return values from a single transformer
4
4
  // export type PayloadTransformer = (x: Payload) => Partial<Payload> | Partial<Payload>[]
@@ -1,4 +1,4 @@
1
- import { JsonPathTransformExpression } from './JsonPathTransformExpression.ts'
1
+ import type { JsonPathTransformExpression } from './JsonPathTransformExpression.ts'
2
2
 
3
3
  /**
4
4
  * A dictionary of schema to JSON Path transform expressions.
@@ -1,4 +1,4 @@
1
- import { PayloadTransformer } from './PayloadTransformer.ts'
1
+ import type { PayloadTransformer } from './PayloadTransformer.ts'
2
2
 
3
3
  /**
4
4
  * A dictionary of schema to payload transformers
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: {},