@lark-apaas/fullstack-nestjs-core 1.0.15-alpha.0 → 1.0.15-alpha.2
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.cjs +5 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -186,9 +186,9 @@ var ViewContextMiddleware = class {
|
|
|
186
186
|
csrfToken: csrfToken ?? "",
|
|
187
187
|
userId: userId ?? "",
|
|
188
188
|
tenantId: tenantId ?? "",
|
|
189
|
-
appId: appId ?? "",
|
|
190
189
|
loginUrl: loginUrl ?? "",
|
|
191
|
-
userType: userType ?? ""
|
|
190
|
+
userType: userType ?? "",
|
|
191
|
+
appId: appId ?? ""
|
|
192
192
|
};
|
|
193
193
|
next();
|
|
194
194
|
}
|
|
@@ -275,6 +275,7 @@ var app_config_default = (0, import_config.registerAs)(NAMESPACE, () => {
|
|
|
275
275
|
});
|
|
276
276
|
|
|
277
277
|
// src/modules/platform/module.ts
|
|
278
|
+
var import_nestjs_authzpaas = require("@lark-apaas/nestjs-authzpaas");
|
|
278
279
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
279
280
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
280
281
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -330,7 +331,8 @@ var PlatformModule = class _PlatformModule {
|
|
|
330
331
|
};
|
|
331
332
|
}, "useFactory")
|
|
332
333
|
}),
|
|
333
|
-
import_nestjs_authnpaas.AuthNPaasModule.forRoot()
|
|
334
|
+
import_nestjs_authnpaas.AuthNPaasModule.forRoot(),
|
|
335
|
+
import_nestjs_authzpaas.AuthZPaasModule.forRoot()
|
|
334
336
|
],
|
|
335
337
|
providers: [
|
|
336
338
|
{
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -144,9 +144,9 @@ var ViewContextMiddleware = class {
|
|
|
144
144
|
csrfToken: csrfToken ?? "",
|
|
145
145
|
userId: userId ?? "",
|
|
146
146
|
tenantId: tenantId ?? "",
|
|
147
|
-
appId: appId ?? "",
|
|
148
147
|
loginUrl: loginUrl ?? "",
|
|
149
|
-
userType: userType ?? ""
|
|
148
|
+
userType: userType ?? "",
|
|
149
|
+
appId: appId ?? ""
|
|
150
150
|
};
|
|
151
151
|
next();
|
|
152
152
|
}
|
|
@@ -233,6 +233,7 @@ var app_config_default = registerAs(NAMESPACE, () => {
|
|
|
233
233
|
});
|
|
234
234
|
|
|
235
235
|
// src/modules/platform/module.ts
|
|
236
|
+
import { AuthZPaasModule } from "@lark-apaas/nestjs-authzpaas";
|
|
236
237
|
function _ts_decorate5(decorators, target, key, desc) {
|
|
237
238
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
238
239
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -288,7 +289,8 @@ var PlatformModule = class _PlatformModule {
|
|
|
288
289
|
};
|
|
289
290
|
}, "useFactory")
|
|
290
291
|
}),
|
|
291
|
-
AuthNPaasModule.forRoot()
|
|
292
|
+
AuthNPaasModule.forRoot(),
|
|
293
|
+
AuthZPaasModule.forRoot()
|
|
292
294
|
],
|
|
293
295
|
providers: [
|
|
294
296
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-nestjs-core",
|
|
3
|
-
"version": "1.0.15-alpha.
|
|
3
|
+
"version": "1.0.15-alpha.2",
|
|
4
4
|
"description": "FullStack Nestjs Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@lark-apaas/nestjs-authnpaas": "^1.0.0",
|
|
42
|
-
"@lark-apaas/nestjs-
|
|
42
|
+
"@lark-apaas/nestjs-authzpaas": "0.1.0-alpha.4",
|
|
43
|
+
"@lark-apaas/nestjs-datapaas": "1.0.6-alpha.3",
|
|
43
44
|
"@lark-apaas/nestjs-logger": "^1.0.2",
|
|
44
45
|
"@lark-apaas/nestjs-openapi-devtools": "^1.0.7",
|
|
45
46
|
"cookie-parser": "^1.4.7"
|