From fcfd40e137788fffdaadc9639507817c03aade75 Mon Sep 17 00:00:00 2001 From: Daniele Dellafiore <66707+ildella@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:28:08 +0000 Subject: [PATCH] fix: was crashing with empty items, which is an ok case to support --- fusto/exstream-generators.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fusto/exstream-generators.js b/fusto/exstream-generators.js index 131756e..aa100fd 100644 --- a/fusto/exstream-generators.js +++ b/fusto/exstream-generators.js @@ -3,7 +3,7 @@ const __ = require('exstream.js') const arrayMapping = ({ // zeroBased = true, prefix = '', - items, + items = [], }) => (push, next) => { items.map((item, index) => { // console.log({prefix, item, index}) diff --git a/package.json b/package.json index 9e815fc..e39bf5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moar-js", - "version": "1.12.2", + "version": "1.12.3", "description": "Simple JavaScript files I use across projects", "author": { "name": "Daniele Dellafiore"