@lark-apaas/fullstack-nestjs-core 1.1.17-alpha.3 → 1.1.17-alpha.5

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.d.cts CHANGED
@@ -2,7 +2,7 @@ import { NestModule, DynamicModule, MiddlewareConsumer, NestMiddleware } from '@
2
2
  import { HttpClientConfig, PlatformPluginOptions } from '@lark-apaas/http-client';
3
3
  import { NestExpressApplication } from '@nestjs/platform-express';
4
4
  export { DevToolsModule, DevToolsOptions, DevToolsV2Module, DevToolsV2Options } from '@lark-apaas/nestjs-openapi-devtools';
5
- import { Request, Response as Response$1, NextFunction } from 'express';
5
+ import { Request, Response, NextFunction } from 'express';
6
6
  import { PlatformHttpClient, RequestContextService } from '@lark-apaas/nestjs-common';
7
7
  export { AutoTrace } from '@lark-apaas/nestjs-common';
8
8
  export * from '@lark-apaas/nestjs-authnpaas';
@@ -99,7 +99,7 @@ interface CsrfTokenOptions {
99
99
  declare class CsrfTokenMiddleware implements NestMiddleware {
100
100
  private static options;
101
101
  static configure(opts: CsrfTokenOptions): void;
102
- use(req: Request, res: Response$1, next: NextFunction): void;
102
+ use(req: Request, res: Response, next: NextFunction): void;
103
103
  }
104
104
 
105
105
  interface CsrfOptions {
@@ -110,11 +110,11 @@ interface CsrfOptions {
110
110
  declare class CsrfMiddleware implements NestMiddleware {
111
111
  private static options;
112
112
  static configure(opts: CsrfOptions): void;
113
- use(req: Request, res: Response$1, next: NextFunction): void;
113
+ use(req: Request, res: Response, next: NextFunction): void;
114
114
  }
115
115
 
116
116
  declare class UserContextMiddleware implements NestMiddleware {
117
- use(req: Request, _res: Response$1, next: NextFunction): void;
117
+ use(req: Request, _res: Response, next: NextFunction): void;
118
118
  }
119
119
 
120
120
  declare class ViewContextMiddleware implements NestMiddleware {
@@ -122,7 +122,7 @@ declare class ViewContextMiddleware implements NestMiddleware {
122
122
  private readonly logger;
123
123
  constructor(client: PlatformHttpClient);
124
124
  private getAppInfo;
125
- use(req: Request, res: Response$1, next: NextFunction): Promise<void>;
125
+ use(req: Request, res: Response, next: NextFunction): Promise<void>;
126
126
  }
127
127
 
128
128
  /**
@@ -142,7 +142,7 @@ declare class FileService {
142
142
  private readonly fileService;
143
143
  constructor(requestContextService: RequestContextService, httpClient: PlatformHttpClient);
144
144
  from(bucket: string): this;
145
- createSignedUrl(path: string, expiresIn: number): Promise<Response>;
145
+ createSignedUrl(path: string, expiresIn: number): Promise<unknown>;
146
146
  getDefaultBucket(): Promise<string>;
147
147
  private getAppId;
148
148
  }
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { NestModule, DynamicModule, MiddlewareConsumer, NestMiddleware } from '@
2
2
  import { HttpClientConfig, PlatformPluginOptions } from '@lark-apaas/http-client';
3
3
  import { NestExpressApplication } from '@nestjs/platform-express';
4
4
  export { DevToolsModule, DevToolsOptions, DevToolsV2Module, DevToolsV2Options } from '@lark-apaas/nestjs-openapi-devtools';
5
- import { Request, Response as Response$1, NextFunction } from 'express';
5
+ import { Request, Response, NextFunction } from 'express';
6
6
  import { PlatformHttpClient, RequestContextService } from '@lark-apaas/nestjs-common';
7
7
  export { AutoTrace } from '@lark-apaas/nestjs-common';
8
8
  export * from '@lark-apaas/nestjs-authnpaas';
@@ -99,7 +99,7 @@ interface CsrfTokenOptions {
99
99
  declare class CsrfTokenMiddleware implements NestMiddleware {
100
100
  private static options;
101
101
  static configure(opts: CsrfTokenOptions): void;
102
- use(req: Request, res: Response$1, next: NextFunction): void;
102
+ use(req: Request, res: Response, next: NextFunction): void;
103
103
  }
104
104
 
105
105
  interface CsrfOptions {
@@ -110,11 +110,11 @@ interface CsrfOptions {
110
110
  declare class CsrfMiddleware implements NestMiddleware {
111
111
  private static options;
112
112
  static configure(opts: CsrfOptions): void;
113
- use(req: Request, res: Response$1, next: NextFunction): void;
113
+ use(req: Request, res: Response, next: NextFunction): void;
114
114
  }
115
115
 
116
116
  declare class UserContextMiddleware implements NestMiddleware {
117
- use(req: Request, _res: Response$1, next: NextFunction): void;
117
+ use(req: Request, _res: Response, next: NextFunction): void;
118
118
  }
119
119
 
120
120
  declare class ViewContextMiddleware implements NestMiddleware {
@@ -122,7 +122,7 @@ declare class ViewContextMiddleware implements NestMiddleware {
122
122
  private readonly logger;
123
123
  constructor(client: PlatformHttpClient);
124
124
  private getAppInfo;
125
- use(req: Request, res: Response$1, next: NextFunction): Promise<void>;
125
+ use(req: Request, res: Response, next: NextFunction): Promise<void>;
126
126
  }
127
127
 
128
128
  /**
@@ -142,7 +142,7 @@ declare class FileService {
142
142
  private readonly fileService;
143
143
  constructor(requestContextService: RequestContextService, httpClient: PlatformHttpClient);
144
144
  from(bucket: string): this;
145
- createSignedUrl(path: string, expiresIn: number): Promise<Response>;
145
+ createSignedUrl(path: string, expiresIn: number): Promise<unknown>;
146
146
  getDefaultBucket(): Promise<string>;
147
147
  private getAppId;
148
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-nestjs-core",
3
- "version": "1.1.17-alpha.3",
3
+ "version": "1.1.17-alpha.5",
4
4
  "description": "FullStack Nestjs Core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "prepublishOnly": "npm run build"
40
40
  },
41
41
  "dependencies": {
42
- "@lark-apaas/file-service": "0.0.1-alpha.3",
42
+ "@lark-apaas/file-service": "0.0.1-alpha.4",
43
43
  "@lark-apaas/http-client": "^0.1.2",
44
44
  "@lark-apaas/nestjs-authnpaas": "^1.0.2",
45
45
  "@lark-apaas/nestjs-capability": "^0.1.2",