@xyo-network/sentinel 2.53.21 → 2.53.23
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/Wrapper.js +1 -15
- package/dist/cjs/Wrapper.js.map +1 -1
- package/dist/docs.json +4745 -7215
- package/dist/esm/Wrapper.js +2 -16
- package/dist/esm/Wrapper.js.map +1 -1
- package/dist/types/Wrapper.d.ts +0 -4
- package/dist/types/Wrapper.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/Wrapper.ts +2 -19
package/dist/cjs/Wrapper.js
CHANGED
|
@@ -3,25 +3,11 @@ var _a, _b;
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SentinelWrapper = void 0;
|
|
5
5
|
const tslib_1 = require("tslib");
|
|
6
|
-
const assert_1 = require("@xylabs/assert");
|
|
7
6
|
const module_1 = require("@xyo-network/module");
|
|
8
7
|
const payload_wrapper_1 = require("@xyo-network/payload-wrapper");
|
|
9
8
|
const Queries_1 = require("./Queries");
|
|
9
|
+
(0, module_1.constructableModuleWrapper)();
|
|
10
10
|
class SentinelWrapper extends (_b = module_1.ModuleWrapper) {
|
|
11
|
-
static tryWrap(module, account) {
|
|
12
|
-
if (module) {
|
|
13
|
-
const missingRequiredQueries = this.missingRequiredQueries(module);
|
|
14
|
-
if (missingRequiredQueries.length > 0) {
|
|
15
|
-
//console.warn(`Missing queries: ${JSON.stringify(missingRequiredQueries, null, 2)}`)
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return new SentinelWrapper({ account, module: module });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
static wrap(module, account) {
|
|
23
|
-
return (0, assert_1.assertEx)(this.tryWrap(module, account), 'Unable to wrap module as DivinerWrapper');
|
|
24
|
-
}
|
|
25
11
|
report(payloads) {
|
|
26
12
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
27
13
|
const queryPayload = payload_wrapper_1.PayloadWrapper.parse({ schema: Queries_1.SentinelReportQuerySchema });
|
package/dist/cjs/Wrapper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wrapper.js","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Wrapper.js","sourceRoot":"","sources":["../../src/Wrapper.ts"],"names":[],"mappings":";;;;;AAAA,gDAA+E;AAE/E,kEAA6D;AAE7D,uCAA0E;AAG1E,IAAA,mCAA0B,GAAE,CAAA;AAC5B,MAAa,eAAiE,SAAQ,MAAA,sBAAa,CAAS;IAGpG,MAAM,CAAC,QAAoB;;YAC/B,MAAM,YAAY,GAAG,gCAAc,CAAC,KAAK,CAAsB,EAAE,MAAM,EAAE,mCAAyB,EAAE,CAAC,CAAA;YACrG,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;YAC3D,OAAO,MAAM,CAAA;QACf,CAAC;KAAA;;AAPH,0CAQC;;AAPiB,+BAAe,GAAG,CAAC,mCAAyB,EAAE,GAAG,sCAAqB,CAAC,CAAA"}
|