Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mapbox/cloudfriend

Package Overview
Dependencies
Maintainers
28
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/cloudfriend - npm Package Compare versions

Comparing version 7.0.1-2 to 7.0.1-3

.nyc_output/55175f56-0c21-41bf-8294-c3719ef9f8d2.json

2

.nyc_output/processinfo/index.json

@@ -1,1 +0,1 @@

{"processes":{"9c2db6ce-3666-452b-941a-60b849c9bd69":{"parent":"db57c217-eac5-4213-9058-bd99581099e6","children":[]},"db57c217-eac5-4213-9058-bd99581099e6":{"parent":null,"children":["9c2db6ce-3666-452b-941a-60b849c9bd69"]}},"files":{"/Users/bilindhajer/cloudfriend/bin/build-template.js":["9c2db6ce-3666-452b-941a-60b849c9bd69"],"/Users/bilindhajer/cloudfriend/index.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/intrinsic.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/conditions.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/rules.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/pseudo.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/build.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/validate.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/merge.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/index.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/lambda.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/service-role.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/role.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/scheduled-lambda.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/event-lambda.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue-lambda.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/stream-lambda.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/cross-account-role.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/s3-kinesis-firehose.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/kinesis-firehose-base.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-database.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-table.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-json-table.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-orc-table.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-parquet-table.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-presto-view.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-spark-view.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/hookshot.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/log-subscription-lambda.js":["9c2db6ce-3666-452b-941a-60b849c9bd69","db57c217-eac5-4213-9058-bd99581099e6"]},"externalIds":{}}
{"processes":{"55175f56-0c21-41bf-8294-c3719ef9f8d2":{"parent":"c3a79aeb-8afb-4e05-ae51-fb9ac0794e61","children":[]},"c3a79aeb-8afb-4e05-ae51-fb9ac0794e61":{"parent":null,"children":["55175f56-0c21-41bf-8294-c3719ef9f8d2"]}},"files":{"/Users/bilindhajer/cloudfriend/bin/build-template.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2"],"/Users/bilindhajer/cloudfriend/index.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/intrinsic.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/conditions.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/rules.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/pseudo.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/build.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/validate.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/merge.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/index.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/lambda.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/service-role.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/role.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/scheduled-lambda.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/event-lambda.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue-lambda.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/stream-lambda.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/cross-account-role.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/queue.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/s3-kinesis-firehose.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/kinesis-firehose-base.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-database.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-table.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-json-table.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-orc-table.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-parquet-table.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-presto-view.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/glue-spark-view.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/hookshot.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"],"/Users/bilindhajer/cloudfriend/lib/shortcuts/log-subscription-lambda.js":["55175f56-0c21-41bf-8294-c3719ef9f8d2","c3a79aeb-8afb-4e05-ae51-fb9ac0794e61"]},"externalIds":{}}

@@ -275,3 +275,4 @@ 'use strict';

'Fn::Sub': redent(`
'use strict';
const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');

@@ -278,0 +279,0 @@ const client = new LambdaClient();

{
"name": "@mapbox/cloudfriend",
"version": "7.0.1-2",
"version": "7.0.1-3",
"description": "Helper functions for assembling CloudFormation templates in JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,3 +31,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -51,3 +51,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -54,0 +54,0 @@ "DependsOn": "PassMethod",

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -50,0 +50,0 @@ "DependsOn": "PassMethod",

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -50,0 +50,0 @@ "DependsOn": "PassMethod",

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -56,3 +56,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -173,3 +173,3 @@ "DependsOn": "PassMethod",

"ZipFile": {
"Fn::Sub": "const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
"Fn::Sub": "'use strict';\n\nconst { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
}

@@ -176,0 +176,0 @@ },

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -155,3 +155,3 @@ "DependsOn": "PassMethod",

"ZipFile": {
"Fn::Sub": "const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
"Fn::Sub": "'use strict';\n\nconst { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
}

@@ -158,0 +158,0 @@ },

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -155,3 +155,3 @@ "DependsOn": "PassMethod",

"ZipFile": {
"Fn::Sub": "const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
"Fn::Sub": "'use strict';\n\nconst { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
}

@@ -158,0 +158,0 @@ },

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -155,3 +155,3 @@ "DependsOn": "PassMethod",

"ZipFile": {
"Fn::Sub": "const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
"Fn::Sub": "'use strict';\n\nconst { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
}

@@ -158,0 +158,0 @@ },

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -155,3 +155,3 @@ "DependsOn": "PassMethod",

"ZipFile": {
"Fn::Sub": "const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
"Fn::Sub": "'use strict';\n\nconst { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
}

@@ -158,0 +158,0 @@ },

@@ -27,3 +27,3 @@ {

"DeploymentId": {
"Ref": "PassDeploymentf83d4b51"
"Ref": "PassDeploymentdf0c9696"
},

@@ -47,3 +47,3 @@ "StageName": "hookshot",

},
"PassDeploymentf83d4b51": {
"PassDeploymentdf0c9696": {
"Type": "AWS::ApiGateway::Deployment",

@@ -155,3 +155,3 @@ "DependsOn": "PassMethod",

"ZipFile": {
"Fn::Sub": "const { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
"Fn::Sub": "'use strict';\n\nconst { InvokeCommand, LambdaClient } = require('@aws-sdk/client-lambda');\nconst client = new LambdaClient();\n\nmodule.exports.lambda = (event, context, callback) => {\n if (event.httpMethod === 'OPTIONS') {\n const requestHeaders = event.headers['Access-Control-Request-Headers'] || event.headers['access-control-request-headers'];\n const response = {\n statusCode: 200,\n body: '',\n headers: {\n 'Access-Control-Allow-Headers': requestHeaders,\n 'Access-Control-Allow-Methods': 'POST, OPTIONS',\n 'Access-Control-Allow-Origin': '*'\n }\n };\n return callback(null, response);\n }\n\n const command = new InvokeCommand({\n FunctionName: '${Destination}',\n Payload: JSON.stringify(event)\n });\n\n client.send(command)\n .then((response) => {\n if (!response || !response.Payload)\n return callback(new Error('Your Lambda function Destination did not provide a payload'));\n\n var payload = JSON.parse(Buffer.from(response.Payload).toString());\n payload.headers = payload.headers || {};\n payload.headers['Access-Control-Allow-Origin'] = '*';\n callback(null, payload);\n })\n .catch((err) => callback(err));\n};"
}

@@ -158,0 +158,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc