@syncular/crypto 0.3.1 → 0.4.1
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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -3
- package/package.json +1 -1
- package/src/index.ts +0 -3
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -26,9 +26,6 @@ const HKDF_INFO = new TextEncoder().encode('syncular/e2ee/x25519-wrap/v1');
|
|
|
26
26
|
export class UnwrapError extends Error {
|
|
27
27
|
name = 'UnwrapError';
|
|
28
28
|
code = 'client.decrypt_failed';
|
|
29
|
-
constructor(message) {
|
|
30
|
-
super(message);
|
|
31
|
-
}
|
|
32
29
|
}
|
|
33
30
|
function toBuffer(bytes) {
|
|
34
31
|
const copy = new Uint8Array(bytes.length);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -28,9 +28,6 @@ const HKDF_INFO = new TextEncoder().encode('syncular/e2ee/x25519-wrap/v1');
|
|
|
28
28
|
export class UnwrapError extends Error {
|
|
29
29
|
override readonly name = 'UnwrapError';
|
|
30
30
|
readonly code = 'client.decrypt_failed';
|
|
31
|
-
constructor(message: string) {
|
|
32
|
-
super(message);
|
|
33
|
-
}
|
|
34
31
|
}
|
|
35
32
|
|
|
36
33
|
function toBuffer(bytes: Uint8Array): ArrayBuffer {
|