@metamask-previews/keyring-internal-api 6.1.0-308fbe1 → 6.2.0-8d08f2e
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/CHANGELOG.md +14 -1
- package/dist/compatibility/index.cjs +18 -0
- package/dist/compatibility/index.cjs.map +1 -0
- package/dist/compatibility/index.d.cts +2 -0
- package/dist/compatibility/index.d.cts.map +1 -0
- package/dist/compatibility/index.d.mts +2 -0
- package/dist/compatibility/index.d.mts.map +1 -0
- package/dist/compatibility/index.mjs +2 -0
- package/dist/compatibility/index.mjs.map +1 -0
- package/dist/compatibility/v1.cjs +26 -0
- package/dist/compatibility/v1.cjs.map +1 -0
- package/dist/compatibility/v1.d.cts +59 -0
- package/dist/compatibility/v1.d.cts.map +1 -0
- package/dist/compatibility/v1.d.mts +59 -0
- package/dist/compatibility/v1.d.mts.map +1 -0
- package/dist/compatibility/v1.mjs +22 -0
- package/dist/compatibility/v1.mjs.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/dist/versions.cjs +16 -0
- package/dist/versions.cjs.map +1 -0
- package/dist/versions.d.cts +12 -0
- package/dist/versions.d.cts.map +1 -0
- package/dist/versions.d.mts +12 -0
- package/dist/versions.d.mts.map +1 -0
- package/dist/versions.mjs +13 -0
- package/dist/versions.mjs.map +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.2.0]
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `KeyringVersion` enum ([#273](https://github.com/MetaMask/accounts/pull/273))
|
|
15
|
+
- Add `KeyringRequestV1*` types ([#273](https://github.com/MetaMask/accounts/pull/273))
|
|
16
|
+
- Those types can be used with Snaps that are still using older implementations of `submitRequest` (without `origin` support).
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Bump `@metamask/keyring-api` from `^17.6.0` to `^18.0.0` ([#291](https://github.com/MetaMask/accounts/pull/291))
|
|
21
|
+
|
|
10
22
|
## [6.1.0]
|
|
11
23
|
|
|
12
24
|
### Added
|
|
@@ -99,7 +111,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
99
111
|
- This new version fixes a bug with CJS re-exports.
|
|
100
112
|
- Initial release ([#24](https://github.com/MetaMask/accounts/pull/24))
|
|
101
113
|
|
|
102
|
-
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@6.
|
|
114
|
+
[Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@6.2.0...HEAD
|
|
115
|
+
[6.2.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@6.1.0...@metamask/keyring-internal-api@6.2.0
|
|
103
116
|
[6.1.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@6.0.1...@metamask/keyring-internal-api@6.1.0
|
|
104
117
|
[6.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@6.0.0...@metamask/keyring-internal-api@6.0.1
|
|
105
118
|
[6.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@5.0.0...@metamask/keyring-internal-api@6.0.0
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./v1.cjs"), exports);
|
|
18
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/compatibility/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAqB","sourcesContent":["export * from './v1';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/compatibility/index.ts"],"names":[],"mappings":"AAAA,yBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/compatibility/index.ts"],"names":[],"mappings":"AAAA,yBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/compatibility/index.ts"],"names":[],"mappings":"AAAA,yBAAqB","sourcesContent":["export * from './v1';\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubmitRequestResponseV1Struct = exports.KeyringResponseV1Struct = exports.KeyringRequestV1Struct = void 0;
|
|
4
|
+
exports.toKeyringRequestV1 = toKeyringRequestV1;
|
|
5
|
+
const keyring_api_1 = require("@metamask/keyring-api");
|
|
6
|
+
const superstruct_1 = require("@metamask/superstruct");
|
|
7
|
+
/**
|
|
8
|
+
* Keyring request (v1).
|
|
9
|
+
*/
|
|
10
|
+
exports.KeyringRequestV1Struct = (0, superstruct_1.omit)(keyring_api_1.KeyringRequestStruct, ['origin']);
|
|
11
|
+
/**
|
|
12
|
+
* Response to a call to `submitRequest` (v1).
|
|
13
|
+
*/
|
|
14
|
+
exports.KeyringResponseV1Struct = keyring_api_1.KeyringResponseStruct;
|
|
15
|
+
exports.SubmitRequestResponseV1Struct = exports.KeyringResponseV1Struct;
|
|
16
|
+
/**
|
|
17
|
+
* Converts a keyring request to a keyring request v1.
|
|
18
|
+
*
|
|
19
|
+
* @param request - A keyring request.
|
|
20
|
+
* @returns A keyring request v1.
|
|
21
|
+
*/
|
|
22
|
+
function toKeyringRequestV1(request) {
|
|
23
|
+
const { origin, ...requestV1 } = request;
|
|
24
|
+
return requestV1;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=v1.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.cjs","sourceRoot":"","sources":["../../src/compatibility/v1.ts"],"names":[],"mappings":";;;AA6BA,gDAIC;AAhCD,uDAG+B;AAC/B,uDAAyD;AAEzD;;GAEG;AACU,QAAA,sBAAsB,GAAG,IAAA,kBAAI,EAAC,kCAAoB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAI7E;;GAEG;AACU,QAAA,uBAAuB,GAAG,mCAAqB,CAAC;AAIhD,QAAA,6BAA6B,GAAG,+BAAuB,CAAC;AAErE;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,OAAuB;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,OAAO,CAAC;IAEzC,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import type { KeyringRequest } from '@metamask/keyring-api';\nimport {\n KeyringRequestStruct,\n KeyringResponseStruct,\n} from '@metamask/keyring-api';\nimport { omit, type Infer } from '@metamask/superstruct';\n\n/**\n * Keyring request (v1).\n */\nexport const KeyringRequestV1Struct = omit(KeyringRequestStruct, ['origin']);\n\nexport type KeyringRequestV1 = Infer<typeof KeyringRequestV1Struct>;\n\n/**\n * Response to a call to `submitRequest` (v1).\n */\nexport const KeyringResponseV1Struct = KeyringResponseStruct;\n\nexport type KeyringResponseV1 = Infer<typeof KeyringResponseV1Struct>;\n\nexport const SubmitRequestResponseV1Struct = KeyringResponseV1Struct;\n\n/**\n * Converts a keyring request to a keyring request v1.\n *\n * @param request - A keyring request.\n * @returns A keyring request v1.\n */\nexport function toKeyringRequestV1(request: KeyringRequest): KeyringRequestV1 {\n const { origin, ...requestV1 } = request;\n\n return requestV1;\n}\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { KeyringRequest } from "@metamask/keyring-api";
|
|
2
|
+
import { type Infer } from "@metamask/superstruct";
|
|
3
|
+
/**
|
|
4
|
+
* Keyring request (v1).
|
|
5
|
+
*/
|
|
6
|
+
export declare const KeyringRequestV1Struct: import("@metamask/superstruct").Struct<{
|
|
7
|
+
id: string;
|
|
8
|
+
request: {
|
|
9
|
+
method: string;
|
|
10
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
11
|
+
};
|
|
12
|
+
scope: string;
|
|
13
|
+
account: string;
|
|
14
|
+
}, Omit<{
|
|
15
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
|
+
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
17
|
+
account: import("@metamask/superstruct").Struct<string, null>;
|
|
18
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
19
|
+
request: import("@metamask/superstruct").Struct<{
|
|
20
|
+
method: string;
|
|
21
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
22
|
+
}, {
|
|
23
|
+
method: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
25
|
+
}>;
|
|
26
|
+
}, "origin">>;
|
|
27
|
+
export type KeyringRequestV1 = Infer<typeof KeyringRequestV1Struct>;
|
|
28
|
+
/**
|
|
29
|
+
* Response to a call to `submitRequest` (v1).
|
|
30
|
+
*/
|
|
31
|
+
export declare const KeyringResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
32
|
+
pending: true;
|
|
33
|
+
redirect?: {
|
|
34
|
+
message?: string;
|
|
35
|
+
url?: string;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
result: import("@metamask/utils").Json;
|
|
39
|
+
pending: false;
|
|
40
|
+
}, null>;
|
|
41
|
+
export type KeyringResponseV1 = Infer<typeof KeyringResponseV1Struct>;
|
|
42
|
+
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
43
|
+
pending: true;
|
|
44
|
+
redirect?: {
|
|
45
|
+
message?: string;
|
|
46
|
+
url?: string;
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
result: import("@metamask/utils").Json;
|
|
50
|
+
pending: false;
|
|
51
|
+
}, null>;
|
|
52
|
+
/**
|
|
53
|
+
* Converts a keyring request to a keyring request v1.
|
|
54
|
+
*
|
|
55
|
+
* @param request - A keyring request.
|
|
56
|
+
* @returns A keyring request v1.
|
|
57
|
+
*/
|
|
58
|
+
export declare function toKeyringRequestV1(request: KeyringRequest): KeyringRequestV1;
|
|
59
|
+
//# sourceMappingURL=v1.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.cts","sourceRoot":"","sources":["../../src/compatibility/v1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA8B;AAK5D,OAAO,EAAQ,KAAK,KAAK,EAAE,8BAA8B;AAEzD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;cAwBS,CAAC;;;;;aAxB+B,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;eAZC,CAAC;WAKtC,CAHC;;;;;QAU2D,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtE,eAAO,MAAM,6BAA6B;;;eAhBL,CAAC;WAKtC,CAHC;;;;;QAcmE,CAAC;AAErE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,gBAAgB,CAI5E"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { KeyringRequest } from "@metamask/keyring-api";
|
|
2
|
+
import { type Infer } from "@metamask/superstruct";
|
|
3
|
+
/**
|
|
4
|
+
* Keyring request (v1).
|
|
5
|
+
*/
|
|
6
|
+
export declare const KeyringRequestV1Struct: import("@metamask/superstruct").Struct<{
|
|
7
|
+
id: string;
|
|
8
|
+
request: {
|
|
9
|
+
method: string;
|
|
10
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
11
|
+
};
|
|
12
|
+
scope: string;
|
|
13
|
+
account: string;
|
|
14
|
+
}, Omit<{
|
|
15
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
16
|
+
scope: import("@metamask/superstruct").Struct<string, null>;
|
|
17
|
+
account: import("@metamask/superstruct").Struct<string, null>;
|
|
18
|
+
origin: import("@metamask/superstruct").Struct<string, null>;
|
|
19
|
+
request: import("@metamask/superstruct").Struct<{
|
|
20
|
+
method: string;
|
|
21
|
+
params?: Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[];
|
|
22
|
+
}, {
|
|
23
|
+
method: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
+
params: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json> | import("@metamask/utils").Json[] | import("@metamask/keyring-utils").ExactOptionalTag, null>;
|
|
25
|
+
}>;
|
|
26
|
+
}, "origin">>;
|
|
27
|
+
export type KeyringRequestV1 = Infer<typeof KeyringRequestV1Struct>;
|
|
28
|
+
/**
|
|
29
|
+
* Response to a call to `submitRequest` (v1).
|
|
30
|
+
*/
|
|
31
|
+
export declare const KeyringResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
32
|
+
pending: true;
|
|
33
|
+
redirect?: {
|
|
34
|
+
message?: string;
|
|
35
|
+
url?: string;
|
|
36
|
+
};
|
|
37
|
+
} | {
|
|
38
|
+
result: import("@metamask/utils").Json;
|
|
39
|
+
pending: false;
|
|
40
|
+
}, null>;
|
|
41
|
+
export type KeyringResponseV1 = Infer<typeof KeyringResponseV1Struct>;
|
|
42
|
+
export declare const SubmitRequestResponseV1Struct: import("@metamask/superstruct").Struct<{
|
|
43
|
+
pending: true;
|
|
44
|
+
redirect?: {
|
|
45
|
+
message?: string;
|
|
46
|
+
url?: string;
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
result: import("@metamask/utils").Json;
|
|
50
|
+
pending: false;
|
|
51
|
+
}, null>;
|
|
52
|
+
/**
|
|
53
|
+
* Converts a keyring request to a keyring request v1.
|
|
54
|
+
*
|
|
55
|
+
* @param request - A keyring request.
|
|
56
|
+
* @returns A keyring request v1.
|
|
57
|
+
*/
|
|
58
|
+
export declare function toKeyringRequestV1(request: KeyringRequest): KeyringRequestV1;
|
|
59
|
+
//# sourceMappingURL=v1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/compatibility/v1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,8BAA8B;AAK5D,OAAO,EAAQ,KAAK,KAAK,EAAE,8BAA8B;AAEzD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;cAwBS,CAAC;;;;;aAxB+B,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;eAZC,CAAC;WAKtC,CAHC;;;;;QAU2D,CAAC;AAE7D,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAEtE,eAAO,MAAM,6BAA6B;;;eAhBL,CAAC;WAKtC,CAHC;;;;;QAcmE,CAAC;AAErE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,gBAAgB,CAI5E"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { KeyringRequestStruct, KeyringResponseStruct } from "@metamask/keyring-api";
|
|
2
|
+
import { omit } from "@metamask/superstruct";
|
|
3
|
+
/**
|
|
4
|
+
* Keyring request (v1).
|
|
5
|
+
*/
|
|
6
|
+
export const KeyringRequestV1Struct = omit(KeyringRequestStruct, ['origin']);
|
|
7
|
+
/**
|
|
8
|
+
* Response to a call to `submitRequest` (v1).
|
|
9
|
+
*/
|
|
10
|
+
export const KeyringResponseV1Struct = KeyringResponseStruct;
|
|
11
|
+
export const SubmitRequestResponseV1Struct = KeyringResponseV1Struct;
|
|
12
|
+
/**
|
|
13
|
+
* Converts a keyring request to a keyring request v1.
|
|
14
|
+
*
|
|
15
|
+
* @param request - A keyring request.
|
|
16
|
+
* @returns A keyring request v1.
|
|
17
|
+
*/
|
|
18
|
+
export function toKeyringRequestV1(request) {
|
|
19
|
+
const { origin, ...requestV1 } = request;
|
|
20
|
+
return requestV1;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=v1.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/compatibility/v1.ts"],"names":[],"mappings":"AACA,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACtB,8BAA8B;AAC/B,OAAO,EAAE,IAAI,EAAc,8BAA8B;AAEzD;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AAI7E;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAAqB,CAAC;AAI7D,MAAM,CAAC,MAAM,6BAA6B,GAAG,uBAAuB,CAAC;AAErE;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAuB;IACxD,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,GAAG,OAAO,CAAC;IAEzC,OAAO,SAAS,CAAC;AACnB,CAAC","sourcesContent":["import type { KeyringRequest } from '@metamask/keyring-api';\nimport {\n KeyringRequestStruct,\n KeyringResponseStruct,\n} from '@metamask/keyring-api';\nimport { omit, type Infer } from '@metamask/superstruct';\n\n/**\n * Keyring request (v1).\n */\nexport const KeyringRequestV1Struct = omit(KeyringRequestStruct, ['origin']);\n\nexport type KeyringRequestV1 = Infer<typeof KeyringRequestV1Struct>;\n\n/**\n * Response to a call to `submitRequest` (v1).\n */\nexport const KeyringResponseV1Struct = KeyringResponseStruct;\n\nexport type KeyringResponseV1 = Infer<typeof KeyringResponseV1Struct>;\n\nexport const SubmitRequestResponseV1Struct = KeyringResponseV1Struct;\n\n/**\n * Converts a keyring request to a keyring request v1.\n *\n * @param request - A keyring request.\n * @returns A keyring request v1.\n */\nexport function toKeyringRequestV1(request: KeyringRequest): KeyringRequestV1 {\n const { origin, ...requestV1 } = request;\n\n return requestV1;\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./compatibility/index.cjs"), exports);
|
|
17
18
|
__exportStar(require("./types.cjs"), exports);
|
|
19
|
+
__exportStar(require("./versions.cjs"), exports);
|
|
18
20
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAgC;AAEhC,8CAAwB;AACxB,iDAA2B","sourcesContent":["export * from './compatibility';\nexport type * from './eth';\nexport * from './types';\nexport * from './versions';\n"]}
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAA2B;AAC3B,4BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAAgC;AAChC,qCAA2B;AAC3B,4BAAwB;AACxB,+BAA2B"}
|
package/dist/index.d.mts
CHANGED
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qCAA2B;AAC3B,4BAAwB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAAgC;AAChC,qCAA2B;AAC3B,4BAAwB;AACxB,+BAA2B"}
|
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0CAAgC;AAEhC,4BAAwB;AACxB,+BAA2B","sourcesContent":["export * from './compatibility';\nexport type * from './eth';\nexport * from './types';\nexport * from './versions';\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KeyringVersion = void 0;
|
|
4
|
+
var KeyringVersion;
|
|
5
|
+
(function (KeyringVersion) {
|
|
6
|
+
/** Default. */
|
|
7
|
+
KeyringVersion["V1"] = "v1";
|
|
8
|
+
/**
|
|
9
|
+
* Introduction of `KeyringRequest.origin`.
|
|
10
|
+
*
|
|
11
|
+
* Snap will now receive the `origin` as part of a `KeyringRequest` when `submitRequest` is invoked.
|
|
12
|
+
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
13
|
+
*/
|
|
14
|
+
KeyringVersion["V2"] = "v2";
|
|
15
|
+
})(KeyringVersion || (exports.KeyringVersion = KeyringVersion = {}));
|
|
16
|
+
//# sourceMappingURL=versions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.cjs","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,eAAe;IACf,2BAAS,CAAA;IAET;;;;;OAKG;IACH,2BAAS,CAAA;AACX,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB","sourcesContent":["export enum KeyringVersion {\n /** Default. */\n V1 = 'v1',\n\n /**\n * Introduction of `KeyringRequest.origin`.\n *\n * Snap will now receive the `origin` as part of a `KeyringRequest` when `submitRequest` is invoked.\n * We also expect Snaps to display this `origin` in their confirmation screens (if any).\n */\n V2 = 'v2',\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum KeyringVersion {
|
|
2
|
+
/** Default. */
|
|
3
|
+
V1 = "v1",
|
|
4
|
+
/**
|
|
5
|
+
* Introduction of `KeyringRequest.origin`.
|
|
6
|
+
*
|
|
7
|
+
* Snap will now receive the `origin` as part of a `KeyringRequest` when `submitRequest` is invoked.
|
|
8
|
+
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
9
|
+
*/
|
|
10
|
+
V2 = "v2"
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=versions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.d.cts","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,eAAe;IACf,EAAE,OAAO;IAET;;;;;OAKG;IACH,EAAE,OAAO;CACV"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum KeyringVersion {
|
|
2
|
+
/** Default. */
|
|
3
|
+
V1 = "v1",
|
|
4
|
+
/**
|
|
5
|
+
* Introduction of `KeyringRequest.origin`.
|
|
6
|
+
*
|
|
7
|
+
* Snap will now receive the `origin` as part of a `KeyringRequest` when `submitRequest` is invoked.
|
|
8
|
+
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
9
|
+
*/
|
|
10
|
+
V2 = "v2"
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=versions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.d.mts","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,eAAe;IACf,EAAE,OAAO;IAET;;;;;OAKG;IACH,EAAE,OAAO;CACV"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var KeyringVersion;
|
|
2
|
+
(function (KeyringVersion) {
|
|
3
|
+
/** Default. */
|
|
4
|
+
KeyringVersion["V1"] = "v1";
|
|
5
|
+
/**
|
|
6
|
+
* Introduction of `KeyringRequest.origin`.
|
|
7
|
+
*
|
|
8
|
+
* Snap will now receive the `origin` as part of a `KeyringRequest` when `submitRequest` is invoked.
|
|
9
|
+
* We also expect Snaps to display this `origin` in their confirmation screens (if any).
|
|
10
|
+
*/
|
|
11
|
+
KeyringVersion["V2"] = "v2";
|
|
12
|
+
})(KeyringVersion || (KeyringVersion = {}));
|
|
13
|
+
//# sourceMappingURL=versions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../src/versions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,eAAe;IACf,2BAAS,CAAA;IAET;;;;;OAKG;IACH,2BAAS,CAAA;AACX,CAAC,EAXW,cAAc,KAAd,cAAc,QAWzB","sourcesContent":["export enum KeyringVersion {\n /** Default. */\n V1 = 'v1',\n\n /**\n * Introduction of `KeyringRequest.origin`.\n *\n * Snap will now receive the `origin` as part of a `KeyringRequest` when `submitRequest` is invoked.\n * We also expect Snaps to display this `origin` in their confirmation screens (if any).\n */\n V2 = 'v2',\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/keyring-internal-api",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.2.0-8d08f2e",
|
|
4
4
|
"description": "MetaMask Keyring Internal API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metamask",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"test:watch": "jest --watch"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@metamask/keyring-api": "
|
|
48
|
+
"@metamask/keyring-api": "18.0.0",
|
|
49
49
|
"@metamask/keyring-utils": "3.0.0",
|
|
50
50
|
"@metamask/superstruct": "^3.1.0"
|
|
51
51
|
},
|