@culturehq/client
Advanced tools
Comparing version 6.3.1 to 6.3.2
@@ -9,2 +9,6 @@ # Changelog | ||
## [6.3.2] - 2018-09-23 | ||
### Changed | ||
- Handled the case that the nested iframe does not have `fetch` defined within the `skipPreflightChecks` function. | ||
## [6.3.1] - 2018-09-17 | ||
@@ -11,0 +15,0 @@ ### Changed |
@@ -52,3 +52,9 @@ "use strict"; | ||
/* eslint func-names: off */ | ||
fetcher.fetch = this.contentWindow.fetch.bind(this.contentWindow); | ||
var fetch = this.contentWindow.fetch; // It's possible that the iframe will not have `fetch` defined if it's an | ||
// older browser (which would mean we had polyfilled in the main window but | ||
// not the iframe). | ||
if (fetch) { | ||
fetcher.fetch = fetch.bind(this.contentWindow); | ||
} | ||
}; | ||
@@ -55,0 +61,0 @@ |
@@ -20,3 +20,3 @@ "use strict"; | ||
var headers = { | ||
"X-Client-Version": "6.3.1", | ||
"X-Client-Version": "6.3.2", | ||
"Content-Type": "application/json" | ||
@@ -23,0 +23,0 @@ }; |
{ | ||
"name": "@culturehq/client", | ||
"version": "6.3.1", | ||
"version": "6.3.2", | ||
"description": "A JavaScript client that wraps the CultureHQ API", | ||
@@ -26,6 +26,6 @@ "main": "dist/client.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/cli": "^7.1.0", | ||
"@babel/core": "^7.1.0", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"babel-core": "^7.0.0-0", | ||
@@ -32,0 +32,0 @@ "babel-eslint": "^9.0.0", |
107917
1241
3