@polkadot/extension-inject 0.46.1 → 0.46.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/cyrb53.js CHANGED
@@ -4,7 +4,7 @@ exports.cyrb53 = void 0;
4
4
  function cyrb53(input, seed = Date.now()) {
5
5
  let h1 = 0xdeadbeef ^ seed;
6
6
  let h2 = 0x41c6ce57 ^ seed;
7
- for (let i = 0; i < input.length; i++) {
7
+ for (let i = 0, count = input.length; i < count; i++) {
8
8
  const ch = input.charCodeAt(i);
9
9
  h1 = Math.imul(h1 ^ ch, 2654435761);
10
10
  h2 = Math.imul(h2 ^ ch, 1597334677);
@@ -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-inject', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.1' };
4
+ exports.packageInfo = { name: '@polkadot/extension-inject', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.2' };
package/cyrb53.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export function cyrb53(input, seed = Date.now()) {
2
2
  let h1 = 0xdeadbeef ^ seed;
3
3
  let h2 = 0x41c6ce57 ^ seed;
4
- for (let i = 0; i < input.length; i++) {
4
+ for (let i = 0, count = input.length; i < count; i++) {
5
5
  const ch = input.charCodeAt(i);
6
6
  h1 = Math.imul(h1 ^ ch, 2654435761);
7
7
  h2 = Math.imul(h2 ^ ch, 1597334677);
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "sideEffects": true,
17
17
  "type": "module",
18
- "version": "0.46.1",
18
+ "version": "0.46.2",
19
19
  "main": "./cjs/index.js",
20
20
  "module": "./index.js",
21
21
  "types": "./index.d.ts",
@@ -78,11 +78,11 @@
78
78
  }
79
79
  },
80
80
  "dependencies": {
81
- "@polkadot/rpc-provider": "^10.4.1",
82
- "@polkadot/types": "^10.4.1",
83
- "@polkadot/util": "^12.0.1",
84
- "@polkadot/util-crypto": "^12.0.1",
85
- "@polkadot/x-global": "^12.0.1",
81
+ "@polkadot/rpc-provider": "^10.5.1",
82
+ "@polkadot/types": "^10.5.1",
83
+ "@polkadot/util": "^12.1.1",
84
+ "@polkadot/util-crypto": "^12.1.1",
85
+ "@polkadot/x-global": "^12.1.1",
86
86
  "tslib": "^2.5.0"
87
87
  },
88
88
  "peerDependencies": {
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/extension-inject', 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.46.1' };
1
+ export const packageInfo = { name: '@polkadot/extension-inject', 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.46.2' };