@xyo-network/schema-payload-plugin 2.87.2 → 2.88.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.
- package/dist/node/index.cjs +57 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +5 -32
- package/dist/node/index.js.map +1 -1
- package/package.json +10 -10
- package/dist/node/index.mjs +0 -30
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
});
|
|
57
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\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,35 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
2
|
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
3
|
|
|
31
4
|
// src/Plugin.ts
|
|
32
|
-
|
|
5
|
+
import { createPayloadPlugin } from "@xyo-network/payload-plugin";
|
|
33
6
|
|
|
34
7
|
// src/Schema.ts
|
|
35
8
|
var SchemaSchema = "network.xyo.schema";
|
|
@@ -44,14 +17,14 @@ var schemaPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
|
44
17
|
}), "schemaPayloadTemplate");
|
|
45
18
|
|
|
46
19
|
// src/Plugin.ts
|
|
47
|
-
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() =>
|
|
20
|
+
var SchemaPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
|
|
48
21
|
schema: SchemaSchema,
|
|
49
22
|
template: schemaPayloadTemplate
|
|
50
23
|
}), "SchemaPayloadPlugin");
|
|
51
|
-
|
|
52
|
-
0 && (module.exports = {
|
|
24
|
+
export {
|
|
53
25
|
SchemaPayloadPlugin,
|
|
54
26
|
SchemaSchema,
|
|
27
|
+
SchemaPayloadPlugin as default,
|
|
55
28
|
schemaPayloadTemplate
|
|
56
|
-
}
|
|
29
|
+
};
|
|
57
30
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
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,8 +10,8 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "~2.
|
|
14
|
-
"@xyo-network/payload-plugin": "~2.
|
|
13
|
+
"@xyo-network/payload-model": "~2.88.1",
|
|
14
|
+
"@xyo-network/payload-plugin": "~2.88.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@xylabs/ts-scripts-yarn3": "^3.2.41",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"typescript": "^5.3.3"
|
|
20
20
|
},
|
|
21
21
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
22
|
-
"docs": "dist/docs.json",
|
|
23
22
|
"exports": {
|
|
24
23
|
".": {
|
|
25
24
|
"browser": {
|
|
@@ -34,19 +33,20 @@
|
|
|
34
33
|
},
|
|
35
34
|
"node": {
|
|
36
35
|
"require": {
|
|
37
|
-
"types": "./dist/node/index.d.
|
|
38
|
-
"default": "./dist/node/index.
|
|
36
|
+
"types": "./dist/node/index.d.cts",
|
|
37
|
+
"default": "./dist/node/index.cjs"
|
|
39
38
|
},
|
|
40
39
|
"import": {
|
|
41
40
|
"types": "./dist/node/index.d.mts",
|
|
42
|
-
"default": "./dist/node/index.
|
|
41
|
+
"default": "./dist/node/index.js"
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
},
|
|
46
45
|
"./package.json": "./package.json"
|
|
47
46
|
},
|
|
48
|
-
"main": "dist/node/index.
|
|
49
|
-
"module": "dist/node/index.
|
|
47
|
+
"main": "dist/node/index.cjs",
|
|
48
|
+
"module": "dist/node/index.js",
|
|
49
|
+
"types": "dist/node/index.d.ts",
|
|
50
50
|
"homepage": "https://xyo.network",
|
|
51
51
|
"license": "LGPL-3.0-only",
|
|
52
52
|
"publishConfig": {
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"url": "https://github.com/XYOracleNetwork/plugins.git"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false,
|
|
60
|
-
"
|
|
61
|
-
"
|
|
60
|
+
"version": "2.88.1",
|
|
61
|
+
"type": "module"
|
|
62
62
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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
|
-
};
|
|
30
|
-
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"]}
|