@onekeyfe/cross-inpage-provider-core 2.2.25 → 2.2.26
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/dist/cjs/index.js +0 -1
- package/dist/cjs/versionInfo.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/versionInfo.js +1 -1
- package/package.json +5 -6
- package/dist/cjs/utils/hashUtils.js +0 -18
- package/dist/utils/hashUtils.d.ts +0 -5
- package/dist/utils/hashUtils.js +0 -11
package/dist/cjs/index.js
CHANGED
|
@@ -51,7 +51,6 @@ __exportStar(require("./JsBridgeIframe"), exports);
|
|
|
51
51
|
__exportStar(require("./CrossEventEmitter"), exports);
|
|
52
52
|
__exportStar(require("./walletProperty"), exports);
|
|
53
53
|
__exportStar(require("./notification"), exports);
|
|
54
|
-
__exportStar(require("./utils/hashUtils"), exports);
|
|
55
54
|
const consts = __importStar(require("./consts"));
|
|
56
55
|
exports.consts = consts;
|
|
57
56
|
const injectedFactory_1 = __importDefault(require("./injectedFactory"));
|
package/dist/cjs/versionInfo.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './JsBridgeIframe';
|
|
|
9
9
|
export * from './CrossEventEmitter';
|
|
10
10
|
export * from './walletProperty';
|
|
11
11
|
export * from './notification';
|
|
12
|
-
export * from './utils/hashUtils';
|
|
13
12
|
import * as consts from './consts';
|
|
14
13
|
export { consts };
|
|
15
14
|
import injectedFactory from './injectedFactory';
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,6 @@ export * from './JsBridgeIframe';
|
|
|
9
9
|
export * from './CrossEventEmitter';
|
|
10
10
|
export * from './walletProperty';
|
|
11
11
|
export * from './notification';
|
|
12
|
-
export * from './utils/hashUtils';
|
|
13
12
|
import * as consts from './consts';
|
|
14
13
|
export { consts };
|
|
15
14
|
import injectedFactory from './injectedFactory';
|
package/dist/versionInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/cross-inpage-provider-core",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.26",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"cross-inpage-provider"
|
|
6
6
|
],
|
|
@@ -29,10 +29,9 @@
|
|
|
29
29
|
"build-version-info": "node ./scripts/buildVersionInfo.js"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"@onekeyfe/cross-inpage-provider-
|
|
34
|
-
"@onekeyfe/cross-inpage-provider-
|
|
35
|
-
"@onekeyfe/cross-inpage-provider-types": "2.2.25",
|
|
32
|
+
"@onekeyfe/cross-inpage-provider-errors": "2.2.26",
|
|
33
|
+
"@onekeyfe/cross-inpage-provider-events": "2.2.26",
|
|
34
|
+
"@onekeyfe/cross-inpage-provider-types": "2.2.26",
|
|
36
35
|
"events": "^3.3.0",
|
|
37
36
|
"lodash-es": "^4.17.21",
|
|
38
37
|
"ms": "^2.1.3"
|
|
@@ -40,5 +39,5 @@
|
|
|
40
39
|
"devDependencies": {
|
|
41
40
|
"@types/lodash-es": "^4.17.12"
|
|
42
41
|
},
|
|
43
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "bbf6e9bae844ea2d5aaed884a4ace9cc8051569d"
|
|
44
43
|
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bytesToHex = exports.hexToBytes = void 0;
|
|
4
|
-
exports.hasHexPrefix = hasHexPrefix;
|
|
5
|
-
exports.stripHexPrefix = stripHexPrefix;
|
|
6
|
-
exports.addHexPrefix = addHexPrefix;
|
|
7
|
-
const utils_1 = require("@noble/hashes/utils");
|
|
8
|
-
Object.defineProperty(exports, "hexToBytes", { enumerable: true, get: function () { return utils_1.hexToBytes; } });
|
|
9
|
-
Object.defineProperty(exports, "bytesToHex", { enumerable: true, get: function () { return utils_1.bytesToHex; } });
|
|
10
|
-
function hasHexPrefix(data) {
|
|
11
|
-
return data.startsWith('0x');
|
|
12
|
-
}
|
|
13
|
-
function stripHexPrefix(hex) {
|
|
14
|
-
return hasHexPrefix(hex) ? hex.slice(2) : hex;
|
|
15
|
-
}
|
|
16
|
-
function addHexPrefix(hex) {
|
|
17
|
-
return hasHexPrefix(hex) ? hex : `0x${hex}`;
|
|
18
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { hexToBytes, bytesToHex } from '@noble/hashes/utils';
|
|
2
|
-
declare function hasHexPrefix(data: string): boolean;
|
|
3
|
-
declare function stripHexPrefix(hex: string): string;
|
|
4
|
-
declare function addHexPrefix(hex: string): string;
|
|
5
|
-
export { hexToBytes, bytesToHex, hasHexPrefix, stripHexPrefix, addHexPrefix };
|
package/dist/utils/hashUtils.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { hexToBytes, bytesToHex } from '@noble/hashes/utils';
|
|
2
|
-
function hasHexPrefix(data) {
|
|
3
|
-
return data.startsWith('0x');
|
|
4
|
-
}
|
|
5
|
-
function stripHexPrefix(hex) {
|
|
6
|
-
return hasHexPrefix(hex) ? hex.slice(2) : hex;
|
|
7
|
-
}
|
|
8
|
-
function addHexPrefix(hex) {
|
|
9
|
-
return hasHexPrefix(hex) ? hex : `0x${hex}`;
|
|
10
|
-
}
|
|
11
|
-
export { hexToBytes, bytesToHex, hasHexPrefix, stripHexPrefix, addHexPrefix };
|