@textlint/textlint-plugin-text 15.8.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,7 @@
1
1
  // LICENSE : MIT
2
2
  "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TextProcessor = void 0;
5
- const text_to_ast_1 = require("@textlint/text-to-ast");
6
- class TextProcessor {
3
+ import { parse } from "@textlint/text-to-ast";
4
+ export class TextProcessor {
7
5
  constructor(config = {}) {
8
6
  this.config = config;
9
7
  // support "extension" option
@@ -15,7 +13,7 @@ class TextProcessor {
15
13
  processor(_ext) {
16
14
  return {
17
15
  preProcess(text, _filePath) {
18
- return (0, text_to_ast_1.parse)(text);
16
+ return parse(text);
19
17
  },
20
18
  postProcess(messages, filePath) {
21
19
  return {
@@ -26,5 +24,4 @@ class TextProcessor {
26
24
  };
27
25
  }
28
26
  }
29
- exports.TextProcessor = TextProcessor;
30
27
  //# sourceMappingURL=TextProcessor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextProcessor.js","sourceRoot":"","sources":["../../src/TextProcessor.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,YAAY,CAAC;;;AACb,uDAA8C;AAS9C,MAAa,aAAa;IAGtB,YAAY,SAAgC,EAAE;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,6BAA6B;QAC7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAC,UAAuB,CAAC,CAAC,CAAC,EAAE,CAAC;IACzF,CAAC;IAED,mBAAmB;QACf,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,SAAS,CAAC,IAAY;QAIlB,OAAO;YACH,UAAU,CAAC,IAAY,EAAE,SAAkB;gBACvC,OAAO,IAAA,mBAAK,EAAC,IAAI,CAAC,CAAC;YACvB,CAAC;YACD,WAAW,CACP,QAAgC,EAChC,QAAiB;gBAEjB,OAAO;oBACH,QAAQ;oBACR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;iBAC3C,CAAC;YACN,CAAC;SACJ,CAAC;IACN,CAAC;CACJ;AAhCD,sCAgCC"}
1
+ {"version":3,"file":"TextProcessor.js","sourceRoot":"","sources":["../../src/TextProcessor.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,YAAY,CAAC;AACb,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAS9C,MAAM,OAAO,aAAa;IAGtB,YAAY,SAAgC,EAAE;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,6BAA6B;QAC7B,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAE,IAAI,CAAC,MAAM,CAAC,UAAuB,CAAC,CAAC,CAAC,EAAE,CAAC;IACzF,CAAC;IAED,mBAAmB;QACf,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC;IAED,SAAS,CAAC,IAAY;QAIlB,OAAO;YACH,UAAU,CAAC,IAAY,EAAE,SAAkB;gBACvC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC;YACvB,CAAC;YACD,WAAW,CACP,QAAgC,EAChC,QAAiB;gBAEjB,OAAO;oBACH,QAAQ;oBACR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ;iBAC3C,CAAC;YACN,CAAC;SACJ,CAAC;IACN,CAAC;CACJ"}
package/lib/src/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  // LICENSE : MIT
2
2
  "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const TextProcessor_js_1 = require("./TextProcessor.js");
5
- exports.default = {
6
- Processor: TextProcessor_js_1.TextProcessor
3
+ import { TextProcessor } from "./TextProcessor.js";
4
+ export default {
5
+ Processor: TextProcessor
7
6
  };
8
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,YAAY,CAAC;;AACb,yDAAmD;AACnD,kBAAe;IACX,SAAS,EAAE,gCAAa;CAC3B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,YAAY,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,eAAe;IACX,SAAS,EAAE,aAAa;CAC3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@textlint/textlint-plugin-text",
3
- "version": "15.8.0",
3
+ "version": "16.0.0",
4
4
  "description": "plain text plugin for textlint",
5
5
  "homepage": "https://github.com/textlint/textlint/tree/master/packages/@textlint/textlint-plugin-text/",
6
6
  "bugs": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "azu",
15
- "type": "commonjs",
15
+ "type": "module",
16
16
  "main": "lib/src/index.js",
17
17
  "types": "lib/src/index.d.ts",
18
18
  "directories": {
@@ -33,14 +33,14 @@
33
33
  "watch": "tsc -b --watch"
34
34
  },
35
35
  "dependencies": {
36
- "@textlint/text-to-ast": "15.8.0",
37
- "@textlint/types": "15.8.0"
36
+ "@textlint/text-to-ast": "16.0.0",
37
+ "@textlint/types": "16.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@textlint/kernel": "15.8.0",
41
- "@types/node": "^24.13.3",
40
+ "@textlint/kernel": "16.0.0",
41
+ "@types/node": "^24.19.2",
42
42
  "@types/react": "^18.3.31",
43
- "rimraf": "^6.1.3",
43
+ "rimraf": "^6.1.4",
44
44
  "textlint-rule-no-todo": "^2.0.1",
45
45
  "typescript": "~5.8.3",
46
46
  "vitest": "^3.2.7"
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "4ba5bfedb27e86ffc12558743e5840eb57d13302"
51
+ "gitHead": "c23854983d375b07c10d33f19e7cabc3390d383b"
52
52
  }