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

@textlint/kernel

Package Overview
Dependencies
Maintainers
4
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@textlint/kernel - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

<a name="3.3.4"></a>
## [3.3.4](https://github.com/textlint/textlint/compare/@textlint/kernel@3.3.3...@textlint/kernel@3.3.4) (2020-07-24)
### Bug Fixes
* **@textlint/kernel:** fix export only type definition ([1234930](https://github.com/textlint/textlint/commit/1234930))
<a name="3.3.3"></a>

@@ -8,0 +20,0 @@ ## [3.3.3](https://github.com/textlint/textlint/compare/@textlint/kernel@3.3.2...@textlint/kernel@3.3.3) (2020-07-24)

2

lib/context/TextlintFilterRuleContextImpl.d.ts

@@ -1,2 +0,2 @@

import { TextlintRuleSeverityLevel, TextlintFilterRuleContextArgs, TextlintFilterRuleContext } from "@textlint/types";
import type { TextlintRuleSeverityLevel, TextlintFilterRuleContextArgs, TextlintFilterRuleContext } from "@textlint/types";
import { ASTNodeTypes, TxtNode } from "@textlint/ast-node-types";

@@ -3,0 +3,0 @@ import { TextlintRuleErrorImpl } from "./TextlintRuleErrorImpl";

import { TxtNode } from "@textlint/ast-node-types";
import { TextlintRuleContextFixCommandGenerator, TextlintSourceCodeRange } from "@textlint/types";
import type { TextlintRuleContextFixCommandGenerator, TextlintSourceCodeRange } from "@textlint/types";
/**

@@ -4,0 +4,0 @@ * Creates code fixing commands for rules.

@@ -1,2 +0,2 @@

import { TextlintRuleContextFixCommand, TextlintRuleErrorPadding, TextlintRuleError } from "@textlint/types";
import type { TextlintRuleContextFixCommand, TextlintRuleErrorPadding, TextlintRuleError } from "@textlint/types";
export declare class TextlintRuleErrorImpl implements TextlintRuleError {

@@ -3,0 +3,0 @@ message: string;

@@ -1,2 +0,2 @@

import { TextlintRuleSeverityLevel } from "@textlint/types";
import type { TextlintRuleSeverityLevel } from "@textlint/types";
/**

@@ -3,0 +3,0 @@ * Keys of TextlintRuleSeverityLevel

@@ -1,2 +0,2 @@

import { TextlintSourceCode, TextlintSourceCodeArgs, TextlintSourceCodeLocation, TextlintSourceCodePosition, TextlintSourceCodeRange } from "@textlint/types";
import type { TextlintSourceCode, TextlintSourceCodeArgs, TextlintSourceCodeLocation, TextlintSourceCodePosition, TextlintSourceCodeRange } from "@textlint/types";
import { AnyTxtNode, ASTNodeTypes } from "@textlint/ast-node-types";

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { TextlintMessageFixCommand, TextlintRuleContextReportFunctionArgs, TextlintRuleError, TextlintSourceCode } from "@textlint/types";
import type { TextlintMessageFixCommand, TextlintRuleContextReportFunctionArgs, TextlintRuleError, TextlintSourceCode } from "@textlint/types";
export interface ReportMessage {

@@ -3,0 +3,0 @@ ruleId: string;

@@ -1,2 +0,1 @@

// LICENSE : MIT
"use strict";

@@ -3,0 +2,0 @@ var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -1,2 +0,2 @@

import { TextlintFilterRuleReporter, TextlintRuleReporter } from "@textlint/types";
import type { TextlintFilterRuleReporter, TextlintRuleReporter } from "@textlint/types";
/**

@@ -3,0 +3,0 @@ * detect that ruleCreator has linter function

import { TextlintKernelFilterRule } from "../textlint-kernel-interface";
import { Descriptor } from "./Descriptor";
import { TextlintFilterRuleOptions, TextlintFilterRuleReporter } from "@textlint/types";
import type { TextlintFilterRuleOptions, TextlintFilterRuleReporter } from "@textlint/types";
/**

@@ -5,0 +5,0 @@ * Textlint Rule Descriptor.

import { TextlintLintableRuleDescriptor } from "./TextlintLintableRuleDescriptor";
import { TextlintRuleReporter } from "@textlint/types";
import type { TextlintRuleReporter } from "@textlint/types";
/**

@@ -4,0 +4,0 @@ * Textlint Fixable Rule Descriptor.

import { TextlintKernelRule } from "../textlint-kernel-interface";
import { TextlintRuleModule, TextlintRuleOptions, TextlintRuleReporter } from "@textlint/types";
import type { TextlintRuleModule, TextlintRuleOptions, TextlintRuleReporter } from "@textlint/types";
/**

@@ -4,0 +4,0 @@ * Textlint Rule Descriptor.

import { TextlintKernelPlugin } from "../textlint-kernel-interface";
import { Descriptor } from "./Descriptor";
import { TextlintPluginOptions, TextlintPluginProcessor } from "@textlint/types";
import type { TextlintPluginOptions, TextlintPluginProcessor } from "@textlint/types";
/**

@@ -5,0 +5,0 @@ * Textlint Plugin Descriptor

@@ -1,2 +0,2 @@

import { TextlintFixResult, TextlintPluginProcessor, TextlintSourceCode } from "@textlint/types";
import type { TextlintFixResult, TextlintPluginProcessor, TextlintSourceCode } from "@textlint/types";
import { TextlintKernelConstructorOptions } from "../textlint-kernel-interface";

@@ -3,0 +3,0 @@ import MessageProcessManager from "../messages/MessageProcessManager";

import { TxtNode } from "@textlint/ast-node-types";
import { TextlintSourceCodeRange } from "@textlint/types";
import type { TextlintSourceCodeRange } from "@textlint/types";
/**

@@ -4,0 +4,0 @@ * Fix Command object has `range` and `text`.

@@ -1,2 +0,2 @@

import { TextlintMessage, TextlintMessageFixCommand, TextlintSourceCode } from "@textlint/types";
import type { TextlintMessage, TextlintMessageFixCommand, TextlintSourceCode } from "@textlint/types";
export interface TextLintMessageFixable extends TextlintMessage {

@@ -3,0 +3,0 @@ fix: TextlintMessageFixCommand;

@@ -7,3 +7,3 @@ export { TextlintKernel } from "./textlint-kernel";

*/
export { TextlintResult, TextlintFixResult, TextlintMessageFixCommand, TextlintMessage } from "@textlint/types";
export type { TextlintResult, TextlintFixResult, TextlintMessageFixCommand, TextlintMessage } from "@textlint/types";
/**

@@ -14,3 +14,3 @@ * @deprecated These types will removed in the future. Use @textlint/types instead of it

*/
export { TextlintRuleReporter, TextlintRuleModule, TextlintRuleOptions, TextlintRuleSeverityLevel, TextlintFilterRuleReporter, TextlintFilterRuleOptions, TextlintPluginCreator, TextlintPluginOptions, TextlintPluginProcessor, TextlintPluginProcessorConstructor } from "@textlint/types";
export type { TextlintRuleReporter, TextlintRuleModule, TextlintRuleOptions, TextlintRuleSeverityLevel, TextlintFilterRuleReporter, TextlintFilterRuleOptions, TextlintPluginCreator, TextlintPluginOptions, TextlintPluginProcessor, TextlintPluginProcessorConstructor } from "@textlint/types";
export { TextlintRuleSeverityLevelKeys } from "./context/TextlintRuleSeverityLevelKeys";

@@ -11,9 +11,2 @@ "use strict";

__export(require("./descriptor/index"));
/**
* @deprecated These types will removed in the future. Use @textlint/types instead of it
* If you use these types in your rule, you should use @textlint/types for your rule.
* Related changes: https://github.com/textlint/textlint/pull/562
*/
var types_1 = require("@textlint/types");
exports.TextlintPluginProcessor = types_1.TextlintPluginProcessor;
// TextlintRuleSeverityLevel Key

@@ -20,0 +13,0 @@ var TextlintRuleSeverityLevelKeys_1 = require("./context/TextlintRuleSeverityLevelKeys");

import { TextlintKernelConstructorOptions } from "../textlint-kernel-interface";
import MessageProcessManager from "../messages/MessageProcessManager";
import { TextlintFilterRuleDescriptors, TextlintRuleDescriptors } from "../descriptor";
import { TextlintSourceCode, TextlintPluginProcessor, TextlintResult } from "@textlint/types";
import type { TextlintSourceCode, TextlintPluginProcessor, TextlintResult } from "@textlint/types";
export interface LinterProcessorArgs {

@@ -6,0 +6,0 @@ config: TextlintKernelConstructorOptions;

@@ -1,2 +0,2 @@

import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";
/**

@@ -3,0 +3,0 @@ * filter duplicated messages

@@ -1,2 +0,2 @@

import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";
import { TextlintKernelConstructorOptions } from "../textlint-kernel-interface";

@@ -3,0 +3,0 @@ /**

import { IgnoreReportedMessage, LintReportedMessage } from "../task/textlint-core-task";
import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";
export declare type PreMessageProcessor = (messages: Array<LintReportedMessage | IgnoreReportedMessage>) => Array<LintReportedMessage | IgnoreReportedMessage>;

@@ -4,0 +4,0 @@ export declare type MessageProcessor = (messages: TextlintMessage[]) => TextlintMessage[];

@@ -1,2 +0,2 @@

import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";
/**

@@ -3,0 +3,0 @@ * sort messages by line and column

@@ -1,2 +0,2 @@

import { TextlintRuleOptions, TextlintRuleSeverityLevel } from "@textlint/types";
import type { TextlintRuleOptions, TextlintRuleSeverityLevel } from "@textlint/types";
/**

@@ -3,0 +3,0 @@ * get severity level from ruleConfig.

import CoreTask from "./textlint-core-task";
import { TextlintKernelConstructorOptions } from "../textlint-kernel-interface";
import { TextlintFilterRuleDescriptors, TextlintFixableRuleDescriptor } from "../descriptor";
import { TextlintSourceCode } from "@textlint/types";
import type { TextlintSourceCode } from "@textlint/types";
export interface TextLintCoreTaskArgs {

@@ -6,0 +6,0 @@ config: TextlintKernelConstructorOptions;

import CoreTask from "./textlint-core-task";
import { TextlintKernelConstructorOptions } from "../textlint-kernel-interface";
import { TextlintFilterRuleDescriptors, TextlintRuleDescriptors } from "../descriptor";
import { TextlintSourceCode } from "@textlint/types";
import type { TextlintSourceCode } from "@textlint/types";
export interface TextLintCoreTaskArgs {

@@ -6,0 +6,0 @@ config: TextlintKernelConstructorOptions;

/// <reference types="node" />
import MessageType from "../shared/type/MessageType";
import { EventEmitter } from "events";
import { TextlintFilterRuleContext, TextlintFilterRuleOptions, TextlintFilterRuleReporter, TextlintFilterRuleShouldIgnoreFunction, TextlintMessageFixCommand, TextlintRuleContext, TextlintRuleContextReportFunction, TextlintRuleOptions, TextlintRuleReporter, TextlintSourceCode } from "@textlint/types";
import type { TextlintFilterRuleContext, TextlintFilterRuleOptions, TextlintFilterRuleReporter, TextlintFilterRuleShouldIgnoreFunction, TextlintMessageFixCommand, TextlintRuleContext, TextlintRuleContextReportFunction, TextlintRuleOptions, TextlintRuleReporter, TextlintSourceCode } from "@textlint/types";
export interface IgnoreReportedMessage {

@@ -6,0 +6,0 @@ ruleId: string;

@@ -1,2 +0,2 @@

import { TextlintFilterRuleOptions, TextlintFilterRuleReporter, TextlintPluginCreator, TextlintPluginOptions, TextlintRuleModule, TextlintRuleOptions } from "@textlint/types";
import type { TextlintFilterRuleOptions, TextlintFilterRuleReporter, TextlintPluginCreator, TextlintPluginOptions, TextlintRuleModule, TextlintRuleOptions } from "@textlint/types";
export interface TextlintKernelConstructorOptions {

@@ -3,0 +3,0 @@ /**

import { TextlintKernelConstructorOptions, TextlintKernelOptions } from "./textlint-kernel-interface";
import { TextlintFixResult, TextlintResult } from "@textlint/types";
import type { TextlintFixResult, TextlintResult } from "@textlint/types";
/**

@@ -4,0 +4,0 @@ * TextlintKernel is core logic written by pure JavaScript.

{
"name": "@textlint/kernel",
"version": "3.3.3",
"version": "3.3.4",
"description": "textlint kernel is core logic by pure JavaScript.",

@@ -32,3 +32,3 @@ "keywords": [

"build": "tsc -b && tsc -b tsconfig.module.json",
"clean": "rimraf lib/ tsconfig.tsbuildinfo",
"clean": "rimraf lib/ module/ tsconfig.tsbuildinfo",
"prepublish": "npm run --if-present build",

@@ -39,8 +39,8 @@ "test": "mocha \"test/**/*.{js,ts}\"",

"dependencies": {
"@textlint/ast-node-types": "^4.3.1",
"@textlint/ast-tester": "^2.2.1",
"@textlint/ast-traverse": "^2.2.2",
"@textlint/feature-flag": "^3.2.1",
"@textlint/types": "^1.4.2",
"@textlint/utils": "^1.1.1",
"@textlint/ast-node-types": "^4.3.2",
"@textlint/ast-tester": "^2.2.2",
"@textlint/ast-traverse": "^2.2.3",
"@textlint/feature-flag": "^3.2.2",
"@textlint/types": "^1.4.3",
"@textlint/utils": "^1.1.2",
"debug": "^4.1.1",

@@ -52,3 +52,3 @@ "deep-equal": "^1.1.1",

"devDependencies": {
"@textlint/markdown-to-ast": "^6.2.2",
"@textlint/markdown-to-ast": "^6.2.3",
"@types/debug": "^4.1.5",

@@ -69,3 +69,3 @@ "@types/deep-equal": "^1.0.1",

},
"gitHead": "986f28d6435ad74f7b2745a5842926c06a849319"
"gitHead": "c34d79a5a9320c47965090b233b0eb2f6b565c68"
}

@@ -1,2 +0,2 @@

import {
import type {
TextlintFilterRuleShouldIgnoreFunction,

@@ -3,0 +3,0 @@ TextlintRuleSeverityLevel,

import * as assert from "assert";
import { TxtNode } from "@textlint/ast-node-types";
import { TextlintRuleContextFixCommandGenerator, TextlintSourceCodeRange } from "@textlint/types";
import type { TextlintRuleContextFixCommandGenerator, TextlintSourceCodeRange } from "@textlint/types";

@@ -5,0 +5,0 @@ /**

// LICENSE : MIT
"use strict";
import { TextlintRuleContextFixCommand, TextlintRuleErrorPadding, TextlintRuleError } from "@textlint/types";
import type { TextlintRuleContextFixCommand, TextlintRuleErrorPadding, TextlintRuleError } from "@textlint/types";

@@ -6,0 +6,0 @@ export class TextlintRuleErrorImpl implements TextlintRuleError {

@@ -1,2 +0,2 @@

import { TextlintRuleSeverityLevel } from "@textlint/types";
import type { TextlintRuleSeverityLevel } from "@textlint/types";

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import {
import type {
TextlintSourceCode,

@@ -3,0 +3,0 @@ TextlintSourceCodeArgs,

@@ -1,4 +0,2 @@

// LICENSE : MIT
"use strict";
import {
import type {
TextlintMessageFixCommand,

@@ -5,0 +3,0 @@ TextlintRuleContextReportFunctionArgs,

@@ -1,2 +0,2 @@

import { TextlintFilterRuleReporter, TextlintRuleReporter } from "@textlint/types";
import type { TextlintFilterRuleReporter, TextlintRuleReporter } from "@textlint/types";

@@ -3,0 +3,0 @@ /**

@@ -6,3 +6,3 @@ // LICENSE : MIT

import { Descriptor } from "./Descriptor";
import { TextlintFilterRuleOptions, TextlintFilterRuleReporter } from "@textlint/types";
import type { TextlintFilterRuleOptions, TextlintFilterRuleReporter } from "@textlint/types";
import deepEqual from "deep-equal";

@@ -9,0 +9,0 @@

@@ -5,3 +5,3 @@ // LICENSE : MIT

import { TextlintLintableRuleDescriptor } from "./TextlintLintableRuleDescriptor";
import { TextlintRuleReporter } from "@textlint/types";
import type { TextlintRuleReporter } from "@textlint/types";

@@ -8,0 +8,0 @@ /**

@@ -5,3 +5,3 @@ // LICENSE : MIT

import { assertRuleShape, getLinter } from "./rule-creator-helper";
import { TextlintRuleModule, TextlintRuleOptions, TextlintRuleReporter } from "@textlint/types";
import type { TextlintRuleModule, TextlintRuleOptions, TextlintRuleReporter } from "@textlint/types";
import deepEqual from "deep-equal";

@@ -8,0 +8,0 @@

"use strict";
import { TextlintKernelPlugin } from "../textlint-kernel-interface";
import { Descriptor } from "./Descriptor";
import { TextlintPluginOptions, TextlintPluginProcessor, TextlintPluginProcessorConstructor } from "@textlint/types";
import type {
TextlintPluginOptions,
TextlintPluginProcessor,
TextlintPluginProcessorConstructor
} from "@textlint/types";
import deepEqual from "deep-equal";

@@ -6,0 +10,0 @@

// LICENSE : MIT
"use strict";
import { TextlintFixResult, TextlintMessage, TextlintPluginProcessor, TextlintSourceCode } from "@textlint/types";
import type { TextlintFixResult, TextlintMessage, TextlintPluginProcessor, TextlintSourceCode } from "@textlint/types";
import * as assert from "assert";

@@ -6,0 +6,0 @@ import FixerTask from "../task/fixer-task";

import * as assert from "assert";
import { TxtNode } from "@textlint/ast-node-types";
import { TextlintSourceCodeRange } from "@textlint/types";
import type { TextlintSourceCodeRange } from "@textlint/types";

@@ -5,0 +5,0 @@ /**

@@ -1,2 +0,2 @@

import { TextlintMessage, TextlintMessageFixCommand, TextlintSourceCode } from "@textlint/types";
import type { TextlintMessage, TextlintMessageFixCommand, TextlintSourceCode } from "@textlint/types";
import { TextlintSourceCodeImpl } from "../context/TextlintSourceCodeImpl";

@@ -3,0 +3,0 @@ import _debug from "debug";

@@ -11,3 +11,3 @@ // Kernel

*/
export { TextlintResult, TextlintFixResult, TextlintMessageFixCommand, TextlintMessage } from "@textlint/types";
export type { TextlintResult, TextlintFixResult, TextlintMessageFixCommand, TextlintMessage } from "@textlint/types";
/**

@@ -18,3 +18,3 @@ * @deprecated These types will removed in the future. Use @textlint/types instead of it

*/
export {
export type {
// textlint rule interface

@@ -21,0 +21,0 @@ TextlintRuleReporter,

@@ -10,3 +10,3 @@ // LICENSE : MIT

import { TextlintFilterRuleDescriptors, TextlintRuleDescriptors } from "../descriptor";
import { TextlintSourceCode, TextlintPluginProcessor, TextlintResult } from "@textlint/types";
import type { TextlintSourceCode, TextlintPluginProcessor, TextlintResult } from "@textlint/types";

@@ -13,0 +13,0 @@ export interface LinterProcessorArgs {

// LICENSE : MIT
"use strict";
import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";

@@ -5,0 +5,0 @@ /**

// LICENSE : MIT
"use strict";
import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";
import { TextlintKernelConstructorOptions } from "../textlint-kernel-interface";

@@ -5,0 +5,0 @@ import { TextlintRuleSeverityLevelKeys } from "../context/TextlintRuleSeverityLevelKeys";

// LICENSE : MIT
"use strict";
import { IgnoreReportedMessage, LintReportedMessage } from "../task/textlint-core-task";
import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";

@@ -6,0 +6,0 @@ export type PreMessageProcessor = (

// LICENSE : MIT
"use strict";
import { TextlintMessage } from "@textlint/types";
import type { TextlintMessage } from "@textlint/types";

@@ -5,0 +5,0 @@ /**

// LICENSE : MIT
"use strict";
import { TextlintRuleOptions, TextlintRuleSeverityLevel } from "@textlint/types";
import type { TextlintRuleOptions, TextlintRuleSeverityLevel } from "@textlint/types";
import { TextlintRuleSeverityLevelKeys } from "../context/TextlintRuleSeverityLevelKeys";

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

@@ -6,3 +6,3 @@ // LICENSE : MIT

import { TextlintFilterRuleDescriptors, TextlintFixableRuleDescriptor } from "../descriptor";
import { TextlintSourceCode } from "@textlint/types";
import type { TextlintSourceCode } from "@textlint/types";
import { getSeverity } from "../shared/rule-severity";

@@ -9,0 +9,0 @@ import { TextlintFilterRuleContextImpl } from "../context/TextlintFilterRuleContextImpl";

@@ -6,3 +6,3 @@ // LICENSE : MIT

import { TextlintFilterRuleDescriptors, TextlintRuleDescriptors } from "../descriptor";
import { TextlintSourceCode } from "@textlint/types";
import type { TextlintSourceCode } from "@textlint/types";
import { getSeverity } from "../shared/rule-severity";

@@ -9,0 +9,0 @@ import { TextlintRuleContextImpl } from "../context/TextlintRuleContextImpl";

@@ -11,3 +11,3 @@ // LICENSE : MIT

import { AnyTxtNode, TxtParentNode } from "@textlint/ast-node-types";
import {
import type {
TextlintFilterRuleContext,

@@ -14,0 +14,0 @@ TextlintFilterRuleOptions,

// rule config
import {
import type {
TextlintFilterRuleOptions,

@@ -4,0 +4,0 @@ TextlintFilterRuleReporter,

@@ -15,3 +15,3 @@ // MIT © 2017 azu

import { TextlintKernelConstructorOptions, TextlintKernelOptions } from "./textlint-kernel-interface";
import { TextlintFixResult, TextlintResult } from "@textlint/types";
import type { TextlintFixResult, TextlintResult } from "@textlint/types";
import { TextlintKernelDescriptor } from "./descriptor";

@@ -18,0 +18,0 @@ import { TextlintSourceCodeImpl } from "./context/TextlintSourceCodeImpl";

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