@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 CHANGED
@@ -23,7 +23,6 @@
23
23
  export declare class UnwrapError extends Error {
24
24
  readonly name = "UnwrapError";
25
25
  readonly code = "client.decrypt_failed";
26
- constructor(message: string);
27
26
  }
28
27
  /**
29
28
  * Pluggable X25519 backend so a WebCrypto-less environment can inject
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/crypto",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "description": "Client-side E2EE primitives for Syncular (symmetric + asymmetric)",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Benjamin Kniffler",
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 {