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 10.8.0 to 11.0.0

1

dist/cli/cli.js

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getFiletype = void 0;
const get_stdin_1 = __importDefault(require("get-stdin"));

@@ -8,0 +9,0 @@ const globby_1 = __importDefault(require("globby"));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.outputTodos = void 0;
const __1 = require("..");

@@ -4,0 +5,0 @@ exports.outputTodos = (todos, options) => {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BuiltinReporters = void 0;
var BuiltinReporters;

@@ -4,0 +5,0 @@ (function (BuiltinReporters) {

12

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var parsers_1 = require("./lib/parsers");
exports.associateExtWithParser = parsers_1.associateExtWithParser;
exports.isExtensionSupported = parsers_1.isExtensionSupported;
exports.parse = parsers_1.parse;
Object.defineProperty(exports, "associateExtWithParser", { enumerable: true, get: function () { return parsers_1.associateExtWithParser; } });
Object.defineProperty(exports, "isExtensionSupported", { enumerable: true, get: function () { return parsers_1.isExtensionSupported; } });
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parsers_1.parse; } });
var reporters_1 = require("./lib/reporters");
exports.report = reporters_1.report;
Object.defineProperty(exports, "report", { enumerable: true, get: function () { return reporters_1.report; } });
var utils_1 = require("./lib/utils");
exports.getRegex = utils_1.getRegex;
exports.prepareComment = utils_1.prepareComment;
Object.defineProperty(exports, "getRegex", { enumerable: true, get: function () { return utils_1.getRegex; } });
Object.defineProperty(exports, "prepareComment", { enumerable: true, get: function () { return utils_1.prepareComment; } });

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = exports.isExtensionSupported = exports.associateExtWithParser = void 0;
const lodash_1 = __importDefault(require("lodash"));

@@ -8,0 +9,0 @@ const parsersDb = {

@@ -1,6 +0,6 @@

import { ReportItems, ReporterConfig, TodoComment } from '../definitions';
import { BuiltinReporters, ReportItems, ReporterConfig, ReporterName, TodoComment } from '../definitions';
/**
* Load the given reporter
*/
export declare const loadReporter: (reporter: string | ReportItems) => void | ReportItems;
export declare const loadReporter: (reporter: ReporterName | ReportItems) => ReportItems | void;
/**

@@ -12,2 +12,2 @@ * Report the provided items

*/
export declare const report: (items: TodoComment[], reporter?: string | ReportItems, config?: ReporterConfig) => any;
export declare const report: (items: TodoComment[], reporter?: BuiltinReporters | ReporterName | ReportItems, config?: ReporterConfig) => any;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.report = exports.loadReporter = void 0;
const definitions_1 = require("../definitions");

@@ -4,0 +5,0 @@ const path_1 = require("path");

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = exports.prepareConfig = exports.joinBlocksByHeaders = exports.getTransformedComments = void 0;
const lodash_1 = __importDefault(require("lodash"));

@@ -8,0 +9,0 @@ const os_1 = require("os");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = void 0;
exports.reporter = (todos, config = { spacing: 2 }) => JSON.stringify(todos, null, config.spacing);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = void 0;
const custom_1 = require("./custom");

@@ -4,0 +5,0 @@ const reporterConfig = {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = void 0;
exports.reporter = (todos) => todos;
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;

@@ -13,2 +25,3 @@ };

Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = void 0;
const logSymbols = __importStar(require("log-symbols"));

@@ -15,0 +28,0 @@ const chalk_1 = __importDefault(require("chalk"));

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = void 0;
const custom_1 = require("./custom");

@@ -4,0 +5,0 @@ const reporterConfig = {

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.reporter = void 0;
const json2xml_1 = __importDefault(require("json2xml"));

@@ -8,0 +9,0 @@ exports.reporter = (todos, config = { header: true }) => {

@@ -1,5 +0,5 @@

import { TodoComment } from '../../definitions';
export declare const getRegex: (customTags?: string[]) => string;
import { Tag, TodoComment } from '../../definitions';
export declare const getRegex: (customTags?: Tag[]) => string;
export declare const prepareComment: (match: string[], line: number, filename?: string) => TodoComment;
export declare const extractSingleLineComments: (contents: string, file: string, lineCommentRegex: RegExp) => TodoComment[];
export declare const extractSingleLineFromBlocks: (contents: string, file: string, multiLineCommentRegex: RegExp, innerBlockRegex: RegExp) => TodoComment[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractSingleLineFromBlocks = exports.extractSingleLineComments = exports.prepareComment = exports.getRegex = void 0;
const eol_1 = require("eol");

@@ -4,0 +5,0 @@ const index_1 = require("./index");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLineFromPos = void 0;
const eol_1 = require("eol");
var comments_1 = require("./comments");
exports.prepareComment = comments_1.prepareComment;
exports.getRegex = comments_1.getRegex;
Object.defineProperty(exports, "prepareComment", { enumerable: true, get: function () { return comments_1.prepareComment; } });
Object.defineProperty(exports, "getRegex", { enumerable: true, get: function () { return comments_1.getRegex; } });
// Bases on get-line-from-pos to support Windows as well

@@ -8,0 +9,0 @@ // See https://github.com/pgilad/get-line-from-pos/blob/master/index.js

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

@@ -24,6 +24,6 @@ "bin": {

"devDependencies": {
"@types/async": "^3.2.1",
"@types/lodash": "^4.14.150",
"@types/async": "^3.2.3",
"@types/lodash": "^4.14.152",
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.1",
"@types/node": "^14.0.5",
"@types/text-table": "^0.2.1",

@@ -33,3 +33,3 @@ "gh-pages": "^2.2.0",

"jsdoc-to-markdown": "^5.0.3",
"lint-staged": "^10.2.0",
"lint-staged": "^10.2.6",
"mocha": "^7.1.2",

@@ -39,5 +39,5 @@ "prettier": "^2.0.5",

"should": "^13.2.3",
"ts-node": "^8.9.1",
"typedoc": "^0.17.6",
"typescript": "^3.8.3"
"ts-node": "^8.10.1",
"typedoc": "^0.17.7",
"typescript": "^3.9.3"
},

@@ -44,0 +44,0 @@ "engines": {

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