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

claudia-api-builder

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

claudia-api-builder - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"name": "claudia-api-builder",
"version": "3.0.0",
"version": "3.0.1",
"description": "Simplify AWS ApiGateway handling",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -172,3 +172,3 @@ const util = require('util'),

getCorsHeaders = function (request, methods) {
if (methods.indexOf('ANY') >= 0) {
if (methods.indexOf('ANY') >= 0 || methods.length === 0) {
methods = supportedMethods;

@@ -185,11 +185,11 @@ }

})
.then(corsOrigin => {
return {
'Access-Control-Allow-Origin': corsOrigin,
'Access-Control-Allow-Headers': corsOrigin && (customCorsHeaders || 'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'),
'Access-Control-Allow-Methods': corsOrigin && methods.sort().join(',') + ',OPTIONS',
'Access-Control-Allow-Credentials': corsOrigin && 'true',
'Access-Control-Max-Age': customCorsMaxAge || 0
};
});
.then(corsOrigin => {
return {
'Access-Control-Allow-Origin': corsOrigin,
'Access-Control-Allow-Headers': corsOrigin && (customCorsHeaders || 'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'),
'Access-Control-Allow-Methods': corsOrigin && methods.sort().join(',') + ',OPTIONS',
'Access-Control-Allow-Credentials': corsOrigin && 'true',
'Access-Control-Max-Age': customCorsMaxAge || 0
};
});
},

@@ -196,0 +196,0 @@ routeEvent = function (routingInfo, event, context) {

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