@alint-js/core 0.0.11 → 0.0.12

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.
Files changed (2) hide show
  1. package/dist/index.mjs +8 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { minimatch } from "minimatch";
2
2
  import { isAbsolute, relative, resolve } from "pathe";
3
- import { parseSync } from "oxc-parser";
4
3
  import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
5
4
  import { dirname, extname, isAbsolute as isAbsolute$1, join, relative as relative$1, resolve as resolve$1, sep } from "node:path";
6
5
  import { clamp } from "es-toolkit";
6
+ import { parseSync } from "oxc-parser";
7
7
  import { AsyncLocalStorage } from "node:async_hooks";
8
8
  import process, { cwd } from "node:process";
9
9
  import { errorCauseFrom, errorMessageFrom } from "@moeru/std/error";
@@ -309,9 +309,14 @@ function inferLanguage(path) {
309
309
  }
310
310
  }
311
311
  //#endregion
312
+ //#region src/core/languages/js/parser.ts
313
+ function parseSync$1(filename, sourceText, options) {
314
+ return parseSync(filename, sourceText, options);
315
+ }
316
+ //#endregion
312
317
  //#region src/core/languages/js/extract.ts
313
318
  function extractJsSourceTargets(file) {
314
- const result = parseSync(file.path, file.text, { sourceType: "module" });
319
+ const result = parseSync$1(file.path, file.text, { sourceType: "module" });
315
320
  const state = {
316
321
  bindingNodes: /* @__PURE__ */ new Map(),
317
322
  exportedNodes: /* @__PURE__ */ new Set(),
@@ -648,7 +653,7 @@ function createBuiltInLanguageRegistry() {
648
653
  }
649
654
  //#endregion
650
655
  //#region package.json
651
- var version = "0.0.11";
656
+ var version = "0.0.12";
652
657
  //#endregion
653
658
  //#region src/dsl/registry.ts
654
659
  function buildRuleRegistry(config) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alint-js/core",
3
3
  "type": "module",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.mts",