@xyo-network/diviner-wrapper 3.6.8 → 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.
@@ -1,30 +1,21 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
1
  // src/DivinerWrapper.ts
5
- import { DivinerDivineQuerySchema, isDivinerInstance, isDivinerModule } from "@xyo-network/diviner-model";
2
+ import {
3
+ DivinerDivineQuerySchema,
4
+ isDivinerInstance,
5
+ isDivinerModule
6
+ } from "@xyo-network/diviner-model";
6
7
  import { constructableModuleWrapper, ModuleWrapper } from "@xyo-network/module-wrapper";
7
8
  constructableModuleWrapper();
8
9
  var DivinerWrapper = class extends ModuleWrapper {
9
- static {
10
- __name(this, "DivinerWrapper");
11
- }
12
10
  static instanceIdentityCheck = isDivinerInstance;
13
11
  static moduleIdentityCheck = isDivinerModule;
14
- static requiredQueries = [
15
- DivinerDivineQuerySchema,
16
- ...super.requiredQueries
17
- ];
12
+ static requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries];
18
13
  async divine(payloads, _retryConfig) {
19
- const queryPayload = {
20
- schema: DivinerDivineQuerySchema
21
- };
14
+ const queryPayload = { schema: DivinerDivineQuerySchema };
22
15
  return await this.sendQuery(queryPayload, payloads);
23
16
  }
24
17
  async divineQuery(payloads, account, _retryConfig) {
25
- const queryPayload = {
26
- schema: DivinerDivineQuerySchema
27
- };
18
+ const queryPayload = { schema: DivinerDivineQuerySchema };
28
19
  return await this.sendQueryRaw(queryPayload, payloads, account);
29
20
  }
30
21
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/DivinerWrapper.ts"],"sourcesContent":["import type { RetryConfig } from '@xylabs/retry'\nimport type { AccountInstance } from '@xyo-network/account-model'\nimport type {\n DivinerDivineQuery,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n} from '@xyo-network/diviner-model'\nimport {\n DivinerDivineQuerySchema,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type {\n Payload, WithoutPrivateStorageMeta, WithSources,\n} from '@xyo-network/payload-model'\n\nconstructableModuleWrapper()\nexport class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload>\n extends ModuleWrapper<TWrappedModule>\n implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {\n static override instanceIdentityCheck = isDivinerInstance\n static override moduleIdentityCheck = isDivinerModule\n static override requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]\n\n async divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n}\n"],"mappings":";;;;AAQA,SACEA,0BACAC,mBACAC,uBACK;AAEP,SAASC,4BAA4BC,qBAAqB;AAK1DC,2BAAAA;AACO,IAAMC,iBAAN,cACGC,cAAAA;EAbV,OAaUA;;;EAER,OAAgBC,wBAAwBC;EACxC,OAAgBC,sBAAsBC;EACtC,OAAgBC,kBAAkB;IAACC;OAA6B,MAAMD;;EAEtE,MAAME,OAAOC,UAAkBC,cAAqF;AAClH,UAAMC,eAAmC;MAAEC,QAAQL;IAAyB;AAC5E,WAAO,MAAM,KAAKM,UAAUF,cAAcF,QAAAA;EAC5C;EAEA,MAAMK,YAAYL,UAAkBM,SAA2BL,cAA8D;AAC3H,UAAMC,eAAmC;MAAEC,QAAQL;IAAyB;AAC5E,WAAO,MAAM,KAAKS,aAAaL,cAAcF,UAAUM,OAAAA;EACzD;AACF;","names":["DivinerDivineQuerySchema","isDivinerInstance","isDivinerModule","constructableModuleWrapper","ModuleWrapper","constructableModuleWrapper","DivinerWrapper","ModuleWrapper","instanceIdentityCheck","isDivinerInstance","moduleIdentityCheck","isDivinerModule","requiredQueries","DivinerDivineQuerySchema","divine","payloads","_retryConfig","queryPayload","schema","sendQuery","divineQuery","account","sendQueryRaw"]}
1
+ {"version":3,"sources":["../../src/DivinerWrapper.ts"],"sourcesContent":["import type { RetryConfig } from '@xylabs/retry'\nimport type { AccountInstance } from '@xyo-network/account-model'\nimport type {\n DivinerDivineQuery,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n} from '@xyo-network/diviner-model'\nimport {\n DivinerDivineQuerySchema,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport type { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport type {\n Payload, WithoutPrivateStorageMeta, WithSources,\n} from '@xyo-network/payload-model'\n\nconstructableModuleWrapper()\nexport class DivinerWrapper<TWrappedModule extends DivinerModule<DivinerParams>, TIn extends Payload = Payload, TOut extends Payload = Payload>\n extends ModuleWrapper<TWrappedModule>\n implements DivinerInstance<TWrappedModule['params'], TIn, TOut> {\n static override instanceIdentityCheck = isDivinerInstance\n static override moduleIdentityCheck = isDivinerModule\n static override requiredQueries = [DivinerDivineQuerySchema, ...super.requiredQueries]\n\n async divine(payloads?: TIn[], _retryConfig?: RetryConfig): Promise<WithoutPrivateStorageMeta<WithSources<TOut>>[]> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQuery(queryPayload, payloads)\n }\n\n async divineQuery(payloads?: TIn[], account?: AccountInstance, _retryConfig?: RetryConfig): Promise<ModuleQueryResult<TOut>> {\n const queryPayload: DivinerDivineQuery = { schema: DivinerDivineQuerySchema }\n return await this.sendQueryRaw(queryPayload, payloads, account)\n }\n}\n"],"mappings":";AAQA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,4BAA4B,qBAAqB;AAK1D,2BAA2B;AACpB,IAAM,iBAAN,cACG,cACwD;AAAA,EAChE,OAAgB,wBAAwB;AAAA,EACxC,OAAgB,sBAAsB;AAAA,EACtC,OAAgB,kBAAkB,CAAC,0BAA0B,GAAG,MAAM,eAAe;AAAA,EAErF,MAAM,OAAO,UAAkB,cAAqF;AAClH,UAAM,eAAmC,EAAE,QAAQ,yBAAyB;AAC5E,WAAO,MAAM,KAAK,UAAU,cAAc,QAAQ;AAAA,EACpD;AAAA,EAEA,MAAM,YAAY,UAAkB,SAA2B,cAA8D;AAC3H,UAAM,eAAmC,EAAE,QAAQ,yBAAyB;AAC5E,WAAO,MAAM,KAAK,aAAa,cAAc,UAAU,OAAO;AAAA,EAChE;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-wrapper",
3
- "version": "3.6.8",
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,21 +29,21 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/retry": "^4.4.34",
33
- "@xyo-network/account-model": "^3.6.8",
34
- "@xyo-network/diviner-model": "^3.6.8",
35
- "@xyo-network/module-model": "^3.6.8",
36
- "@xyo-network/module-wrapper": "^3.6.8",
37
- "@xyo-network/payload-model": "^3.6.8"
32
+ "@xylabs/retry": "^4.5.1",
33
+ "@xyo-network/account-model": "^3.6.10",
34
+ "@xyo-network/diviner-model": "^3.6.10",
35
+ "@xyo-network/module-model": "^3.6.10",
36
+ "@xyo-network/module-wrapper": "^3.6.10",
37
+ "@xyo-network/payload-model": "^3.6.10"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@xylabs/ts-scripts-yarn3": "^4.2.6",
41
41
  "@xylabs/tsconfig": "^4.2.6",
42
- "@xylabs/vitest-extended": "^4.4.34",
43
- "@xyo-network/diviner-identity": "^3.6.8",
44
- "@xyo-network/payload-builder": "^3.6.8",
45
- "typescript": "^5.7.2",
46
- "vitest": "^2.1.8"
42
+ "@xylabs/vitest-extended": "^4.5.1",
43
+ "@xyo-network/diviner-identity": "^3.6.10",
44
+ "@xyo-network/payload-builder": "^3.6.10",
45
+ "typescript": "^5.7.3",
46
+ "vitest": "^3.0.4"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"