@orioro/util 0.15.0 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1176,7 +1176,7 @@ function batchFn(itemFn) {
|
|
|
1176
1176
|
itemFn = timeout ? withTimeout(itemFn, timeout) : itemFn;
|
|
1177
1177
|
return function batchExec(items) {
|
|
1178
1178
|
var _this = this;
|
|
1179
|
-
var batches =
|
|
1179
|
+
var batches = lodashEs.chunk(items, batchSize);
|
|
1180
1180
|
var promise = new PromiseLikeEventEmitter();
|
|
1181
1181
|
// const events = new EventEmitter<EventTypes>()
|
|
1182
1182
|
var progressCount = 0;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { keyBy, get, set } from 'lodash-es';
|
|
1
|
+
import { keyBy, get, set, chunk } from 'lodash-es';
|
|
2
2
|
import EventEmitter from 'eventemitter3';
|
|
3
3
|
import copy from 'fast-copy';
|
|
4
4
|
import traverse from 'traverse';
|
|
@@ -1174,7 +1174,7 @@ function batchFn(itemFn) {
|
|
|
1174
1174
|
itemFn = timeout ? withTimeout(itemFn, timeout) : itemFn;
|
|
1175
1175
|
return function batchExec(items) {
|
|
1176
1176
|
var _this = this;
|
|
1177
|
-
var batches =
|
|
1177
|
+
var batches = chunk(items, batchSize);
|
|
1178
1178
|
var promise = new PromiseLikeEventEmitter();
|
|
1179
1179
|
// const events = new EventEmitter<EventTypes>()
|
|
1180
1180
|
var progressCount = 0;
|