@tsed/platform-serverless-testing 6.95.9 → 6.95.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/platform-serverless-testing",
3
- "version": "6.95.9",
3
+ "version": "6.95.10",
4
4
  "description": "Module to test Serverless function with Ts.ED",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -50,22 +50,22 @@
50
50
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/platform/platform-serverless-testing",
51
51
  "repository": "https://github.com/tsedio/tsed",
52
52
  "devDependencies": {
53
- "@tsed/common": "6.95.9",
54
- "@tsed/core": "6.95.9",
55
- "@tsed/di": "6.95.9",
56
- "@tsed/schema": "6.95.9"
53
+ "@tsed/common": "6.95.10",
54
+ "@tsed/core": "6.95.10",
55
+ "@tsed/di": "6.95.10",
56
+ "@tsed/schema": "6.95.10"
57
57
  },
58
58
  "dependencies": {
59
59
  "aws-lambda": "^1.0.7",
60
60
  "tslib": "2.2.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@tsed/common": "^6.95.9",
64
- "@tsed/core": "^6.95.9",
65
- "@tsed/di": "^6.95.9",
66
- "@tsed/json-mapper": "^6.95.9",
63
+ "@tsed/common": "^6.95.10",
64
+ "@tsed/core": "^6.95.10",
65
+ "@tsed/di": "^6.95.10",
66
+ "@tsed/json-mapper": "^6.95.10",
67
67
  "@tsed/logger": ">=6.0.0",
68
- "@tsed/openspec": "^6.95.9",
69
- "@tsed/schema": "^6.95.9"
68
+ "@tsed/openspec": "^6.95.10",
69
+ "@tsed/schema": "^6.95.10"
70
70
  }
71
71
  }
@@ -1,46 +0,0 @@
1
- import { DITest } from "@tsed/di";
2
- import { APIGatewayEventDefaultAuthorizerContext, APIGatewayProxyEventBase, APIGatewayProxyHandler } from "aws-lambda";
3
- import { APIGatewayProxyResult } from "aws-lambda/trigger/api-gateway-proxy";
4
- import { Type } from "@tsed/core";
5
- import { PlatformBuilder, PlatformBuilderSettings } from "@tsed/common";
6
- export interface LambdaPromiseResult extends Promise<APIGatewayProxyResult> {
7
- }
8
- export declare class LambdaClientRequest extends Promise<APIGatewayProxyResult> {
9
- event: APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>;
10
- context: import("aws-lambda").Context;
11
- static call(lambdaName: string): LambdaClientRequest;
12
- static get(path: string, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): LambdaClientRequest;
13
- static post(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): LambdaClientRequest;
14
- static put(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): LambdaClientRequest;
15
- static patch(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): LambdaClientRequest;
16
- static delete(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): LambdaClientRequest;
17
- get(path: string, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): this;
18
- post(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): this;
19
- patch(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): this;
20
- put(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): this;
21
- delete(path: string, body?: any, options?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): this;
22
- query(query: any): this;
23
- params(pathParameters: any): this;
24
- headers(headers: Record<string, any>): this;
25
- body(body: any): this;
26
- protected init(lambda: string, resolve: Function, reject: Function): void;
27
- }
28
- export declare class PlatformServerlessTest extends DITest {
29
- static callbacks: Record<string, APIGatewayProxyHandler>;
30
- static instance: any;
31
- static request: typeof LambdaClientRequest;
32
- static bootstrap(serverless: {
33
- bootstrap: (server: Type<any>, settings: PlatformBuilderSettings) => PlatformBuilder;
34
- }, { server, ...settings }: PlatformBuilderSettings & {
35
- server: Type<any>;
36
- }): () => Promise<any>;
37
- static bootstrap(serverless: {
38
- bootstrap: (settings: Partial<TsED.Configuration> & {
39
- lambda?: Type[];
40
- }) => any;
41
- }, { server, ...settings }: PlatformBuilderSettings): () => Promise<any>;
42
- /**
43
- * Resets the test injector of the test context, so it won't pollute your next test. Call this in your `tearDown` logic.
44
- */
45
- static reset(): Promise<void>;
46
- }
@@ -1,2 +0,0 @@
1
- import { Context } from "aws-lambda";
2
- export declare function createFakeContext(context?: Context): Context;
@@ -1,2 +0,0 @@
1
- import { APIGatewayEventDefaultAuthorizerContext, APIGatewayProxyEventBase } from "aws-lambda";
2
- export declare function createFakeEvent(event?: Partial<APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>>): APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>;
@@ -1,3 +0,0 @@
1
- export * from "./createFakeEvent";
2
- export * from "./createFakeContext";
3
- export * from "./PlatformServerlessTest";