@xyo-network/diviner-jsonpatch-model 3.0.6 → 3.0.8

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.
@@ -0,0 +1,11 @@
1
+ import type { DivinerConfig } from '@xyo-network/diviner-model';
2
+ import type { Operation } from 'json-joy-16-19-0/lib/json-patch';
3
+ import { JsonPatchDivinerSchema } from './Schema.ts';
4
+ export type JsonPatchDivinerConfigSchema = `${JsonPatchDivinerSchema}.config`;
5
+ export declare const JsonPatchDivinerConfigSchema: JsonPatchDivinerConfigSchema;
6
+ export type JsonPatchDivinerConfig = DivinerConfig<{
7
+ operations?: Operation[];
8
+ } & {
9
+ schema: JsonPatchDivinerConfigSchema;
10
+ }>;
11
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAA;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEpD,MAAM,MAAM,4BAA4B,GAAG,GAAG,sBAAsB,SAAS,CAAA;AAC7E,eAAO,MAAM,4BAA4B,EAAE,4BAAiE,CAAA;AAS5G,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC;IAAE,UAAU,CAAC,EAAE,SAAS,EAAE,CAAA;CAAE,GAAG;IAAE,MAAM,EAAE,4BAA4B,CAAA;CAAE,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { DivinerParams } from '@xyo-network/diviner-model';
2
+ import type { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import type { JsonPatchDivinerConfig } from './Config.ts';
4
+ export type JsonPatchDivinerParams = DivinerParams<AnyConfigSchema<JsonPatchDivinerConfig>>;
5
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,MAAM,sBAAsB,GAAG,aAAa,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch';
2
+ export declare const JsonPatchDivinerSchema: JsonPatchDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,+BAA+B,CAAA;AACpE,eAAO,MAAM,sBAAsB,EAAE,sBAAwD,CAAA"}
@@ -1,18 +1,4 @@
1
- import { DivinerConfig, DivinerParams } from '@xyo-network/diviner-model';
2
- import { Operation } from 'json-joy/lib/json-patch/index.js';
3
- import { AnyConfigSchema } from '@xyo-network/module-model';
4
-
5
- type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch';
6
- declare const JsonPatchDivinerSchema: JsonPatchDivinerSchema;
7
-
8
- type JsonPatchDivinerConfigSchema = `${JsonPatchDivinerSchema}.config`;
9
- declare const JsonPatchDivinerConfigSchema: JsonPatchDivinerConfigSchema;
10
- type JsonPatchDivinerConfig = DivinerConfig<{
11
- operations?: Operation[];
12
- } & {
13
- schema: JsonPatchDivinerConfigSchema;
14
- }>;
15
-
16
- type JsonPatchDivinerParams = DivinerParams<AnyConfigSchema<JsonPatchDivinerConfig>>;
17
-
18
- export { type JsonPatchDivinerConfig, JsonPatchDivinerConfigSchema, type JsonPatchDivinerParams, JsonPatchDivinerSchema };
1
+ export * from './Config.ts';
2
+ export * from './Params.ts';
3
+ export * from './Schema.ts';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["export type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'\nexport const JsonPatchDivinerSchema: JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Operation } from 'json-joy/lib/json-patch/index.js'\n\nimport { JsonPatchDivinerSchema } from './Schema.ts'\n\nexport type JsonPatchDivinerConfigSchema = `${JsonPatchDivinerSchema}.config`\nexport const JsonPatchDivinerConfigSchema: JsonPatchDivinerConfigSchema = `${JsonPatchDivinerSchema}.config`\n\n// TODO: Export our own compatible Operation type to hide implementation details\n// export interface Operation {\n// op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test'\n// path: string\n// value?: JsonValue\n// }\n\nexport type JsonPatchDivinerConfig = DivinerConfig<{ operations?: Operation[] } & { schema: JsonPatchDivinerConfigSchema }>\n"],"mappings":";AACO,IAAMA,yBAAiD;;;ACKvD,IAAMC,+BAA6D,GAAGC,sBAAAA;","names":["JsonPatchDivinerSchema","JsonPatchDivinerConfigSchema","JsonPatchDivinerSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts"],"sourcesContent":["export type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'\nexport const JsonPatchDivinerSchema: JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'\n","import type { DivinerConfig } from '@xyo-network/diviner-model'\n// eslint-disable-next-line import-x/no-internal-modules\nimport type { Operation } from 'json-joy-16-19-0/lib/json-patch'\n\nimport { JsonPatchDivinerSchema } from './Schema.ts'\n\nexport type JsonPatchDivinerConfigSchema = `${JsonPatchDivinerSchema}.config`\nexport const JsonPatchDivinerConfigSchema: JsonPatchDivinerConfigSchema = `${JsonPatchDivinerSchema}.config`\n\n// TODO: Export our own compatible Operation type to hide implementation details\n// export interface Operation {\n// op: 'add' | 'remove' | 'replace' | 'move' | 'copy' | 'test'\n// path: string\n// value?: JsonValue\n// }\n\nexport type JsonPatchDivinerConfig = DivinerConfig<{ operations?: Operation[] } & { schema: JsonPatchDivinerConfigSchema }>\n"],"mappings":";AACO,IAAMA,yBAAiD;;;ACMvD,IAAMC,+BAA6D,GAAGC,sBAAAA;","names":["JsonPatchDivinerSchema","JsonPatchDivinerConfigSchema","JsonPatchDivinerSchema"]}
package/package.json CHANGED
@@ -1,27 +1,24 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-jsonpatch-model",
3
- "author": {
4
- "email": "support@xyo.network",
5
- "name": "XYO Development Team",
6
- "url": "https://xyo.network"
7
- },
3
+ "version": "3.0.8",
4
+ "description": "Primary SDK for using XYO Protocol 2.0",
5
+ "homepage": "https://xyo.network",
8
6
  "bugs": {
9
- "email": "support@xyo.network",
10
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
7
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
8
+ "email": "support@xyo.network"
11
9
  },
12
- "dependencies": {
13
- "@xyo-network/diviner-model": "^3.0.6",
14
- "@xyo-network/module-model": "^3.0.6",
15
- "json-joy": "~16.19.0",
16
- "tslib": "^2.6.3"
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
17
13
  },
18
- "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.30",
20
- "@xylabs/tsconfig": "^4.0.0-rc.30",
21
- "typescript": "^5.5.4"
14
+ "license": "LGPL-3.0-only",
15
+ "author": {
16
+ "name": "XYO Development Team",
17
+ "email": "support@xyo.network",
18
+ "url": "https://xyo.network"
22
19
  },
23
- "description": "Primary SDK for using XYO Protocol 2.0",
24
- "types": "dist/neutral/index.d.ts",
20
+ "sideEffects": false,
21
+ "type": "module",
25
22
  "exports": {
26
23
  ".": {
27
24
  "types": "./dist/neutral/index.d.ts",
@@ -30,16 +27,19 @@
30
27
  "./package.json": "./package.json"
31
28
  },
32
29
  "module": "dist/neutral/index.mjs",
33
- "homepage": "https://xyo.network",
34
- "license": "LGPL-3.0-only",
35
- "publishConfig": {
36
- "access": "public"
30
+ "types": "dist/neutral/index.d.ts",
31
+ "dependencies": {
32
+ "@xyo-network/diviner-model": "^3.0.8",
33
+ "@xyo-network/module-model": "^3.0.8",
34
+ "json-joy-16-19-0": "npm:json-joy@16.19.0",
35
+ "tslib": "^2.7.0"
37
36
  },
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
37
+ "devDependencies": {
38
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
39
+ "@xylabs/tsconfig": "^4.0.7",
40
+ "typescript": "^5.5.4"
41
41
  },
42
- "sideEffects": false,
43
- "version": "3.0.6",
44
- "type": "module"
42
+ "publishConfig": {
43
+ "access": "public"
44
+ }
45
45
  }
package/src/Config.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import type { DivinerConfig } from '@xyo-network/diviner-model'
2
- import type { Operation } from 'json-joy/lib/json-patch/index.js'
2
+ // eslint-disable-next-line import-x/no-internal-modules
3
+ import type { Operation } from 'json-joy-16-19-0/lib/json-patch'
3
4
 
4
5
  import { JsonPatchDivinerSchema } from './Schema.ts'
5
6
 
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: {},
9
7
  },
10
8
  }