@adobe/helix-shared-config
Advanced tools
Comparing version 1.1.15 to 1.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.2.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config@1.1.15...@adobe/helix-shared-config@1.2.0) (2021-08-18) | ||
### Features | ||
* **config:** add ignore config, parser ([#542](https://github.com/adobe/helix-shared/issues/542)) ([c95ca88](https://github.com/adobe/helix-shared/commit/c95ca88991aa0a8369520459dfe5f599fe25c7f6)) | ||
## [1.1.15](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-config@1.1.14...@adobe/helix-shared-config@1.1.15) (2021-08-18) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@adobe/helix-shared-config", | ||
"version": "1.1.15", | ||
"version": "1.2.0", | ||
"description": "Shared modules of the Helix Project - config", | ||
@@ -33,2 +33,3 @@ "main": "src/index.js", | ||
"fs-extra": "10.0.0", | ||
"ignore": "5.1.8", | ||
"lru-cache": "6.0.0", | ||
@@ -48,3 +49,3 @@ "object-hash": "2.2.0", | ||
}, | ||
"gitHead": "b501bf46acad8ea19b5d8f41b1195fac2fdd8866" | ||
"gitHead": "03b13c55ff249d43ee2f7c093d7d511c48a9ea06" | ||
} |
@@ -38,2 +38,3 @@ /* | ||
this._document = null; | ||
this._parser = null; | ||
this._logger = console; | ||
@@ -180,10 +181,15 @@ this._version = ''; | ||
} | ||
if (this._source.indexOf('\t') >= 0) { | ||
throw Error('Tabs not allowed in YAML'); | ||
if (this._parser) { | ||
this._document = this._parser.parse(this._source); | ||
} else { | ||
if (this._source.indexOf('\t') >= 0) { | ||
throw Error('Tabs not allowed in YAML'); | ||
} | ||
this._document = YAML.parseDocument(this._source, { | ||
merge: true, | ||
schema: 'core', | ||
}); | ||
this._cfg = this._document.toJSON() || {}; | ||
} | ||
this._document = YAML.parseDocument(this._source, { | ||
merge: true, | ||
schema: 'core', | ||
}); | ||
this._cfg = this._document.toJSON() || {}; | ||
} | ||
@@ -190,0 +196,0 @@ |
@@ -20,2 +20,3 @@ /* | ||
markup = 'markup', | ||
ignore = 'ignore', | ||
} | ||
@@ -22,0 +23,0 @@ |
@@ -22,2 +22,3 @@ /* | ||
const ValidationError = require('./ValidationError.js'); | ||
const IgnoreConfig = require('./IgnoreConfig.js'); | ||
@@ -31,2 +32,3 @@ module.exports = { | ||
MarkupConfig, | ||
IgnoreConfig, | ||
Condition, | ||
@@ -33,0 +35,0 @@ optionalConfig, |
231718
71
4716
12
+ Addedignore@5.1.8
+ Addedignore@5.1.8(transitive)