@antora/content-aggregator
Advanced tools
Comparing version 3.0.0-alpha.2 to 3.0.0-alpha.3
@@ -530,13 +530,15 @@ 'use strict' | ||
if (data.name == null) throw new Error(`${COMPONENT_DESC_FILENAME} is missing a name`) | ||
const name = String(data.name) | ||
const name = data.name = String(data.name) | ||
if (name === '.' || name === '..' || ~name.indexOf('/')) { | ||
throw new Error(`name in ${COMPONENT_DESC_FILENAME} cannot have path segments: ${name}`) | ||
} | ||
if (data.version == null) throw new Error(`${COMPONENT_DESC_FILENAME} is missing a version`) | ||
const version = String(data.version) | ||
if (version === '.' || version === '..' || ~version.indexOf('/')) { | ||
throw new Error(`version in ${COMPONENT_DESC_FILENAME} cannot have path segments: ${version}`) | ||
if (data.version == null) { | ||
if (!('version' in data)) throw new Error(`${COMPONENT_DESC_FILENAME} is missing a version`) | ||
data.version = '' | ||
} else { | ||
const version = data.version = String(data.version) | ||
if (version === '.' || version === '..' || ~version.indexOf('/')) { | ||
throw new Error(`version in ${COMPONENT_DESC_FILENAME} cannot have path segments: ${version}`) | ||
} | ||
} | ||
data.name = name | ||
data.version = version | ||
return camelCaseKeys(data, { deep: true, stopPaths: ['asciidoc'] }) | ||
@@ -543,0 +545,0 @@ } |
{ | ||
"name": "@antora/content-aggregator", | ||
"version": "3.0.0-alpha.2", | ||
"version": "3.0.0-alpha.3", | ||
"description": "Fetches and aggregates content from distributed sources for use in an Antora documentation pipeline.", | ||
@@ -25,3 +25,3 @@ "license": "MPL-2.0", | ||
"isomorphic-git": "0.78.5", | ||
"js-yaml": "~4.0", | ||
"js-yaml": "~4.1", | ||
"matcher": "~4.0", | ||
@@ -50,3 +50,3 @@ "multi-progress": "~4.0", | ||
], | ||
"gitHead": "997231474334311f3e5ff55d68534f5ae6e5d7ee" | ||
"gitHead": "2f02cf0d42fb5db4607ea5e600ca8a4ab45d5a5f" | ||
} |
64193
1119
+ Addedcall-bind-apply-helpers@1.0.2(transitive)
+ Addedjs-yaml@4.1.0(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedjs-yaml@4.0.0(transitive)
Updatedjs-yaml@~4.1