@polkadot/extension-inject 0.45.5 → 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 +1 -1
- package/cjs/packageInfo.js +1 -1
- package/cyrb53.js +1 -1
- package/package.json +7 -7
- package/packageInfo.js +1 -1
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
|
|
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);
|
package/cjs/packageInfo.js
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"bugs": "https://github.com/polkadot-js/extension/issues",
|
|
4
4
|
"description": "A generic injector (usable to any extension), that populates the base exposed interfaces to be used by dapps.",
|
|
5
5
|
"engines": {
|
|
6
|
-
"node": ">=
|
|
6
|
+
"node": ">=16"
|
|
7
7
|
},
|
|
8
8
|
"homepage": "https://github.com/polkadot-js/extension/tree/master/packages/extension-inject#readme",
|
|
9
9
|
"license": "Apache-2.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": true,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"version": "0.
|
|
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.
|
|
82
|
-
"@polkadot/types": "^10.
|
|
83
|
-
"@polkadot/util": "^
|
|
84
|
-
"@polkadot/util-crypto": "^
|
|
85
|
-
"@polkadot/x-global": "^
|
|
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.
|
|
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' };
|