@xyo-network/payload-plugin 3.9.2 → 3.9.3
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/neutral/index.d.ts +3 -9
- package/package.json +5 -5
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
2
|
-
import { Validator } from '@xylabs/object';
|
|
3
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
4
1
|
import { Payload } from '@xyo-network/payload-model';
|
|
2
|
+
import { Validator } from '@xylabs/object';
|
|
5
3
|
import { PayloadBuilder } from '@xyo-network/payload-builder';
|
|
6
4
|
import { PayloadWrapper } from '@xyo-network/payload-wrapper';
|
|
7
5
|
|
|
@@ -16,17 +14,13 @@ type PayloadPlugin<TPayload extends Payload = Payload> = {
|
|
|
16
14
|
};
|
|
17
15
|
|
|
18
16
|
declare const defaultPayloadPluginFunctions: <T extends Payload>(schema: string) => PayloadPlugin<T>;
|
|
19
|
-
declare const createPayloadPlugin: <TPayload extends Payload =
|
|
20
|
-
schema: _xyo_network_payload_model.Schema;
|
|
21
|
-
}>>(plugin: PayloadPlugin<TPayload>) => PayloadPlugin<TPayload>;
|
|
17
|
+
declare const createPayloadPlugin: <TPayload extends Payload = Payload>(plugin: PayloadPlugin<TPayload>) => PayloadPlugin<TPayload>;
|
|
22
18
|
|
|
23
19
|
declare class PayloadPluginResolver {
|
|
24
20
|
schema: "network.xyo.payload";
|
|
25
21
|
protected _plugins: Record<string, PayloadPlugin>;
|
|
26
22
|
protected defaultPlugin: PayloadPlugin;
|
|
27
|
-
constructor(plugins?: PayloadPlugin<Payload>[], defaultPlugin?: PayloadPlugin<
|
|
28
|
-
schema: _xyo_network_payload_model.Schema;
|
|
29
|
-
}>>);
|
|
23
|
+
constructor(plugins?: PayloadPlugin<Payload>[], defaultPlugin?: PayloadPlugin<Payload>);
|
|
30
24
|
plugins(): PayloadPlugin[];
|
|
31
25
|
register<TPlugin extends PayloadPlugin = PayloadPlugin>(plugin: TPlugin): this;
|
|
32
26
|
resolve(schema?: string): PayloadPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/payload-plugin",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.3",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/assert": "^4.5.1",
|
|
33
33
|
"@xylabs/object": "^4.5.1",
|
|
34
|
-
"@xyo-network/payload-builder": "^3.9.
|
|
35
|
-
"@xyo-network/payload-model": "^3.9.
|
|
36
|
-
"@xyo-network/payload-validator": "^3.9.
|
|
37
|
-
"@xyo-network/payload-wrapper": "^3.9.
|
|
34
|
+
"@xyo-network/payload-builder": "^3.9.3",
|
|
35
|
+
"@xyo-network/payload-model": "^3.9.3",
|
|
36
|
+
"@xyo-network/payload-validator": "^3.9.3",
|
|
37
|
+
"@xyo-network/payload-wrapper": "^3.9.3"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|