batch-perform-promise
Advanced tools
Comparing version 4.0.1-beta.5 to 4.0.1-beta.6
@@ -8,4 +8,4 @@ "use strict"; | ||
exports.default = void 0; | ||
var _lodash = require("lodash"); | ||
var _semaphore = _interopRequireDefault(require("./semaphore")); | ||
var _clone = _interopRequireDefault(require("./clone.js")); | ||
/** | ||
@@ -45,3 +45,3 @@ * 批量执行Promise的方法 | ||
}); | ||
batchPromise.getTaskStateList = () => (0, _lodash.cloneDeep)(taskStateList); | ||
batchPromise.getTaskStateList = () => (0, _clone.default)(taskStateList); | ||
return batchPromise; | ||
@@ -48,0 +48,0 @@ } |
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime"; | ||
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator"; | ||
import { cloneDeep } from 'lodash'; | ||
import Semaphore from "./semaphore"; | ||
import clone from "./clone.js"; | ||
/** | ||
@@ -83,3 +83,3 @@ * 批量执行Promise的方法 | ||
batchPromise.getTaskStateList = function () { | ||
return cloneDeep(taskStateList); | ||
return clone(taskStateList); | ||
}; | ||
@@ -86,0 +86,0 @@ return batchPromise; |
{ | ||
"name": "batch-perform-promise", | ||
"version": "4.0.1-beta.5", | ||
"version": "4.0.1-beta.6", | ||
"description": "batch perform promise", | ||
@@ -39,3 +39,2 @@ "main": "dist/cjs/index.js", | ||
"@types/jest": "^29", | ||
"@types/lodash": "^4.14.195", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
@@ -50,5 +49,4 @@ "cross-env": "^7", | ||
"dependencies": { | ||
"@babel/runtime": "^7.22.5", | ||
"lodash": "^4.17.21" | ||
"@babel/runtime": "^7.22.5" | ||
} | ||
} |
import { cloneDeep } from 'lodash'; | ||
import Semaphore from "./semaphore"; | ||
import clone from './clone.js'; | ||
@@ -52,3 +53,3 @@ export type TaskState<Task, TaskRes = void> = { | ||
batchPromise.getTaskStateList = () => cloneDeep(taskStateList); | ||
batchPromise.getTaskStateList = () => clone(taskStateList); | ||
@@ -55,0 +56,0 @@ return batchPromise; |
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
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
1
8
19
1326
87076
- Removedlodash@^4.17.21
- Removedlodash@4.17.21(transitive)