Skip to content

Commit

Permalink
🐛 Fix baseUrl not mixing in options
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuxu authored and elbywan committed Oct 3, 2017
1 parent d903c48 commit 5c90df4
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/bundle/wretch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/bundle/wretch.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wretcher.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wretcher.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/wretcher.ts
Expand Up @@ -55,7 +55,7 @@ export class Wretcher {
*/
baseUrl(baseurl: string) {
return (url = "", opts: RequestInit = {}) =>
this.selfFactory({ url: baseurl + url, options: opts})
this.selfFactory({ url: baseurl + url, options: mix(this._options, opts) })
}

/**
Expand Down

0 comments on commit 5c90df4

Please sign in to comment.