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

batch-perform-promise

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

batch-perform-promise - npm Package Compare versions

Comparing version 4.0.1-beta.5 to 4.0.1-beta.6

dist/cjs/clone.js

4

dist/cjs/index.js

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

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