@polkadot/extension-chains 0.55.1 → 0.56.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/cjs/bundle.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.knownMetadata = exports.addMetadata = exports.findChain = exports.metadataExpand = exports.packageInfo = void 0;
3
+ exports.packageInfo = void 0;
4
+ exports.metadataExpand = metadataExpand;
5
+ exports.findChain = findChain;
6
+ exports.addMetadata = addMetadata;
7
+ exports.knownMetadata = knownMetadata;
4
8
  const types_1 = require("@polkadot/types");
5
9
  const util_crypto_1 = require("@polkadot/util-crypto");
6
10
  var packageInfo_js_1 = require("./packageInfo.js");
@@ -48,19 +52,15 @@ function metadataExpand(definition, isPartial = false) {
48
52
  }
49
53
  return result;
50
54
  }
51
- exports.metadataExpand = metadataExpand;
52
55
  function findChain(definitions, genesisHash) {
53
56
  const def = definitions.find((def) => def.genesisHash === genesisHash);
54
57
  return def
55
58
  ? metadataExpand(def)
56
59
  : null;
57
60
  }
58
- exports.findChain = findChain;
59
61
  function addMetadata(def) {
60
62
  definitions.set(def.genesisHash, def);
61
63
  }
62
- exports.addMetadata = addMetadata;
63
64
  function knownMetadata() {
64
65
  return [...definitions.values()];
65
66
  }
66
- exports.knownMetadata = knownMetadata;
@@ -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/extension-chains', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.55.1' };
4
+ exports.packageInfo = { name: '@polkadot/extension-chains', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.56.2' };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "0.55.1",
21
+ "version": "0.56.2",
22
22
  "main": "./cjs/index.js",
23
23
  "module": "./index.js",
24
24
  "types": "./index.d.ts",
@@ -115,11 +115,11 @@
115
115
  }
116
116
  },
117
117
  "dependencies": {
118
- "@polkadot/extension-inject": "0.55.1",
119
- "@polkadot/networks": "^13.2.1",
120
- "@polkadot/util": "^13.2.1",
121
- "@polkadot/util-crypto": "^13.2.1",
122
- "tslib": "^2.6.2"
118
+ "@polkadot/extension-inject": "0.56.2",
119
+ "@polkadot/networks": "^13.2.3",
120
+ "@polkadot/util": "^13.2.3",
121
+ "@polkadot/util-crypto": "^13.2.3",
122
+ "tslib": "^2.8.1"
123
123
  },
124
124
  "peerDependencies": {
125
125
  "@polkadot/api": "*",
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/extension-chains', 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: '0.55.1' };
1
+ export const packageInfo = { name: '@polkadot/extension-chains', 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: '0.56.2' };