@polkadot/networks 12.3.1 → 12.4.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/cjs/interfaces.js CHANGED
@@ -19,8 +19,8 @@ function toExpanded(o) {
19
19
  // filtering
20
20
  n.isTestnet = !!index_js_1.knownTestnet[network] || TESTNETS.includes(nameParts[nameParts.length - 1]);
21
21
  n.isIgnored = n.isTestnet || (!(o.standardAccount &&
22
- o.decimals && o.decimals.length &&
23
- o.symbols && o.symbols.length) &&
22
+ o.decimals?.length &&
23
+ o.symbols?.length) &&
24
24
  o.prefix !== 42);
25
25
  return n;
26
26
  }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/networks', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.3.1' };
4
+ exports.packageInfo = { name: '@polkadot/networks', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '12.4.1' };
package/interfaces.js CHANGED
@@ -15,8 +15,8 @@ function toExpanded(o) {
15
15
  // filtering
16
16
  n.isTestnet = !!knownTestnet[network] || TESTNETS.includes(nameParts[nameParts.length - 1]);
17
17
  n.isIgnored = n.isTestnet || (!(o.standardAccount &&
18
- o.decimals && o.decimals.length &&
19
- o.symbols && o.symbols.length) &&
18
+ o.decimals?.length &&
19
+ o.symbols?.length) &&
20
20
  o.prefix !== 42);
21
21
  return n;
22
22
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "sideEffects": false,
17
17
  "type": "module",
18
- "version": "12.3.1",
18
+ "version": "12.4.1",
19
19
  "main": "./cjs/index.js",
20
20
  "module": "./index.js",
21
21
  "types": "./index.d.ts",
@@ -100,8 +100,8 @@
100
100
  }
101
101
  },
102
102
  "dependencies": {
103
- "@polkadot/util": "12.3.1",
104
- "@substrate/ss58-registry": "^1.40.0",
105
- "tslib": "^2.5.3"
103
+ "@polkadot/util": "12.4.1",
104
+ "@substrate/ss58-registry": "^1.43.0",
105
+ "tslib": "^2.6.1"
106
106
  }
107
107
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/networks', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.3.1' };
1
+ export const packageInfo = { name: '@polkadot/networks', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '12.4.1' };
package/types.d.ts CHANGED
@@ -7,7 +7,7 @@ export type KnownGenesis = Record<string, HexString[]>;
7
7
  export type KnownSubstrate = RegistryEntry;
8
8
  export type KnownTestnet = Record<string, true>;
9
9
  export interface SubstrateNetwork extends KnownSubstrate {
10
- genesisHash: string[];
10
+ genesisHash: HexString[];
11
11
  hasLedgerSupport: boolean;
12
12
  icon: Icon;
13
13
  isIgnored: boolean;