storyblok 4.20.0-alpha.1 → 4.20.0

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/index.mjs CHANGED
@@ -12473,7 +12473,7 @@ function generateDatasourceFile(datasource, varName) {
12473
12473
  lines.push("");
12474
12474
  const resolvedVarName = varName ?? datasourceVarName(datasource.name);
12475
12475
  lines.push(`export const ${resolvedVarName} = defineDatasource({`);
12476
- const clean = stripKeys(datasource, DATASOURCE_STRIP_KEYS);
12476
+ const clean = omitEmptyArrays(stripKeys(datasource, DATASOURCE_STRIP_KEYS));
12477
12477
  if (clean.name !== void 0) {
12478
12478
  lines.push(`${INDENT}name: ${formatValue(clean.name, 1)},`);
12479
12479
  }