@textlint/kernel
Advanced tools
Comparing version 3.3.5 to 3.3.6
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="3.3.6"></a> | ||
## [3.3.6](https://github.com/textlint/textlint/compare/@textlint/kernel@3.3.5...@textlint/kernel@3.3.6) (2020-07-24) | ||
### Bug Fixes | ||
* improve "module" supports ([5ba5182](https://github.com/textlint/textlint/commit/5ba5182)) | ||
<a name="3.3.5"></a> | ||
@@ -8,0 +20,0 @@ ## [3.3.5](https://github.com/textlint/textlint/compare/@textlint/kernel@3.3.4...@textlint/kernel@3.3.5) (2020-07-24) |
"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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintFilterRuleContextImpl = void 0; | ||
var assert = __importStar(require("assert")); | ||
@@ -67,3 +80,3 @@ var TextlintRuleErrorImpl_1 = require("./TextlintRuleErrorImpl"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -75,3 +88,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -87,3 +100,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -99,3 +112,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -113,3 +126,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -116,0 +129,0 @@ }); |
"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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintRuleContextFixCommandGeneratorImpl = void 0; | ||
var assert = __importStar(require("assert")); | ||
@@ -11,0 +24,0 @@ /** |
@@ -39,3 +39,3 @@ import { TextlintRuleContext, TextlintRuleContextArgs, TextlintRuleError, TextlintRuleReportedObject, TextlintRuleSeverityLevel } from "@textlint/types"; | ||
*/ | ||
report: (node: TxtNode, ruleError: TextlintRuleReportedObject | TextlintRuleError, _shouldNotUsed?: any) => void; | ||
report: (node: TxtNode, ruleError: TextlintRuleError | TextlintRuleReportedObject, _shouldNotUsed?: any) => void; | ||
/** | ||
@@ -42,0 +42,0 @@ * get file path current processing. |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintRuleContextImpl = void 0; | ||
var assert_1 = __importDefault(require("assert")); | ||
@@ -79,3 +80,3 @@ var TextlintRuleContextFixCommandGeneratorImpl_1 = require("./TextlintRuleContextFixCommandGeneratorImpl"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -90,3 +91,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -102,3 +103,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -114,3 +115,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -126,3 +127,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -129,0 +130,0 @@ }); |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintRuleErrorImpl = void 0; | ||
var TextlintRuleErrorImpl = /** @class */ (function () { | ||
@@ -5,0 +6,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintRuleSeverityLevelKeys = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Keys of TextlintRuleSeverityLevel |
"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 (k !== "default" && 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.TextlintSourceCodeImpl = void 0; | ||
var ast_node_types_1 = require("@textlint/ast-node-types"); | ||
@@ -15,0 +28,0 @@ var assert = __importStar(require("assert")); |
@@ -49,2 +49,3 @@ "use strict"; | ||
*/ | ||
// @ts-expect-error | ||
return Object.assign({}, adjustedLoc, adjustedFix); | ||
@@ -140,3 +141,6 @@ }; | ||
fix: { | ||
range: [nodeRange[0] + ruleErrorObject.fix.range[0], nodeRange[0] + ruleErrorObject.fix.range[1]], | ||
range: [ | ||
nodeRange[0] + ruleErrorObject.fix.range[0], | ||
nodeRange[0] + ruleErrorObject.fix.range[1] | ||
], | ||
text: ruleErrorObject.fix.text | ||
@@ -143,0 +147,0 @@ } |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createTextlintPluginDescriptors = exports.createTextlintFilterRuleDescriptors = exports.createTextlintRuleDescriptors = void 0; | ||
var TextlintFilterRuleDescriptor_1 = require("./TextlintFilterRuleDescriptor"); | ||
@@ -5,0 +6,0 @@ var TextlintFilterRuleDescriptors_1 = require("./TextlintFilterRuleDescriptors"); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.filterDuplicateDescriptor = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * Remove duplicated descriptor |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var TextlintKernelDescriptor_1 = require("./TextlintKernelDescriptor"); | ||
exports.TextlintKernelDescriptor = TextlintKernelDescriptor_1.TextlintKernelDescriptor; | ||
Object.defineProperty(exports, "TextlintKernelDescriptor", { enumerable: true, get: function () { return TextlintKernelDescriptor_1.TextlintKernelDescriptor; } }); | ||
var TextlintRuleDescriptors_1 = require("./TextlintRuleDescriptors"); | ||
exports.TextlintRuleDescriptors = TextlintRuleDescriptors_1.TextlintRuleDescriptors; | ||
Object.defineProperty(exports, "TextlintRuleDescriptors", { enumerable: true, get: function () { return TextlintRuleDescriptors_1.TextlintRuleDescriptors; } }); | ||
var TextlintLintableRuleDescriptor_1 = require("./TextlintLintableRuleDescriptor"); | ||
exports.TextlintLintableRuleDescriptor = TextlintLintableRuleDescriptor_1.TextlintLintableRuleDescriptor; | ||
Object.defineProperty(exports, "TextlintLintableRuleDescriptor", { enumerable: true, get: function () { return TextlintLintableRuleDescriptor_1.TextlintLintableRuleDescriptor; } }); | ||
var TextlintFixableRuleDescriptor_1 = require("./TextlintFixableRuleDescriptor"); | ||
exports.TextlintFixableRuleDescriptor = TextlintFixableRuleDescriptor_1.TextlintFixableRuleDescriptor; | ||
Object.defineProperty(exports, "TextlintFixableRuleDescriptor", { enumerable: true, get: function () { return TextlintFixableRuleDescriptor_1.TextlintFixableRuleDescriptor; } }); | ||
var TextlintFilterRuleDescriptors_1 = require("./TextlintFilterRuleDescriptors"); | ||
exports.TextlintFilterRuleDescriptors = TextlintFilterRuleDescriptors_1.TextlintFilterRuleDescriptors; | ||
Object.defineProperty(exports, "TextlintFilterRuleDescriptors", { enumerable: true, get: function () { return TextlintFilterRuleDescriptors_1.TextlintFilterRuleDescriptors; } }); | ||
var TextlintFilterRuleDescriptor_1 = require("./TextlintFilterRuleDescriptor"); | ||
exports.TextlintFilterRuleDescriptor = TextlintFilterRuleDescriptor_1.TextlintFilterRuleDescriptor; | ||
Object.defineProperty(exports, "TextlintFilterRuleDescriptor", { enumerable: true, get: function () { return TextlintFilterRuleDescriptor_1.TextlintFilterRuleDescriptor; } }); | ||
var TextlintPluginDescriptors_1 = require("./TextlintPluginDescriptors"); | ||
exports.TextlintPluginDescriptors = TextlintPluginDescriptors_1.TextlintPluginDescriptors; | ||
Object.defineProperty(exports, "TextlintPluginDescriptors", { enumerable: true, get: function () { return TextlintPluginDescriptors_1.TextlintPluginDescriptors; } }); | ||
var TextlintPluginDescriptor_1 = require("./TextlintPluginDescriptor"); | ||
exports.TextlintPluginDescriptor = TextlintPluginDescriptor_1.TextlintPluginDescriptor; | ||
Object.defineProperty(exports, "TextlintPluginDescriptor", { enumerable: true, get: function () { return TextlintPluginDescriptor_1.TextlintPluginDescriptor; } }); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getFilter = exports.assertRuleShape = exports.isRuleModule = exports.getFixer = exports.hasFixer = exports.getLinter = exports.hasLinter = void 0; | ||
/** | ||
@@ -4,0 +5,0 @@ * detect that ruleCreator has linter function |
@@ -7,2 +7,3 @@ // LICENSE : MIT | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintFilterRuleDescriptor = void 0; | ||
var rule_creator_helper_1 = require("./rule-creator-helper"); | ||
@@ -22,3 +23,3 @@ var deep_equal_1 = __importDefault(require("deep-equal")); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -30,3 +31,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -41,3 +42,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -53,3 +54,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -72,3 +73,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -80,3 +81,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -83,0 +84,0 @@ }); |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintFilterRuleDescriptors = void 0; | ||
var DescriptorUtil_1 = require("./DescriptorUtil"); | ||
@@ -31,3 +32,3 @@ /** | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -42,3 +43,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -45,0 +46,0 @@ }); |
@@ -17,2 +17,3 @@ // LICENSE : MIT | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintFixableRuleDescriptor = void 0; | ||
var rule_creator_helper_1 = require("./rule-creator-helper"); | ||
@@ -38,3 +39,3 @@ var TextlintLintableRuleDescriptor_1 = require("./TextlintLintableRuleDescriptor"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -41,0 +42,0 @@ }); |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintKernelDescriptor = void 0; | ||
var DescriptorsFactory_1 = require("./DescriptorsFactory"); | ||
@@ -30,3 +31,3 @@ var TextlintKernelDescriptor = /** @class */ (function () { | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -33,0 +34,0 @@ }); |
@@ -7,2 +7,3 @@ // LICENSE : MIT | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintLintableRuleDescriptor = void 0; | ||
var rule_creator_helper_1 = require("./rule-creator-helper"); | ||
@@ -23,3 +24,3 @@ var deep_equal_1 = __importDefault(require("deep-equal")); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -34,3 +35,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -45,3 +46,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -57,3 +58,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -76,3 +77,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -84,3 +85,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -87,0 +88,0 @@ }); |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintPluginDescriptor = void 0; | ||
var deep_equal_1 = __importDefault(require("deep-equal")); | ||
@@ -40,3 +41,3 @@ /** | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -51,3 +52,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -62,3 +63,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -77,3 +78,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -85,3 +86,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -88,0 +89,0 @@ }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintPluginDescriptors = void 0; | ||
var DescriptorUtil_1 = require("./DescriptorUtil"); | ||
@@ -21,3 +22,3 @@ /** | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -32,3 +33,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -46,3 +47,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -49,0 +50,0 @@ }); |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintRuleDescriptors = void 0; | ||
var TextlintLintableRuleDescriptor_1 = require("./TextlintLintableRuleDescriptor"); | ||
@@ -34,3 +35,3 @@ var DescriptorUtil_1 = require("./DescriptorUtil"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -47,3 +48,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -58,3 +59,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -69,3 +70,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -72,0 +73,0 @@ }); |
// LICENSE : MIT | ||
"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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -9,0 +21,0 @@ }; |
"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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -8,0 +20,0 @@ }; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
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 __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Kernel | ||
var textlint_kernel_1 = require("./textlint-kernel"); | ||
exports.TextlintKernel = textlint_kernel_1.TextlintKernel; | ||
Object.defineProperty(exports, "TextlintKernel", { enumerable: true, get: function () { return textlint_kernel_1.TextlintKernel; } }); | ||
// Kernel Descriptor | ||
__export(require("./descriptor/index")); | ||
__exportStar(require("./descriptor/index"), exports); | ||
// TextlintRuleSeverityLevel Key | ||
var TextlintRuleSeverityLevelKeys_1 = require("./context/TextlintRuleSeverityLevelKeys"); | ||
exports.TextlintRuleSeverityLevelKeys = TextlintRuleSeverityLevelKeys_1.TextlintRuleSeverityLevelKeys; | ||
Object.defineProperty(exports, "TextlintRuleSeverityLevelKeys", { enumerable: true, get: function () { return TextlintRuleSeverityLevelKeys_1.TextlintRuleSeverityLevelKeys; } }); | ||
//# sourceMappingURL=index.js.map |
// LICENSE : MIT | ||
"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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -9,0 +21,0 @@ }; |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.through = exports.filterWarningMessages = void 0; | ||
var TextlintRuleSeverityLevelKeys_1 = require("../context/TextlintRuleSeverityLevelKeys"); | ||
@@ -5,0 +6,0 @@ /** |
// LICENSE : MIT | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSeverity = void 0; | ||
var TextlintRuleSeverityLevelKeys_1 = require("../context/TextlintRuleSeverityLevelKeys"); | ||
@@ -5,0 +6,0 @@ var isSeverityLevelValue = function (type) { |
@@ -6,2 +6,3 @@ // MIT © 2017 azu | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PromiseEventEmitter = void 0; | ||
var events_1 = require("events"); | ||
@@ -8,0 +9,0 @@ var PromiseEventEmitter = /** @class */ (function () { |
@@ -16,12 +16,24 @@ // LICENSE : MIT | ||
})(); | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -72,3 +84,3 @@ var TextlintRuleErrorImpl_1 = require("../context/TextlintRuleErrorImpl"); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -75,0 +87,0 @@ }); |
// MIT © 2017 azu | ||
"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 (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
@@ -14,2 +26,3 @@ }; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextlintKernel = void 0; | ||
var assert = __importStar(require("assert")); | ||
@@ -16,0 +29,0 @@ // sequence |
@@ -58,3 +58,3 @@ import * as assert from "assert"; | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -66,3 +66,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -78,3 +78,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -90,3 +90,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -104,3 +104,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -107,0 +107,0 @@ }); |
@@ -39,3 +39,3 @@ import { TextlintRuleContext, TextlintRuleContextArgs, TextlintRuleError, TextlintRuleReportedObject, TextlintRuleSeverityLevel } from "@textlint/types"; | ||
*/ | ||
report: (node: TxtNode, ruleError: TextlintRuleReportedObject | TextlintRuleError, _shouldNotUsed?: any) => void; | ||
report: (node: TxtNode, ruleError: TextlintRuleError | TextlintRuleReportedObject, _shouldNotUsed?: any) => void; | ||
/** | ||
@@ -42,0 +42,0 @@ * get file path current processing. |
@@ -73,3 +73,3 @@ import assert from "assert"; | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -84,3 +84,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -96,3 +96,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -108,3 +108,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -120,3 +120,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -123,0 +123,0 @@ }); |
@@ -44,2 +44,3 @@ import assert from "assert"; | ||
*/ | ||
// @ts-expect-error | ||
return Object.assign({}, adjustedLoc, adjustedFix); | ||
@@ -135,3 +136,6 @@ }; | ||
fix: { | ||
range: [nodeRange[0] + ruleErrorObject.fix.range[0], nodeRange[0] + ruleErrorObject.fix.range[1]], | ||
range: [ | ||
nodeRange[0] + ruleErrorObject.fix.range[0], | ||
nodeRange[0] + ruleErrorObject.fix.range[1] | ||
], | ||
text: ruleErrorObject.fix.text | ||
@@ -138,0 +142,0 @@ } |
@@ -17,3 +17,3 @@ // LICENSE : MIT | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -25,3 +25,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -36,3 +36,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -48,3 +48,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -67,3 +67,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -75,3 +75,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -78,0 +78,0 @@ }); |
@@ -30,3 +30,3 @@ // LICENSE : MIT | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -41,3 +41,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -44,0 +44,0 @@ }); |
@@ -36,3 +36,3 @@ // LICENSE : MIT | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -39,0 +39,0 @@ }); |
@@ -27,3 +27,3 @@ var __assign = (this && this.__assign) || function () { | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -30,0 +30,0 @@ }); |
@@ -18,3 +18,3 @@ // LICENSE : MIT | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -29,3 +29,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -40,3 +40,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -52,3 +52,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -71,3 +71,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -79,3 +79,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -82,0 +82,0 @@ }); |
@@ -35,3 +35,3 @@ "use strict"; | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -46,3 +46,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -57,3 +57,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -72,3 +72,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -80,3 +80,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -83,0 +83,0 @@ }); |
@@ -20,3 +20,3 @@ "use strict"; | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -31,3 +31,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -45,3 +45,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -48,0 +48,0 @@ }); |
@@ -33,3 +33,3 @@ // LICENSE : MIT | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -46,3 +46,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -57,3 +57,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -68,3 +68,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -71,0 +71,0 @@ }); |
@@ -60,3 +60,3 @@ // LICENSE : MIT | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -63,0 +63,0 @@ }); |
{ | ||
"name": "@textlint/kernel", | ||
"version": "3.3.5", | ||
"version": "3.3.6", | ||
"description": "textlint kernel is core logic by pure JavaScript.", | ||
@@ -38,8 +38,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@textlint/ast-node-types": "^4.3.3", | ||
"@textlint/ast-tester": "^2.2.3", | ||
"@textlint/ast-traverse": "^2.2.4", | ||
"@textlint/feature-flag": "^3.2.3", | ||
"@textlint/types": "^1.4.4", | ||
"@textlint/utils": "^1.1.3", | ||
"@textlint/ast-node-types": "^4.3.4", | ||
"@textlint/ast-tester": "^2.2.4", | ||
"@textlint/ast-traverse": "^2.2.5", | ||
"@textlint/feature-flag": "^3.2.4", | ||
"@textlint/types": "^1.4.5", | ||
"@textlint/utils": "^1.1.4", | ||
"debug": "^4.1.1", | ||
@@ -51,3 +51,3 @@ "deep-equal": "^1.1.1", | ||
"devDependencies": { | ||
"@textlint/markdown-to-ast": "^6.2.4", | ||
"@textlint/markdown-to-ast": "^6.2.5", | ||
"@types/debug": "^4.1.5", | ||
@@ -64,7 +64,7 @@ "@types/deep-equal": "^1.0.1", | ||
"shelljs": "^0.8.3", | ||
"ts-node": "^8.8.2", | ||
"ts-node": "^8.10.2", | ||
"ts-node-test-register": "^8.0.1", | ||
"typescript": "~3.8.3" | ||
"typescript": "~3.9.7" | ||
}, | ||
"gitHead": "87ddb362c0d902fd80f6f3de20de72202f0e0147" | ||
"gitHead": "a6fde3a45f9a02732dc358e16aba192b7f3610ad" | ||
} |
@@ -105,2 +105,3 @@ import type { | ||
*/ | ||
// @ts-expect-error | ||
return Object.assign({}, adjustedLoc, adjustedFix); | ||
@@ -199,3 +200,6 @@ } | ||
fix: { | ||
range: [nodeRange[0] + ruleErrorObject.fix.range[0], nodeRange[0] + ruleErrorObject.fix.range[1]], | ||
range: [ | ||
nodeRange[0] + ruleErrorObject.fix.range[0], | ||
nodeRange[0] + ruleErrorObject.fix.range[1] | ||
] as const, | ||
text: ruleErrorObject.fix.text | ||
@@ -202,0 +206,0 @@ } |
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
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
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
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
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
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
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
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
574709
11176
Updated@textlint/ast-tester@^2.2.4
Updated@textlint/types@^1.4.5
Updated@textlint/utils@^1.1.4