@dotcook/lambda-api
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "@dotcook/lambda-api", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -14,2 +14,3 @@ "keywords": [ | ||
"@hapi/joi": "^17.1.1", | ||
"@middy/http-cors": "^1.0.0", | ||
"lodash": "^4.17.15", | ||
@@ -16,0 +17,0 @@ "middy": "^0.36.0" |
const middy = require('middy'); | ||
const { jsonBodyParser, httpErrorHandler } = require('middy/middlewares'); | ||
const cors = require('@middy/http-cors'); | ||
@@ -40,2 +41,3 @@ | ||
.use(httpErrorHandler()) | ||
.use(cors()) | ||
.use(apiResponse()); | ||
@@ -42,0 +44,0 @@ middlewares.forEach((middleware) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3619
81
4
+ Added@middy/http-cors@^1.0.0
+ Added@datastream/core@0.0.38(transitive)
+ Added@middy/core@5.5.1(transitive)
+ Added@middy/http-cors@1.5.2(transitive)
+ Addedabort-controller@3.0.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@6.0.3(transitive)
+ Addedcloneable-readable@3.0.0(transitive)
+ Addedevent-target-shim@5.0.1(transitive)
+ Addedevents@3.3.0(transitive)
+ Addedieee754@1.2.1(transitive)
+ Addedprocess@0.11.10(transitive)
+ Addedreadable-stream@4.5.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)