grid-util-js
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "grid-util-js", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "JS helpers for the Grid", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,9 +15,10 @@ var extractId = /[0-9a-f]{40}/i; | ||
apiBaseUrl, | ||
fetch = window.fetch | ||
fetch = window.fetch, | ||
fetchInit = { | ||
credentials: 'include' | ||
} | ||
} = {}) { | ||
this.apiBaseUrl = apiBaseUrl; | ||
this[fetchImpl] = fetch ? (url) => { | ||
return fetch(url, { | ||
credentials: 'same-origin' | ||
}).then(response => { | ||
return fetch(url, fetchInit).then(response => { | ||
if (response.status >= 200 && response.status < 300) { | ||
@@ -24,0 +25,0 @@ return response.json(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21949
611