@ember-template-lint/todo-utils
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -0,1 +1,10 @@ | ||
## v3.0.2 (2020-12-01) | ||
#### :bug: Bug Fix | ||
* [#30](https://github.com/ember-template-lint/ember-template-lint-todo-utils/pull/30) Fix path for todo data so it's consistent on posix and win32 ([@renatoi](https://github.com/renatoi)) | ||
#### Committers: 1 | ||
- Renato Iwashima ([@renatoi](https://github.com/renatoi)) | ||
## v3.0.1 (2020-11-25) | ||
@@ -2,0 +11,0 @@ |
@@ -5,2 +5,3 @@ "use strict"; | ||
const path_1 = require("path"); | ||
const slash = require("slash"); | ||
const io_1 = require("./io"); | ||
@@ -37,5 +38,10 @@ /** | ||
function _buildTodoDatum(baseDir, lintResult, lintMessage) { | ||
/** | ||
* Note: If https://github.com/nodejs/node/issues/13683 is fixed, remove slash() and use posix.relative | ||
* provided that the fix is landed on the supported node versions of this lib | ||
*/ | ||
const filePath = path_1.isAbsolute(lintResult.filePath) ? path_1.relative(baseDir, lintResult.filePath) : lintResult.filePath; | ||
return { | ||
engine: getEngine(lintResult), | ||
filePath: path_1.posix.relative(baseDir, lintResult.filePath), | ||
filePath: slash(filePath), | ||
ruleId: getRuleId(lintMessage), | ||
@@ -42,0 +48,0 @@ line: lintMessage.line, |
{ | ||
"name": "@ember-template-lint/todo-utils", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"repository": "https://github.com/ember-template-lint/ember-template-lint-todo-utils.git", | ||
@@ -18,3 +18,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"fs-extra": "^9.0.1" | ||
"fs-extra": "^9.0.1", | ||
"slash": "^3.0.0" | ||
}, | ||
@@ -24,2 +25,3 @@ "devDependencies": { | ||
"@types/fs-extra": "^9.0.1", | ||
"@types/slash": "^3.0.0", | ||
"@types/tmp": "^0.2.0", | ||
@@ -26,0 +28,0 @@ "@typescript-eslint/eslint-plugin": "^4.2.0", |
Sorry, the diff of this file is not supported yet
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
38627
381
2
19
+ Addedslash@^3.0.0
+ Addedslash@3.0.0(transitive)