@cumulusds/aws-apig-bypass 0.0.1 → 0.1.0
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.
|
@@ -9,14 +9,15 @@ function createAPIGatewayEvent({
|
|
|
9
9
|
pathParameters = null,
|
|
10
10
|
path = "",
|
|
11
11
|
body = null,
|
|
12
|
-
queryStringParameters = null
|
|
12
|
+
queryStringParameters = null,
|
|
13
|
+
isBase64Encoded = false
|
|
13
14
|
} = {}) {
|
|
14
15
|
return {
|
|
15
16
|
body,
|
|
16
17
|
headers: {},
|
|
17
18
|
multiValueHeaders: {},
|
|
18
19
|
httpMethod: "",
|
|
19
|
-
isBase64Encoded
|
|
20
|
+
isBase64Encoded,
|
|
20
21
|
path,
|
|
21
22
|
pathParameters,
|
|
22
23
|
queryStringParameters,
|
|
@@ -9,21 +9,23 @@ export type CreateAPIGatewayEventOptions = {
|
|
|
9
9
|
body?: string,
|
|
10
10
|
path?: string,
|
|
11
11
|
pathParameters?: PathParameters,
|
|
12
|
-
queryStringParameters?: QueryStringParameters
|
|
12
|
+
queryStringParameters?: QueryStringParameters,
|
|
13
|
+
isBase64Encoded?: boolean
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export default function createAPIGatewayEvent({
|
|
16
17
|
pathParameters = null,
|
|
17
18
|
path = "",
|
|
18
19
|
body = null,
|
|
19
|
-
queryStringParameters = null
|
|
20
|
+
queryStringParameters = null,
|
|
21
|
+
isBase64Encoded = false
|
|
20
22
|
}: CreateAPIGatewayEventOptions = {}): APIGatewayEvent<string> {
|
|
21
23
|
return {
|
|
22
24
|
body,
|
|
23
25
|
headers: {},
|
|
24
26
|
multiValueHeaders: {},
|
|
25
27
|
httpMethod: "",
|
|
26
|
-
isBase64Encoded
|
|
28
|
+
isBase64Encoded,
|
|
27
29
|
path,
|
|
28
30
|
pathParameters,
|
|
29
31
|
queryStringParameters,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cumulusds/aws-apig-bypass",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Client for API Gateway handlers, bypassing API Gateway by directly invoking the Lambda",
|
|
5
5
|
"repository": "https://github.com/CumulusDS/aws-apig-bypass",
|
|
6
6
|
"author": "Cumulus Digital Systems",
|
|
@@ -9,21 +9,23 @@ export type CreateAPIGatewayEventOptions = {
|
|
|
9
9
|
body?: string,
|
|
10
10
|
path?: string,
|
|
11
11
|
pathParameters?: PathParameters,
|
|
12
|
-
queryStringParameters?: QueryStringParameters
|
|
12
|
+
queryStringParameters?: QueryStringParameters,
|
|
13
|
+
isBase64Encoded?: boolean
|
|
13
14
|
};
|
|
14
15
|
|
|
15
16
|
export default function createAPIGatewayEvent({
|
|
16
17
|
pathParameters = null,
|
|
17
18
|
path = "",
|
|
18
19
|
body = null,
|
|
19
|
-
queryStringParameters = null
|
|
20
|
+
queryStringParameters = null,
|
|
21
|
+
isBase64Encoded = false
|
|
20
22
|
}: CreateAPIGatewayEventOptions = {}): APIGatewayEvent<string> {
|
|
21
23
|
return {
|
|
22
24
|
body,
|
|
23
25
|
headers: {},
|
|
24
26
|
multiValueHeaders: {},
|
|
25
27
|
httpMethod: "",
|
|
26
|
-
isBase64Encoded
|
|
28
|
+
isBase64Encoded,
|
|
27
29
|
path,
|
|
28
30
|
pathParameters,
|
|
29
31
|
queryStringParameters,
|