@xyo-network/schema-payload-plugin 3.5.2 → 3.6.0-rc.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.
|
@@ -63,26 +63,4 @@ export declare const isSchemaPayloadWithSources: (x?: unknown | null) => x is im
|
|
|
63
63
|
*/
|
|
64
64
|
schema: SchemaSchema;
|
|
65
65
|
}>;
|
|
66
|
-
/**
|
|
67
|
-
* Identity function for determining if an object is an Schema with meta
|
|
68
|
-
*/
|
|
69
|
-
export declare const isSchemaPayloadWithMeta: (x?: unknown | null) => x is import("@xyo-network/payload-model").WithMeta<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
70
|
-
/**
|
|
71
|
-
* The schema definition
|
|
72
|
-
*/
|
|
73
|
-
definition: {
|
|
74
|
-
[key: string]: unknown;
|
|
75
|
-
$id?: string;
|
|
76
|
-
};
|
|
77
|
-
/**
|
|
78
|
-
* The schema this schema extends (if any)
|
|
79
|
-
*/
|
|
80
|
-
extends?: string;
|
|
81
|
-
/** @deprecated use definition.$id instead */
|
|
82
|
-
name?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Identifies this payload as a Schema
|
|
85
|
-
*/
|
|
86
|
-
schema: SchemaSchema;
|
|
87
|
-
}>;
|
|
88
66
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,EACoD,KAAK,OAAO,EACtE,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,OAAO,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;QACtB,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;IACD;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,MAAM,EAAE,YAAY,CAAA;CACrB,CAAC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe;IAxB1B;;OAEG;gBACS;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;QACtB,GAAG,CAAC,EAAE,MAAM,CAAA;KACb;IACD;;OAEG;cACO,MAAM;IAEhB,6CAA6C;WACtC,MAAM;IAEb;;OAEG;YACK,YAAY;CAM2D,CAAA;AAEjF;;GAEG;AACH,eAAO,MAAM,0BAA0B;IA7BrC;;OAEG;gBACS;QACV,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;QACtB,GAAG,CAAC,EAAE,MAAM,CAAA;KACb;IACD;;OAEG;cACO,MAAM;IAEhB,6CAA6C;WACtC,MAAM;IAEb;;OAEG;YACK,YAAY;EAWiF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,eAAO,MAAM,mBAAmB;;;
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,eAAO,MAAM,mBAAmB;;;WACE,CAAC;;;;;EAG/B,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// src/Payload.ts
|
|
2
2
|
import {
|
|
3
3
|
isPayloadOfSchemaType,
|
|
4
|
-
isPayloadOfSchemaTypeWithMeta,
|
|
5
4
|
isPayloadOfSchemaTypeWithSources
|
|
6
5
|
} from "@xyo-network/payload-model";
|
|
7
6
|
|
|
@@ -11,7 +10,6 @@ var SchemaSchema = "network.xyo.schema";
|
|
|
11
10
|
// src/Payload.ts
|
|
12
11
|
var isSchemaPayload = isPayloadOfSchemaType(SchemaSchema);
|
|
13
12
|
var isSchemaPayloadWithSources = isPayloadOfSchemaTypeWithSources(SchemaSchema);
|
|
14
|
-
var isSchemaPayloadWithMeta = isPayloadOfSchemaTypeWithMeta(SchemaSchema);
|
|
15
13
|
|
|
16
14
|
// src/Plugin.ts
|
|
17
15
|
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
@@ -35,7 +33,6 @@ export {
|
|
|
35
33
|
SchemaSchema,
|
|
36
34
|
SchemaPayloadPlugin as default,
|
|
37
35
|
isSchemaPayload,
|
|
38
|
-
isSchemaPayloadWithMeta,
|
|
39
36
|
isSchemaPayloadWithSources,
|
|
40
37
|
schemaPayloadTemplate
|
|
41
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,
|
|
1
|
+
{"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, type Payload,\n} from '@xyo-network/payload-model'\n\nimport { SchemaSchema } from './Schema.ts'\n\nexport type SchemaPayload = Payload<{\n /**\n * The schema definition\n */\n definition: {\n [key: string]: unknown\n $id?: string\n }\n /**\n * The schema this schema extends (if any)\n */\n extends?: string\n\n /** @deprecated use definition.$id instead */\n name?: string\n\n /**\n * Identifies this payload as a Schema\n */\n schema: SchemaSchema\n}>\n\n/**\n * Identity function for determining if an object is an Schema\n */\nexport const isSchemaPayload = isPayloadOfSchemaType<SchemaPayload>(SchemaSchema)\n\n/**\n * Identity function for determining if an object is an Schema with sources\n */\nexport const isSchemaPayloadWithSources = isPayloadOfSchemaTypeWithSources<SchemaPayload>(SchemaSchema)\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport type { SchemaPayload } from './Payload.ts'\nimport { SchemaSchema } from './Schema.ts'\nimport { schemaPayloadTemplate } from './Template.ts'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","import type { SchemaPayload } from './Payload.ts'\nimport { SchemaSchema } from './Schema.ts'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EAAuB;AAAA,OAClB;;;ACDA,IAAM,eAA6B;;;AD8BnC,IAAM,kBAAkB,sBAAqC,YAAY;AAKzE,IAAM,6BAA6B,iCAAgD,YAAY;;;AEpCtG,SAAS,2BAA2B;;;ACE7B,IAAM,wBAAwB,OAAsB;AAAA,EACzD,YAAY;AAAA,IACV,KAAK;AAAA,IACL,SAAS;AAAA,EACX;AAAA,EACA,QAAQ;AACV;;;ADFO,IAAM,sBAAsB,MACjC,oBAAmC;AAAA,EACjC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/schema-payload-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0-rc.1",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,17 +29,18 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/payload-model": "^3.
|
|
33
|
-
"@xyo-network/payload-plugin": "^3.
|
|
32
|
+
"@xyo-network/payload-model": "^3.6.0-rc.1",
|
|
33
|
+
"@xyo-network/payload-plugin": "^3.6.0-rc.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@xylabs/ts-scripts-yarn3": "^4.2.4",
|
|
37
37
|
"@xylabs/tsconfig": "^4.2.4",
|
|
38
|
-
"@xylabs/vitest-extended": "^4.4.
|
|
38
|
+
"@xylabs/vitest-extended": "^4.4.12",
|
|
39
39
|
"typescript": "^5.7.2",
|
|
40
|
-
"vitest": "^2.1.
|
|
40
|
+
"vitest": "^2.1.8"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
"stableVersion": "3.5.2"
|
|
45
46
|
}
|
package/src/Payload.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
isPayloadOfSchemaType,
|
|
2
|
+
isPayloadOfSchemaType, isPayloadOfSchemaTypeWithSources, type Payload,
|
|
3
3
|
} from '@xyo-network/payload-model'
|
|
4
4
|
|
|
5
5
|
import { SchemaSchema } from './Schema.ts'
|
|
@@ -35,8 +35,3 @@ export const isSchemaPayload = isPayloadOfSchemaType<SchemaPayload>(SchemaSchema
|
|
|
35
35
|
* Identity function for determining if an object is an Schema with sources
|
|
36
36
|
*/
|
|
37
37
|
export const isSchemaPayloadWithSources = isPayloadOfSchemaTypeWithSources<SchemaPayload>(SchemaSchema)
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Identity function for determining if an object is an Schema with meta
|
|
41
|
-
*/
|
|
42
|
-
export const isSchemaPayloadWithMeta = isPayloadOfSchemaTypeWithMeta<SchemaPayload>(SchemaSchema)
|