@tari-project/indexer-provider 0.12.0 → 0.12.2

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/provider.js CHANGED
@@ -60,7 +60,7 @@ export class IndexerProvider {
60
60
  };
61
61
  }
62
62
  async getTemplateDefinition(template_address) {
63
- let resp = await this.client.getTemplateDefinition({ template_address });
63
+ const resp = await this.client.getTemplateDefinition({ template_address });
64
64
  return resp;
65
65
  }
66
66
  }
@@ -80,6 +80,7 @@ export class IndexerProviderClient {
80
80
  }
81
81
  async __invokeRpc(method, params = null) {
82
82
  const id = this.id++;
83
+ /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
83
84
  const response = await this.transport.sendRequest({
84
85
  method,
85
86
  jsonrpc: "2.0",
@@ -13,8 +13,8 @@ export default class FetchRpcTransport {
13
13
  if (options?.token) {
14
14
  headers["Authorization"] = `Bearer ${options.token}`;
15
15
  }
16
- let controller = new AbortController();
17
- let signal = controller.signal;
16
+ const controller = new AbortController();
17
+ const signal = controller.signal;
18
18
  const timeoutId = options.timeout_millis
19
19
  ? setTimeout(() => {
20
20
  controller.abort("Timeout");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/indexer-provider",
3
- "version": "0.12.0",
3
+ "version": "0.12.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -12,9 +12,9 @@
12
12
  "dependencies": {
13
13
  "@tari-project/typescript-bindings": ">=1.14.0",
14
14
  "@tari-project/wallet_jrpc_client": "^1.7.2",
15
- "@tari-project/tari-provider": "^0.12.0",
16
- "@tari-project/tarijs-types": "^0.12.0",
17
- "@tari-project/tari-permissions": "^0.12.0"
15
+ "@tari-project/tari-permissions": "^0.12.2",
16
+ "@tari-project/tari-provider": "^0.12.2",
17
+ "@tari-project/tarijs-types": "^0.12.2"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "^22.13.1",
@@ -26,6 +26,7 @@
26
26
  "main": "dist/index.js",
27
27
  "types": "dist/index.d.ts",
28
28
  "scripts": {
29
- "build": "tsc -b"
29
+ "build": "tsc -b",
30
+ "lint": "eslint src/"
30
31
  }
31
32
  }