@polkadot/extension-inject 0.46.1 → 0.46.3
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 +16 -6
- 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.46.
|
|
4
|
+
exports.packageInfo = { name: '@polkadot/extension-inject', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '0.46.3' };
|
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
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": true,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"version": "0.46.
|
|
18
|
+
"version": "0.46.3",
|
|
19
19
|
"main": "./cjs/index.js",
|
|
20
20
|
"module": "./index.js",
|
|
21
21
|
"types": "./index.d.ts",
|
|
@@ -24,36 +24,43 @@
|
|
|
24
24
|
"./cjs/*": "./cjs/*.js",
|
|
25
25
|
".": {
|
|
26
26
|
"types": "./index.d.ts",
|
|
27
|
+
"module": "./index.js",
|
|
27
28
|
"require": "./cjs/index.js",
|
|
28
29
|
"default": "./index.js"
|
|
29
30
|
},
|
|
30
31
|
"./bundle": {
|
|
31
32
|
"types": "./bundle.d.ts",
|
|
33
|
+
"module": "./bundle.js",
|
|
32
34
|
"require": "./cjs/bundle.js",
|
|
33
35
|
"default": "./bundle.js"
|
|
34
36
|
},
|
|
35
37
|
"./chrome": {
|
|
36
38
|
"types": "./chrome.d.ts",
|
|
39
|
+
"module": "./chrome.js",
|
|
37
40
|
"require": "./cjs/chrome.js",
|
|
38
41
|
"default": "./chrome.js"
|
|
39
42
|
},
|
|
40
43
|
"./crossenv": {
|
|
41
44
|
"types": "./crossenv.d.ts",
|
|
45
|
+
"module": "./crossenv.js",
|
|
42
46
|
"require": "./cjs/crossenv.js",
|
|
43
47
|
"default": "./crossenv.js"
|
|
44
48
|
},
|
|
45
49
|
"./cyrb53": {
|
|
46
50
|
"types": "./cyrb53.d.ts",
|
|
51
|
+
"module": "./cyrb53.js",
|
|
47
52
|
"require": "./cjs/cyrb53.js",
|
|
48
53
|
"default": "./cyrb53.js"
|
|
49
54
|
},
|
|
50
55
|
"./detectOther": {
|
|
51
56
|
"types": "./detectOther.d.ts",
|
|
57
|
+
"module": "./detectOther.js",
|
|
52
58
|
"require": "./cjs/detectOther.js",
|
|
53
59
|
"default": "./detectOther.js"
|
|
54
60
|
},
|
|
55
61
|
"./detectPackage": {
|
|
56
62
|
"types": "./detectPackage.d.ts",
|
|
63
|
+
"module": "./detectPackage.js",
|
|
57
64
|
"require": "./cjs/detectPackage.js",
|
|
58
65
|
"default": "./detectPackage.js"
|
|
59
66
|
},
|
|
@@ -63,26 +70,29 @@
|
|
|
63
70
|
},
|
|
64
71
|
"./packageInfo.js": {
|
|
65
72
|
"types": "./packageInfo.d.ts",
|
|
73
|
+
"module": "./packageInfo.js",
|
|
66
74
|
"require": "./cjs/packageInfo.js",
|
|
67
75
|
"default": "./packageInfo.js"
|
|
68
76
|
},
|
|
69
77
|
"./packageInfo": {
|
|
70
78
|
"types": "./packageInfo.d.ts",
|
|
79
|
+
"module": "./packageInfo.js",
|
|
71
80
|
"require": "./cjs/packageInfo.js",
|
|
72
81
|
"default": "./packageInfo.js"
|
|
73
82
|
},
|
|
74
83
|
"./types": {
|
|
75
84
|
"types": "./types.d.ts",
|
|
85
|
+
"module": "./types.js",
|
|
76
86
|
"require": "./cjs/types.js",
|
|
77
87
|
"default": "./types.js"
|
|
78
88
|
}
|
|
79
89
|
},
|
|
80
90
|
"dependencies": {
|
|
81
|
-
"@polkadot/rpc-provider": "^10.
|
|
82
|
-
"@polkadot/types": "^10.
|
|
83
|
-
"@polkadot/util": "^12.
|
|
84
|
-
"@polkadot/util-crypto": "^12.
|
|
85
|
-
"@polkadot/x-global": "^12.
|
|
91
|
+
"@polkadot/rpc-provider": "^10.7.1",
|
|
92
|
+
"@polkadot/types": "^10.7.1",
|
|
93
|
+
"@polkadot/util": "^12.2.1",
|
|
94
|
+
"@polkadot/util-crypto": "^12.2.1",
|
|
95
|
+
"@polkadot/x-global": "^12.2.1",
|
|
86
96
|
"tslib": "^2.5.0"
|
|
87
97
|
},
|
|
88
98
|
"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
|
+
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.3' };
|