@xyo-network/sentinel-wrapper 3.6.9 → 3.6.11

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.
@@ -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 { isSentinelInstance, isSentinelModule, SentinelReportQuerySchema } from "@xyo-network/sentinel-model";
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":";;;;AAGA,SAASA,4BAA4BC,qBAAqB;AAO1D,SACEC,oBACAC,kBACAC,iCACK;AAGPC,2BAAAA;AACO,IAAMC,kBAAN,cACGC,cAAAA;EAhBV,OAgBUA;;;EAER,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA8B,MAAMD;;EAEvEE,aAA2C;AACzC,UAAM,IAAIC,MAAM,eAAA;EAClB;EAEA,MAAMC,OAAOC,UAA0C;AACrD,UAAMC,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKO,UAAUF,cAAcD,QAAAA;EAC5C;EAEA,MAAMI,YAAYJ,UAAsBK,SAAuD;AAC7F,UAAMJ,eAAoC;MAAEC,QAAQN;IAA0B;AAC9E,WAAO,MAAM,KAAKU,aAAaL,cAAcD,UAAUK,OAAAA;EACzD;EAEAE,YAAwC;AACtC,UAAM,IAAIT,MAAM,eAAA;EAClB;AACF;","names":["constructableModuleWrapper","ModuleWrapper","isSentinelInstance","isSentinelModule","SentinelReportQuerySchema","constructableModuleWrapper","SentinelWrapper","ModuleWrapper","instanceIdentityCheck","isSentinelInstance","moduleIdentityCheck","isSentinelModule","requiredQueries","SentinelReportQuerySchema","archivists","Error","report","payloads","queryPayload","schema","sendQuery","reportQuery","account","sendQueryRaw","witnesses"]}
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.9",
3
+ "version": "3.6.11",
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.9",
33
- "@xyo-network/archivist-model": "^3.6.9",
34
- "@xyo-network/module-model": "^3.6.9",
35
- "@xyo-network/module-wrapper": "^3.6.9",
36
- "@xyo-network/payload-model": "^3.6.9",
37
- "@xyo-network/sentinel-model": "^3.6.9",
38
- "@xyo-network/witness-model": "^3.6.9"
32
+ "@xyo-network/account-model": "^3.6.11",
33
+ "@xyo-network/archivist-model": "^3.6.11",
34
+ "@xyo-network/module-model": "^3.6.11",
35
+ "@xyo-network/module-wrapper": "^3.6.11",
36
+ "@xyo-network/payload-model": "^3.6.11",
37
+ "@xyo-network/sentinel-model": "^3.6.11",
38
+ "@xyo-network/witness-model": "^3.6.11"
39
39
  },
40
40
  "devDependencies": {
41
- "@xylabs/delay": "^4.4.34",
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.4.34",
45
- "@xyo-network/abstract-witness": "^3.6.9",
46
- "@xyo-network/account": "^3.6.9",
47
- "@xyo-network/archivist-memory": "^3.6.9",
48
- "@xyo-network/boundwitness-model": "^3.6.9",
49
- "@xyo-network/module-model": "^3.6.9",
50
- "@xyo-network/node-memory": "^3.6.9",
51
- "@xyo-network/payload-builder": "^3.6.9",
52
- "@xyo-network/sentinel-memory": "^3.6.9",
53
- "@xyo-network/witness-adhoc": "^3.6.9",
54
- "typescript": "^5.7.2",
55
- "vitest": "^2.1.8"
44
+ "@xylabs/vitest-extended": "^4.5.1",
45
+ "@xyo-network/abstract-witness": "^3.6.11",
46
+ "@xyo-network/account": "^3.6.11",
47
+ "@xyo-network/archivist-memory": "^3.6.11",
48
+ "@xyo-network/boundwitness-model": "^3.6.11",
49
+ "@xyo-network/module-model": "^3.6.11",
50
+ "@xyo-network/node-memory": "^3.6.11",
51
+ "@xyo-network/payload-builder": "^3.6.11",
52
+ "@xyo-network/sentinel-memory": "^3.6.11",
53
+ "@xyo-network/witness-adhoc": "^3.6.11",
54
+ "typescript": "^5.7.3",
55
+ "vitest": "^3.0.4"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"