A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/robsontenorio/vue-api-query/commit/dc617da9b39ef2a8c6a094f470370ba4117070f8 below:

merge request config recursively · robsontenorio/vue-api-query@dc617da · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-1

lines changed Original file line number Diff line number Diff line change

@@ -1,5 +1,6 @@

1 1

import getProp from 'dotprop'

2 2

import setProp from 'dset'

3 +

import merge from 'merge'

3 4

import { serialize } from 'object-to-formdata'

4 5 5 6

import Builder from './Builder'

@@ -305,7 +306,8 @@ export default class Model extends StaticModel {

305 306

}

306 307 307 308

_reqConfig(config, options = { forceMethod: false }) {

308 -

const _config = { ...config, ...this._config }

309 +

// Merge cloned config to prevent changing the original config objects

310 +

const _config = merge.recursive({ ...config }, { ...this._config })

309 311 310 312

// Prevent default request method from being overridden

311 313

if (options.forceMethod) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4