@xyo-network/schema-payload-plugin 2.107.3 → 2.107.5
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.
- package/dist/browser/index.cjs +50 -1
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.js +29 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +50 -1
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.js +29 -1
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +56 -1
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +29 -1
- package/dist/node/index.js.map +1 -1
- package/package.json +5 -5
package/dist/browser/index.cjs
CHANGED
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
SchemaPayloadPlugin: () => SchemaPayloadPlugin,
|
|
25
|
+
SchemaSchema: () => SchemaSchema,
|
|
26
|
+
default: () => SchemaPayloadPlugin,
|
|
27
|
+
schemaPayloadTemplate: () => schemaPayloadTemplate
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Plugin.ts
|
|
32
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
33
|
+
|
|
34
|
+
// src/Schema.ts
|
|
35
|
+
var SchemaSchema = "network.xyo.schema";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
39
|
+
definition: {
|
|
40
|
+
$id: "",
|
|
41
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
42
|
+
},
|
|
43
|
+
schema: SchemaSchema
|
|
44
|
+
}), "schemaPayloadTemplate");
|
|
45
|
+
|
|
46
|
+
// src/Plugin.ts
|
|
47
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
|
|
48
|
+
schema: SchemaSchema,
|
|
49
|
+
template: schemaPayloadTemplate
|
|
50
|
+
}), "SchemaPayloadPlugin");
|
|
2
51
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\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;;;;;;;;;;ACAA,4BAAoC;;;ACC7B,IAAMA,eAA6B;;;ACCnC,IAAMC,wBAAwB,8BAAsB;EACzDC,YAAY;IACVC,KAAK;IACLC,SAAS;EACX;EACAC,QAAQC;AACV,IANqC;;;AFI9B,IAAMC,sBAAsB,iCACjCC,2CAAmC;EACjCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJiC;","names":["SchemaSchema","schemaPayloadTemplate","definition","$id","$schema","schema","SchemaSchema","SchemaPayloadPlugin","createPayloadPlugin","schema","SchemaSchema","template","schemaPayloadTemplate"]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/Plugin.ts
|
|
5
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
6
|
+
|
|
7
|
+
// src/Schema.ts
|
|
8
|
+
var SchemaSchema = "network.xyo.schema";
|
|
9
|
+
|
|
10
|
+
// src/Template.ts
|
|
11
|
+
var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
12
|
+
definition: {
|
|
13
|
+
$id: "",
|
|
14
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
15
|
+
},
|
|
16
|
+
schema: SchemaSchema
|
|
17
|
+
}), "schemaPayloadTemplate");
|
|
18
|
+
|
|
19
|
+
// src/Plugin.ts
|
|
20
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
|
|
21
|
+
schema: SchemaSchema,
|
|
22
|
+
template: schemaPayloadTemplate
|
|
23
|
+
}), "SchemaPayloadPlugin");
|
|
24
|
+
export {
|
|
25
|
+
SchemaPayloadPlugin,
|
|
26
|
+
SchemaSchema,
|
|
27
|
+
SchemaPayloadPlugin as default,
|
|
28
|
+
schemaPayloadTemplate
|
|
29
|
+
};
|
|
2
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\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,SAASA,2BAA2B;;;ACC7B,IAAMC,eAA6B;;;ACCnC,IAAMC,wBAAwB,8BAAsB;EACzDC,YAAY;IACVC,KAAK;IACLC,SAAS;EACX;EACAC,QAAQC;AACV,IANqC;;;AFI9B,IAAMC,sBAAsB,6BACjCC,oBAAmC;EACjCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJiC;","names":["createPayloadPlugin","SchemaSchema","schemaPayloadTemplate","definition","$id","$schema","schema","SchemaSchema","SchemaPayloadPlugin","createPayloadPlugin","schema","SchemaSchema","template","schemaPayloadTemplate"]}
|
package/dist/neutral/index.cjs
CHANGED
|
@@ -1,2 +1,51 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
SchemaPayloadPlugin: () => SchemaPayloadPlugin,
|
|
25
|
+
SchemaSchema: () => SchemaSchema,
|
|
26
|
+
default: () => SchemaPayloadPlugin,
|
|
27
|
+
schemaPayloadTemplate: () => schemaPayloadTemplate
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Plugin.ts
|
|
32
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
33
|
+
|
|
34
|
+
// src/Schema.ts
|
|
35
|
+
var SchemaSchema = "network.xyo.schema";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
39
|
+
definition: {
|
|
40
|
+
$id: "",
|
|
41
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
42
|
+
},
|
|
43
|
+
schema: SchemaSchema
|
|
44
|
+
}), "schemaPayloadTemplate");
|
|
45
|
+
|
|
46
|
+
// src/Plugin.ts
|
|
47
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
|
|
48
|
+
schema: SchemaSchema,
|
|
49
|
+
template: schemaPayloadTemplate
|
|
50
|
+
}), "SchemaPayloadPlugin");
|
|
2
51
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\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;;;;;;;;;;ACAA,4BAAoC;;;ACC7B,IAAMA,eAA6B;;;ACCnC,IAAMC,wBAAwB,8BAAsB;EACzDC,YAAY;IACVC,KAAK;IACLC,SAAS;EACX;EACAC,QAAQC;AACV,IANqC;;;AFI9B,IAAMC,sBAAsB,iCACjCC,2CAAmC;EACjCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJiC;","names":["SchemaSchema","schemaPayloadTemplate","definition","$id","$schema","schema","SchemaSchema","SchemaPayloadPlugin","createPayloadPlugin","schema","SchemaSchema","template","schemaPayloadTemplate"]}
|
package/dist/neutral/index.js
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/Plugin.ts
|
|
5
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
6
|
+
|
|
7
|
+
// src/Schema.ts
|
|
8
|
+
var SchemaSchema = "network.xyo.schema";
|
|
9
|
+
|
|
10
|
+
// src/Template.ts
|
|
11
|
+
var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
12
|
+
definition: {
|
|
13
|
+
$id: "",
|
|
14
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
15
|
+
},
|
|
16
|
+
schema: SchemaSchema
|
|
17
|
+
}), "schemaPayloadTemplate");
|
|
18
|
+
|
|
19
|
+
// src/Plugin.ts
|
|
20
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
|
|
21
|
+
schema: SchemaSchema,
|
|
22
|
+
template: schemaPayloadTemplate
|
|
23
|
+
}), "SchemaPayloadPlugin");
|
|
24
|
+
export {
|
|
25
|
+
SchemaPayloadPlugin,
|
|
26
|
+
SchemaSchema,
|
|
27
|
+
SchemaPayloadPlugin as default,
|
|
28
|
+
schemaPayloadTemplate
|
|
29
|
+
};
|
|
2
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\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,SAASA,2BAA2B;;;ACC7B,IAAMC,eAA6B;;;ACCnC,IAAMC,wBAAwB,8BAAsB;EACzDC,YAAY;IACVC,KAAK;IACLC,SAAS;EACX;EACAC,QAAQC;AACV,IANqC;;;AFI9B,IAAMC,sBAAsB,6BACjCC,oBAAmC;EACjCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJiC;","names":["createPayloadPlugin","SchemaSchema","schemaPayloadTemplate","definition","$id","$schema","schema","SchemaSchema","SchemaPayloadPlugin","createPayloadPlugin","schema","SchemaSchema","template","schemaPayloadTemplate"]}
|
package/dist/node/index.cjs
CHANGED
|
@@ -1,2 +1,57 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
SchemaPayloadPlugin: () => SchemaPayloadPlugin,
|
|
25
|
+
SchemaSchema: () => SchemaSchema,
|
|
26
|
+
default: () => SchemaPayloadPlugin,
|
|
27
|
+
schemaPayloadTemplate: () => schemaPayloadTemplate
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(src_exports);
|
|
30
|
+
|
|
31
|
+
// src/Plugin.ts
|
|
32
|
+
var import_payload_plugin = require("@xyo-network/payload-plugin");
|
|
33
|
+
|
|
34
|
+
// src/Schema.ts
|
|
35
|
+
var SchemaSchema = "network.xyo.schema";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
39
|
+
definition: {
|
|
40
|
+
$id: "",
|
|
41
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
42
|
+
},
|
|
43
|
+
schema: SchemaSchema
|
|
44
|
+
}), "schemaPayloadTemplate");
|
|
45
|
+
|
|
46
|
+
// src/Plugin.ts
|
|
47
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
|
|
48
|
+
schema: SchemaSchema,
|
|
49
|
+
template: schemaPayloadTemplate
|
|
50
|
+
}), "SchemaPayloadPlugin");
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
SchemaPayloadPlugin,
|
|
54
|
+
SchemaSchema,
|
|
55
|
+
schemaPayloadTemplate
|
|
56
|
+
});
|
|
2
57
|
//# sourceMappingURL=index.cjs.map
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\n// eslint-disable-next-line import/no-default-export\nexport { SchemaPayloadPlugin as default, SchemaPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\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;;;;;;;;;;ACAA,4BAAoC;;;ACC7B,IAAMA,eAA6B;;;ACCnC,IAAMC,wBAAwB,8BAAsB;EACzDC,YAAY;IACVC,KAAK;IACLC,SAAS;EACX;EACAC,QAAQC;AACV,IANqC;;;AFI9B,IAAMC,sBAAsB,iCACjCC,2CAAmC;EACjCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJiC;","names":["SchemaSchema","schemaPayloadTemplate","definition","$id","$schema","schema","SchemaSchema","SchemaPayloadPlugin","createPayloadPlugin","schema","SchemaSchema","template","schemaPayloadTemplate"]}
|
package/dist/node/index.js
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
var
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/Plugin.ts
|
|
5
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
6
|
+
|
|
7
|
+
// src/Schema.ts
|
|
8
|
+
var SchemaSchema = "network.xyo.schema";
|
|
9
|
+
|
|
10
|
+
// src/Template.ts
|
|
11
|
+
var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
12
|
+
definition: {
|
|
13
|
+
$id: "",
|
|
14
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
15
|
+
},
|
|
16
|
+
schema: SchemaSchema
|
|
17
|
+
}), "schemaPayloadTemplate");
|
|
18
|
+
|
|
19
|
+
// src/Plugin.ts
|
|
20
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
|
|
21
|
+
schema: SchemaSchema,
|
|
22
|
+
template: schemaPayloadTemplate
|
|
23
|
+
}), "SchemaPayloadPlugin");
|
|
24
|
+
export {
|
|
25
|
+
SchemaPayloadPlugin,
|
|
26
|
+
SchemaSchema,
|
|
27
|
+
SchemaPayloadPlugin as default,
|
|
28
|
+
schemaPayloadTemplate
|
|
29
|
+
};
|
|
2
30
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nexport const schemaPayloadTemplate = (): SchemaPayload => ({\n definition: {\n $id: '',\n $schema: 'http://json-schema.org/draft-07/schema#',\n },\n schema: SchemaSchema,\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\nimport { schemaPayloadTemplate } from './Template'\n\nexport const SchemaPayloadPlugin = () =>\n createPayloadPlugin<SchemaPayload>({\n schema: SchemaSchema,\n template: schemaPayloadTemplate,\n })\n","export type SchemaSchema = 'network.xyo.schema'\nexport const SchemaSchema: SchemaSchema = 'network.xyo.schema'\n","import { SchemaPayload } from './Payload'\nimport { SchemaSchema } from './Schema'\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,SAASA,2BAA2B;;;ACC7B,IAAMC,eAA6B;;;ACCnC,IAAMC,wBAAwB,8BAAsB;EACzDC,YAAY;IACVC,KAAK;IACLC,SAAS;EACX;EACAC,QAAQC;AACV,IANqC;;;AFI9B,IAAMC,sBAAsB,6BACjCC,oBAAmC;EACjCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJiC;","names":["createPayloadPlugin","SchemaSchema","schemaPayloadTemplate","definition","$id","$schema","schema","SchemaSchema","SchemaPayloadPlugin","createPayloadPlugin","schema","SchemaSchema","template","schemaPayloadTemplate"]}
|
package/package.json
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "~2.107.
|
|
14
|
-
"@xyo-network/payload-plugin": "~2.107.
|
|
13
|
+
"@xyo-network/payload-model": "~2.107.5",
|
|
14
|
+
"@xyo-network/payload-plugin": "~2.107.5"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@xylabs/ts-scripts-yarn3": "^3.11.
|
|
18
|
-
"@xylabs/tsconfig": "^3.11.
|
|
17
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.10",
|
|
18
|
+
"@xylabs/tsconfig": "^3.11.10",
|
|
19
19
|
"typescript": "^5.5.2"
|
|
20
20
|
},
|
|
21
21
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
|
-
"version": "2.107.
|
|
60
|
+
"version": "2.107.5",
|
|
61
61
|
"type": "module"
|
|
62
62
|
}
|