@xyo-network/id-payload-plugin 2.110.10 → 2.110.11

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.
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -46,14 +45,14 @@ var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)
46
45
  var import_payload_plugin = require("@xyo-network/payload-plugin");
47
46
 
48
47
  // src/Template.ts
49
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
48
+ var idPayloadTemplate = () => ({
50
49
  salt: "",
51
50
  schema: IdSchema
52
- }), "idPayloadTemplate");
51
+ });
53
52
 
54
53
  // src/Plugin.ts
55
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
54
+ var IdPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
56
55
  schema: IdSchema,
57
56
  template: idPayloadTemplate
58
- }), "IdPayloadPlugin");
57
+ });
59
58
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;ADkB3B,IAAM,WAAO,4CAAiC,QAAQ;AAItD,IAAM,mBAAe,oDAAmD,QAAQ;AAIhF,IAAM,sBAAkB,uDAAyD,QAAQ;;;AE3BhG,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1,8 +1,9 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/Payload.ts
5
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
2
+ import {
3
+ isPayloadOfSchemaType,
4
+ isPayloadOfSchemaTypeWithMeta,
5
+ isPayloadOfSchemaTypeWithSources
6
+ } from "@xyo-network/payload-model";
6
7
 
7
8
  // src/Schema.ts
8
9
  var IdSchema = "network.xyo.id";
@@ -16,16 +17,16 @@ var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
16
17
  import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
18
 
18
19
  // src/Template.ts
19
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
+ var idPayloadTemplate = () => ({
20
21
  salt: "",
21
22
  schema: IdSchema
22
- }), "idPayloadTemplate");
23
+ });
23
24
 
24
25
  // src/Plugin.ts
25
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
+ var IdPayloadPlugin = () => createPayloadPlugin({
26
27
  schema: IdSchema,
27
28
  template: idPayloadTemplate
28
- }), "IdPayloadPlugin");
29
+ });
29
30
  export {
30
31
  IdPayloadPlugin,
31
32
  IdSchema,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;ADkB3B,IAAM,OAAO,sBAAiC,QAAQ;AAItD,IAAM,eAAe,8BAAmD,QAAQ;AAIhF,IAAM,kBAAkB,iCAAyD,QAAQ;;;AE3BhG,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -46,14 +45,14 @@ var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)
46
45
  var import_payload_plugin = require("@xyo-network/payload-plugin");
47
46
 
48
47
  // src/Template.ts
49
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
48
+ var idPayloadTemplate = () => ({
50
49
  salt: "",
51
50
  schema: IdSchema
52
- }), "idPayloadTemplate");
51
+ });
53
52
 
54
53
  // src/Plugin.ts
55
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
54
+ var IdPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
56
55
  schema: IdSchema,
57
56
  template: idPayloadTemplate
58
- }), "IdPayloadPlugin");
57
+ });
59
58
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;ADkB3B,IAAM,WAAO,4CAAiC,QAAQ;AAItD,IAAM,mBAAe,oDAAmD,QAAQ;AAIhF,IAAM,sBAAkB,uDAAyD,QAAQ;;;AE3BhG,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1,8 +1,9 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/Payload.ts
5
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
2
+ import {
3
+ isPayloadOfSchemaType,
4
+ isPayloadOfSchemaTypeWithMeta,
5
+ isPayloadOfSchemaTypeWithSources
6
+ } from "@xyo-network/payload-model";
6
7
 
7
8
  // src/Schema.ts
8
9
  var IdSchema = "network.xyo.id";
@@ -16,16 +17,16 @@ var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
16
17
  import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
18
 
18
19
  // src/Template.ts
19
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
+ var idPayloadTemplate = () => ({
20
21
  salt: "",
21
22
  schema: IdSchema
22
- }), "idPayloadTemplate");
23
+ });
23
24
 
24
25
  // src/Plugin.ts
25
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
+ var IdPayloadPlugin = () => createPayloadPlugin({
26
27
  schema: IdSchema,
27
28
  template: idPayloadTemplate
28
- }), "IdPayloadPlugin");
29
+ });
29
30
  export {
30
31
  IdPayloadPlugin,
31
32
  IdSchema,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;ADkB3B,IAAM,OAAO,sBAAiC,QAAQ;AAItD,IAAM,eAAe,8BAAmD,QAAQ;AAIhF,IAAM,kBAAkB,iCAAyD,QAAQ;;;AE3BhG,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
6
  var __export = (target, all) => {
8
7
  for (var name in all)
9
8
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -46,16 +45,16 @@ var isIdWithSources = (0, import_payload_model.isPayloadOfSchemaTypeWithSources)
46
45
  var import_payload_plugin = require("@xyo-network/payload-plugin");
47
46
 
48
47
  // src/Template.ts
49
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
48
+ var idPayloadTemplate = () => ({
50
49
  salt: "",
51
50
  schema: IdSchema
52
- }), "idPayloadTemplate");
51
+ });
53
52
 
54
53
  // src/Plugin.ts
55
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => (0, import_payload_plugin.createPayloadPlugin)({
54
+ var IdPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
56
55
  schema: IdSchema,
57
56
  template: idPayloadTemplate
58
- }), "IdPayloadPlugin");
57
+ });
59
58
  // Annotate the CommonJS export names for ESM import in node:
60
59
  0 && (module.exports = {
61
60
  IdPayloadPlugin,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\n// eslint-disable-next-line import/no-default-export\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,2BAOO;;;ACNA,IAAMA,WAAqB;;;ADkB3B,IAAMC,WAAOC,4CAAiCC,QAAAA;AAI9C,IAAMC,mBAAeC,oDAAmDF,QAAAA;AAIxE,IAAMG,sBAAkBC,uDAAyDJ,QAAAA;;;AE3BxF,4BAAoC;;;ACG7B,IAAMK,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,iCAC7BC,2CAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["export * from './Payload.js'\nexport { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'\nexport * from './Schema.js'\nexport * from './Template.js'\n","import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,2BAOO;;;ACNA,IAAM,WAAqB;;;ADkB3B,IAAM,WAAO,4CAAiC,QAAQ;AAItD,IAAM,mBAAe,oDAAmD,QAAQ;AAIhF,IAAM,sBAAkB,uDAAyD,QAAQ;;;AE3BhG,4BAAoC;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,UAC7B,2CAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,OAAO,EAAE,eAAe,IAAI,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AACzE,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA"}
@@ -1,8 +1,9 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/Payload.ts
5
- import { isPayloadOfSchemaType, isPayloadOfSchemaTypeWithMeta, isPayloadOfSchemaTypeWithSources } from "@xyo-network/payload-model";
2
+ import {
3
+ isPayloadOfSchemaType,
4
+ isPayloadOfSchemaTypeWithMeta,
5
+ isPayloadOfSchemaTypeWithSources
6
+ } from "@xyo-network/payload-model";
6
7
 
7
8
  // src/Schema.ts
8
9
  var IdSchema = "network.xyo.id";
@@ -16,16 +17,16 @@ var isIdWithSources = isPayloadOfSchemaTypeWithSources(IdSchema);
16
17
  import { createPayloadPlugin } from "@xyo-network/payload-plugin";
17
18
 
18
19
  // src/Template.ts
19
- var idPayloadTemplate = /* @__PURE__ */ __name(() => ({
20
+ var idPayloadTemplate = () => ({
20
21
  salt: "",
21
22
  schema: IdSchema
22
- }), "idPayloadTemplate");
23
+ });
23
24
 
24
25
  // src/Plugin.ts
25
- var IdPayloadPlugin = /* @__PURE__ */ __name(() => createPayloadPlugin({
26
+ var IdPayloadPlugin = () => createPayloadPlugin({
26
27
  schema: IdSchema,
27
28
  template: idPayloadTemplate
28
- }), "IdPayloadPlugin");
29
+ });
29
30
  export {
30
31
  IdPayloadPlugin,
31
32
  IdSchema,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";;;;AAAA,SACEA,uBACAC,+BACAC,wCAIK;;;ACNA,IAAMC,WAAqB;;;ADkB3B,IAAMC,OAAOC,sBAAiCC,QAAAA;AAI9C,IAAMC,eAAeC,8BAAmDF,QAAAA;AAIxE,IAAMG,kBAAkBC,iCAAyDJ,QAAAA;;;AE3BxF,SAASK,2BAA2B;;;ACG7B,IAAMC,oBAAoB,8BAAkB;EACjDC,MAAM;EACNC,QAAQC;AACV,IAHiC;;;ADG1B,IAAMC,kBAAkB,6BAC7BC,oBAA+B;EAC7BC,QAAQC;EACRC,UAAUC;AACZ,CAAA,GAJ6B;","names":["isPayloadOfSchemaType","isPayloadOfSchemaTypeWithMeta","isPayloadOfSchemaTypeWithSources","IdSchema","isId","isPayloadOfSchemaType","IdSchema","isIdWithMeta","isPayloadOfSchemaTypeWithMeta","isIdWithSources","isPayloadOfSchemaTypeWithSources","createPayloadPlugin","idPayloadTemplate","salt","schema","IdSchema","IdPayloadPlugin","createPayloadPlugin","schema","IdSchema","template","idPayloadTemplate"]}
1
+ {"version":3,"sources":["../../src/Payload.ts","../../src/Schema.ts","../../src/Plugin.ts","../../src/Template.ts"],"sourcesContent":["import {\n isPayloadOfSchemaType,\n isPayloadOfSchemaTypeWithMeta,\n isPayloadOfSchemaTypeWithSources,\n Payload,\n WithMeta,\n WithSources,\n} from '@xyo-network/payload-model'\n\nimport { IdSchema } from './Schema.js'\n\nexport type IdPayload = Payload<{\n salt: string\n schema: IdSchema\n}>\n\n/**\n * Identity helper for ID Payload\n */\nexport const isId = isPayloadOfSchemaType<IdPayload>(IdSchema)\n/**\n * Identity helper for ID Payload with meta\n */\nexport const isIdWithMeta = isPayloadOfSchemaTypeWithMeta<WithMeta<IdPayload>>(IdSchema)\n/**\n * Identity helper for ID Payload with sources\n */\nexport const isIdWithSources = isPayloadOfSchemaTypeWithSources<WithSources<IdPayload>>(IdSchema)\n","export type IdSchema = 'network.xyo.id'\nexport const IdSchema: IdSchema = 'network.xyo.id'\n","import { createPayloadPlugin } from '@xyo-network/payload-plugin'\n\nimport { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\nimport { idPayloadTemplate } from './Template.js'\n\nexport const IdPayloadPlugin = () =>\n createPayloadPlugin<IdPayload>({\n schema: IdSchema,\n template: idPayloadTemplate,\n })\n","import { IdPayload } from './Payload.js'\nimport { IdSchema } from './Schema.js'\n\nexport const idPayloadTemplate = (): IdPayload => ({\n salt: '',\n schema: IdSchema,\n})\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAIK;;;ACNA,IAAM,WAAqB;;;ADkB3B,IAAM,OAAO,sBAAiC,QAAQ;AAItD,IAAM,eAAe,8BAAmD,QAAQ;AAIhF,IAAM,kBAAkB,iCAAyD,QAAQ;;;AE3BhG,SAAS,2BAA2B;;;ACG7B,IAAM,oBAAoB,OAAkB;AAAA,EACjD,MAAM;AAAA,EACN,QAAQ;AACV;;;ADAO,IAAM,kBAAkB,MAC7B,oBAA+B;AAAA,EAC7B,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;","names":[]}
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.110.10",
14
- "@xyo-network/payload-plugin": "^2.110.10"
13
+ "@xyo-network/payload-model": "^2.110.11",
14
+ "@xyo-network/payload-plugin": "^2.110.11"
15
15
  },
16
16
  "devDependencies": {
17
- "@xylabs/ts-scripts-yarn3": "^3.12.4",
18
- "@xylabs/tsconfig": "^3.12.4",
17
+ "@xylabs/ts-scripts-yarn3": "^3.13.3",
18
+ "@xylabs/tsconfig": "^3.13.3",
19
19
  "typescript": "^5.5.4"
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.110.10",
60
+ "version": "2.110.11",
61
61
  "type": "module"
62
62
  }
package/src/index.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  export * from './Payload.js'
2
- // eslint-disable-next-line import/no-default-export
3
2
  export { IdPayloadPlugin as default, IdPayloadPlugin } from './Plugin.js'
4
3
  export * from './Schema.js'
5
4
  export * from './Template.js'