@devicecloud.dev/dcd 3.4.3 → 3.4.4
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/planMethods.js +3 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/dist/planMethods.js
CHANGED
|
@@ -59,7 +59,9 @@ const readTestYamlFileAsJson = (filePath) => {
|
|
|
59
59
|
try {
|
|
60
60
|
const normalizedPath = path.normalize(filePath);
|
|
61
61
|
const yamlText = fs.readFileSync(normalizedPath, 'utf8');
|
|
62
|
-
const normalizedText = yamlText
|
|
62
|
+
const normalizedText = yamlText
|
|
63
|
+
.replaceAll('\r\n', '\n')
|
|
64
|
+
.replaceAll(/\n---[ \t]*\n/g, '\n---\n');
|
|
63
65
|
if (normalizedText.includes('\n---\n')) {
|
|
64
66
|
const yamlTexts = normalizedText.split('\n---\n');
|
|
65
67
|
const config = yaml.load(yamlTexts[0]);
|
package/oclif.manifest.json
CHANGED