contentful-migration
Advanced tools
Comparing version 4.22.0 to 4.22.1
@@ -30,2 +30,3 @@ "use strict"; | ||
const fs = __importStar(require("fs")); | ||
const url = __importStar(require("url")); | ||
const cardinal = __importStar(require("cardinal")); | ||
@@ -52,6 +53,7 @@ const _ = __importStar(require("lodash")); | ||
for (const file of Object.keys(errorsByFile)) { | ||
const fileContents = fs.readFileSync(file, 'utf-8'); | ||
const filePath = file.startsWith(`file://`) ? url.fileURLToPath(file) : file; | ||
const fileContents = fs.readFileSync(filePath, 'utf-8'); | ||
const highlightedCode = cardinal.highlight(fileContents, { linenos: true }); | ||
const lines = highlightedCode.split('\n'); | ||
const fileErrorsMessage = (0, chalk_1.default) `{red Errors in ${file}}\n\n`; | ||
const fileErrorsMessage = (0, chalk_1.default) `{red Errors in ${filePath}}\n\n`; | ||
const errorMessages = errorsByFile[file] | ||
@@ -58,0 +60,0 @@ .map((error) => { |
@@ -1,7 +0,7 @@ | ||
# [4.22.0](https://github.com/contentful/contentful-migration/compare/v4.21.0...v4.22.0) (2024-06-25) | ||
## [4.22.1](https://github.com/contentful/contentful-migration/compare/v4.22.0...v4.22.1) (2024-07-11) | ||
### Features | ||
### Bug Fixes | ||
* allow strikethrough ([6be9361](https://github.com/contentful/contentful-migration/commit/6be9361c56efe8e3c8cb8b81a82628ddb0d2672f)) | ||
* fixes issue [#1332](https://github.com/contentful/contentful-migration/issues/1332) `no such file or directory` when migration fails ([#1333](https://github.com/contentful/contentful-migration/issues/1333)) ([59321bb](https://github.com/contentful/contentful-migration/commit/59321bbadc5ff4049e6ef1b495ce03f16362f877)) | ||
@@ -8,0 +8,0 @@ # Change Log |
{ | ||
"name": "contentful-migration", | ||
"version": "4.22.0", | ||
"version": "4.22.1", | ||
"description": "Migration tooling for contentful", | ||
@@ -5,0 +5,0 @@ "author": "Contentful GmbH", |
Sorry, the diff of this file is not supported yet
901733
11218