This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fetchFunc option to client constructor (#1097)
* Add option to client constructor * Fix lint * Define globalThis for Firefox build Without this the exported symbol `KintoHttpClient` is not reachable. This build has change that is responsible of this regression: ```diff (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : - (global = global || self, global.KintoHttpClient = factory()); + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.KintoHttpClient = factory()); }(this, (function () { 'use strict'; ``` * add types to fetchFunc option (#1098) Co-authored-by: Dylan Staley <88163+dstaley@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
110 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
*/ | ||
|
||
const global = this; | ||
const globalThis = this; | ||
|
||
var EXPORTED_SYMBOLS = ["KintoHttpClient"]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.