@financial-times/cmdb.js
Advanced tools
Comparing version 3.4.3 to 3.5.0
{ | ||
"name": "@financial-times/cmdb.js", | ||
"description": "A javascript library for interacting with the CMDB v3", | ||
"version": "3.4.3", | ||
"version": "3.5.0", | ||
"main": "dist/cmdb.js", | ||
@@ -6,0 +6,0 @@ "browser": "dist/cmdb.mjs", |
@@ -15,3 +15,4 @@ import querystring from 'querystring'; | ||
* @param {string} config.apikey - The apikey to send to CMDB API | ||
* @param {Object} [config.logger] - A logger objet with the Winston API | ||
* @param {Object} [config.fetch=isomorphic-unfetch] - A http client with the fetch API | ||
* @param {Object} [config.logger] - A logger object with the Winston API | ||
* @param {boolean} [config.verbose=false] - Whether to enable logging | ||
@@ -21,2 +22,3 @@ */ | ||
api = 'https://cmdb.in.ft.com/v3/', | ||
fetch: client = fetch, | ||
verbose = false, | ||
@@ -31,2 +33,3 @@ logger, | ||
this.apikey = apikey; | ||
this.fetch = client; | ||
this.verbose = verbose; | ||
@@ -168,3 +171,3 @@ this._logger = this.verbose ? logger || console : noOpLogger(); | ||
return fetch( | ||
return this.fetch( | ||
`${this.api}${path}`, | ||
@@ -171,0 +174,0 @@ this._getFetchCredentials(locals, { method, body, timeout }) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
865910
8561