New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leasot

Package Overview
Dependencies
Maintainers
1
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leasot - npm Package Compare versions

Comparing version 13.3.0 to 14.4.0

dist/lib/reporters/gitlab.d.ts

2

dist/cli/leasot.js

@@ -28,3 +28,3 @@ #!/usr/bin/env node

.option('-I, --inline-files', 'parse possible inline files', false)
.option('-r, --reporter [reporter]', 'use reporter (table|json|xml|markdown|vscode|raw) (default: table)', 'table')
.option('-r, --reporter [reporter]', 'use reporter (table|json|xml|markdown|vscode|gitlab|raw) (default: table)', 'table')
.option('-S, --skip-unsupported', 'skip unsupported filetypes', false)

@@ -31,0 +31,0 @@ .option('-t, --filetype [filetype]', 'force the filetype to parse. Useful for streams (default: .js)')

@@ -159,2 +159,6 @@ /**

/**
* Return a Gitlab code quality formatted json string of the todos
*/
gitlab = "gitlab",
/**
* Return a json string of the todos

@@ -161,0 +165,0 @@ */

@@ -8,2 +8,6 @@ export var BuiltinReporters;

/**
* Return a Gitlab code quality formatted json string of the todos
*/
BuiltinReporters["gitlab"] = "gitlab";
/**
* Return a json string of the todos

@@ -10,0 +14,0 @@ */

@@ -50,2 +50,3 @@ import _ from 'lodash';

'.md': { parserName: 'twigParser' },
'.mdx': { parserName: 'defaultParser' },
'.mjs': { parserName: 'defaultParser' },

@@ -52,0 +53,0 @@ '.mm': { parserName: 'defaultParser' },

@@ -6,3 +6,3 @@ import { getRegex } from '../utils/index.js';

const regex = getRegex(customTags);
const lineCommentRegex = new RegExp(`^\\s*--${regex}$`, 'mig');
const lineCommentRegex = new RegExp(`\\s*--${regex}$`, 'mig');
const innerBlockRegex = new RegExp(`^\\s*${regex}\\s*$`, 'mig');

@@ -9,0 +9,0 @@ return (contents, file) => {

{
"name": "leasot",
"description": "Parse and output TODOs and FIXMEs from comments in your files",
"version": "13.3.0",
"version": "14.4.0",
"author": "Gilad Peleg <gilad@giladpeleg.com> (https://www.giladpeleg.com)",

@@ -31,3 +31,3 @@ "type": "module",

"@types/text-table": "^0.2.2",
"husky": "^8.0.1",
"husky": "^9.0.11",
"jsdoc-to-markdown": "^8.0.0",

@@ -45,3 +45,3 @@ "lint-staged": "^13.0.3",

"engines": {
"node": ">=14.13.1"
"node": ">=18"
},

@@ -81,4 +81,3 @@ "files": [

"release:prepare": "npm run clean && npm run prettier && npm run build && npm run test && npm run docs",
"test": "mocha",
"prepare": ""
"test": "mocha"
},

@@ -85,0 +84,0 @@ "lint-staged": {

@@ -15,3 +15,2 @@ <h1 align="center">

[![npm downloads](https://img.shields.io/npm/dm/leasot.svg?style=for-the-badge)](https://www.npmjs.com/package/leasot)
[![Travis (.org)](https://img.shields.io/travis/pgilad/leasot.svg?style=for-the-badge)](https://travis-ci.org/pgilad/leasot)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)

@@ -30,6 +29,6 @@

- Colon is optional.
- Must be in a comment (line or block) in its' own line (`some code(); //TODO: do something` is not supported).
- Can be prefixed with a @ (i.e @TODO).
- Must be in a comment (line or block) in its own line (`some code(); //TODO: do something` is not supported).
- Can be prefixed with a @ (i.e. @TODO).
- Spaces are trimmed around comment text.
- Supported default types are `TODO` and `FIXME` - case insensitive.
- Supported default types are `TODO` and `FIXME` - case-insensitive.
- Additional types can be added (using `tags` in cli and `customTags` in `leasot.parse`)

@@ -65,3 +64,3 @@ - New extensions can be associated with bundled parsers as many languages have overlapping syntax

-I, --inline-files parse possible inline files (default: false)
-r, --reporter [reporter] use reporter (table|json|xml|markdown|vscode|raw) (default: table) (default: "table")
-r, --reporter [reporter] use reporter (table|json|xml|markdown|vscode|gitlab|raw) (default: table) (default: "table")
-S, --skip-unsupported skip unsupported filetypes (default: false)

@@ -68,0 +67,0 @@ -t, --filetype [filetype] force the filetype to parse. Useful for streams (default: .js)

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