@usecapsule/user-management-client
Advanced tools
Comparing version 1.8.0-dev.1 to 1.8.0
@@ -515,15 +515,2 @@ "use strict"; | ||
} | ||
uploadEncryptedPrivateKey(userId, encryptedPrivateKey, encryptionKeyHash) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const body = { encryptedPrivateKey, encryptionKeyHash }; | ||
const res = yield this.baseRequest.post(`/users/${userId}/encryptedPrivateKey`, body); | ||
return res.data; | ||
}); | ||
} | ||
getEncryptedPrivateKeys(userId, encryptionKeyHash) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.get(`/users/${userId}/encryptedPrivateKeys/${encryptionKeyHash}`); | ||
return res.data; | ||
}); | ||
} | ||
} | ||
@@ -530,0 +517,0 @@ exports.default = Client; |
@@ -509,15 +509,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
} | ||
uploadEncryptedPrivateKey(userId, encryptedPrivateKey, encryptionKeyHash) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const body = { encryptedPrivateKey, encryptionKeyHash }; | ||
const res = yield this.baseRequest.post(`/users/${userId}/encryptedPrivateKey`, body); | ||
return res.data; | ||
}); | ||
} | ||
getEncryptedPrivateKeys(userId, encryptionKeyHash) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const res = yield this.baseRequest.get(`/users/${userId}/encryptedPrivateKeys/${encryptionKeyHash}`); | ||
return res.data; | ||
}); | ||
} | ||
} | ||
@@ -524,0 +511,0 @@ export default Client; |
@@ -249,5 +249,3 @@ export declare const USER_NOT_VERIFIED = "user must verify biometrics"; | ||
keepSessionAlive(userId: string): Promise<any>; | ||
uploadEncryptedPrivateKey(userId: string, encryptedPrivateKey: string, encryptionKeyHash: string): Promise<any>; | ||
getEncryptedPrivateKeys(userId: string, encryptionKeyHash: string): Promise<any>; | ||
} | ||
export default Client; |
{ | ||
"name": "@usecapsule/user-management-client", | ||
"version": "1.8.0-dev.1", | ||
"version": "1.8.0", | ||
"main": "dist/cjs/index.js", | ||
@@ -32,3 +32,4 @@ "module": "dist/esm/index.js", | ||
} | ||
} | ||
}, | ||
"gitHead": "7dc3c17d190883750104a10433ecf7d9d18464c2" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
4
60955
1326