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

@textlint/textlint-plugin-text

Package Overview
Dependencies
Maintainers
5
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/textlint-plugin-text - npm Package Compare versions

Comparing version 12.0.0-beta.0 to 12.0.0-beta.1

2

lib/src/index.js
// LICENSE : MIT
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TextProcessor_1 = require("./TextProcessor");
const TextProcessor_1 = require("./TextProcessor");
exports.default = {

@@ -6,0 +6,0 @@ Processor: TextProcessor_1.TextProcessor

@@ -6,6 +6,5 @@ /* eslint-disable no-unused-vars */

exports.TextProcessor = void 0;
var text_to_ast_1 = require("@textlint/text-to-ast");
var TextProcessor = /** @class */ (function () {
function TextProcessor(config) {
if (config === void 0) { config = {}; }
const text_to_ast_1 = require("@textlint/text-to-ast");
class TextProcessor {
constructor(config = {}) {
this.config = config;

@@ -15,13 +14,13 @@ // support "extension" option

}
TextProcessor.prototype.availableExtensions = function () {
availableExtensions() {
return [".txt", ".text"].concat(this.extensions);
};
TextProcessor.prototype.processor = function (_ext) {
}
processor(_ext) {
return {
preProcess: function (text, _filePath) {
preProcess(text, _filePath) {
return text_to_ast_1.parse(text);
},
postProcess: function (messages, filePath) {
postProcess(messages, filePath) {
return {
messages: messages,
messages,
filePath: filePath ? filePath : "<text>"

@@ -31,6 +30,5 @@ };

};
};
return TextProcessor;
}());
}
}
exports.TextProcessor = TextProcessor;
//# sourceMappingURL=TextProcessor.js.map

@@ -5,5 +5,4 @@ /* eslint-disable no-unused-vars */

import { parse } from "@textlint/text-to-ast";
var TextProcessor = /** @class */ (function () {
function TextProcessor(config) {
if (config === void 0) { config = {}; }
export class TextProcessor {
constructor(config = {}) {
this.config = config;

@@ -13,13 +12,13 @@ // support "extension" option

}
TextProcessor.prototype.availableExtensions = function () {
availableExtensions() {
return [".txt", ".text"].concat(this.extensions);
};
TextProcessor.prototype.processor = function (_ext) {
}
processor(_ext) {
return {
preProcess: function (text, _filePath) {
preProcess(text, _filePath) {
return parse(text);
},
postProcess: function (messages, filePath) {
postProcess(messages, filePath) {
return {
messages: messages,
messages,
filePath: filePath ? filePath : "<text>"

@@ -29,6 +28,4 @@ };

};
};
return TextProcessor;
}());
export { TextProcessor };
}
}
//# sourceMappingURL=TextProcessor.js.map
{
"name": "@textlint/textlint-plugin-text",
"version": "12.0.0-beta.0",
"version": "12.0.0-beta.1",
"description": "plain text plugin for textlint",

@@ -35,6 +35,6 @@ "homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/textlint-plugin-text/",

"dependencies": {
"@textlint/text-to-ast": "^12.0.0-beta.0"
"@textlint/text-to-ast": "^12.0.0-beta.1"
},
"devDependencies": {
"@textlint/kernel": "^12.0.0-beta.0",
"@textlint/kernel": "^12.0.0-beta.1",
"@types/mocha": "8.2.2",

@@ -52,3 +52,3 @@ "cross-env": "^7.0.3",

},
"gitHead": "1e0d0d7f628be0bfce04b6cd36fcc8390ca43096"
"gitHead": "2856b387cfb0a151655a809e8253b242e7b90725"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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