@miguelmorales13/nestkit 0.20.0 → 0.22.0
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/README.md +150 -7
- package/dist/auth/index.cjs +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/oauth/index.cjs +1060 -69
- package/dist/auth/oauth/index.d.ts +20 -7
- package/dist/auth/oauth/index.js +1050 -59
- package/dist/auth/oauth/magic-link.dto.d.ts +20 -0
- package/dist/auth/oauth/memory-security.stores.d.ts +19 -0
- package/dist/auth/oauth/oauth-auth.service.d.ts +168 -14
- package/dist/auth/oauth/oauth-provider.d.ts +54 -5
- package/dist/auth/oauth/oauth.options.d.ts +57 -1
- package/dist/auth/oauth/oauth.ports.d.ts +58 -0
- package/dist/auth/oauth/providers/apple.d.ts +58 -0
- package/dist/auth/oauth/providers/discord.d.ts +7 -0
- package/dist/auth/oauth/providers/github.d.ts +8 -0
- package/dist/auth/oauth/providers/linkedin.d.ts +7 -0
- package/dist/auth/oauth/providers/microsoft.d.ts +17 -0
- package/dist/auth/oauth/providers/tiktok.d.ts +17 -0
- package/dist/auth/oauth/totp.d.ts +33 -0
- package/dist/auth/oauth/webauthn.port.d.ts +17 -0
- package/dist/bootstrap/index.cjs +4 -4
- package/dist/bootstrap/index.js +3 -3
- package/dist/{chunk-FQRF37NG.cjs → chunk-FNUZGYUF.cjs} +3 -3
- package/dist/{chunk-PLEY5EZT.js → chunk-UNEVXCFW.js} +3 -3
- package/dist/errors/index.cjs +5 -5
- package/dist/errors/index.js +4 -4
- package/dist/index.cjs +15 -15
- package/dist/index.js +25 -25
- package/package.json +7 -2
- package/dist/{chunk-2DUEQKOI.js → chunk-A2DGK4ZL.js} +3 -3
- package/dist/{chunk-LSDY6ETG.cjs → chunk-MSTXS3MU.cjs} +3 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Base32 without padding — what `otpauth://` URIs carry. */
|
|
2
|
+
export declare function base32Encode(bytes: Uint8Array): string;
|
|
3
|
+
export declare function base32Decode(text: string): Uint8Array;
|
|
4
|
+
/** 160 bits, the size RFC 4226 recommends for SHA-1. */
|
|
5
|
+
export declare function generateTotpSecret(): string;
|
|
6
|
+
export interface TotpOptions {
|
|
7
|
+
/** Seconds per step. Default 30; the apps assume it. */
|
|
8
|
+
step?: number;
|
|
9
|
+
digits?: number;
|
|
10
|
+
}
|
|
11
|
+
/** HOTP: HMAC-SHA1 of the counter, dynamically truncated, mod 10^digits. */
|
|
12
|
+
export declare function hotp(secret: Uint8Array, counter: number, digits?: number): string;
|
|
13
|
+
export declare function totpStep(now: number, step?: number): number;
|
|
14
|
+
export declare function totp(secretBase32: string, now?: number, options?: TotpOptions): string;
|
|
15
|
+
/**
|
|
16
|
+
* Checks a code against the current step and one on each side — a phone
|
|
17
|
+
* clock a few seconds off, or a code typed just as it rolled over, must not
|
|
18
|
+
* fail. Returns the step that matched so the caller can refuse the same
|
|
19
|
+
* step twice: a code observed over someone's shoulder is good for thirty
|
|
20
|
+
* seconds, and the second use is the one that matters.
|
|
21
|
+
*/
|
|
22
|
+
export declare function verifyTotp(secretBase32: string, code: string, options?: TotpOptions & {
|
|
23
|
+
now?: number;
|
|
24
|
+
window?: number;
|
|
25
|
+
}): number | null;
|
|
26
|
+
/** The URI the QR code encodes. `issuer` is what the app shows above the code. */
|
|
27
|
+
export declare function otpauthUri(input: {
|
|
28
|
+
issuer: string;
|
|
29
|
+
account: string;
|
|
30
|
+
secret: string;
|
|
31
|
+
digits?: number;
|
|
32
|
+
step?: number;
|
|
33
|
+
}): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { generateAuthenticationOptions, generateRegistrationOptions, verifyAuthenticationResponse, verifyRegistrationResponse } from '@simplewebauthn/server';
|
|
2
|
+
/**
|
|
3
|
+
* The four functions of `@simplewebauthn/server` nestkit uses, as a port.
|
|
4
|
+
*
|
|
5
|
+
* The library stays the implementation — WebAuthn attestation formats and
|
|
6
|
+
* COSE keys are not something to rewrite — but a port is what lets a test
|
|
7
|
+
* run the whole flow with a fake, and lets an app pin or swap the library
|
|
8
|
+
* without touching this package.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebAuthnPort {
|
|
11
|
+
generateRegistrationOptions: typeof generateRegistrationOptions;
|
|
12
|
+
verifyRegistrationResponse: typeof verifyRegistrationResponse;
|
|
13
|
+
generateAuthenticationOptions: typeof generateAuthenticationOptions;
|
|
14
|
+
verifyAuthenticationResponse: typeof verifyAuthenticationResponse;
|
|
15
|
+
}
|
|
16
|
+
/** Lazily loads the library, once. An app without passkeys never does. */
|
|
17
|
+
export declare function loadWebAuthn(): Promise<WebAuthnPort>;
|
package/dist/bootstrap/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-LSDY6ETG.cjs');
|
|
3
|
+
var _chunkFNUZGYUFcjs = require('../chunk-FNUZGYUF.cjs');
|
|
5
4
|
require('../chunk-3AUOOEQO.cjs');
|
|
6
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-MSTXS3MU.cjs');
|
|
7
6
|
require('../chunk-AXMW5JF7.cjs');
|
|
8
7
|
require('../chunk-Y72D5L6I.cjs');
|
|
9
8
|
require('../chunk-SDWHKPXI.cjs');
|
|
9
|
+
require('../chunk-Q5Y33L7B.cjs');
|
|
10
10
|
require('../chunk-PNK5WMPP.cjs');
|
|
11
11
|
require('../chunk-2REOCMUD.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.applyNestKitDefaults =
|
|
14
|
+
exports.applyNestKitDefaults = _chunkFNUZGYUFcjs.applyNestKitDefaults;
|
package/dist/bootstrap/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
applyNestKitDefaults
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-2DUEQKOI.js";
|
|
3
|
+
} from "../chunk-UNEVXCFW.js";
|
|
5
4
|
import "../chunk-DYHSOULW.js";
|
|
6
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-A2DGK4ZL.js";
|
|
7
6
|
import "../chunk-X4PQJZ4G.js";
|
|
8
7
|
import "../chunk-TCAMLNUZ.js";
|
|
9
8
|
import "../chunk-ETRUVZTJ.js";
|
|
9
|
+
import "../chunk-M3GQDRWR.js";
|
|
10
10
|
import "../chunk-VVMRZEIW.js";
|
|
11
11
|
import "../chunk-4MGIQFAJ.js";
|
|
12
12
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk3AUOOEQOcjs = require('./chunk-3AUOOEQO.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMSTXS3MUcjs = require('./chunk-MSTXS3MU.cjs');
|
|
7
7
|
|
|
8
8
|
// src/bootstrap/apply-defaults.ts
|
|
9
9
|
|
|
@@ -17,7 +17,7 @@ function applyNestKitDefaults(app, options = {}) {
|
|
|
17
17
|
app.useGlobalPipes(
|
|
18
18
|
new (0, _common.ValidationPipe)({ whitelist: true, transform: true, ...options.validation })
|
|
19
19
|
);
|
|
20
|
-
app.useGlobalFilters(new (0,
|
|
20
|
+
app.useGlobalFilters(new (0, _chunkMSTXS3MUcjs.GlobalExceptionFilter)());
|
|
21
21
|
app.useGlobalInterceptors(new (0, _chunk3AUOOEQOcjs.ResponseInterceptor)());
|
|
22
22
|
if (options.swagger !== false) {
|
|
23
23
|
const swaggerOptions = _nullishCoalesce(options.swagger, () => ( { title: "API" }));
|
package/dist/errors/index.cjs
CHANGED
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
var _chunkHDFPSA2Vcjs = require('../chunk-HDFPSA2V.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _chunkQ5Y33L7Bcjs = require('../chunk-Q5Y33L7B.cjs');
|
|
11
|
+
var _chunkMSTXS3MUcjs = require('../chunk-MSTXS3MU.cjs');
|
|
15
12
|
require('../chunk-AXMW5JF7.cjs');
|
|
16
13
|
require('../chunk-Y72D5L6I.cjs');
|
|
17
14
|
require('../chunk-SDWHKPXI.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkQ5Y33L7Bcjs = require('../chunk-Q5Y33L7B.cjs');
|
|
18
18
|
require('../chunk-PNK5WMPP.cjs');
|
|
19
19
|
require('../chunk-2REOCMUD.cjs');
|
|
20
20
|
|
|
@@ -25,4 +25,4 @@ require('../chunk-2REOCMUD.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
exports.AppException = _chunkQ5Y33L7Bcjs.AppException; exports.ConflictAppException = _chunkHDFPSA2Vcjs.ConflictAppException; exports.ForbiddenAppException = _chunkHDFPSA2Vcjs.ForbiddenAppException; exports.GlobalExceptionFilter =
|
|
28
|
+
exports.AppException = _chunkQ5Y33L7Bcjs.AppException; exports.ConflictAppException = _chunkHDFPSA2Vcjs.ConflictAppException; exports.ForbiddenAppException = _chunkHDFPSA2Vcjs.ForbiddenAppException; exports.GlobalExceptionFilter = _chunkMSTXS3MUcjs.GlobalExceptionFilter; exports.NotFoundAppException = _chunkHDFPSA2Vcjs.NotFoundAppException; exports.UnauthorizedAppException = _chunkHDFPSA2Vcjs.UnauthorizedAppException; exports.ValidationAppException = _chunkHDFPSA2Vcjs.ValidationAppException;
|
package/dist/errors/index.js
CHANGED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "../chunk-ZFIDAX7K.js";
|
|
9
9
|
import {
|
|
10
10
|
GlobalExceptionFilter
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import {
|
|
13
|
-
AppException
|
|
14
|
-
} from "../chunk-M3GQDRWR.js";
|
|
11
|
+
} from "../chunk-A2DGK4ZL.js";
|
|
15
12
|
import "../chunk-X4PQJZ4G.js";
|
|
16
13
|
import "../chunk-TCAMLNUZ.js";
|
|
17
14
|
import "../chunk-ETRUVZTJ.js";
|
|
15
|
+
import {
|
|
16
|
+
AppException
|
|
17
|
+
} from "../chunk-M3GQDRWR.js";
|
|
18
18
|
import "../chunk-VVMRZEIW.js";
|
|
19
19
|
import "../chunk-4MGIQFAJ.js";
|
|
20
20
|
export {
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-KVBQBT3D.cjs');
|
|
2
|
+
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
var _chunkRF75KC63cjs = require('./chunk-RF75KC63.cjs');
|
|
6
|
-
require('./chunk-KVBQBT3D.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,7 +14,6 @@ var _chunkSPTDXUEDcjs = require('./chunk-SPTDXUED.cjs');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkHVHYZXBBcjs = require('./chunk-HVHYZXBB.cjs');
|
|
17
|
-
require('./chunk-7SOM7EZP.cjs');
|
|
18
17
|
require('./chunk-H2EHN366.cjs');
|
|
19
18
|
|
|
20
19
|
|
|
@@ -22,35 +21,33 @@ require('./chunk-H2EHN366.cjs');
|
|
|
22
21
|
|
|
23
22
|
|
|
24
23
|
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var _chunkFQRF37NGcjs = require('./chunk-FQRF37NG.cjs');
|
|
24
|
+
var _chunkAPUFKA4Kcjs = require('./chunk-APUFKA4K.cjs');
|
|
29
25
|
|
|
30
26
|
|
|
31
|
-
var _chunkLSDY6ETGcjs = require('./chunk-LSDY6ETG.cjs');
|
|
32
27
|
|
|
33
28
|
|
|
34
|
-
var
|
|
29
|
+
var _chunk52IOOHNXcjs = require('./chunk-52IOOHNX.cjs');
|
|
30
|
+
require('./chunk-W2T2VFLC.cjs');
|
|
35
31
|
|
|
36
32
|
|
|
33
|
+
var _chunkFNUZGYUFcjs = require('./chunk-FNUZGYUF.cjs');
|
|
37
34
|
|
|
38
35
|
|
|
39
|
-
var
|
|
40
|
-
require('./chunk-W2T2VFLC.cjs');
|
|
36
|
+
var _chunk3AUOOEQOcjs = require('./chunk-3AUOOEQO.cjs');
|
|
41
37
|
|
|
42
38
|
|
|
43
|
-
var
|
|
39
|
+
var _chunkQS2W5XCQcjs = require('./chunk-QS2W5XCQ.cjs');
|
|
40
|
+
require('./chunk-7SOM7EZP.cjs');
|
|
44
41
|
|
|
45
42
|
|
|
46
|
-
var _chunkQS2W5XCQcjs = require('./chunk-QS2W5XCQ.cjs');
|
|
47
43
|
|
|
48
44
|
|
|
49
45
|
|
|
50
46
|
|
|
47
|
+
var _chunkHDFPSA2Vcjs = require('./chunk-HDFPSA2V.cjs');
|
|
51
48
|
|
|
52
49
|
|
|
53
|
-
var
|
|
50
|
+
var _chunkMSTXS3MUcjs = require('./chunk-MSTXS3MU.cjs');
|
|
54
51
|
|
|
55
52
|
|
|
56
53
|
|
|
@@ -66,6 +63,9 @@ var _chunkY72D5L6Icjs = require('./chunk-Y72D5L6I.cjs');
|
|
|
66
63
|
var _chunkSDWHKPXIcjs = require('./chunk-SDWHKPXI.cjs');
|
|
67
64
|
|
|
68
65
|
|
|
66
|
+
var _chunkQ5Y33L7Bcjs = require('./chunk-Q5Y33L7B.cjs');
|
|
67
|
+
|
|
68
|
+
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
var _chunkPNK5WMPPcjs = require('./chunk-PNK5WMPP.cjs');
|
|
@@ -108,4 +108,4 @@ require('./chunk-2REOCMUD.cjs');
|
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
exports.AppException = _chunkQ5Y33L7Bcjs.AppException; exports.BaseCrudService = _chunk52IOOHNXcjs.BaseCrudService; exports.BaseResponseDto = _chunkQS2W5XCQcjs.BaseResponseDto; exports.ConflictAppException = _chunkHDFPSA2Vcjs.ConflictAppException; exports.ForbiddenAppException = _chunkHDFPSA2Vcjs.ForbiddenAppException; exports.GlobalExceptionFilter =
|
|
111
|
+
exports.AppException = _chunkQ5Y33L7Bcjs.AppException; exports.BaseCrudService = _chunk52IOOHNXcjs.BaseCrudService; exports.BaseResponseDto = _chunkQS2W5XCQcjs.BaseResponseDto; exports.ConflictAppException = _chunkHDFPSA2Vcjs.ConflictAppException; exports.ForbiddenAppException = _chunkHDFPSA2Vcjs.ForbiddenAppException; exports.GlobalExceptionFilter = _chunkMSTXS3MUcjs.GlobalExceptionFilter; exports.I18nInterceptor = _chunkAPUFKA4Kcjs.I18nInterceptor; exports.I18nMessage = _chunkPNK5WMPPcjs.I18nMessage; exports.I18nModule = _chunkAPUFKA4Kcjs.I18nModule; exports.ListQuery = _chunk52IOOHNXcjs.ListQuery; exports.NestI18nTranslator = _chunkAPUFKA4Kcjs.NestI18nTranslator; exports.NotFoundAppException = _chunkHDFPSA2Vcjs.NotFoundAppException; exports.PG_POOL = _chunkRF75KC63cjs.PG_POOL; exports.PgModule = _chunkRF75KC63cjs.PgModule; exports.REQUEST_ID_HEADER = _chunkHVHYZXBBcjs.REQUEST_ID_HEADER; exports.RequestContext = _chunkSDWHKPXIcjs.RequestContext; exports.RequestIdMiddleware = _chunkHVHYZXBBcjs.RequestIdMiddleware; exports.ResponseInterceptor = _chunk3AUOOEQOcjs.ResponseInterceptor; exports.SUPABASE_ANON_CLIENT = _chunkSPTDXUEDcjs.SUPABASE_ANON_CLIENT; exports.SUPABASE_SERVICE_ROLE_CLIENT = _chunkSPTDXUEDcjs.SUPABASE_SERVICE_ROLE_CLIENT; exports.SupabaseModule = _chunkSPTDXUEDcjs.SupabaseModule; exports.TrackingModule = _chunkHVHYZXBBcjs.TrackingModule; exports.UnauthorizedAppException = _chunkHDFPSA2Vcjs.UnauthorizedAppException; exports.ValidationAppException = _chunkHDFPSA2Vcjs.ValidationAppException; exports.applyNestKitDefaults = _chunkFNUZGYUFcjs.applyNestKitDefaults; exports.buildPageMeta = _chunkY72D5L6Icjs.buildPageMeta; exports.createCrudController = _chunk52IOOHNXcjs.createCrudController; exports.currentLanguage = _chunkAXMW5JF7cjs.currentLanguage; exports.isI18nMessage = _chunkPNK5WMPPcjs.isI18nMessage; exports.isPaginated = _chunkY72D5L6Icjs.isPaginated; exports.matchLanguage = _chunkAPUFKA4Kcjs.matchLanguage; exports.paginated = _chunkY72D5L6Icjs.paginated; exports.t = _chunkPNK5WMPPcjs.t; exports.translate = _chunkAXMW5JF7cjs.translate; exports.translateDeep = _chunkAXMW5JF7cjs.translateDeep; exports.translateOr = _chunkAPUFKA4Kcjs.translateOr; exports.withTenantScope = _chunkRF75KC63cjs.withTenantScope;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import "./chunk-EPVKCBPT.js";
|
|
1
2
|
import {
|
|
2
3
|
PG_POOL,
|
|
3
4
|
PgModule,
|
|
4
5
|
withTenantScope
|
|
5
6
|
} from "./chunk-VKOPDDCC.js";
|
|
6
|
-
import "./chunk-EPVKCBPT.js";
|
|
7
7
|
import {
|
|
8
8
|
SUPABASE_ANON_CLIENT,
|
|
9
9
|
SUPABASE_SERVICE_ROLE_CLIENT,
|
|
@@ -14,24 +14,14 @@ import {
|
|
|
14
14
|
RequestIdMiddleware,
|
|
15
15
|
TrackingModule
|
|
16
16
|
} from "./chunk-4PFAKLT3.js";
|
|
17
|
-
import "./chunk-DQYAIQQ5.js";
|
|
18
17
|
import "./chunk-ODPSIFOB.js";
|
|
19
18
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
applyNestKitDefaults
|
|
28
|
-
} from "./chunk-PLEY5EZT.js";
|
|
29
|
-
import {
|
|
30
|
-
GlobalExceptionFilter
|
|
31
|
-
} from "./chunk-2DUEQKOI.js";
|
|
32
|
-
import {
|
|
33
|
-
ResponseInterceptor
|
|
34
|
-
} from "./chunk-DYHSOULW.js";
|
|
19
|
+
I18nInterceptor,
|
|
20
|
+
I18nModule,
|
|
21
|
+
NestI18nTranslator,
|
|
22
|
+
matchLanguage,
|
|
23
|
+
translateOr
|
|
24
|
+
} from "./chunk-6RAPVLJM.js";
|
|
35
25
|
import {
|
|
36
26
|
BaseCrudService,
|
|
37
27
|
ListQuery,
|
|
@@ -39,18 +29,25 @@ import {
|
|
|
39
29
|
} from "./chunk-IFNYRZP2.js";
|
|
40
30
|
import "./chunk-ZJMLEP5H.js";
|
|
41
31
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./chunk-
|
|
32
|
+
applyNestKitDefaults
|
|
33
|
+
} from "./chunk-UNEVXCFW.js";
|
|
34
|
+
import {
|
|
35
|
+
ResponseInterceptor
|
|
36
|
+
} from "./chunk-DYHSOULW.js";
|
|
44
37
|
import {
|
|
45
38
|
BaseResponseDto
|
|
46
39
|
} from "./chunk-XX2HPTRU.js";
|
|
40
|
+
import "./chunk-DQYAIQQ5.js";
|
|
47
41
|
import {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "./chunk-
|
|
42
|
+
ConflictAppException,
|
|
43
|
+
ForbiddenAppException,
|
|
44
|
+
NotFoundAppException,
|
|
45
|
+
UnauthorizedAppException,
|
|
46
|
+
ValidationAppException
|
|
47
|
+
} from "./chunk-ZFIDAX7K.js";
|
|
48
|
+
import {
|
|
49
|
+
GlobalExceptionFilter
|
|
50
|
+
} from "./chunk-A2DGK4ZL.js";
|
|
54
51
|
import {
|
|
55
52
|
currentLanguage,
|
|
56
53
|
translate,
|
|
@@ -64,6 +61,9 @@ import {
|
|
|
64
61
|
import {
|
|
65
62
|
RequestContext
|
|
66
63
|
} from "./chunk-ETRUVZTJ.js";
|
|
64
|
+
import {
|
|
65
|
+
AppException
|
|
66
|
+
} from "./chunk-M3GQDRWR.js";
|
|
67
67
|
import {
|
|
68
68
|
I18nMessage,
|
|
69
69
|
isI18nMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miguelmorales13/nestkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -191,9 +191,13 @@
|
|
|
191
191
|
"@aws-sdk/client-s3": "^3.0.0",
|
|
192
192
|
"@aws-sdk/s3-request-presigner": "^3.0.0",
|
|
193
193
|
"@aws-sdk/lib-storage": "^3.0.0",
|
|
194
|
-
"typeorm": "^0.3.0 || ^1.0.0"
|
|
194
|
+
"typeorm": "^0.3.0 || ^1.0.0",
|
|
195
|
+
"@simplewebauthn/server": "^13.0.0 || ^14.0.0"
|
|
195
196
|
},
|
|
196
197
|
"peerDependenciesMeta": {
|
|
198
|
+
"@simplewebauthn/server": {
|
|
199
|
+
"optional": true
|
|
200
|
+
},
|
|
197
201
|
"@aws-sdk/client-s3": {
|
|
198
202
|
"optional": true
|
|
199
203
|
},
|
|
@@ -249,6 +253,7 @@
|
|
|
249
253
|
"@nestjs/common": "^11.0.0",
|
|
250
254
|
"@nestjs/core": "^11.0.0",
|
|
251
255
|
"@nestjs/swagger": "^11.0.0",
|
|
256
|
+
"@simplewebauthn/server": "^14.0.2",
|
|
252
257
|
"@supabase/supabase-js": "^2.45.0",
|
|
253
258
|
"@types/bun": "^1.4.2",
|
|
254
259
|
"@types/jsonwebtoken": "^9.0.10",
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AppException
|
|
3
|
-
} from "./chunk-M3GQDRWR.js";
|
|
4
1
|
import {
|
|
5
2
|
getI18nRuntime,
|
|
6
3
|
translate,
|
|
@@ -9,6 +6,9 @@ import {
|
|
|
9
6
|
import {
|
|
10
7
|
RequestContext
|
|
11
8
|
} from "./chunk-ETRUVZTJ.js";
|
|
9
|
+
import {
|
|
10
|
+
AppException
|
|
11
|
+
} from "./chunk-M3GQDRWR.js";
|
|
12
12
|
import {
|
|
13
13
|
__decorateClass
|
|
14
14
|
} from "./chunk-4MGIQFAJ.js";
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var _chunkQ5Y33L7Bcjs = require('./chunk-Q5Y33L7B.cjs');
|
|
4
|
-
|
|
5
|
-
|
|
6
3
|
|
|
7
4
|
|
|
8
5
|
var _chunkAXMW5JF7cjs = require('./chunk-AXMW5JF7.cjs');
|
|
@@ -11,6 +8,9 @@ var _chunkAXMW5JF7cjs = require('./chunk-AXMW5JF7.cjs');
|
|
|
11
8
|
var _chunkSDWHKPXIcjs = require('./chunk-SDWHKPXI.cjs');
|
|
12
9
|
|
|
13
10
|
|
|
11
|
+
var _chunkQ5Y33L7Bcjs = require('./chunk-Q5Y33L7B.cjs');
|
|
12
|
+
|
|
13
|
+
|
|
14
14
|
var _chunk2REOCMUDcjs = require('./chunk-2REOCMUD.cjs');
|
|
15
15
|
|
|
16
16
|
// src/errors/global-exception.filter.ts
|