@deque/axe-auth 1.4.0-next.b72a0199 → 1.4.0-next.bd4a25c9
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.
|
@@ -19,4 +19,4 @@ export type KeyringEntryFactory = (service: string, account: string) => KeyringE
|
|
|
19
19
|
* `KEYRING_UNAVAILABLE` on first store construction, not on module
|
|
20
20
|
* import.
|
|
21
21
|
*/
|
|
22
|
-
export declare
|
|
22
|
+
export declare function defaultEntryFactory(service: string, account: string): KeyringEntry;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.defaultEntryFactory =
|
|
3
|
+
exports.defaultEntryFactory = defaultEntryFactory;
|
|
4
4
|
const node_module_1 = require("node:module");
|
|
5
5
|
const errors_1 = require("./errors");
|
|
6
6
|
const requireFromHere = (0, node_module_1.createRequire)(__filename);
|
|
@@ -34,8 +34,7 @@ function resolveEntryCtor() {
|
|
|
34
34
|
* `KEYRING_UNAVAILABLE` on first store construction, not on module
|
|
35
35
|
* import.
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
function defaultEntryFactory(service, account) {
|
|
38
38
|
const Ctor = resolveEntryCtor();
|
|
39
39
|
return new Ctor(service, account);
|
|
40
|
-
}
|
|
41
|
-
exports.defaultEntryFactory = defaultEntryFactory;
|
|
40
|
+
}
|