@portal-hq/passkey-storage 4.1.1 → 4.1.2
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/lib/commonjs/index.js +4 -4
- package/lib/esm/index.js +3 -3
- package/package.json +4 -4
package/lib/commonjs/index.js
CHANGED
|
@@ -33,8 +33,8 @@ class PasskeyStorage {
|
|
|
33
33
|
}
|
|
34
34
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
35
35
|
read() {
|
|
36
|
+
var _a;
|
|
36
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
var _a;
|
|
38
38
|
try {
|
|
39
39
|
if (!((_a = this.api) === null || _a === void 0 ? void 0 : _a.apiKey)) {
|
|
40
40
|
throw new Error('API key is not set');
|
|
@@ -62,8 +62,8 @@ class PasskeyStorage {
|
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
write(privateKey) {
|
|
65
|
+
var _a;
|
|
65
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
var _a;
|
|
67
67
|
try {
|
|
68
68
|
if (!((_a = this.api) === null || _a === void 0 ? void 0 : _a.apiKey)) {
|
|
69
69
|
throw new Error('API key is not set');
|
|
@@ -197,8 +197,8 @@ class PasskeyStorage {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
getEncryptionKey(assertion) {
|
|
200
|
+
var _a;
|
|
200
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
|
-
var _a;
|
|
202
202
|
if (((_a = this.api) === null || _a === void 0 ? void 0 : _a.apiKey) === undefined) {
|
|
203
203
|
throw new Error('API key is not set');
|
|
204
204
|
}
|
|
@@ -243,5 +243,5 @@ var PasskeyStatus;
|
|
|
243
243
|
PasskeyStatus["NotRegistered"] = "not registered";
|
|
244
244
|
PasskeyStatus["Registered"] = "registered";
|
|
245
245
|
PasskeyStatus["RegisteredWithCredential"] = "registered with credential";
|
|
246
|
-
})(PasskeyStatus
|
|
246
|
+
})(PasskeyStatus = exports.PasskeyStatus || (exports.PasskeyStatus = {}));
|
|
247
247
|
exports.default = PasskeyStorage;
|
package/lib/esm/index.js
CHANGED
|
@@ -30,8 +30,8 @@ export class PasskeyStorage {
|
|
|
30
30
|
}
|
|
31
31
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
32
32
|
read() {
|
|
33
|
+
var _a;
|
|
33
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
var _a;
|
|
35
35
|
try {
|
|
36
36
|
if (!((_a = this.api) === null || _a === void 0 ? void 0 : _a.apiKey)) {
|
|
37
37
|
throw new Error('API key is not set');
|
|
@@ -59,8 +59,8 @@ export class PasskeyStorage {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
write(privateKey) {
|
|
62
|
+
var _a;
|
|
62
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
var _a;
|
|
64
64
|
try {
|
|
65
65
|
if (!((_a = this.api) === null || _a === void 0 ? void 0 : _a.apiKey)) {
|
|
66
66
|
throw new Error('API key is not set');
|
|
@@ -194,8 +194,8 @@ export class PasskeyStorage {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
getEncryptionKey(assertion) {
|
|
197
|
+
var _a;
|
|
197
198
|
return __awaiter(this, void 0, void 0, function* () {
|
|
198
|
-
var _a;
|
|
199
199
|
if (((_a = this.api) === null || _a === void 0 ? void 0 : _a.apiKey) === undefined) {
|
|
200
200
|
throw new Error('API key is not set');
|
|
201
201
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portal-hq/passkey-storage",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Portal's Passkey storage adapter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Portal Labs, Inc.",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"test": "jest --pass-with-no-tests"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@portal-hq/core": "^4.1.
|
|
26
|
-
"@portal-hq/utils": "^4.1.
|
|
25
|
+
"@portal-hq/core": "^4.1.2",
|
|
26
|
+
"@portal-hq/utils": "^4.1.2",
|
|
27
27
|
"react-native-passkey": "^2.1.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react-native-passkey": "^2.1.1"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "4504ed5bdfde36df2b9c1acab9916ad412ba6fd9"
|
|
41
41
|
}
|