imagetools-core
Advanced tools
Comparing version 4.0.4 to 4.0.5
@@ -500,3 +500,3 @@ import { createHash } from 'node:crypto'; | ||
.filter(([k]) => !(k in outputFormats)) | ||
.map(([key, values]) => values.map((v) => [key, v])); | ||
.map(([key, values]) => values.map((v) => [[key, v]])); | ||
// do a cartesian product on all entries to get all combinations we need to produce | ||
@@ -508,3 +508,3 @@ const combinations = singleArgumentEntries | ||
// and return as an array of objects | ||
const out = combinations.map((options) => Object.fromEntries([[...options, ...metadataAddons]])); | ||
const out = combinations.map((options) => Object.fromEntries([...options, ...metadataAddons])); | ||
return out.length ? out : [Object.fromEntries(metadataAddons)]; | ||
@@ -511,0 +511,0 @@ } |
{ | ||
"name": "imagetools-core", | ||
"version": "4.0.4", | ||
"version": "4.0.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
76825