aws-api-gateway-client
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -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, |
{ | ||
"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 @@ |
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
27299
513