@umijs/use-request
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -54,3 +54,3 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
promiseService = function promiseService() { | ||
return finalRequestMethod(url, rest); | ||
return requestMethod ? requestMethod(service) : request(url, rest); | ||
}; | ||
@@ -57,0 +57,0 @@ } else { |
@@ -86,3 +86,3 @@ "use strict"; | ||
promiseService = function promiseService() { | ||
return finalRequestMethod(url, rest); | ||
return requestMethod ? requestMethod(service) : (0, _umiRequest.default)(url, rest); | ||
}; | ||
@@ -89,0 +89,0 @@ } else { |
{ | ||
"name": "@umijs/use-request", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "React Hooks for fetching, caching and updating asynchronous data", | ||
@@ -38,3 +38,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@umijs/hooks": "^1.7.1-beta.1", | ||
"@umijs/hooks": "^1.7.1", | ||
"axios": "^0.19.2" | ||
@@ -41,0 +41,0 @@ }, |
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
123769