@zwa73/utils 1.0.161 → 1.0.162

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/dist/UtilClass.js CHANGED
@@ -104,7 +104,7 @@ class Stream {
104
104
  */
105
105
  each(operation) {
106
106
  const opera = async (item) => {
107
- operation(item);
107
+ await operation(item);
108
108
  return item;
109
109
  };
110
110
  return this.trans(opera);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.161",
3
+ "version": "1.0.162",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/UtilClass.ts CHANGED
@@ -109,7 +109,7 @@ export class Stream<T> implements Iterable<T>{
109
109
  */
110
110
  each(operation: StreamOperation<T, void>): Stream<T> {
111
111
  const opera = async (item: T) => {
112
- operation(item);
112
+ await operation(item);
113
113
  return item;
114
114
  };
115
115
  return this.trans(opera);;