sls-helper-plugin-janis
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -9,2 +9,8 @@ # Changelog | ||
## [2.3.0] - 2020-02-19 | ||
### Added | ||
- `timeout` support for all API hooks | ||
- `functionRawProps` support for all API hooks | ||
- `eventRawProps` support for all API hooks | ||
## [2.2.0] - 2020-02-18 | ||
@@ -11,0 +17,0 @@ ### Added |
@@ -29,3 +29,6 @@ 'use strict'; | ||
cors, | ||
authorizer | ||
authorizer, | ||
timeout, | ||
functionRawProps, | ||
eventRawProps | ||
}) => { | ||
@@ -70,5 +73,14 @@ | ||
}, | ||
events: [{ http: event }] | ||
events: [{ | ||
http: { | ||
...event, | ||
...eventRawProps | ||
} | ||
}], | ||
...functionRawProps | ||
}; | ||
if(timeout) | ||
functionConfiguration.timeout = timeout; | ||
const apiName = startcase(`${fileDir}-${methodName}-api`).replace(/ /g, ''); | ||
@@ -75,0 +87,0 @@ |
@@ -24,3 +24,6 @@ 'use strict'; | ||
cors, | ||
authorizer | ||
authorizer, | ||
timeout, | ||
functionRawProps, | ||
eventRawProps | ||
}) => { | ||
@@ -70,5 +73,14 @@ | ||
}, | ||
events: [{ http: event }] | ||
events: [{ | ||
http: { | ||
...event, | ||
...eventRawProps | ||
} | ||
}], | ||
...functionRawProps | ||
}; | ||
if(timeout) | ||
functionConfiguration.timeout = timeout; | ||
return { [`${entityNameAsTitle.replace(/ /g, '')}${startcase(methodName)}Api`]: functionConfiguration }; | ||
@@ -75,0 +87,0 @@ }; |
{ | ||
"name": "sls-helper-plugin-janis", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A Serverless Helper plugin to add custom helpers for JANIS Commerce", | ||
@@ -5,0 +5,0 @@ "main": "lib/plugin.js", |
@@ -85,2 +85,5 @@ # Serverless Helper Plugin JANIS | ||
| authorizer | string | The name of the authorizer | | | | ||
| timeout | number | The function timeout in seconds | | | | ||
| functionRawProps | object | Custom properties to set in the function configuration | | | | ||
| eventRawProps | object | Custom properties to set in the event configuration | | | | ||
@@ -101,2 +104,5 @@ ### apiList, apiGet, apiPost and apiPut | ||
| authorizer | string | The name of the authorizer | | | | ||
| timeout | number | The function timeout in seconds | | | | ||
| functionRawProps | object | Custom properties to set in the function configuration | | | | ||
| eventRawProps | object | Custom properties to set in the event configuration | | | | ||
@@ -103,0 +109,0 @@ ### eventListener |
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
34923
811
191