@keplr-wallet/router-mock 0.12.4 → 0.12.5
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/build/requester/index.js
CHANGED
|
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MockMessageRequester = void 0;
|
|
13
13
|
const router_1 = require("@keplr-wallet/router");
|
|
14
|
-
const common_1 = require("@keplr-wallet/common");
|
|
15
14
|
const router_2 = require("../router");
|
|
16
15
|
class MockMessageRequester {
|
|
17
16
|
constructor(id, url) {
|
|
@@ -25,12 +24,12 @@ class MockMessageRequester {
|
|
|
25
24
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
26
25
|
// @ts-ignore
|
|
27
26
|
msg["origin"] = new URL(this.url).origin;
|
|
28
|
-
const result =
|
|
27
|
+
const result = router_1.JSONUint8Array.unwrap(yield new Promise((resolve) => {
|
|
29
28
|
router_2.MockRouter.eventEmitter.emit("message", {
|
|
30
29
|
message: {
|
|
31
30
|
port,
|
|
32
31
|
type: msg.type(),
|
|
33
|
-
msg:
|
|
32
|
+
msg: router_1.JSONUint8Array.wrap(msg),
|
|
34
33
|
},
|
|
35
34
|
sender: {
|
|
36
35
|
id: this.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requester/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/requester/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAM8B;AAC9B,sCAAuC;AAEvC,MAAa,oBAAoB;IAC/B,YAA+B,EAAU,EAAqB,GAAW;QAA1C,OAAE,GAAF,EAAE,CAAQ;QAAqB,QAAG,GAAH,GAAG,CAAQ;IAAG,CAAC;IAEvE,WAAW,CACf,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ock",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"author": "chainapsis",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
"lint-fix": "eslint --fix \"src/**/*\" && prettier --write \"src/**/*\""
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@keplr-wallet/
|
|
20
|
-
"@keplr-wallet/router": "0.12.
|
|
21
|
-
"@keplr-wallet/router-extension": "0.12.4"
|
|
19
|
+
"@keplr-wallet/router": "0.12.5",
|
|
20
|
+
"@keplr-wallet/router-extension": "0.12.5"
|
|
22
21
|
},
|
|
23
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "653eccdbc8e05b0579ebed8e481fbae0411df461"
|
|
24
23
|
}
|
package/src/requester/index.ts
CHANGED