heartraite 1.0.8 → 1.0.12
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.
|
@@ -11,15 +11,15 @@ export type Match = {
|
|
|
11
11
|
advancedMatchStatus: AdvancedMatchStatus;
|
|
12
12
|
advancedMatch?: AdvancedMatch;
|
|
13
13
|
};
|
|
14
|
-
interface StrengthOrWeakness {
|
|
15
|
-
title: string;
|
|
16
|
-
summary: string;
|
|
17
|
-
}
|
|
18
14
|
export type AdvancedMatch = {
|
|
19
15
|
strengths: StrengthOrWeakness[];
|
|
20
16
|
weaknesses: StrengthOrWeakness[];
|
|
21
17
|
summary: string;
|
|
22
18
|
};
|
|
19
|
+
interface StrengthOrWeakness {
|
|
20
|
+
title: string;
|
|
21
|
+
summary: string;
|
|
22
|
+
}
|
|
23
23
|
export type UserData = {
|
|
24
24
|
id: string;
|
|
25
25
|
intro: string;
|
package/package.json
CHANGED
package/src/types/match.types.ts
CHANGED
|
@@ -13,17 +13,17 @@ export type Match = {
|
|
|
13
13
|
advancedMatch?: AdvancedMatch;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
interface StrengthOrWeakness {
|
|
17
|
-
title: string;
|
|
18
|
-
summary: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
16
|
export type AdvancedMatch = {
|
|
22
17
|
strengths: StrengthOrWeakness[];
|
|
23
18
|
weaknesses: StrengthOrWeakness[];
|
|
24
19
|
summary: string;
|
|
25
20
|
};
|
|
26
21
|
|
|
22
|
+
interface StrengthOrWeakness {
|
|
23
|
+
title: string;
|
|
24
|
+
summary: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
27
|
export type UserData = {
|
|
28
28
|
id: string;
|
|
29
29
|
intro: string;
|
|
@@ -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";
|
package/dist/exceptions/index.js
DELETED
|
@@ -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);
|