@codeleap/auth 7.0.2 → 7.1.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.
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_AUTH_ERRORS = void 0;
4
1
  /**
5
2
  * Baseline error-code-to-message map shared across all apps.
6
3
  * `social` keys are intentionally null — canceled/unspecified social flows are silently swallowed rather than surfaced to the user.
7
4
  */
8
- exports.DEFAULT_AUTH_ERRORS = {
5
+ export const DEFAULT_AUTH_ERRORS = {
9
6
  'auth/wrong-password': 'Email or password is incorrect',
10
7
  'auth/not-registered': 'This user is not registered',
11
8
  'auth/requires-recent-login': 'You need to log in again to continue',
@@ -1 +1 @@
1
- {"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/AuthErrors/data.ts"],"names":[],"mappings":";;;AACA;;;GAGG;AACU,QAAA,mBAAmB,GAAG;IACjC,qBAAqB,EAAE,gCAAgC;IACvD,qBAAqB,EAAE,6BAA6B;IACpD,4BAA4B,EAAE,sCAAsC;IACpE,gCAAgC,EAAE,gCAAgC;IAClE,wBAAwB,EAAE,yFAAyF;IACnH,mBAAmB,EAAE,qCAAqC;IAC1D,sBAAsB,EAAE,gEAAgE;IACxF,2BAA2B,EAAE,qCAAqC;IAClE,oBAAoB,EAAE,gCAAgC;IACtD,oBAAoB,EAAE,yEAAyE;IAC/F,qBAAqB,EAAE,gCAAgC;IACvD,oBAAoB,EAAE,yEAAyE;IAE/F,QAAQ,EAAE;QACR,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QACpB,yBAAyB,EAAE,IAAI;QAC/B,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;KACb;CACF,CAAA"}
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/AuthErrors/data.ts"],"names":[],"mappings":"AACA;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,qBAAqB,EAAE,gCAAgC;IACvD,qBAAqB,EAAE,6BAA6B;IACpD,4BAA4B,EAAE,sCAAsC;IACpE,gCAAgC,EAAE,gCAAgC;IAClE,wBAAwB,EAAE,yFAAyF;IACnH,mBAAmB,EAAE,qCAAqC;IAC1D,sBAAsB,EAAE,gEAAgE;IACxF,2BAA2B,EAAE,qCAAqC;IAClE,oBAAoB,EAAE,gCAAgC;IACtD,oBAAoB,EAAE,yEAAyE;IAC/F,qBAAqB,EAAE,gCAAgC;IACvD,oBAAoB,EAAE,yEAAyE;IAE/F,QAAQ,EAAE;QACR,OAAO,EAAE,IAAI;QACb,cAAc,EAAE,IAAI;QACpB,yBAAyB,EAAE,IAAI;QAC/B,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;KACb;CACF,CAAA"}
@@ -1,26 +1,11 @@
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
- exports.AppAuthErrors = void 0;
18
- const data_1 = require("./data");
19
- __exportStar(require("./types"), exports);
1
+ import { DEFAULT_AUTH_ERRORS } from './data';
2
+ export * from './types';
20
3
  /** Internal Error subclass that carries a typed `code` alongside the human-readable `msg` factory; not exported — consumers interact through `AppAuthErrors`. */
21
4
  class AuthError extends Error {
5
+ code;
6
+ msg;
22
7
  constructor(message, code) {
23
- const _error = 'AuthError:' + (code === null || code === void 0 ? void 0 : code.toLocaleUpperCase());
8
+ const _error = 'AuthError:' + code?.toLocaleUpperCase();
24
9
  super(_error);
25
10
  this.name = _error;
26
11
  this.code = code;
@@ -31,13 +16,18 @@ class AuthError extends Error {
31
16
  * Registry that merges app-specific error codes with the built-in defaults and wires them to a single `onError` handler.
32
17
  * Social errors are kept in a separate namespace because their codes can collide with base error codes (e.g. numeric strings).
33
18
  */
34
- class AppAuthErrors {
19
+ export class AppAuthErrors {
20
+ errors;
21
+ social;
22
+ onError;
23
+ defaultErrors = DEFAULT_AUTH_ERRORS;
24
+ socialKey = 'social';
35
25
  constructor(newErrors, errorFunction) {
36
- var _a, _b;
37
- this.defaultErrors = data_1.DEFAULT_AUTH_ERRORS;
38
- this.socialKey = 'social';
39
- const defaultErrors = data_1.DEFAULT_AUTH_ERRORS;
40
- const socialAuthErrors = Object.assign(Object.assign({}, defaultErrors[this.socialKey]), ((_a = newErrors === null || newErrors === void 0 ? void 0 : newErrors[this.socialKey]) !== null && _a !== void 0 ? _a : {}));
26
+ const defaultErrors = DEFAULT_AUTH_ERRORS;
27
+ const socialAuthErrors = {
28
+ ...defaultErrors[this.socialKey],
29
+ ...(newErrors?.[this.socialKey] ?? {}),
30
+ };
41
31
  const socialErrors = this.registryErrors(socialAuthErrors);
42
32
  this.social = socialErrors;
43
33
  if (!!newErrors['social']) {
@@ -46,28 +36,29 @@ class AppAuthErrors {
46
36
  if (!!defaultErrors['social']) {
47
37
  defaultErrors['social'] = undefined;
48
38
  }
49
- const baseAuthErrors = Object.assign(Object.assign({}, defaultErrors), ((_b = newErrors) !== null && _b !== void 0 ? _b : {}));
39
+ const baseAuthErrors = {
40
+ ...defaultErrors,
41
+ ...(newErrors ?? {}),
42
+ };
50
43
  const authErrors = this.registryErrors(baseAuthErrors);
51
44
  this.errors = authErrors;
52
45
  this.registryErrorFunction(errorFunction);
53
46
  }
54
47
  getError(err) {
55
- var _a, _b, _c, _d, _e, _f;
56
48
  if (!err)
57
49
  return null;
58
50
  if (typeof err == 'string') {
59
- return (_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a[err]) !== null && _b !== void 0 ? _b : (_c = this.social) === null || _c === void 0 ? void 0 : _c[err];
51
+ return this.errors?.[err] ?? this.social?.[err];
60
52
  }
61
53
  const authError = err;
62
- if (!!(authError === null || authError === void 0 ? void 0 : authError.code)) {
63
- return (_e = (_d = this.errors) === null || _d === void 0 ? void 0 : _d[authError === null || authError === void 0 ? void 0 : authError.code]) !== null && _e !== void 0 ? _e : (_f = this.social) === null || _f === void 0 ? void 0 : _f[authError === null || authError === void 0 ? void 0 : authError.code];
54
+ if (!!authError?.code) {
55
+ return this.errors?.[authError?.code] ?? this.social?.[authError?.code];
64
56
  }
65
57
  return null;
66
58
  }
67
59
  isError(err, key) {
68
- var _a;
69
- const _error = (_a = this.errors) === null || _a === void 0 ? void 0 : _a[key];
70
- return err == _error.code || (err === null || err === void 0 ? void 0 : err.code) == _error.code;
60
+ const _error = this.errors?.[key];
61
+ return err == _error.code || err?.code == _error.code;
71
62
  }
72
63
  verifyError(err) {
73
64
  return !!(this.getError(err));
@@ -75,7 +66,7 @@ class AppAuthErrors {
75
66
  exception(err) {
76
67
  const _error = this.getError(err);
77
68
  if (_error != null) {
78
- throw new AuthError(_error === null || _error === void 0 ? void 0 : _error.msg, _error === null || _error === void 0 ? void 0 : _error.code);
69
+ throw new AuthError(_error?.msg, _error?.code);
79
70
  }
80
71
  }
81
72
  createAuthError(message, code) {
@@ -97,9 +88,8 @@ class AppAuthErrors {
97
88
  registryErrorFunction(pureErrorFunction) {
98
89
  this.onError = (err, module = undefined, args = {}) => {
99
90
  const authError = this.getError(err);
100
- pureErrorFunction === null || pureErrorFunction === void 0 ? void 0 : pureErrorFunction(authError, module, args);
91
+ pureErrorFunction?.(authError, module, args);
101
92
  };
102
93
  }
103
94
  }
104
- exports.AppAuthErrors = AppAuthErrors;
105
95
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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H,CAAC;CACF"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
package/dist/index.js CHANGED
@@ -1,18 +1,2 @@
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("./AuthErrors"), exports);
1
+ export * from './AuthErrors';
18
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/auth",
3
- "version": "7.0.2",
3
+ "version": "7.1.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -22,8 +22,8 @@
22
22
  "directory": "packages/auth"
23
23
  },
24
24
  "devDependencies": {
25
- "@codeleap/config": "7.0.1",
26
- "@codeleap/types": "7.0.1",
25
+ "@codeleap/config": "7.0.2",
26
+ "@codeleap/types": "7.0.2",
27
27
  "ts-node-dev": "1.1.8"
28
28
  },
29
29
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  "typecheck": "bun tsc --noEmit -p ./tsconfig.json"
32
32
  },
33
33
  "peerDependencies": {
34
- "@codeleap/types": "7.0.1",
34
+ "@codeleap/types": "7.0.2",
35
35
  "typescript": "5.5.2"
36
36
  }
37
37
  }