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

sls-helper-plugin-janis

Package Overview
Dependencies
Maintainers
2
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sls-helper-plugin-janis - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

6

CHANGELOG.md

@@ -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

16

lib/api/api.js

@@ -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 @@ };

2

package.json
{
"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

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