@textlint/textlint-plugin-text
Advanced tools
Comparing version 12.0.0-beta.0 to 12.0.0-beta.1
// 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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
147970
153