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

aws-api-gateway-client

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-api-gateway-client - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

20

dist/apigClient.js

@@ -46,2 +46,3 @@ 'use strict';

invokeUrl: '',
service: '',
defaultContentType: 'application/json',

@@ -51,23 +52,26 @@ defaultAcceptType: 'application/json'

}
if (config.accessKey === undefined) {
if (typeof config.accessKey === 'undefined') {
config.accessKey = '';
}
if (config.secretKey === undefined) {
if (typeof config.secretKey === 'undefined') {
config.secretKey = '';
}
if (config.apiKey === undefined) {
if (typeof config.apiKey === 'undefined') {
config.apiKey = '';
}
if (config.sessionToken === undefined) {
if (typeof config.sessionToken === 'undefined') {
config.sessionToken = '';
}
if (config.region === undefined) {
if (typeof config.region === 'undefined') {
config.region = 'us-east-1';
}
if (typeof config.service === 'undefined') {
config.service = 'execute-api';
}
// If defaultContentType is not defined then default to application/json
if (config.defaultContentType === undefined) {
if (typeof config.defaultContentType === 'undefined') {
config.defaultContentType = 'application/json';
}
// If defaultAcceptType is not defined then default to application/json
if (config.defaultAcceptType === undefined) {
if (typeof config.defaultAcceptType === 'undefined') {
config.defaultAcceptType = 'application/json';

@@ -85,3 +89,3 @@ }

sessionToken: config.sessionToken,
serviceName: 'execute-api',
serviceName: service,
region: config.region,

@@ -88,0 +92,0 @@ endpoint: endpoint,

3

package.json
{
"name": "aws-api-gateway-client",
"version": "0.2.3",
"version": "0.2.4",
"description": "Node.js moduel for AWS API Gateway client",

@@ -65,2 +65,3 @@ "repository": {

"require-jsdoc": "off",
"no-undef": "off",
"import/extensions": "off",

@@ -67,0 +68,0 @@ "import/no-extraneous-dependencies": "off"

@@ -21,3 +21,3 @@ [![dependencies Status](https://david-dm.org/kndt84/aws-api-gateway-client/status.svg)](https://david-dm.org/kndt84/aws-api-gateway-client)

```
var apigClientFactory = require('aws-api-gateway-client')
var apigClientFactory = require('aws-api-gateway-client').default;
```

@@ -24,0 +24,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