apax-react-core
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -7,2 +7,8 @@ ## Changelog | ||
## [1.1.2] - 2021-05-21 | ||
### Changed | ||
- Updated all axios.then() to use lodash _.get(). | ||
## [1.1.1] - 2021-05-03 | ||
@@ -9,0 +15,0 @@ |
@@ -373,3 +373,3 @@ import Cookies from 'universal-cookie'; | ||
}).then(function (res) { | ||
return res.data; | ||
return get(res, 'data', res); | ||
}); | ||
@@ -423,3 +423,3 @@ | ||
}).then(function (res) { | ||
return res.data; | ||
return get(res, 'data', res); | ||
}); | ||
@@ -461,3 +461,3 @@ | ||
}).then(function (res) { | ||
return res.data; | ||
return get(res, 'data', res); | ||
}); | ||
@@ -499,3 +499,3 @@ | ||
}).then(function (res) { | ||
return res.data; | ||
return get(res, 'data', res); | ||
}); | ||
@@ -534,3 +534,3 @@ | ||
return axios.delete(url, headers).then(function (res) { | ||
return res.data; | ||
return get(res, 'data', res); | ||
}); | ||
@@ -537,0 +537,0 @@ |
@@ -379,3 +379,3 @@ 'use strict'; | ||
}).then(function (res) { | ||
return res.data; | ||
return _.get(res, 'data', res); | ||
}); | ||
@@ -429,3 +429,3 @@ | ||
}).then(function (res) { | ||
return res.data; | ||
return _.get(res, 'data', res); | ||
}); | ||
@@ -467,3 +467,3 @@ | ||
}).then(function (res) { | ||
return res.data; | ||
return _.get(res, 'data', res); | ||
}); | ||
@@ -505,3 +505,3 @@ | ||
}).then(function (res) { | ||
return res.data; | ||
return _.get(res, 'data', res); | ||
}); | ||
@@ -540,3 +540,3 @@ | ||
return axios.delete(url, headers).then(function (res) { | ||
return res.data; | ||
return _.get(res, 'data', res); | ||
}); | ||
@@ -543,0 +543,0 @@ |
{ | ||
"name": "apax-react-core", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Contains core react functionality developed by Apax Software LLC", | ||
@@ -5,0 +5,0 @@ "author": "apaxsoftware", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
106909
0