Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ember-template-lint/todo-utils

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ember-template-lint/todo-utils - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

9

CHANGELOG.md

@@ -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 @@

8

lib/builders.js

@@ -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,

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc