Adjust object index typings (#765)

* Adjust object index typings

* CHANGELOG

* Bump common
This commit is contained in:
Jaco
2023-06-11 10:16:28 +03:00
committed by GitHub
parent 252a8a8554
commit 50b4e2bd07
14 changed files with 214 additions and 216 deletions
+2 -2
View File
@@ -21,8 +21,8 @@
"version": "3.4.2",
"main": "index.js",
"dependencies": {
"@polkadot/networks": "^12.2.2",
"@polkadot/util": "^12.2.2",
"@polkadot/networks": "^12.3.1",
"@polkadot/util": "^12.3.1",
"eventemitter3": "^5.0.1",
"store": "^2.0.12",
"tslib": "^2.5.3"
+1 -1
View File
@@ -57,7 +57,7 @@ export class Settings implements SettingsStruct {
this.#emitter = new EventEmitter();
// will become deprecated for supporting substrate connect light clients. apiType structure should be used instead
this.#apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (hasProcess && process.env && process.env.WS_URL) || (ENDPOINT_DEFAULT.value as string);
this.#apiUrl = (typeof settings.apiUrl === 'string' && settings.apiUrl) || (hasProcess && process.env && process.env['WS_URL']) || (ENDPOINT_DEFAULT.value as string);
this.#apiType = { param: this.#apiUrl, type: 'json-rpc' as EndpointType };
this.#camera = withDefault(CAMERA, settings.camera, CAMERA_DEFAULT);
this.#ledgerConn = withDefault(LEDGER_CONN, settings.ledgerConn, LEDGER_CONN_DEFAULT);