@xyo-network/diviner-wrapper 2.104.0 → 2.104.1
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/node/index.cjs +1 -4
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.js +1 -4
- package/dist/node/index.js.map +1 -1
- package/package.json +12 -12
package/dist/node/index.cjs
CHANGED
|
@@ -20,10 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
return to;
|
|
21
21
|
};
|
|
22
22
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
|
-
var __publicField = (obj, key, value) =>
|
|
24
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
25
|
-
return value;
|
|
26
|
-
};
|
|
23
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
27
24
|
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
28
25
|
|
|
29
26
|
// src/index.ts
|
package/dist/node/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/DivinerWrapper.ts"],"sourcesContent":["export * from './DivinerWrapper'\n","import { RetryConfig } from '@xylabs/retry'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport {\n DivinerDivineQuery,\n DivinerDivineQuerySchema,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload, WithMeta, WithSources } 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{\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<WithMeta<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":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/DivinerWrapper.ts"],"sourcesContent":["export * from './DivinerWrapper'\n","import { RetryConfig } from '@xylabs/retry'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport {\n DivinerDivineQuery,\n DivinerDivineQuerySchema,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload, WithMeta, WithSources } 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{\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<WithMeta<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":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,2BAQO;AAEP,4BAA0D;IAG1DA,kDAAAA;AACO,IAAMC,kBAAN,MAAMA,wBACHC,oCAAAA;EAOR,MAAMC,OAAOC,UAAkBC,cAAoE;AACjG,UAAMC,eAAmC;MAAEC,QAAQC;IAAyB;AAC5E,WAAO,MAAM,KAAKC,UAAUH,cAAcF,QAAAA;EAC5C;EAEA,MAAMM,YAAYN,UAAkBO,SAA2BN,cAA8D;AAC3H,UAAMC,eAAmC;MAAEC,QAAQC;IAAyB;AAC5E,WAAO,MAAM,KAAKI,aAAaN,cAAcF,UAAUO,OAAAA;EACzD;AACF;AAhBUT;AAGR,cAJWD,iBAIKY,yBAAwBC;AACxC,cALWb,iBAKKc,uBAAsBC;AACtC,cANWf,iBAMKgB,mBAAkB;EAACT;KAA6B,6CAAMS;;AANjE,IAAMhB,iBAAN;","names":["constructableModuleWrapper","DivinerWrapper","ModuleWrapper","divine","payloads","_retryConfig","queryPayload","schema","DivinerDivineQuerySchema","sendQuery","divineQuery","account","sendQueryRaw","instanceIdentityCheck","isDivinerInstance","moduleIdentityCheck","isDivinerModule","requiredQueries"]}
|
package/dist/node/index.js
CHANGED
|
@@ -3,10 +3,7 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
3
3
|
var __reflectGet = Reflect.get;
|
|
4
4
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
5
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
-
var __publicField = (obj, key, value) =>
|
|
7
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
-
return value;
|
|
9
|
-
};
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
10
7
|
var __superGet = (cls, obj, key) => __reflectGet(__getProtoOf(cls), key, obj);
|
|
11
8
|
|
|
12
9
|
// src/DivinerWrapper.ts
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/DivinerWrapper.ts"],"sourcesContent":["import { RetryConfig } from '@xylabs/retry'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport {\n DivinerDivineQuery,\n DivinerDivineQuerySchema,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload, WithMeta, WithSources } 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{\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<WithMeta<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":"
|
|
1
|
+
{"version":3,"sources":["../../src/DivinerWrapper.ts"],"sourcesContent":["import { RetryConfig } from '@xylabs/retry'\nimport { AccountInstance } from '@xyo-network/account-model'\nimport {\n DivinerDivineQuery,\n DivinerDivineQuerySchema,\n DivinerInstance,\n DivinerModule,\n DivinerParams,\n isDivinerInstance,\n isDivinerModule,\n} from '@xyo-network/diviner-model'\nimport { ModuleQueryResult } from '@xyo-network/module-model'\nimport { constructableModuleWrapper, ModuleWrapper } from '@xyo-network/module-wrapper'\nimport { Payload, WithMeta, WithSources } 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{\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<WithMeta<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":";;;;;;;;;AAEA,SAEEA,0BAIAC,mBACAC,uBACK;AAEP,SAASC,4BAA4BC,qBAAqB;AAG1DC,2BAAAA;AACO,IAAMC,kBAAN,MAAMA,wBACHC,cAAAA;EAOR,MAAMC,OAAOC,UAAkBC,cAAoE;AACjG,UAAMC,eAAmC;MAAEC,QAAQC;IAAyB;AAC5E,WAAO,MAAM,KAAKC,UAAUH,cAAcF,QAAAA;EAC5C;EAEA,MAAMM,YAAYN,UAAkBO,SAA2BN,cAA8D;AAC3H,UAAMC,eAAmC;MAAEC,QAAQC;IAAyB;AAC5E,WAAO,MAAM,KAAKI,aAAaN,cAAcF,UAAUO,OAAAA;EACzD;AACF;AAhBUT;AAGR,cAJWD,iBAIKY,yBAAwBC;AACxC,cALWb,iBAKKc,uBAAsBC;AACtC,cANWf,iBAMKgB,mBAAkB;EAACT;KAA6B,6CAAMS;;AANjE,IAAMhB,iBAAN;","names":["DivinerDivineQuerySchema","isDivinerInstance","isDivinerModule","constructableModuleWrapper","ModuleWrapper","constructableModuleWrapper","DivinerWrapper","ModuleWrapper","divine","payloads","_retryConfig","queryPayload","schema","DivinerDivineQuerySchema","sendQuery","divineQuery","account","sendQueryRaw","instanceIdentityCheck","isDivinerInstance","moduleIdentityCheck","isDivinerModule","requiredQueries"]}
|
package/package.json
CHANGED
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@xylabs/retry": "^3.5.1",
|
|
14
|
-
"@xyo-network/account-model": "~2.104.
|
|
15
|
-
"@xyo-network/diviner-model": "~2.104.
|
|
16
|
-
"@xyo-network/module-model": "~2.104.
|
|
17
|
-
"@xyo-network/module-wrapper": "~2.104.
|
|
18
|
-
"@xyo-network/payload-model": "~2.104.
|
|
14
|
+
"@xyo-network/account-model": "~2.104.1",
|
|
15
|
+
"@xyo-network/diviner-model": "~2.104.1",
|
|
16
|
+
"@xyo-network/module-model": "~2.104.1",
|
|
17
|
+
"@xyo-network/module-wrapper": "~2.104.1",
|
|
18
|
+
"@xyo-network/payload-model": "~2.104.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
22
|
-
"@xylabs/tsconfig": "^3.
|
|
23
|
-
"@xylabs/tsconfig-jest": "^3.
|
|
24
|
-
"@xyo-network/account": "~2.104.
|
|
25
|
-
"@xyo-network/diviner-identity": "~2.104.
|
|
26
|
-
"@xyo-network/payload-builder": "~2.104.
|
|
21
|
+
"@xylabs/ts-scripts-yarn3": "^3.11.2",
|
|
22
|
+
"@xylabs/tsconfig": "^3.11.2",
|
|
23
|
+
"@xylabs/tsconfig-jest": "^3.11.2",
|
|
24
|
+
"@xyo-network/account": "~2.104.1",
|
|
25
|
+
"@xyo-network/diviner-identity": "~2.104.1",
|
|
26
|
+
"@xyo-network/payload-builder": "~2.104.1",
|
|
27
27
|
"typescript": "^5.4.5"
|
|
28
28
|
},
|
|
29
29
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -65,6 +65,6 @@
|
|
|
65
65
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
66
66
|
},
|
|
67
67
|
"sideEffects": false,
|
|
68
|
-
"version": "2.104.
|
|
68
|
+
"version": "2.104.1",
|
|
69
69
|
"type": "module"
|
|
70
70
|
}
|