Comparing version 4.1.1 to 4.1.2
@@ -61,3 +61,3 @@ const https = require('https'); | ||
pathname = pathname + '/'; | ||
if (params.__path) { | ||
if (params.hasOwnProperty('__path')) { | ||
pathname = pathname + params.__path; | ||
@@ -72,2 +72,9 @@ if (!pathname.endsWith('/')) { | ||
if (params.hasOwnProperty('__providers')) { | ||
headers['X-Authorization-Providers'] = typeof params.__providers === 'string' | ||
? params.__providers | ||
: JSON.stringify(params.__providers); | ||
delete params.__providers; | ||
} | ||
headers['Content-Type'] = 'application/json'; | ||
@@ -74,0 +81,0 @@ headers['X-Faaslang'] = 'true'; |
{ | ||
"name": "lib", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "StdLib: Standard Library for Microservices Node.js Bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib.js", |
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
16278
308