@dynamic-labs/utils 0.17.18 → 0.17.100-viem.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +4 -5
  2. package/package.json +6 -4
  3. package/src/CancellablePromise/CancellablePromise.cjs +26 -26
  4. package/src/CancellablePromise/CancellablePromise.d.ts +9 -9
  5. package/src/CancellablePromise/CancellablePromise.js +26 -26
  6. package/src/CancellablePromise/index.d.ts +1 -1
  7. package/src/bufferToBase64.cjs +5 -5
  8. package/src/bufferToBase64.d.ts +1 -1
  9. package/src/bufferToBase64.js +5 -5
  10. package/src/errors/ChainalysisError.cjs +5 -5
  11. package/src/errors/ChainalysisError.d.ts +5 -5
  12. package/src/errors/ChainalysisError.js +5 -5
  13. package/src/errors/CustomError.cjs +16 -16
  14. package/src/errors/CustomError.d.ts +11 -11
  15. package/src/errors/CustomError.js +16 -16
  16. package/src/errors/DynamicError.cjs +1 -1
  17. package/src/errors/DynamicError.d.ts +3 -3
  18. package/src/errors/DynamicError.js +1 -1
  19. package/src/errors/EmailAlreadyExistsError.cjs +4 -4
  20. package/src/errors/EmailAlreadyExistsError.d.ts +4 -4
  21. package/src/errors/EmailAlreadyExistsError.js +4 -4
  22. package/src/errors/EmailVerificationError.cjs +4 -4
  23. package/src/errors/EmailVerificationError.d.ts +4 -4
  24. package/src/errors/EmailVerificationError.js +4 -4
  25. package/src/errors/NoAccessError.cjs +6 -6
  26. package/src/errors/NoAccessError.d.ts +9 -9
  27. package/src/errors/NoAccessError.js +6 -6
  28. package/src/errors/NotSupportedError.cjs +1 -1
  29. package/src/errors/NotSupportedError.d.ts +3 -3
  30. package/src/errors/NotSupportedError.js +1 -1
  31. package/src/errors/UsernameAlreadyExistsError.cjs +4 -4
  32. package/src/errors/UsernameAlreadyExistsError.d.ts +4 -4
  33. package/src/errors/UsernameAlreadyExistsError.js +4 -4
  34. package/src/errors/WalletNotDeployedError.cjs +4 -4
  35. package/src/errors/WalletNotDeployedError.d.ts +4 -4
  36. package/src/errors/WalletNotDeployedError.js +4 -4
  37. package/src/errors/WalletUsedError.cjs +4 -4
  38. package/src/errors/WalletUsedError.d.ts +4 -4
  39. package/src/errors/WalletUsedError.js +4 -4
  40. package/src/errors/index.d.ts +10 -10
  41. package/src/getOrMapViemChain.cjs +77 -0
  42. package/src/getOrMapViemChain.d.ts +11 -0
  43. package/src/getOrMapViemChain.js +51 -0
  44. package/src/index.cjs +4 -0
  45. package/src/index.d.ts +9 -8
  46. package/src/index.js +1 -0
  47. package/src/isFunction/index.d.ts +1 -1
  48. package/src/isFunction/isFunction.cjs +1 -1
  49. package/src/isFunction/isFunction.d.ts +1 -1
  50. package/src/isFunction/isFunction.js +1 -1
  51. package/src/isMobile.cjs +44 -44
  52. package/src/isMobile.d.ts +14 -14
  53. package/src/isMobile.js +44 -44
  54. package/src/localStorageAsync.cjs +17 -17
  55. package/src/localStorageAsync.d.ts +3 -3
  56. package/src/localStorageAsync.js +17 -17
  57. package/src/parseChainId.d.ts +1 -1
  58. package/src/parseEvmNetworks.cjs +6 -6
  59. package/src/parseEvmNetworks.d.ts +2 -2
  60. package/src/parseEvmNetworks.js +6 -6
package/CHANGELOG.md CHANGED
@@ -1,13 +1,12 @@
1
1
 
2
- ### [0.17.18](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.17...v0.17.18) (2023-06-29)
3
-
4
- ### [0.17.17](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.16...v0.17.17) (2023-06-29)
2
+ ### [0.17.100-viem.2](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.100-viem.1...v0.17.100-viem.2) (2023-06-29)
5
3
 
6
4
 
7
5
  ### Bug Fixes
8
6
 
9
- * walletconnect v2 fixes ([#2529](https://github.com/dynamic-labs/DynamicAuth/issues/2529)) ([6fe03d8](https://github.com/dynamic-labs/DynamicAuth/commit/6fe03d802b0a3b8f7995d3a52ce5183b3b0bfb83)), closes [#2523](https://github.com/dynamic-labs/DynamicAuth/issues/2523) [#2527](https://github.com/dynamic-labs/DynamicAuth/issues/2527)
10
- * **wcv2:** use native or universal link when signing message ([#2502](https://github.com/dynamic-labs/DynamicAuth/issues/2502)) ([#2513](https://github.com/dynamic-labs/DynamicAuth/issues/2513)) ([01f7ca1](https://github.com/dynamic-labs/DynamicAuth/commit/01f7ca109c97d5cb04d6f4b4b574ec99aa8272f1))
7
+ * wcv2 fixes ([#2530](https://github.com/dynamic-labs/DynamicAuth/issues/2530)) ([aafbbdc](https://github.com/dynamic-labs/DynamicAuth/commit/aafbbdcfc61c3cd8aa2be8d710344584116d4d10)), closes [#2523](https://github.com/dynamic-labs/DynamicAuth/issues/2523) [#2527](https://github.com/dynamic-labs/DynamicAuth/issues/2527)
8
+
9
+ ### [0.17.100-viem.1](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.100-viem.0...v0.17.100-viem.1) (2023-06-28)
11
10
 
12
11
  ### [0.17.16](https://github.com/dynamic-labs/DynamicAuth/compare/v0.17.15...v0.17.16) (2023-06-28)
13
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "0.17.18",
3
+ "version": "0.17.100-viem.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -25,8 +25,10 @@
25
25
  },
26
26
  "./package.json": "./package.json"
27
27
  },
28
- "dependencies": {
29
- "@dynamic-labs/types": "0.17.18"
28
+ "peerDependencies": {
29
+ "viem": "^1.1.7"
30
30
  },
31
- "peerDependencies": {}
31
+ "dependencies": {
32
+ "@dynamic-labs/types": "0.17.100-viem.2"
33
+ }
32
34
  }
@@ -2,32 +2,32 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- class CancellablePromise extends Promise {
6
- constructor(executor) {
7
- super((resolve, reject) => {
8
- executor((val) => {
9
- if (this.isCancelled)
10
- return;
11
- resolve(val);
12
- }, (err) => {
13
- if (this.isCancelled)
14
- return;
15
- reject(err);
16
- });
17
- });
18
- this._controller = new AbortController();
19
- }
20
- get isCancelled() {
21
- return this._controller.signal.aborted;
22
- }
23
- cancel() {
24
- this._controller.abort();
25
- }
26
- static fromPromise(promise) {
27
- return new CancellablePromise((resolve, reject) => {
28
- promise.then(resolve).catch(reject);
29
- });
30
- }
5
+ class CancellablePromise extends Promise {
6
+ constructor(executor) {
7
+ super((resolve, reject) => {
8
+ executor((val) => {
9
+ if (this.isCancelled)
10
+ return;
11
+ resolve(val);
12
+ }, (err) => {
13
+ if (this.isCancelled)
14
+ return;
15
+ reject(err);
16
+ });
17
+ });
18
+ this._controller = new AbortController();
19
+ }
20
+ get isCancelled() {
21
+ return this._controller.signal.aborted;
22
+ }
23
+ cancel() {
24
+ this._controller.abort();
25
+ }
26
+ static fromPromise(promise) {
27
+ return new CancellablePromise((resolve, reject) => {
28
+ promise.then(resolve).catch(reject);
29
+ });
30
+ }
31
31
  }
32
32
 
33
33
  exports.CancellablePromise = CancellablePromise;
@@ -1,9 +1,9 @@
1
- type Executor<T> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: unknown) => void) => void;
2
- export declare class CancellablePromise<T> extends Promise<T> {
3
- _controller: AbortController;
4
- constructor(executor: Executor<T>);
5
- get isCancelled(): boolean;
6
- cancel(): void;
7
- static fromPromise<T>(promise: Promise<T>): CancellablePromise<T>;
8
- }
9
- export {};
1
+ type Executor<T> = (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: unknown) => void) => void;
2
+ export declare class CancellablePromise<T> extends Promise<T> {
3
+ _controller: AbortController;
4
+ constructor(executor: Executor<T>);
5
+ get isCancelled(): boolean;
6
+ cancel(): void;
7
+ static fromPromise<T>(promise: Promise<T>): CancellablePromise<T>;
8
+ }
9
+ export {};
@@ -1,29 +1,29 @@
1
- class CancellablePromise extends Promise {
2
- constructor(executor) {
3
- super((resolve, reject) => {
4
- executor((val) => {
5
- if (this.isCancelled)
6
- return;
7
- resolve(val);
8
- }, (err) => {
9
- if (this.isCancelled)
10
- return;
11
- reject(err);
12
- });
13
- });
14
- this._controller = new AbortController();
15
- }
16
- get isCancelled() {
17
- return this._controller.signal.aborted;
18
- }
19
- cancel() {
20
- this._controller.abort();
21
- }
22
- static fromPromise(promise) {
23
- return new CancellablePromise((resolve, reject) => {
24
- promise.then(resolve).catch(reject);
25
- });
26
- }
1
+ class CancellablePromise extends Promise {
2
+ constructor(executor) {
3
+ super((resolve, reject) => {
4
+ executor((val) => {
5
+ if (this.isCancelled)
6
+ return;
7
+ resolve(val);
8
+ }, (err) => {
9
+ if (this.isCancelled)
10
+ return;
11
+ reject(err);
12
+ });
13
+ });
14
+ this._controller = new AbortController();
15
+ }
16
+ get isCancelled() {
17
+ return this._controller.signal.aborted;
18
+ }
19
+ cancel() {
20
+ this._controller.abort();
21
+ }
22
+ static fromPromise(promise) {
23
+ return new CancellablePromise((resolve, reject) => {
24
+ promise.then(resolve).catch(reject);
25
+ });
26
+ }
27
27
  }
28
28
 
29
29
  export { CancellablePromise };
@@ -1 +1 @@
1
- export { CancellablePromise } from './CancellablePromise';
1
+ export { CancellablePromise } from './CancellablePromise';
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const bufferToBase64 = (buf) => {
6
- const binstr = Array.prototype.map
7
- .call(buf, (ch) => String.fromCharCode(ch))
8
- .join('');
9
- return Buffer.from(binstr, 'binary').toString('base64');
5
+ const bufferToBase64 = (buf) => {
6
+ const binstr = Array.prototype.map
7
+ .call(buf, (ch) => String.fromCharCode(ch))
8
+ .join('');
9
+ return Buffer.from(binstr, 'binary').toString('base64');
10
10
  };
11
11
 
12
12
  exports.bufferToBase64 = bufferToBase64;
@@ -1 +1 @@
1
- export declare const bufferToBase64: (buf: Uint8Array) => string;
1
+ export declare const bufferToBase64: (buf: Uint8Array) => string;
@@ -1,8 +1,8 @@
1
- const bufferToBase64 = (buf) => {
2
- const binstr = Array.prototype.map
3
- .call(buf, (ch) => String.fromCharCode(ch))
4
- .join('');
5
- return Buffer.from(binstr, 'binary').toString('base64');
1
+ const bufferToBase64 = (buf) => {
2
+ const binstr = Array.prototype.map
3
+ .call(buf, (ch) => String.fromCharCode(ch))
4
+ .join('');
5
+ return Buffer.from(binstr, 'binary').toString('base64');
6
6
  };
7
7
 
8
8
  export { bufferToBase64 };
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class ChainalysisError extends DynamicError.DynamicError {
8
- constructor(walletPublicKey) {
9
- super('This address is not approved for access');
10
- this.walletPublicKey = walletPublicKey;
11
- }
7
+ class ChainalysisError extends DynamicError.DynamicError {
8
+ constructor(walletPublicKey) {
9
+ super('This address is not approved for access');
10
+ this.walletPublicKey = walletPublicKey;
11
+ }
12
12
  }
13
13
 
14
14
  exports.ChainalysisError = ChainalysisError;
@@ -1,5 +1,5 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class ChainalysisError extends DynamicError {
3
- walletPublicKey: string | undefined;
4
- constructor(walletPublicKey: string);
5
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class ChainalysisError extends DynamicError {
3
+ walletPublicKey: string | undefined;
4
+ constructor(walletPublicKey: string);
5
+ }
@@ -1,10 +1,10 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class ChainalysisError extends DynamicError {
4
- constructor(walletPublicKey) {
5
- super('This address is not approved for access');
6
- this.walletPublicKey = walletPublicKey;
7
- }
3
+ class ChainalysisError extends DynamicError {
4
+ constructor(walletPublicKey) {
5
+ super('This address is not approved for access');
6
+ this.walletPublicKey = walletPublicKey;
7
+ }
8
8
  }
9
9
 
10
10
  export { ChainalysisError };
@@ -2,22 +2,22 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- /**
6
- * Extend this class to allow usage of instanceof
7
- */
8
- class CustomError extends Error {
9
- constructor(message, code) {
10
- super(message);
11
- this.code = undefined;
12
- this.code = code;
13
- Object.setPrototypeOf(this, this.constructor.prototype);
14
- }
15
- toJSON() {
16
- return {
17
- code: this.code,
18
- error: this.message,
19
- };
20
- }
5
+ /**
6
+ * Extend this class to allow usage of instanceof
7
+ */
8
+ class CustomError extends Error {
9
+ constructor(message, code) {
10
+ super(message);
11
+ this.code = undefined;
12
+ this.code = code;
13
+ Object.setPrototypeOf(this, this.constructor.prototype);
14
+ }
15
+ toJSON() {
16
+ return {
17
+ code: this.code,
18
+ error: this.message,
19
+ };
20
+ }
21
21
  }
22
22
 
23
23
  exports.CustomError = CustomError;
@@ -1,11 +1,11 @@
1
- /**
2
- * Extend this class to allow usage of instanceof
3
- */
4
- export declare class CustomError extends Error {
5
- code: string | undefined;
6
- constructor(message?: string | undefined, code?: string);
7
- toJSON(): {
8
- code: string | undefined;
9
- error: string;
10
- };
11
- }
1
+ /**
2
+ * Extend this class to allow usage of instanceof
3
+ */
4
+ export declare class CustomError extends Error {
5
+ code: string | undefined;
6
+ constructor(message?: string | undefined, code?: string);
7
+ toJSON(): {
8
+ code: string | undefined;
9
+ error: string;
10
+ };
11
+ }
@@ -1,19 +1,19 @@
1
- /**
2
- * Extend this class to allow usage of instanceof
3
- */
4
- class CustomError extends Error {
5
- constructor(message, code) {
6
- super(message);
7
- this.code = undefined;
8
- this.code = code;
9
- Object.setPrototypeOf(this, this.constructor.prototype);
10
- }
11
- toJSON() {
12
- return {
13
- code: this.code,
14
- error: this.message,
15
- };
16
- }
1
+ /**
2
+ * Extend this class to allow usage of instanceof
3
+ */
4
+ class CustomError extends Error {
5
+ constructor(message, code) {
6
+ super(message);
7
+ this.code = undefined;
8
+ this.code = code;
9
+ Object.setPrototypeOf(this, this.constructor.prototype);
10
+ }
11
+ toJSON() {
12
+ return {
13
+ code: this.code,
14
+ error: this.message,
15
+ };
16
+ }
17
17
  }
18
18
 
19
19
  export { CustomError };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var CustomError = require('./CustomError.cjs');
6
6
 
7
- class DynamicError extends CustomError.CustomError {
7
+ class DynamicError extends CustomError.CustomError {
8
8
  }
9
9
 
10
10
  exports.DynamicError = DynamicError;
@@ -1,3 +1,3 @@
1
- import { CustomError } from './CustomError';
2
- export declare class DynamicError extends CustomError {
3
- }
1
+ import { CustomError } from './CustomError';
2
+ export declare class DynamicError extends CustomError {
3
+ }
@@ -1,6 +1,6 @@
1
1
  import { CustomError } from './CustomError.js';
2
2
 
3
- class DynamicError extends CustomError {
3
+ class DynamicError extends CustomError {
4
4
  }
5
5
 
6
6
  export { DynamicError };
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class EmailAlreadyExistsError extends DynamicError.DynamicError {
8
- constructor() {
9
- super('Email already exists');
10
- }
7
+ class EmailAlreadyExistsError extends DynamicError.DynamicError {
8
+ constructor() {
9
+ super('Email already exists');
10
+ }
11
11
  }
12
12
 
13
13
  exports.EmailAlreadyExistsError = EmailAlreadyExistsError;
@@ -1,4 +1,4 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class EmailAlreadyExistsError extends DynamicError {
3
- constructor();
4
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class EmailAlreadyExistsError extends DynamicError {
3
+ constructor();
4
+ }
@@ -1,9 +1,9 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class EmailAlreadyExistsError extends DynamicError {
4
- constructor() {
5
- super('Email already exists');
6
- }
3
+ class EmailAlreadyExistsError extends DynamicError {
4
+ constructor() {
5
+ super('Email already exists');
6
+ }
7
7
  }
8
8
 
9
9
  export { EmailAlreadyExistsError };
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class EmailVerificationError extends DynamicError.DynamicError {
8
- constructor(code) {
9
- super('EmailVerificationError', code);
10
- }
7
+ class EmailVerificationError extends DynamicError.DynamicError {
8
+ constructor(code) {
9
+ super('EmailVerificationError', code);
10
+ }
11
11
  }
12
12
 
13
13
  exports.EmailVerificationError = EmailVerificationError;
@@ -1,4 +1,4 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class EmailVerificationError extends DynamicError {
3
- constructor(code: string);
4
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class EmailVerificationError extends DynamicError {
3
+ constructor(code: string);
4
+ }
@@ -1,9 +1,9 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class EmailVerificationError extends DynamicError {
4
- constructor(code) {
5
- super('EmailVerificationError', code);
6
- }
3
+ class EmailVerificationError extends DynamicError {
4
+ constructor(code) {
5
+ super('EmailVerificationError', code);
6
+ }
7
7
  }
8
8
 
9
9
  export { EmailVerificationError };
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class NoAccessError extends DynamicError.DynamicError {
8
- constructor({ walletPublicKey, email, }) {
9
- super('User does not have access');
10
- this.email = email;
11
- this.walletPublicKey = walletPublicKey;
12
- }
7
+ class NoAccessError extends DynamicError.DynamicError {
8
+ constructor({ walletPublicKey, email, }) {
9
+ super('User does not have access');
10
+ this.email = email;
11
+ this.walletPublicKey = walletPublicKey;
12
+ }
13
13
  }
14
14
 
15
15
  exports.NoAccessError = NoAccessError;
@@ -1,9 +1,9 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class NoAccessError extends DynamicError {
3
- walletPublicKey?: string;
4
- email?: string;
5
- constructor({ walletPublicKey, email, }: {
6
- email?: string;
7
- walletPublicKey?: string;
8
- });
9
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class NoAccessError extends DynamicError {
3
+ walletPublicKey?: string;
4
+ email?: string;
5
+ constructor({ walletPublicKey, email, }: {
6
+ email?: string;
7
+ walletPublicKey?: string;
8
+ });
9
+ }
@@ -1,11 +1,11 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class NoAccessError extends DynamicError {
4
- constructor({ walletPublicKey, email, }) {
5
- super('User does not have access');
6
- this.email = email;
7
- this.walletPublicKey = walletPublicKey;
8
- }
3
+ class NoAccessError extends DynamicError {
4
+ constructor({ walletPublicKey, email, }) {
5
+ super('User does not have access');
6
+ this.email = email;
7
+ this.walletPublicKey = walletPublicKey;
8
+ }
9
9
  }
10
10
 
11
11
  export { NoAccessError };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class NotSupportedError extends DynamicError.DynamicError {
7
+ class NotSupportedError extends DynamicError.DynamicError {
8
8
  }
9
9
 
10
10
  exports.NotSupportedError = NotSupportedError;
@@ -1,3 +1,3 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class NotSupportedError extends DynamicError {
3
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class NotSupportedError extends DynamicError {
3
+ }
@@ -1,6 +1,6 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class NotSupportedError extends DynamicError {
3
+ class NotSupportedError extends DynamicError {
4
4
  }
5
5
 
6
6
  export { NotSupportedError };
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class UsernameAlreadyExistsError extends DynamicError.DynamicError {
8
- constructor() {
9
- super('Username already exists');
10
- }
7
+ class UsernameAlreadyExistsError extends DynamicError.DynamicError {
8
+ constructor() {
9
+ super('Username already exists');
10
+ }
11
11
  }
12
12
 
13
13
  exports.UsernameAlreadyExistsError = UsernameAlreadyExistsError;
@@ -1,4 +1,4 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class UsernameAlreadyExistsError extends DynamicError {
3
- constructor();
4
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class UsernameAlreadyExistsError extends DynamicError {
3
+ constructor();
4
+ }
@@ -1,9 +1,9 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class UsernameAlreadyExistsError extends DynamicError {
4
- constructor() {
5
- super('Username already exists');
6
- }
3
+ class UsernameAlreadyExistsError extends DynamicError {
4
+ constructor() {
5
+ super('Username already exists');
6
+ }
7
7
  }
8
8
 
9
9
  export { UsernameAlreadyExistsError };
@@ -4,10 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var DynamicError = require('./DynamicError.cjs');
6
6
 
7
- class WalletNotDeployedError extends DynamicError.DynamicError {
8
- constructor() {
9
- super('Wallet has not been deployed', 'wallet_not_deployed');
10
- }
7
+ class WalletNotDeployedError extends DynamicError.DynamicError {
8
+ constructor() {
9
+ super('Wallet has not been deployed', 'wallet_not_deployed');
10
+ }
11
11
  }
12
12
 
13
13
  exports.WalletNotDeployedError = WalletNotDeployedError;
@@ -1,4 +1,4 @@
1
- import { DynamicError } from './DynamicError';
2
- export declare class WalletNotDeployedError extends DynamicError {
3
- constructor();
4
- }
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class WalletNotDeployedError extends DynamicError {
3
+ constructor();
4
+ }
@@ -1,9 +1,9 @@
1
1
  import { DynamicError } from './DynamicError.js';
2
2
 
3
- class WalletNotDeployedError extends DynamicError {
4
- constructor() {
5
- super('Wallet has not been deployed', 'wallet_not_deployed');
6
- }
3
+ class WalletNotDeployedError extends DynamicError {
4
+ constructor() {
5
+ super('Wallet has not been deployed', 'wallet_not_deployed');
6
+ }
7
7
  }
8
8
 
9
9
  export { WalletNotDeployedError };