@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.
- package/dist/browser/index.cjs +4 -5
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts.map +1 -1
- package/dist/browser/index.d.mts.map +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +9 -8
- package/dist/browser/index.js.map +1 -1
- package/dist/neutral/index.cjs +4 -5
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts.map +1 -1
- package/dist/neutral/index.d.mts.map +1 -1
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.js +9 -8
- package/dist/neutral/index.js.map +1 -1
- package/dist/node/index.cjs +4 -5
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts.map +1 -1
- package/dist/node/index.d.mts.map +1 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.js +9 -8
- package/dist/node/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +0 -1
package/dist/browser/index.cjs
CHANGED
|
@@ -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 =
|
|
48
|
+
var idPayloadTemplate = () => ({
|
|
50
49
|
salt: "",
|
|
51
50
|
schema: IdSchema
|
|
52
|
-
})
|
|
51
|
+
});
|
|
53
52
|
|
|
54
53
|
// src/Plugin.ts
|
|
55
|
-
var IdPayloadPlugin =
|
|
54
|
+
var IdPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
56
55
|
schema: IdSchema,
|
|
57
56
|
template: idPayloadTemplate
|
|
58
|
-
})
|
|
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'\
|
|
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;
|
|
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;
|
|
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;
|
|
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"}
|
package/dist/browser/index.js
CHANGED
|
@@ -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 {
|
|
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 =
|
|
20
|
+
var idPayloadTemplate = () => ({
|
|
20
21
|
salt: "",
|
|
21
22
|
schema: IdSchema
|
|
22
|
-
})
|
|
23
|
+
});
|
|
23
24
|
|
|
24
25
|
// src/Plugin.ts
|
|
25
|
-
var IdPayloadPlugin =
|
|
26
|
+
var IdPayloadPlugin = () => createPayloadPlugin({
|
|
26
27
|
schema: IdSchema,
|
|
27
28
|
template: idPayloadTemplate
|
|
28
|
-
})
|
|
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":"
|
|
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/dist/neutral/index.cjs
CHANGED
|
@@ -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 =
|
|
48
|
+
var idPayloadTemplate = () => ({
|
|
50
49
|
salt: "",
|
|
51
50
|
schema: IdSchema
|
|
52
|
-
})
|
|
51
|
+
});
|
|
53
52
|
|
|
54
53
|
// src/Plugin.ts
|
|
55
|
-
var IdPayloadPlugin =
|
|
54
|
+
var IdPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
56
55
|
schema: IdSchema,
|
|
57
56
|
template: idPayloadTemplate
|
|
58
|
-
})
|
|
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'\
|
|
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;
|
|
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;
|
|
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;
|
|
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"}
|
package/dist/neutral/index.js
CHANGED
|
@@ -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 {
|
|
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 =
|
|
20
|
+
var idPayloadTemplate = () => ({
|
|
20
21
|
salt: "",
|
|
21
22
|
schema: IdSchema
|
|
22
|
-
})
|
|
23
|
+
});
|
|
23
24
|
|
|
24
25
|
// src/Plugin.ts
|
|
25
|
-
var IdPayloadPlugin =
|
|
26
|
+
var IdPayloadPlugin = () => createPayloadPlugin({
|
|
26
27
|
schema: IdSchema,
|
|
27
28
|
template: idPayloadTemplate
|
|
28
|
-
})
|
|
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":"
|
|
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/dist/node/index.cjs
CHANGED
|
@@ -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 =
|
|
48
|
+
var idPayloadTemplate = () => ({
|
|
50
49
|
salt: "",
|
|
51
50
|
schema: IdSchema
|
|
52
|
-
})
|
|
51
|
+
});
|
|
53
52
|
|
|
54
53
|
// src/Plugin.ts
|
|
55
|
-
var IdPayloadPlugin =
|
|
54
|
+
var IdPayloadPlugin = () => (0, import_payload_plugin.createPayloadPlugin)({
|
|
56
55
|
schema: IdSchema,
|
|
57
56
|
template: idPayloadTemplate
|
|
58
|
-
})
|
|
57
|
+
});
|
|
59
58
|
// Annotate the CommonJS export names for ESM import in node:
|
|
60
59
|
0 && (module.exports = {
|
|
61
60
|
IdPayloadPlugin,
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -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'\
|
|
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;
|
|
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;
|
|
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"}
|
package/dist/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,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"}
|
package/dist/node/index.js
CHANGED
|
@@ -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 {
|
|
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 =
|
|
20
|
+
var idPayloadTemplate = () => ({
|
|
20
21
|
salt: "",
|
|
21
22
|
schema: IdSchema
|
|
22
|
-
})
|
|
23
|
+
});
|
|
23
24
|
|
|
24
25
|
// src/Plugin.ts
|
|
25
|
-
var IdPayloadPlugin =
|
|
26
|
+
var IdPayloadPlugin = () => createPayloadPlugin({
|
|
26
27
|
schema: IdSchema,
|
|
27
28
|
template: idPayloadTemplate
|
|
28
|
-
})
|
|
29
|
+
});
|
|
29
30
|
export {
|
|
30
31
|
IdPayloadPlugin,
|
|
31
32
|
IdSchema,
|
package/dist/node/index.js.map
CHANGED
|
@@ -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":"
|
|
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.
|
|
14
|
-
"@xyo-network/payload-plugin": "^2.110.
|
|
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.
|
|
18
|
-
"@xylabs/tsconfig": "^3.
|
|
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.
|
|
60
|
+
"version": "2.110.11",
|
|
61
61
|
"type": "module"
|
|
62
62
|
}
|