heartraite 1.0.8 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heartraite",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Heartraite npm package for common functionality",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +0,0 @@
1
- export declare class FirebaseAuthException extends Error {
2
- code: string;
3
- constructor(code: string);
4
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FirebaseAuthException = void 0;
4
- class FirebaseAuthException extends Error {
5
- constructor(code) {
6
- super();
7
- this.code = code;
8
- this.name = "FirebaseAuthException";
9
- // Mapping of Firebase error codes to human-readable messages
10
- const errorMapping = {
11
- "auth/invalid-email": "The email address is invalid.",
12
- "auth/email-already-exists": "This email is already in use.",
13
- "auth/invalid-password": "The password is invalid. Please ensure it meets the requirements.",
14
- "auth/operation-not-allowed": "Email/password accounts are disabled. Please contact support.",
15
- "auth/user-not-found": "No user found with the provided credentials.",
16
- "auth/wrong-password": "The password provided is incorrect.",
17
- "auth/too-many-requests": "Too many requests have been made. Please try again later.",
18
- };
19
- // Set default message for unknown codes
20
- this.message = errorMapping[code] || "An unexpected error occurred.";
21
- }
22
- }
23
- exports.FirebaseAuthException = FirebaseAuthException;
@@ -1 +0,0 @@
1
- export * from "./auth.exceptions";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./auth.exceptions"), exports);