@xyo-network/sentinel-wrapper 3.6.9 → 3.6.10
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.mjs +8 -17
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +21 -21
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,33 +1,24 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/Wrapper.ts
|
|
5
2
|
import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
|
|
6
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
isSentinelInstance,
|
|
5
|
+
isSentinelModule,
|
|
6
|
+
SentinelReportQuerySchema
|
|
7
|
+
} from "@xyo-network/sentinel-model";
|
|
7
8
|
constructableModuleWrapper();
|
|
8
9
|
var SentinelWrapper = class extends ModuleWrapper {
|
|
9
|
-
static {
|
|
10
|
-
__name(this, "SentinelWrapper");
|
|
11
|
-
}
|
|
12
10
|
static instanceIdentityCheck = isSentinelInstance;
|
|
13
11
|
static moduleIdentityCheck = isSentinelModule;
|
|
14
|
-
static requiredQueries = [
|
|
15
|
-
SentinelReportQuerySchema,
|
|
16
|
-
...super.requiredQueries
|
|
17
|
-
];
|
|
12
|
+
static requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries];
|
|
18
13
|
archivists() {
|
|
19
14
|
throw new Error("Not supported");
|
|
20
15
|
}
|
|
21
16
|
async report(payloads) {
|
|
22
|
-
const queryPayload = {
|
|
23
|
-
schema: SentinelReportQuerySchema
|
|
24
|
-
};
|
|
17
|
+
const queryPayload = { schema: SentinelReportQuerySchema };
|
|
25
18
|
return await this.sendQuery(queryPayload, payloads);
|
|
26
19
|
}
|
|
27
20
|
async reportQuery(payloads, account) {
|
|
28
|
-
const queryPayload = {
|
|
29
|
-
schema: SentinelReportQuerySchema
|
|
30
|
-
};
|
|
21
|
+
const queryPayload = { schema: SentinelReportQuerySchema };
|
|
31
22
|
return await this.sendQueryRaw(queryPayload, payloads, account);
|
|
32
23
|
}
|
|
33
24
|
witnesses() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import type { AccountInstance } from '@xyo-network/account-model'\nimport type { ArchivistInstance } from '@xyo-network/archivist-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type { Payload } from '@xyo-network/payload-model'\nimport type {\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n} from '@xyo-network/sentinel-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport type { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']> {\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/Wrapper.ts"],"sourcesContent":["import type { AccountInstance } from '@xyo-network/account-model'\nimport type { ArchivistInstance } from '@xyo-network/archivist-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type { Payload } from '@xyo-network/payload-model'\nimport type {\n SentinelInstance,\n SentinelModule,\n SentinelReportQuery,\n} from '@xyo-network/sentinel-model'\nimport {\n isSentinelInstance,\n isSentinelModule,\n SentinelReportQuerySchema,\n} from '@xyo-network/sentinel-model'\nimport type { WitnessInstance } from '@xyo-network/witness-model'\n\nconstructableModuleWrapper()\nexport class SentinelWrapper<TModule extends SentinelModule = SentinelModule>\n extends ModuleWrapper<TModule>\n implements SentinelInstance<TModule['params']> {\n static override instanceIdentityCheck = isSentinelInstance\n static override moduleIdentityCheck = isSentinelModule\n static override requiredQueries = [SentinelReportQuerySchema, ...super.requiredQueries]\n\n archivists(): Promise<ArchivistInstance[]> {\n throw new Error('Not supported')\n }\n\n async report(payloads?: Payload[]): Promise<Payload[]> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async reportQuery(payloads?: Payload[], account?: AccountInstance): Promise<ModuleQueryResult> {\n const queryPayload: SentinelReportQuery = { schema: SentinelReportQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n\n witnesses(): Promise<WitnessInstance[]> {\n throw new Error('Not supported')\n }\n}\n"],"mappings":";AAGA,SAAS,4BAA4B,qBAAqB;AAO1D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,2BAA2B;AACpB,IAAM,kBAAN,cACG,cACuC;AAAA,EAC/C,OAAgB,wBAAwB;AAAA,EACxC,OAAgB,sBAAsB;AAAA,EACtC,OAAgB,kBAAkB,CAAC,2BAA2B,GAAG,MAAM,eAAe;AAAA,EAEtF,aAA2C;AACzC,UAAM,IAAI,MAAM,eAAe;AAAA,EACjC;AAAA,EAEA,MAAM,OAAO,UAA0C;AACrD,UAAM,eAAoC,EAAE,QAAQ,0BAA0B;AAC9E,WAAO,MAAM,KAAK,UAAU,cAAc,QAAQ;AAAA,EACpD;AAAA,EAEA,MAAM,YAAY,UAAsB,SAAuD;AAC7F,UAAM,eAAoC,EAAE,QAAQ,0BAA0B;AAC9E,WAAO,MAAM,KAAK,aAAa,cAAc,UAAU,OAAO;AAAA,EAChE;AAAA,EAEA,YAAwC;AACtC,UAAM,IAAI,MAAM,eAAe;AAAA,EACjC;AACF;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/sentinel-wrapper",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.10",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -29,30 +29,30 @@
|
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xyo-network/account-model": "^3.6.
|
|
33
|
-
"@xyo-network/archivist-model": "^3.6.
|
|
34
|
-
"@xyo-network/module-model": "^3.6.
|
|
35
|
-
"@xyo-network/module-wrapper": "^3.6.
|
|
36
|
-
"@xyo-network/payload-model": "^3.6.
|
|
37
|
-
"@xyo-network/sentinel-model": "^3.6.
|
|
38
|
-
"@xyo-network/witness-model": "^3.6.
|
|
32
|
+
"@xyo-network/account-model": "^3.6.10",
|
|
33
|
+
"@xyo-network/archivist-model": "^3.6.10",
|
|
34
|
+
"@xyo-network/module-model": "^3.6.10",
|
|
35
|
+
"@xyo-network/module-wrapper": "^3.6.10",
|
|
36
|
+
"@xyo-network/payload-model": "^3.6.10",
|
|
37
|
+
"@xyo-network/sentinel-model": "^3.6.10",
|
|
38
|
+
"@xyo-network/witness-model": "^3.6.10"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/delay": "^4.
|
|
41
|
+
"@xylabs/delay": "^4.5.1",
|
|
42
42
|
"@xylabs/ts-scripts-yarn3": "^4.2.6",
|
|
43
43
|
"@xylabs/tsconfig": "^4.2.6",
|
|
44
|
-
"@xylabs/vitest-extended": "^4.
|
|
45
|
-
"@xyo-network/abstract-witness": "^3.6.
|
|
46
|
-
"@xyo-network/account": "^3.6.
|
|
47
|
-
"@xyo-network/archivist-memory": "^3.6.
|
|
48
|
-
"@xyo-network/boundwitness-model": "^3.6.
|
|
49
|
-
"@xyo-network/module-model": "^3.6.
|
|
50
|
-
"@xyo-network/node-memory": "^3.6.
|
|
51
|
-
"@xyo-network/payload-builder": "^3.6.
|
|
52
|
-
"@xyo-network/sentinel-memory": "^3.6.
|
|
53
|
-
"@xyo-network/witness-adhoc": "^3.6.
|
|
54
|
-
"typescript": "^5.7.
|
|
55
|
-
"vitest": "^
|
|
44
|
+
"@xylabs/vitest-extended": "^4.5.1",
|
|
45
|
+
"@xyo-network/abstract-witness": "^3.6.10",
|
|
46
|
+
"@xyo-network/account": "^3.6.10",
|
|
47
|
+
"@xyo-network/archivist-memory": "^3.6.10",
|
|
48
|
+
"@xyo-network/boundwitness-model": "^3.6.10",
|
|
49
|
+
"@xyo-network/module-model": "^3.6.10",
|
|
50
|
+
"@xyo-network/node-memory": "^3.6.10",
|
|
51
|
+
"@xyo-network/payload-builder": "^3.6.10",
|
|
52
|
+
"@xyo-network/sentinel-memory": "^3.6.10",
|
|
53
|
+
"@xyo-network/witness-adhoc": "^3.6.10",
|
|
54
|
+
"typescript": "^5.7.3",
|
|
55
|
+
"vitest": "^3.0.4"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|