@xyo-network/address-payload-plugin 2.87.0 → 2.87.2
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 +54 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.js +6 -33
- package/dist/node/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/node/index.mjs +0 -27
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
AddressPayloadPlugin: () => AddressPayloadPlugin,
|
|
25
|
+
AddressSchema: () => AddressSchema,
|
|
26
|
+
addressPayloadTemplate: () => addressPayloadTemplate,
|
|
27
|
+
default: () => AddressPayloadPlugin
|
|
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 AddressSchema = "network.xyo.address";
|
|
36
|
+
|
|
37
|
+
// src/Template.ts
|
|
38
|
+
var addressPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
39
|
+
address: "",
|
|
40
|
+
schema: AddressSchema
|
|
41
|
+
}), "addressPayloadTemplate");
|
|
42
|
+
|
|
43
|
+
// src/Plugin.ts
|
|
44
|
+
var AddressPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
|
|
45
|
+
schema: AddressSchema,
|
|
46
|
+
template: addressPayloadTemplate
|
|
47
|
+
}), "AddressPayloadPlugin");
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
AddressPayloadPlugin,
|
|
51
|
+
AddressSchema,
|
|
52
|
+
addressPayloadTemplate
|
|
53
|
+
});
|
|
54
|
+
//# 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 { AddressPayloadPlugin, AddressPayloadPlugin as default } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { AddressPayload } from './Payload'\nimport { AddressSchema } from './Schema'\nimport { addressPayloadTemplate } from './Template'\n\nexport const AddressPayloadPlugin = () =>\n createPayloadPlugin<AddressPayload>({\n schema: AddressSchema,\n template: addressPayloadTemplate,\n })\n","export type AddressSchema = 'network.xyo.address'\nexport const AddressSchema: AddressSchema = 'network.xyo.address'\n","import { AddressPayload } from './Payload'\nimport { AddressSchema } from './Schema'\n\nexport const addressPayloadTemplate = (): AddressPayload => ({\n address: '',\n schema: AddressSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,4BAAoC;;;ACC7B,IAAMA,gBAA+B;;;ACErC,IAAMC,yBAAyB,8BAAuB;EAC3DC,SAAS;EACTC,QAAQC;AACV,IAHsC;;;AFG/B,IAAMC,uBAAuB,iCAClCC,2CAAoC;EAClCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJkC;","names":["AddressSchema","addressPayloadTemplate","address","schema","AddressSchema","AddressPayloadPlugin","createPayloadPlugin","schema","AddressSchema","template","addressPayloadTemplate"]}
|
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
|
-
AddressPayloadPlugin: () => AddressPayloadPlugin,
|
|
25
|
-
AddressSchema: () => AddressSchema,
|
|
26
|
-
addressPayloadTemplate: () => addressPayloadTemplate,
|
|
27
|
-
default: () => AddressPayloadPlugin
|
|
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 AddressSchema = "network.xyo.address";
|
|
@@ -41,14 +14,14 @@ var addressPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
|
41
14
|
}), "addressPayloadTemplate");
|
|
42
15
|
|
|
43
16
|
// src/Plugin.ts
|
|
44
|
-
var AddressPayloadPlugin = /* @__PURE__ */ __name(() =>
|
|
17
|
+
var AddressPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
|
|
45
18
|
schema: AddressSchema,
|
|
46
19
|
template: addressPayloadTemplate
|
|
47
20
|
}), "AddressPayloadPlugin");
|
|
48
|
-
|
|
49
|
-
0 && (module.exports = {
|
|
21
|
+
export {
|
|
50
22
|
AddressPayloadPlugin,
|
|
51
23
|
AddressSchema,
|
|
52
|
-
addressPayloadTemplate
|
|
53
|
-
|
|
24
|
+
addressPayloadTemplate,
|
|
25
|
+
AddressPayloadPlugin as default
|
|
26
|
+
};
|
|
54
27
|
//# 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 { AddressPayload } from './Payload'\nimport { AddressSchema } from './Schema'\nimport { addressPayloadTemplate } from './Template'\n\nexport const AddressPayloadPlugin = () =>\n createPayloadPlugin<AddressPayload>({\n schema: AddressSchema,\n template: addressPayloadTemplate,\n })\n","export type AddressSchema = 'network.xyo.address'\nexport const AddressSchema: AddressSchema = 'network.xyo.address'\n","import { AddressPayload } from './Payload'\nimport { AddressSchema } from './Schema'\n\nexport const addressPayloadTemplate = (): AddressPayload => ({\n address: '',\n schema: AddressSchema,\n})\n"],"mappings":";;;;AAAA,SAASA,2BAA2B;;;ACC7B,IAAMC,gBAA+B;;;ACErC,IAAMC,yBAAyB,8BAAuB;EAC3DC,SAAS;EACTC,QAAQC;AACV,IAHsC;;;AFG/B,IAAMC,uBAAuB,6BAClCC,oBAAoC;EAClCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJkC;","names":["createPayloadPlugin","AddressSchema","addressPayloadTemplate","address","schema","AddressSchema","AddressPayloadPlugin","createPayloadPlugin","schema","AddressSchema","template","addressPayloadTemplate"]}
|
package/package.json
CHANGED
|
@@ -10,16 +10,15 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/plugins/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xyo-network/payload-model": "~2.87.
|
|
14
|
-
"@xyo-network/payload-plugin": "~2.87.
|
|
13
|
+
"@xyo-network/payload-model": "~2.87.2",
|
|
14
|
+
"@xyo-network/payload-plugin": "~2.87.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@xylabs/ts-scripts-yarn3": "^3.2.
|
|
18
|
-
"@xylabs/tsconfig": "^3.2.
|
|
17
|
+
"@xylabs/ts-scripts-yarn3": "^3.2.41",
|
|
18
|
+
"@xylabs/tsconfig": "^3.2.41",
|
|
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.87.2",
|
|
61
|
+
"type": "module"
|
|
62
62
|
}
|
package/dist/node/index.mjs
DELETED
|
@@ -1,27 +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 AddressSchema = "network.xyo.address";
|
|
9
|
-
|
|
10
|
-
// src/Template.ts
|
|
11
|
-
var addressPayloadTemplate = /* @__PURE__ */ __name(() => ({
|
|
12
|
-
address: "",
|
|
13
|
-
schema: AddressSchema
|
|
14
|
-
}), "addressPayloadTemplate");
|
|
15
|
-
|
|
16
|
-
// src/Plugin.ts
|
|
17
|
-
var AddressPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
|
|
18
|
-
schema: AddressSchema,
|
|
19
|
-
template: addressPayloadTemplate
|
|
20
|
-
}), "AddressPayloadPlugin");
|
|
21
|
-
export {
|
|
22
|
-
AddressPayloadPlugin,
|
|
23
|
-
AddressSchema,
|
|
24
|
-
addressPayloadTemplate,
|
|
25
|
-
AddressPayloadPlugin as default
|
|
26
|
-
};
|
|
27
|
-
//# 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 { AddressPayload } from './Payload'\nimport { AddressSchema } from './Schema'\nimport { addressPayloadTemplate } from './Template'\n\nexport const AddressPayloadPlugin = () =>\n createPayloadPlugin<AddressPayload>({\n schema: AddressSchema,\n template: addressPayloadTemplate,\n })\n","export type AddressSchema = 'network.xyo.address'\nexport const AddressSchema: AddressSchema = 'network.xyo.address'\n","import { AddressPayload } from './Payload'\nimport { AddressSchema } from './Schema'\n\nexport const addressPayloadTemplate = (): AddressPayload => ({\n address: '',\n schema: AddressSchema,\n})\n"],"mappings":";;;;AAAA,SAASA,2BAA2B;;;ACC7B,IAAMC,gBAA+B;;;ACErC,IAAMC,yBAAyB,8BAAuB;EAC3DC,SAAS;EACTC,QAAQC;AACV,IAHsC;;;AFG/B,IAAMC,uBAAuB,6BAClCC,oBAAoC;EAClCC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJkC;","names":["createPayloadPlugin","AddressSchema","addressPayloadTemplate","address","schema","AddressSchema","AddressPayloadPlugin","createPayloadPlugin","schema","AddressSchema","template","addressPayloadTemplate"]}
|