Socket
Socket
Sign inDemoInstall

@ambassify/ambassify-client

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ambassify/ambassify-client - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

5

lib/index.js

@@ -41,3 +41,4 @@ 'use strict';

var tokenType = options.tokenType,
var _options$tokenType = options.tokenType,
tokenType = _options$tokenType === undefined ? 'Bearer' : _options$tokenType,
headers = options.headers,

@@ -61,3 +62,3 @@ fetchOptions = options.fetchOptions;

headers = (0, _extends3.default)({
authorization: (tokenType || 'Bearer') + ' ' + options.token
authorization: tokenType + ' ' + options.token
}, headers);

@@ -64,0 +65,0 @@

4

package.json
{
"name": "@ambassify/ambassify-client",
"version": "2.0.1",
"version": "2.0.2",
"description": "Base API client library for all Ambassify clients",

@@ -45,3 +45,3 @@ "engines": {

"homepage": "https://github.com/ambassify/api-clients#readme",
"gitHead": "51c8d3a4d1e600b650e214ae0cc8efc9478e7c9b"
"gitHead": "ded10788e75d3a295643e09e767a8bb12d24c70a"
}

@@ -12,3 +12,3 @@ const FetchApi = require('@ambassify/fetch-api');

let { tokenType, headers, fetchOptions } = options;
let { tokenType = 'Bearer', headers, fetchOptions } = options;

@@ -30,3 +30,3 @@ /**

headers = {
authorization: `${tokenType || 'Bearer'} ${options.token}`,
authorization: `${tokenType} ${options.token}`,
...headers

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