Comparing version 3.7.9 to 3.7.10
import { useRef } from 'react'; | ||
import { isPlainObject } from 'lodash-es'; | ||
import isPlainObject from 'lodash/isPlainObject'; | ||
import useCreation from '../useCreation'; | ||
@@ -4,0 +4,0 @@ import useUpdate from '../useUpdate'; |
import { __read, __spreadArray } from "tslib"; | ||
import { debounce } from 'lodash-es'; | ||
import debounce from 'lodash/debounce'; | ||
import { useEffect, useMemo, useRef } from 'react'; | ||
@@ -4,0 +4,0 @@ var useDebouncePlugin = function (fetchInstance, _a) { |
import { __read, __spreadArray } from "tslib"; | ||
import { throttle } from 'lodash-es'; | ||
import throttle from 'lodash/throttle'; | ||
import { useEffect, useRef } from 'react'; | ||
@@ -4,0 +4,0 @@ var useThrottlePlugin = function (fetchInstance, _a) { |
import { __read, __spreadArray } from "tslib"; | ||
import { throttle } from 'lodash-es'; | ||
import throttle from 'lodash/throttle'; | ||
import { useMemo } from 'react'; | ||
@@ -4,0 +4,0 @@ import useLatest from '../useLatest'; |
@@ -1,2 +0,2 @@ | ||
import { isEqual } from 'lodash-es'; | ||
import isEqual from 'lodash/isEqual'; | ||
export var depsEqual = function (aDeps, bDeps) { | ||
@@ -3,0 +3,0 @@ if (aDeps === void 0) { |
@@ -1,2 +0,2 @@ | ||
import { debounce } from 'lodash-es'; | ||
import debounce from 'lodash/debounce'; | ||
export { debounce }; |
@@ -1,2 +0,2 @@ | ||
import { debounce } from 'lodash-es'; | ||
import debounce from 'lodash/debounce'; | ||
function isNodeOrWeb() { | ||
@@ -3,0 +3,0 @@ var freeGlobal = (typeof global === 'undefined' ? 'undefined' : typeof global) == 'object' && global && global.Object === Object && global; |
@@ -9,3 +9,3 @@ "use strict"; | ||
var _react = require("react"); | ||
var _lodashEs = require("lodash-es"); | ||
var _isPlainObject = _interopRequireDefault(require("lodash/isPlainObject")); | ||
var _useCreation = _interopRequireDefault(require("../useCreation")); | ||
@@ -38,3 +38,3 @@ var _useUpdate = _interopRequireDefault(require("../useUpdate")); | ||
// otherwise it will cause: https://github.com/alibaba/hooks/issues/2080 | ||
return (0, _lodashEs.isPlainObject)(res) || Array.isArray(res) ? observer(res, cb) : res; | ||
return (0, _isPlainObject["default"])(res) || Array.isArray(res) ? observer(res, cb) : res; | ||
}, | ||
@@ -41,0 +41,0 @@ set: function set(target, key, val) { |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -8,3 +9,3 @@ value: true | ||
var _tslib = require("tslib"); | ||
var _lodashEs = require("lodash-es"); | ||
var _debounce = _interopRequireDefault(require("lodash/debounce")); | ||
var _react = require("react"); | ||
@@ -33,3 +34,3 @@ var useDebouncePlugin = function useDebouncePlugin(fetchInstance, _a) { | ||
var _originRunAsync_1 = fetchInstance.runAsync.bind(fetchInstance); | ||
debouncedRef.current = (0, _lodashEs.debounce)(function (callback) { | ||
debouncedRef.current = (0, _debounce["default"])(function (callback) { | ||
callback(); | ||
@@ -36,0 +37,0 @@ }, debounceWait, options); |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -8,3 +9,3 @@ value: true | ||
var _tslib = require("tslib"); | ||
var _lodashEs = require("lodash-es"); | ||
var _throttle = _interopRequireDefault(require("lodash/throttle")); | ||
var _react = require("react"); | ||
@@ -26,3 +27,3 @@ var useThrottlePlugin = function useThrottlePlugin(fetchInstance, _a) { | ||
var _originRunAsync_1 = fetchInstance.runAsync.bind(fetchInstance); | ||
throttledRef.current = (0, _lodashEs.throttle)(function (callback) { | ||
throttledRef.current = (0, _throttle["default"])(function (callback) { | ||
callback(); | ||
@@ -29,0 +30,0 @@ }, throttleWait, options); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var _tslib = require("tslib"); | ||
var _lodashEs = require("lodash-es"); | ||
var _throttle = _interopRequireDefault(require("lodash/throttle")); | ||
var _react = require("react"); | ||
@@ -27,3 +27,3 @@ var _useLatest = _interopRequireDefault(require("../useLatest")); | ||
var throttled = (0, _react.useMemo)(function () { | ||
return (0, _lodashEs.throttle)(function () { | ||
return (0, _throttle["default"])(function () { | ||
var args = []; | ||
@@ -30,0 +30,0 @@ for (var _i = 0; _i < arguments.length; _i++) { |
"use strict"; | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -7,3 +8,3 @@ value: true | ||
exports.depsEqual = void 0; | ||
var _lodashEs = require("lodash-es"); | ||
var _isEqual = _interopRequireDefault(require("lodash/isEqual")); | ||
var depsEqual = function depsEqual(aDeps, bDeps) { | ||
@@ -16,4 +17,4 @@ if (aDeps === void 0) { | ||
} | ||
return (0, _lodashEs.isEqual)(aDeps, bDeps); | ||
return (0, _isEqual["default"])(aDeps, bDeps); | ||
}; | ||
exports.depsEqual = depsEqual; |
@@ -1,2 +0,2 @@ | ||
import { debounce } from 'lodash-es'; | ||
import debounce from 'lodash/debounce'; | ||
export { debounce }; |
@@ -10,7 +10,7 @@ "use strict"; | ||
get: function get() { | ||
return _lodashEs.debounce; | ||
return _debounce["default"]; | ||
} | ||
}); | ||
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); | ||
var _lodashEs = require("lodash-es"); | ||
var _debounce = _interopRequireDefault(require("lodash/debounce")); | ||
function isNodeOrWeb() { | ||
@@ -17,0 +17,0 @@ var freeGlobal = (typeof global === 'undefined' ? 'undefined' : typeof global === "undefined" ? "undefined" : (0, _typeof2["default"])(global)) == 'object' && global && global.Object === Object && global; |
{ | ||
"name": "ahooks", | ||
"version": "3.7.9", | ||
"version": "3.7.10", | ||
"description": "react hooks library", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"js-cookie": "^2.x.x", | ||
"lodash-es": "^4.17.21", | ||
"lodash": "^4.17.21", | ||
"resize-observer-polyfill": "^1.5.1", | ||
@@ -53,3 +53,3 @@ "screenfull": "^5.0.0", | ||
"@types/js-cookie": "^2.x.x", | ||
"@types/lodash-es": "^4.17.7", | ||
"@types/lodash": "^4.14.202", | ||
"antd": "^5.2.1", | ||
@@ -56,0 +56,0 @@ "jest-websocket-mock": "^2.1.0", |
Sorry, the diff of this file is too big to display
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
501
589517
1
80
13631
4
+ Addedlodash@^4.17.21
+ Addedlodash@4.17.21(transitive)
- Removedlodash-es@^4.17.21
- Removedlodash-es@4.17.21(transitive)