@nestjs-kitchen/authz 1.1.1 → 1.1.3
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/dist/index.js
CHANGED
|
@@ -15,8 +15,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var
|
|
19
|
-
__export(
|
|
18
|
+
var index_exports = {};
|
|
19
|
+
__export(index_exports, {
|
|
20
20
|
AuthzAnonymousError: () => import_errors.AuthzAnonymousError,
|
|
21
21
|
AuthzError: () => import_errors.AuthzError,
|
|
22
22
|
AuthzProviderClass: () => import_authz.AuthzProviderClass,
|
|
@@ -26,7 +26,7 @@ __export(src_exports, {
|
|
|
26
26
|
cereateSessionAuthzModule: () => import_session.cereateSessionAuthzModule,
|
|
27
27
|
createJwtAuthzModule: () => import_jwt.createJwtAuthzModule
|
|
28
28
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
29
|
+
module.exports = __toCommonJS(index_exports);
|
|
30
30
|
var import_authz = require("./authz.provider");
|
|
31
31
|
var import_user = require("./user.decorator");
|
|
32
32
|
var import_errors = require("./errors");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import './extract-jwt.js';
|
|
2
2
|
import * as _nestjs_core from '@nestjs/core';
|
|
3
|
-
import {
|
|
3
|
+
import { JwtOptions, JwtAuthzModuleOptions, JwtAuthzOptions } from './jwt-authz.interface.js';
|
|
4
4
|
import { AuthzProviderClass } from '../authz.provider.js';
|
|
5
|
-
import { AbstractConstructor, RoutesOptions, AuthzDecoParams, MethodParameters, ApplyDecorators, CookieOptionsWithSecret, DeepReadonly
|
|
5
|
+
import { AbstractConstructor, RoutesOptions, AuthzModuleBaseOptions, AuthzModuleRoutesOptions, AuthzDecoParams, MethodParameters, ApplyDecorators, CookieOptionsWithSecret, DeepReadonly } from '../utils/types.js';
|
|
6
6
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
7
7
|
import * as _nestjs_common from '@nestjs/common';
|
|
8
|
-
import { MiddlewareConsumer,
|
|
8
|
+
import { MiddlewareConsumer, Type, DynamicModule } from '@nestjs/common';
|
|
9
9
|
import { AuthzError } from '../errors.js';
|
|
10
10
|
import { JwtAlsType } from './jwt-authz-als.middleware.js';
|
|
11
11
|
import 'cookie';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _nestjs_core from '@nestjs/core';
|
|
2
|
-
import { SessionAuthzOptions,
|
|
2
|
+
import { SessionAuthzOptions, SessionOptions, SessionAuthzModuleOptions } from './session-authz.interface.js';
|
|
3
3
|
import { AuthzProviderClass } from '../authz.provider.js';
|
|
4
|
-
import { AbstractConstructor, RoutesOptions, AuthzDecoParams, MethodParameters, ApplyDecorators, CookieOptionsWithSecret, DeepReadonly
|
|
4
|
+
import { AbstractConstructor, RoutesOptions, AuthzModuleBaseOptions, AuthzModuleRoutesOptions, AuthzDecoParams, MethodParameters, ApplyDecorators, CookieOptionsWithSecret, DeepReadonly } from '../utils/types.js';
|
|
5
5
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
6
6
|
import * as _nestjs_common from '@nestjs/common';
|
|
7
|
-
import { MiddlewareConsumer,
|
|
7
|
+
import { MiddlewareConsumer, Type, DynamicModule } from '@nestjs/common';
|
|
8
8
|
import { AuthzError } from '../errors.js';
|
|
9
9
|
import { SessionAlsType } from './session-authz-als.middleware.js';
|
|
10
10
|
import 'express-session';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nestjs-kitchen/authz",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "Simplest authentication & authorization module in NextJS",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.3",
|
|
6
6
|
"homepage": "https://github.com/yikenman/nestjs-kitchen",
|
|
7
7
|
"repository": "https://github.com/yikenman/nestjs-kitchen",
|
|
8
8
|
"author": "yikenman",
|
|
@@ -27,28 +27,22 @@
|
|
|
27
27
|
"uid": "^2.0.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@nestjs/
|
|
31
|
-
"@nestjs/core": "^10.4.12",
|
|
32
|
-
"@nestjs/passport": "^10.0.3",
|
|
33
|
-
"@nestjs/testing": "^10.4.12",
|
|
30
|
+
"@nestjs/testing": "^10.4.15",
|
|
34
31
|
"@types/cookie-parser": "^1.4.8",
|
|
35
32
|
"@types/express": "^4.17.21",
|
|
36
33
|
"@types/express-session": "^1.18.1",
|
|
37
34
|
"@types/jest": "^29.5.14",
|
|
38
|
-
"@types/jsonwebtoken": "^9.0.
|
|
39
|
-
"@types/node": "^22.
|
|
35
|
+
"@types/jsonwebtoken": "^9.0.9",
|
|
36
|
+
"@types/node": "^22.13.5",
|
|
40
37
|
"@types/passport": "^1.0.17",
|
|
41
38
|
"@types/supertest": "^6.0.2",
|
|
42
39
|
"jest": "^29.7.0",
|
|
43
|
-
"passport": "^0.7.0",
|
|
44
|
-
"reflect-metadata": "^0.2.1",
|
|
45
|
-
"rxjs": "^7.8.1",
|
|
46
40
|
"supertest": "^7.0.0",
|
|
47
|
-
"ts-jest": "^29.
|
|
41
|
+
"ts-jest": "^29.2.6",
|
|
48
42
|
"ts-node": "^10.9.2",
|
|
49
43
|
"tsconfig-paths": "^4.2.0",
|
|
50
|
-
"tsup": "^8.
|
|
51
|
-
"typescript": "^5.7.
|
|
44
|
+
"tsup": "^8.4.0",
|
|
45
|
+
"typescript": "^5.7.3"
|
|
52
46
|
},
|
|
53
47
|
"engines": {
|
|
54
48
|
"node": ">=20.13.0"
|
|
@@ -64,9 +58,10 @@
|
|
|
64
58
|
"Session"
|
|
65
59
|
],
|
|
66
60
|
"peerDependencies": {
|
|
67
|
-
"@nestjs/common": "^10.4.
|
|
68
|
-
"@nestjs/core": "^10.4.
|
|
61
|
+
"@nestjs/common": "^10.4.15",
|
|
62
|
+
"@nestjs/core": "^10.4.15",
|
|
69
63
|
"@nestjs/passport": "^10.0.3",
|
|
64
|
+
"@nestjs/platform-express": "^10.4.15",
|
|
70
65
|
"passport": "^0.7.0",
|
|
71
66
|
"reflect-metadata": "^0.2.1",
|
|
72
67
|
"rxjs": "^7.8.1"
|
|
@@ -75,6 +70,7 @@
|
|
|
75
70
|
"build": "tsup",
|
|
76
71
|
"dev": "tsup --watch",
|
|
77
72
|
"test": "jest",
|
|
73
|
+
"test:ci": "jest --coverage && jest --config ./test/jest-e2e.config.json",
|
|
78
74
|
"test:cov": "jest --coverage",
|
|
79
75
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/jest/bin/jest --runInBand",
|
|
80
76
|
"test:e2e": "jest --config ./test/jest-e2e.config.json",
|