baset-core
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.5.1"></a> | ||
## [0.5.1](https://github.com/Igmat/baset/compare/v0.5.0...v0.5.1) (2018-01-29) | ||
### Bug Fixes | ||
* **core:** replace all line endings with LF and trim baseline ([3d75a3e](https://github.com/Igmat/baset/commit/3d75a3e)), closes [#32](https://github.com/Igmat/baset/issues/32) | ||
<a name="0.5.0"></a> | ||
@@ -8,0 +19,0 @@ # [0.5.0](https://github.com/Igmat/baset/compare/v0.4.1...v0.5.0) (2018-01-26) |
@@ -25,7 +25,7 @@ "use strict"; | ||
throw new Error(`No reader defined for ${name}!`); | ||
const output = yield reader.read(name); | ||
const output = (yield reader.read(name)).replace(/\r?\n|\r/g, '\n').trim(); | ||
const ext = path.extname(name); | ||
const baselinePath = path.resolve(name.replace(new RegExp(`${ext}$`), '.base')); | ||
const baselineValue = (yield isExists(baselinePath)) | ||
? yield readFile(baselinePath, { encoding: 'utf-8' }) | ||
? (yield readFile(baselinePath, { encoding: 'utf-8' })).replace(/\r?\n|\r/g, '\n').trim() | ||
: false; | ||
@@ -32,0 +32,0 @@ yield writeFile(path.resolve(`${baselinePath}.tmp`), output); |
{ | ||
"name": "baset-core", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Core library for BaseT project.", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"@types/node": "^9.3.0", | ||
"baset": "^0.5.0", | ||
"baset": "^0.5.1", | ||
"doctoc": "^1.3.0", | ||
@@ -31,0 +31,0 @@ "tslint": "^5.9.1", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10954