Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@umijs/use-request

Package Overview
Dependencies
Maintainers
13
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@umijs/use-request - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

es/index.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc