@dhis2/app-service-data
Advanced tools
Comparing version 2.2.2 to 2.3.0
@@ -338,3 +338,3 @@ /* eslint-disable */ | ||
function fetchData(url, options = {}) { | ||
return fetch(url, _objectSpread2({}, options, { | ||
return fetch(url, _objectSpread2(_objectSpread2({}, options), {}, { | ||
credentials: 'include', | ||
@@ -571,3 +571,3 @@ headers: _objectSpread2({ | ||
abortControllersRef.current.push(controller); | ||
variables.current = _objectSpread2({}, variables.current, {}, newVariables); | ||
variables.current = _objectSpread2(_objectSpread2({}, variables.current), newVariables); | ||
const options = { | ||
@@ -675,3 +675,3 @@ variables: variables.current, | ||
const DataProvider = props => { | ||
const config = _objectSpread2({}, appServiceConfig.useConfig(), {}, props); | ||
const config = _objectSpread2(_objectSpread2({}, appServiceConfig.useConfig()), props); | ||
@@ -678,0 +678,0 @@ const link = new RestAPILink(config); |
@@ -331,3 +331,3 @@ /* eslint-disable */ | ||
function fetchData(url, options = {}) { | ||
return fetch(url, _objectSpread2({}, options, { | ||
return fetch(url, _objectSpread2(_objectSpread2({}, options), {}, { | ||
credentials: 'include', | ||
@@ -564,3 +564,3 @@ headers: _objectSpread2({ | ||
abortControllersRef.current.push(controller); | ||
variables.current = _objectSpread2({}, variables.current, {}, newVariables); | ||
variables.current = _objectSpread2(_objectSpread2({}, variables.current), newVariables); | ||
const options = { | ||
@@ -668,3 +668,3 @@ variables: variables.current, | ||
const DataProvider = props => { | ||
const config = _objectSpread2({}, useConfig(), {}, props); | ||
const config = _objectSpread2(_objectSpread2({}, useConfig()), props); | ||
@@ -671,0 +671,0 @@ const link = new RestAPILink(config); |
{ | ||
"name": "@dhis2/app-service-data", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"main": "build/cjs/lib.js", | ||
@@ -21,3 +21,3 @@ "module": "build/es/lib.js", | ||
"peerDependencies": { | ||
"@dhis2/app-service-config": "2.2.2", | ||
"@dhis2/app-service-config": "2.3.0", | ||
"prop-types": "^15.7.2", | ||
@@ -24,0 +24,0 @@ "react": "^16.8", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
248953