@vercube/serverless 1.1.5 → 1.1.6

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.
@@ -1,7 +1,6 @@
1
- import { t as ServerlessHandler } from "../../ServerlessTypes-DXuRGWOU.mjs";
1
+ import { t as ServerlessHandler } from "../../ServerlessTypes-Cd7MovwR.mjs";
2
2
  import { App } from "@vercube/core";
3
3
  import { Writable } from "node:stream";
4
-
5
4
  //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/common/api-gateway.d.ts
6
5
  // Default authorizer type, prefer using a specific type with the "...WithAuthorizer..." variant types.
7
6
  // Note that this doesn't have to be a context from a custom lambda outhorizer, AWS also has a cognito
@@ -12,7 +11,8 @@ type APIGatewayEventDefaultAuthorizerContext = undefined | null | {
12
11
  // The requestContext property of both request authorizer and proxy integration events.
13
12
  interface APIGatewayEventRequestContextWithAuthorizer<TAuthorizerContext> {
14
13
  accountId: string;
15
- apiId: string; // This one is a bit confusing: it is not actually present in authorizer calls
14
+ apiId: string;
15
+ // This one is a bit confusing: it is not actually present in authorizer calls
16
16
  // and proxy calls without an authorizer. We model this by allowing undefined in the type,
17
17
  // since it ends up the same and avoids breaking users that are testing the property.
18
18
  // This lets us allow parameterizing the authorizer for proxy events that know what authorizer
@@ -85,7 +85,8 @@ interface Context {
85
85
  identity?: CognitoIdentity | undefined;
86
86
  clientContext?: ClientContext | undefined;
87
87
  tenantId?: string | undefined;
88
- getRemainingTimeInMillis(): number; // Functions for compatibility with earlier Node.js Runtime v0.10.42
88
+ getRemainingTimeInMillis(): number;
89
+ // Functions for compatibility with earlier Node.js Runtime v0.10.42
89
90
  // No longer documented, so they are deprecated, but they still work
90
91
  // as of the 12.x runtime, so they are not removed from the types.
91
92
  /** @deprecated Use handler callback or promise result */
@@ -93,7 +94,8 @@ interface Context {
93
94
  /** @deprecated Use handler callback with first argument or reject a promise result */
94
95
  fail(error: Error | string): void;
95
96
  /** @deprecated Use handler callback with second argument or resolve a promise result */
96
- succeed(messageOrObject: any): void; // Unclear what behavior this is supposed to have, I couldn't find any still extant reference,
97
+ succeed(messageOrObject: any): void;
98
+ // Unclear what behavior this is supposed to have, I couldn't find any still extant reference,
97
99
  // and it behaves like the above, ignoring the object parameter.
98
100
  /** @deprecated Use handler callback or promise result */
99
101
  succeed(message: string, object: any): void;
@@ -1,10 +1,9 @@
1
- import { t as ServerlessHandler } from "../../ServerlessTypes-DXuRGWOU.mjs";
1
+ import { t as ServerlessHandler } from "../../ServerlessTypes-Cd7MovwR.mjs";
2
2
  import { App } from "@vercube/core";
3
3
  import { Blob } from "buffer";
4
4
  import { ReadableStream } from "stream/web";
5
5
  import { URLSearchParams } from "url";
6
-
7
- //#region ../../node_modules/.pnpm/@azure+functions@4.16.1/node_modules/@azure/functions/types/http.d.ts
6
+ //#region ../../node_modules/.pnpm/@azure+functions@4.16.2/node_modules/@azure/functions/types/http.d.ts
8
7
  /**
9
8
  * HTTP request object. Provided to your function when using HTTP Bindings.
10
9
  */
@@ -1,5 +1,4 @@
1
1
  import { MaybePromise } from "@vercube/core";
2
-
3
2
  //#region src/Types/ServerlessTypes.d.ts
4
3
  type ServerlessHandler<Event = unknown, HandlerResponse = unknown, Context = unknown> = (event: Event, context?: Context) => MaybePromise<HandlerResponse>;
5
4
  //#endregion
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { t as ServerlessHandler } from "./ServerlessTypes-DXuRGWOU.mjs";
1
+ import { t as ServerlessHandler } from "./ServerlessTypes-Cd7MovwR.mjs";
2
2
  export type { ServerlessHandler };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/serverless",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Serverless module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,20 +36,20 @@
36
36
  "azure-function-http"
37
37
  ],
38
38
  "dependencies": {
39
- "srvx": "0.11.17",
39
+ "srvx": "0.11.22",
40
40
  "ufo": "1.6.4",
41
- "@vercube/core": "1.1.5",
42
- "@vercube/di": "1.1.5"
41
+ "@vercube/core": "1.1.6",
42
+ "@vercube/di": "1.1.6"
43
43
  },
44
44
  "devDependencies": {
45
- "@azure/functions": "4.16.1",
45
+ "@azure/functions": "4.16.2",
46
46
  "@types/aws-lambda": "8.10.162"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
51
  "inlinedDependencies": {
52
- "@azure/functions": "4.16.1",
52
+ "@azure/functions": "4.16.2",
53
53
  "@types/aws-lambda": "8.10.162"
54
54
  },
55
55
  "scripts": {