@xyo-network/domain-payload-plugin 2.35.0 → 2.36.0-rc.2
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/cjs/Plugin.js +2 -2
- package/dist/docs.json +1719 -1072
- package/dist/esm/Plugin.js +1 -1
- package/package.json +10 -9
- package/src/Plugin.ts +1 -1
package/dist/cjs/Plugin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.XyoDomainPayloadPlugin = void 0;
|
|
4
|
-
const
|
|
4
|
+
const assert_1 = require("@xylabs/assert");
|
|
5
5
|
const payload_plugin_1 = require("@xyo-network/payload-plugin");
|
|
6
6
|
const Config_1 = require("./Config");
|
|
7
7
|
const Schema_1 = require("./Schema");
|
|
@@ -13,7 +13,7 @@ const XyoDomainPayloadPlugin = () => (0, payload_plugin_1.createXyoPayloadPlugin
|
|
|
13
13
|
return new Witness_1.XyoDomainWitness(Object.assign(Object.assign({}, config), { schema: Config_1.XyoDomainWitnessConfigSchema, targetSchema: Schema_1.XyoDomainSchema }));
|
|
14
14
|
},
|
|
15
15
|
wrap: (payload) => {
|
|
16
|
-
(0,
|
|
16
|
+
(0, assert_1.assertEx)(payload.schema === Schema_1.XyoDomainSchema);
|
|
17
17
|
return new Wrapper_1.XyoDomainPayloadWrapper(payload);
|
|
18
18
|
},
|
|
19
19
|
});
|