@xyo-network/id-payload-plugin 2.87.0 → 2.87.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.
@@ -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
+ IdPayloadPlugin: () => IdPayloadPlugin,
25
+ IdSchema: () => IdSchema,
26
+ default: () => IdPayloadPlugin,
27
+ idPayloadTemplate: () => idPayloadTemplate
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 IdSchema = "network.xyo.id";
36
+
37
+ // src/Template.ts
38
+ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
39
+ salt: "",
40
+ schema: IdSchema
41
+ }), "idPayloadTemplate");
42
+
43
+ // src/Plugin.ts
44
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
45
+ schema: IdSchema,
46
+ template: idPayloadTemplate
47
+ }), "IdPayloadPlugin");
48
+ // Annotate the CommonJS export names for ESM import in node:
49
+ 0 && (module.exports = {
50
+ IdPayloadPlugin,
51
+ IdSchema,
52
+ idPayloadTemplate
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 { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,4BAAoC;;;ACC7B,IAAMA,WAAqB;;;ACE3B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;AFG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
@@ -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
- IdPayloadPlugin: () => IdPayloadPlugin,
25
- IdSchema: () => IdSchema,
26
- default: () => IdPayloadPlugin,
27
- idPayloadTemplate: () => idPayloadTemplate
28
- });
29
- module.exports = __toCommonJS(src_exports);
30
3
 
31
4
  // src/Plugin.ts
32
- var import_payload_plugin = require("@xyo-network/payload-plugin");
5
+ import { createPayloadPlugin } from "@xyo-network/payload-plugin";
33
6
 
34
7
  // src/Schema.ts
35
8
  var IdSchema = "network.xyo.id";
@@ -41,14 +14,14 @@ var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
41
14
  }), "idPayloadTemplate");
42
15
 
43
16
  // src/Plugin.ts
44
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
17
+ var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
45
18
  schema: IdSchema,
46
19
  template: idPayloadTemplate
47
20
  }), "IdPayloadPlugin");
48
- // Annotate the CommonJS export names for ESM import in node:
49
- 0 && (module.exports = {
21
+ export {
50
22
  IdPayloadPlugin,
51
23
  IdSchema,
24
+ IdPayloadPlugin as default,
52
25
  idPayloadTemplate
53
- });
26
+ };
54
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin'\nexport * from './Schema'\nexport * from './Template'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;ACAA,4BAAoC;;;ACC7B,IAAMA,WAAqB;;;ACE3B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;AFG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Plugin.ts","../../src/Schema.ts","../../src/Template.ts"],"sourcesContent":["import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SAASA,2BAA2B;;;ACC7B,IAAMC,WAAqB;;;ACE3B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;AFG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["createPayloadPlugin","IdSchema","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
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.0",
14
- "@xyo-network/payload-plugin": "~2.87.0"
13
+ "@xyo-network/payload-model": "~2.87.1",
14
+ "@xyo-network/payload-plugin": "~2.87.1"
15
15
  },
16
16
  "devDependencies": {
17
- "@xylabs/ts-scripts-yarn3": "^3.2.33",
18
- "@xylabs/tsconfig": "^3.2.33",
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.ts",
38
- "default": "./dist/node/index.js"
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.mjs"
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.js",
49
- "module": "dist/node/index.mjs",
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
- "types": "dist/node/index.d.ts",
61
- "version": "2.87.0"
60
+ "version": "2.87.1",
61
+ "type": "module"
62
62
  }
@@ -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 IdSchema = "network.xyo.id";
9
-
10
- // src/Template.ts
11
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
12
- salt: "",
13
- schema: IdSchema
14
- }), "idPayloadTemplate");
15
-
16
- // src/Plugin.ts
17
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
18
- schema: IdSchema,
19
- template: idPayloadTemplate
20
- }), "IdPayloadPlugin");
21
- export {
22
- IdPayloadPlugin,
23
- IdSchema,
24
- IdPayloadPlugin as default,
25
- idPayloadTemplate
26
- };
27
- //# sourceMappingURL=index.mjs.map
@@ -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 { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\nimport { idPayloadTemplate } from './Template'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { IdPayload } from './Payload'\nimport { IdSchema } from './Schema'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SAASA,2BAA2B;;;ACC7B,IAAMC,WAAqB;;;ACE3B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;AFG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["createPayloadPlugin","IdSchema","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}