@xyo-network/diviner-jsonpatch-model 5.3.0 → 5.3.1

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,3 +1,5 @@
1
- export type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch';
2
- export declare const JsonPatchDivinerSchema: JsonPatchDivinerSchema;
1
+ export declare const JsonPatchDivinerSchema: "network.xyo.diviner.jsonpatch" & {
2
+ readonly __schema: true;
3
+ };
4
+ export type JsonPatchDivinerSchema = typeof JsonPatchDivinerSchema;
3
5
  //# sourceMappingURL=Schema.d.ts.map
@@ -1 +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
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;CAAkD,CAAA;AACrF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA"}
@@ -1,11 +1,12 @@
1
1
  // src/Config.ts
2
- import { asSchema } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/payload-model";
3
3
 
4
4
  // src/Schema.ts
5
- var JsonPatchDivinerSchema = "network.xyo.diviner.jsonpatch";
5
+ import { asSchema } from "@xyo-network/payload-model";
6
+ var JsonPatchDivinerSchema = asSchema("network.xyo.diviner.jsonpatch", true);
6
7
 
7
8
  // src/Config.ts
8
- var JsonPatchDivinerConfigSchema = asSchema(`${JsonPatchDivinerSchema}.config`, true);
9
+ var JsonPatchDivinerConfigSchema = asSchema2(`${JsonPatchDivinerSchema}.config`, true);
9
10
  export {
10
11
  JsonPatchDivinerConfigSchema,
11
12
  JsonPatchDivinerSchema
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\nimport type { Operation } from 'fast-json-patch'\n\nimport { JsonPatchDivinerSchema } from './Schema.ts'\n\nexport const JsonPatchDivinerConfigSchema = asSchema(`${JsonPatchDivinerSchema}.config`, true)\nexport type JsonPatchDivinerConfigSchema = typeof JsonPatchDivinerConfigSchema\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","export type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'\nexport const JsonPatchDivinerSchema: JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'\n"],"mappings":";AACA,SAAS,gBAAgB;;;ACAlB,IAAM,yBAAiD;;;ADKvD,IAAM,+BAA+B,SAAS,GAAG,sBAAsB,WAAW,IAAI;","names":[]}
1
+ {"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts"],"sourcesContent":["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\nimport type { Operation } from 'fast-json-patch'\n\nimport { JsonPatchDivinerSchema } from './Schema.ts'\n\nexport const JsonPatchDivinerConfigSchema = asSchema(`${JsonPatchDivinerSchema}.config`, true)\nexport type JsonPatchDivinerConfigSchema = typeof JsonPatchDivinerConfigSchema\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","import { asSchema } from '@xyo-network/payload-model'\n\nexport const JsonPatchDivinerSchema = asSchema('network.xyo.diviner.jsonpatch', true)\nexport type JsonPatchDivinerSchema = typeof JsonPatchDivinerSchema\n"],"mappings":";AACA,SAAS,YAAAA,iBAAgB;;;ACDzB,SAAS,gBAAgB;AAElB,IAAM,yBAAyB,SAAS,iCAAiC,IAAI;;;ADI7E,IAAM,+BAA+BC,UAAS,GAAG,sBAAsB,WAAW,IAAI;","names":["asSchema","asSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-jsonpatch-model",
3
- "version": "5.3.0",
3
+ "version": "5.3.1",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -36,9 +36,9 @@
36
36
  "!**/*.test.*"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/diviner-model": "~5.3.0",
40
- "@xyo-network/module-model": "~5.3.0",
41
- "@xyo-network/payload-model": "~5.3.0",
39
+ "@xyo-network/diviner-model": "~5.3.1",
40
+ "@xyo-network/module-model": "~5.3.1",
41
+ "@xyo-network/payload-model": "~5.3.1",
42
42
  "fast-json-patch": "~3.1.1"
43
43
  },
44
44
  "devDependencies": {
package/src/Schema.ts CHANGED
@@ -1,2 +1,4 @@
1
- export type JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'
2
- export const JsonPatchDivinerSchema: JsonPatchDivinerSchema = 'network.xyo.diviner.jsonpatch'
1
+ import { asSchema } from '@xyo-network/payload-model'
2
+
3
+ export const JsonPatchDivinerSchema = asSchema('network.xyo.diviner.jsonpatch', true)
4
+ export type JsonPatchDivinerSchema = typeof JsonPatchDivinerSchema