@googlemaps/google-maps-services-js
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -1,2 +0,2 @@ | ||
## [2.0.5](https://github.com/googlemaps/google-maps-services-js/compare/v2.0.4...v2.0.5) (2020-02-28) | ||
## [2.0.6](https://github.com/googlemaps/google-maps-services-js/compare/v2.0.5...v2.0.6) (2020-02-28) | ||
@@ -6,3 +6,3 @@ | ||
* replace fork of query-string ([#341](https://github.com/googlemaps/google-maps-services-js/issues/341)) ([efe21d0](https://github.com/googlemaps/google-maps-services-js/commit/efe21d0389c028b955e59ff9cb0c61f2399c063d)), closes [#340](https://github.com/googlemaps/google-maps-services-js/issues/340) | ||
* deepmerge config ([#343](https://github.com/googlemaps/google-maps-services-js/issues/343)) ([f7ee2c9](https://github.com/googlemaps/google-maps-services-js/commit/f7ee2c962ed95b10fb712d669da7097e3d1d9c44)) | ||
@@ -9,0 +9,0 @@ ## [2.0.2](https://github.com/googlemaps/google-maps-services-js/compare/v2.0.1...v2.0.2) (2020-02-08) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const axios_1 = require("axios"); | ||
const merge = require("deepmerge"); | ||
const index_1 = require("./index"); | ||
@@ -34,11 +35,6 @@ const agentkeepalive_1 = require("agentkeepalive"); | ||
constructor({ config, experienceId }) { | ||
if (config && Object.keys(config).length) { | ||
// TODO: use deep merge so that we maintain the existing | ||
// default config settings not specificed by the user | ||
config.headers = Object.assign(defaultConfig.headers, config.headers || {}); | ||
config = Object.assign(defaultConfig, config); | ||
this.axiosInstance = axios_1.default.create(config); | ||
if (config) { | ||
this.axiosInstance = axios_1.default.create(merge(defaultConfig, config)); | ||
} | ||
else { | ||
// if no config is passed, just reuse the default instance | ||
this.axiosInstance = exports.defaultAxiosInstance; | ||
@@ -45,0 +41,0 @@ } |
{ | ||
"name": "@googlemaps/google-maps-services-js", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Node.js client library for Google Maps API Web Services", | ||
@@ -45,3 +45,4 @@ "keywords": [ | ||
"axios": "^0.19.0", | ||
"query-string": "^6.11.0" | ||
"query-string": "^6.11.0", | ||
"deepmerge": "^4.2.2" | ||
}, | ||
@@ -48,0 +49,0 @@ "devDependencies": { |
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
223018
4
3286
+ Addeddeepmerge@^4.2.2
+ Addeddeepmerge@4.3.1(transitive)