@jaypie/constructs 1.2.13 → 1.2.15
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/cjs/JaypieDistribution.d.ts +2 -3
- package/dist/cjs/JaypieDynamoDb.d.ts +40 -27
- package/dist/cjs/constants.d.ts +0 -14
- package/dist/cjs/index.cjs +55 -175
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/esm/JaypieDistribution.d.ts +2 -3
- package/dist/esm/JaypieDynamoDb.d.ts +40 -27
- package/dist/esm/constants.d.ts +0 -14
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +56 -174
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/cjs/JaypieStreamingLambda.d.ts +0 -44
- package/dist/cjs/__tests__/JaypieStreamingLambda.spec.d.ts +0 -1
- package/dist/esm/JaypieStreamingLambda.d.ts +0 -44
- package/dist/esm/__tests__/JaypieStreamingLambda.spec.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaypie/constructs",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15",
|
|
4
4
|
"description": "CDK constructs for Jaypie applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@jaypie/errors": "^1.2.1",
|
|
35
|
+
"@jaypie/fabric": "^0.1.0",
|
|
35
36
|
"aws-cdk-lib": "^2.232.1",
|
|
36
37
|
"cdk-nextjs-standalone": "^4.3.2",
|
|
37
38
|
"constructs": "^10.4.3",
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Construct } from "constructs";
|
|
2
|
-
import * as lambda from "aws-cdk-lib/aws-lambda";
|
|
3
|
-
import { JaypieLambda, JaypieLambdaProps } from "./JaypieLambda.js";
|
|
4
|
-
export interface JaypieStreamingLambdaProps extends JaypieLambdaProps {
|
|
5
|
-
/**
|
|
6
|
-
* The port your application listens on.
|
|
7
|
-
* @default 8000
|
|
8
|
-
*/
|
|
9
|
-
port?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Enable response streaming mode.
|
|
12
|
-
* When true, uses RESPONSE_STREAM invoke mode.
|
|
13
|
-
* When false, uses BUFFERED invoke mode.
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
streaming?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A Lambda construct that uses AWS Lambda Web Adapter for streaming support.
|
|
20
|
-
* This allows running web applications (Express, Fastify, etc.) with streaming responses.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```typescript
|
|
24
|
-
* const streamingLambda = new JaypieStreamingLambda(this, "StreamingApi", {
|
|
25
|
-
* code: "dist/api",
|
|
26
|
-
* handler: "run.sh",
|
|
27
|
-
* streaming: true,
|
|
28
|
-
* });
|
|
29
|
-
*
|
|
30
|
-
* // Use with JaypieDistribution
|
|
31
|
-
* new JaypieDistribution(this, "Distribution", {
|
|
32
|
-
* handler: streamingLambda,
|
|
33
|
-
* invokeMode: streamingLambda.invokeMode,
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare class JaypieStreamingLambda extends JaypieLambda {
|
|
38
|
-
/**
|
|
39
|
-
* The invoke mode for this Lambda function.
|
|
40
|
-
* Use this when configuring JaypieDistribution.
|
|
41
|
-
*/
|
|
42
|
-
readonly invokeMode: lambda.InvokeMode;
|
|
43
|
-
constructor(scope: Construct, id: string, props: JaypieStreamingLambdaProps);
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Construct } from "constructs";
|
|
2
|
-
import * as lambda from "aws-cdk-lib/aws-lambda";
|
|
3
|
-
import { JaypieLambda, JaypieLambdaProps } from "./JaypieLambda.js";
|
|
4
|
-
export interface JaypieStreamingLambdaProps extends JaypieLambdaProps {
|
|
5
|
-
/**
|
|
6
|
-
* The port your application listens on.
|
|
7
|
-
* @default 8000
|
|
8
|
-
*/
|
|
9
|
-
port?: number;
|
|
10
|
-
/**
|
|
11
|
-
* Enable response streaming mode.
|
|
12
|
-
* When true, uses RESPONSE_STREAM invoke mode.
|
|
13
|
-
* When false, uses BUFFERED invoke mode.
|
|
14
|
-
* @default false
|
|
15
|
-
*/
|
|
16
|
-
streaming?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A Lambda construct that uses AWS Lambda Web Adapter for streaming support.
|
|
20
|
-
* This allows running web applications (Express, Fastify, etc.) with streaming responses.
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```typescript
|
|
24
|
-
* const streamingLambda = new JaypieStreamingLambda(this, "StreamingApi", {
|
|
25
|
-
* code: "dist/api",
|
|
26
|
-
* handler: "run.sh",
|
|
27
|
-
* streaming: true,
|
|
28
|
-
* });
|
|
29
|
-
*
|
|
30
|
-
* // Use with JaypieDistribution
|
|
31
|
-
* new JaypieDistribution(this, "Distribution", {
|
|
32
|
-
* handler: streamingLambda,
|
|
33
|
-
* invokeMode: streamingLambda.invokeMode,
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare class JaypieStreamingLambda extends JaypieLambda {
|
|
38
|
-
/**
|
|
39
|
-
* The invoke mode for this Lambda function.
|
|
40
|
-
* Use this when configuring JaypieDistribution.
|
|
41
|
-
*/
|
|
42
|
-
readonly invokeMode: lambda.InvokeMode;
|
|
43
|
-
constructor(scope: Construct, id: string, props: JaypieStreamingLambdaProps);
|
|
44
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|