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

sa-kws-node-sdk

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sa-kws-node-sdk - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

14

lib/kwsSdk.js

@@ -28,2 +28,3 @@ var BPromise = require('bluebird');

* - logger: loger function, by default console.log *
* - language: 2 letter ISO code ("en" by default) *
*/

@@ -46,2 +47,3 @@

this.opts.allowedDomains = opts.allowedDomains || [];
this.opts.language = this.opts.language || 'en';

@@ -154,3 +156,6 @@ this.bearerToken = null;

.then(function () {
opts.headers = {'Authorization': 'Bearer ' + self.bearerToken};
opts.headers = {
'Authorization': 'Bearer ' + self.bearerToken,
'Accept-Language': self.opts.language
};
return rp[method](path, opts);

@@ -209,2 +214,7 @@ });

module.exports = KwsSdk;
KwsSdk.prototype.setLanguage = function (language) {
this.opts.language = language;
};
module.exports = KwsSdk;

2

package.json
{
"name": "sa-kws-node-sdk",
"version": "0.1.6",
"version": "0.1.7",
"description": "KWS Node App SDK",

@@ -5,0 +5,0 @@ "main": "./lib/kwsSdk.js",

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