oxlint-plugin-vize 0.114.0 → 0.115.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.
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as hasScriptLikeBlock, t as appendScriptlessWorkaround } from "./workaround-57-10EZz.mjs";
2
- import fs from "node:fs";
3
- import path from "node:path";
4
2
  import { spawn } from "node:child_process";
3
+ import path from "node:path";
4
+ import fs from "node:fs";
5
5
  //#region src/cli/args.ts
6
6
  const OPTION_NAMES_WITH_VALUES = new Set([
7
7
  "-A",
package/dist/index.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { a as extractSfcBlocks, i as compareLineColumn, o as formatBlockLabel, r as resolveWorkaroundSource, s as getDiagnosticBlock } from "./workaround-57-10EZz.mjs";
2
2
  import { createRequire } from "node:module";
3
3
  import { definePlugin, defineRule } from "@oxlint/plugins";
4
- import fs, { readFileSync } from "node:fs";
4
+ import { spawnSync } from "node:child_process";
5
5
  import path from "node:path";
6
+ import fs from "node:fs";
6
7
  //#region src/native.ts
7
8
  const require = createRequire(import.meta.url);
8
9
  const FALLBACK_BINDING_PACKAGE = "@vizejs/native";
@@ -10,11 +11,16 @@ let bindingCache = null;
10
11
  function isMusl() {
11
12
  const report = process.report?.getReport();
12
13
  if (typeof report === "object" && report !== null && "header" in report) return !report.header.glibcVersionRuntime;
13
- try {
14
- return readFileSync(require("node:child_process").execSync("which ldd").toString().trim(), "utf8").includes("musl");
15
- } catch {
16
- return true;
17
- }
14
+ const result = spawnSync("ldd", ["--version"], {
15
+ encoding: "utf8",
16
+ stdio: [
17
+ "ignore",
18
+ "pipe",
19
+ "pipe"
20
+ ]
21
+ });
22
+ if (result.error) return true;
23
+ return `${result.stdout ?? ""}\n${result.stderr ?? ""}`.includes("musl");
18
24
  }
19
25
  function getBindingPackageName() {
20
26
  const { arch, platform } = process;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-vize",
3
- "version": "0.114.0",
3
+ "version": "0.115.0",
4
4
  "description": "Oxlint JS plugin bridge for Vize Patina",
5
5
  "keywords": [
6
6
  "lint",
@@ -44,21 +44,21 @@
44
44
  "devDependencies": {
45
45
  "@tsdown/css": "0.22.0",
46
46
  "@types/node": "25.7.0",
47
- "@vizejs/native": "0.114.0",
47
+ "@vizejs/native": "0.115.0",
48
48
  "tsdown": "0.22.0",
49
49
  "typescript": "6.0.3",
50
50
  "vite": "npm:@voidzero-dev/vite-plus-core@0.1.21",
51
51
  "vite-plus": "0.1.21"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@vizejs/native-darwin-arm64": "0.114.0",
55
- "@vizejs/native-darwin-x64": "0.114.0",
56
- "@vizejs/native-linux-arm64-gnu": "0.114.0",
57
- "@vizejs/native-linux-arm64-musl": "0.114.0",
58
- "@vizejs/native-linux-x64-gnu": "0.114.0",
59
- "@vizejs/native-linux-x64-musl": "0.114.0",
60
- "@vizejs/native-win32-arm64-msvc": "0.114.0",
61
- "@vizejs/native-win32-x64-msvc": "0.114.0"
54
+ "@vizejs/native-darwin-arm64": "0.115.0",
55
+ "@vizejs/native-darwin-x64": "0.115.0",
56
+ "@vizejs/native-linux-arm64-gnu": "0.115.0",
57
+ "@vizejs/native-linux-arm64-musl": "0.115.0",
58
+ "@vizejs/native-linux-x64-gnu": "0.115.0",
59
+ "@vizejs/native-linux-x64-musl": "0.115.0",
60
+ "@vizejs/native-win32-arm64-msvc": "0.115.0",
61
+ "@vizejs/native-win32-x64-msvc": "0.115.0"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=24"