Skip to content

Commit

Permalink
Merge pull request #97 from pablorodriguezpiksel/CUSTSUCCES-3449-merg…
Browse files Browse the repository at this point in the history
…e-options

CUSTSUCCES-3449 code review, change require with import
  • Loading branch information
rubencarrenopiksel committed Oct 6, 2021
2 parents 24d5990 + 9af26f8 commit a45d9b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/transport.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import urlEncoder from 'encodeurl';

const merge = require('deepmerge');
import deepmerge from 'deepmerge';

/**
* Handles fetching.
Expand Down Expand Up @@ -71,7 +70,7 @@ class Transport {
fetchWithDefaults(url, options = {}) {
return fetch(
this.encodeUrl(url),
merge(this.defaults, options)
deepmerge(this.defaults, options)
).then((response) => {
if (!response.ok) {
return response.json().then(
Expand Down

0 comments on commit a45d9b6

Please sign in to comment.