@xyo-network/payload-plugin 3.18.5 → 3.18.7
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/types/Plugin.d.ts +2 -2
- package/dist/types/Plugin.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/Plugin.ts +2 -2
package/dist/types/Plugin.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Validator } from '@xylabs/object';
|
|
2
2
|
import type { PayloadBuilder } from '@xyo-network/payload-builder';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
4
4
|
import type { PayloadWrapper } from '@xyo-network/payload-wrapper';
|
|
5
5
|
import type { SomeJSONSchema } from 'ajv/dist/types/json-schema.js';
|
|
6
6
|
export type PayloadPluginFunc<TPayload extends Payload = Payload> = () => PayloadPlugin<TPayload>;
|
|
7
|
-
export type PayloadPlugin<TPayload extends Payload =
|
|
7
|
+
export type PayloadPlugin<TPayload extends Payload = Payload> = {
|
|
8
8
|
build?: () => PayloadBuilder<TPayload>;
|
|
9
9
|
jsonSchema?: SomeJSONSchema;
|
|
10
10
|
schema: TPayload['schema'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAElE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAA;AAEnE,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,IAAI,MAAM,aAAa,CAAC,QAAQ,CAAC,CAAA;AAEjG,MAAM,MAAM,aAAa,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,IAAI;IAC9D,KAAK,CAAC,EAAE,MAAM,cAAc,CAAC,QAAQ,CAAC,CAAA;IACtC,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,SAAS,CAAC,OAAO,CAAC,CAAA;IACnD,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,cAAc,CAAA;CAC5C,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payload-plugin",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.7",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/assert": "^4.11.
|
|
33
|
-
"@xylabs/object": "^4.11.
|
|
34
|
-
"@xyo-network/payload-builder": "^3.18.
|
|
35
|
-
"@xyo-network/payload-model": "^3.18.
|
|
36
|
-
"@xyo-network/payload-validator": "^3.18.
|
|
37
|
-
"@xyo-network/payload-wrapper": "^3.18.
|
|
32
|
+
"@xylabs/assert": "^4.11.17",
|
|
33
|
+
"@xylabs/object": "^4.11.17",
|
|
34
|
+
"@xyo-network/payload-builder": "^3.18.7",
|
|
35
|
+
"@xyo-network/payload-model": "^3.18.7",
|
|
36
|
+
"@xyo-network/payload-validator": "^3.18.7",
|
|
37
|
+
"@xyo-network/payload-wrapper": "^3.18.7",
|
|
38
38
|
"ajv": "^8.17.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
package/src/Plugin.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { Validator } from '@xylabs/object'
|
|
2
2
|
import type { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
3
|
-
import type {
|
|
3
|
+
import type { Payload } from '@xyo-network/payload-model'
|
|
4
4
|
import type { PayloadWrapper } from '@xyo-network/payload-wrapper'
|
|
5
5
|
// eslint-disable-next-line import-x/no-internal-modules
|
|
6
6
|
import type { SomeJSONSchema } from 'ajv/dist/types/json-schema.js'
|
|
7
7
|
|
|
8
8
|
export type PayloadPluginFunc<TPayload extends Payload = Payload> = () => PayloadPlugin<TPayload>
|
|
9
9
|
|
|
10
|
-
export type PayloadPlugin<TPayload extends Payload =
|
|
10
|
+
export type PayloadPlugin<TPayload extends Payload = Payload> = {
|
|
11
11
|
build?: () => PayloadBuilder<TPayload>
|
|
12
12
|
jsonSchema?: SomeJSONSchema
|
|
13
13
|
schema: TPayload['schema']
|