@xberg-io/liter-llm 1.9.2 → 1.10.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/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  const { platform, arch } = process;
4
- const isWindows = platform === "win32";
5
4
  const isMusl = () => {
6
5
  // Prefer the report-header `glibcVersion` string when present — fastest and
7
6
  // unambiguous on Node builds that populate it. On Node 22+, certain CI
@@ -10,9 +9,16 @@ const isMusl = () => {
10
9
  // "is musl" positive. Fall through to the filesystem heuristic instead: on
11
10
  // glibc systems `/lib64/ld-musl-x86_64.so.1` does not exist; on musl systems
12
11
  // it always does. statSync errors → not musl.
13
- if (typeof process.report === "object" && typeof process.report.getReport === "function") {
12
+ if (
13
+ typeof process.report === "object" &&
14
+ typeof process.report.getReport === "function"
15
+ ) {
14
16
  const report = process.report.getReport();
15
- if (report && report.header && typeof report.header.glibcVersion === "string") {
17
+ if (
18
+ report &&
19
+ report.header &&
20
+ typeof report.header.glibcVersion === "string"
21
+ ) {
16
22
  return false;
17
23
  }
18
24
  }
@@ -85,7 +91,9 @@ const tryLoadBinding = () => {
85
91
  tryLoadBinding();
86
92
 
87
93
  if (!nativeBinding) {
88
- throw new Error(`Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}`);
94
+ throw new Error(
95
+ `Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}`
96
+ );
89
97
  }
90
98
 
91
99
  module.exports = nativeBinding;
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xberg-io/liter-llm",
3
- "version": "1.9.2",
3
+ "version": "1.10.0",
4
4
  "description": "Universal LLM API client with Rust-powered polyglot bindings.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "files": ["index.js", "index.d.ts", "*.node"],
20
20
  "optionalDependencies": {
21
- "@xberg-io/liter-llm-linux-x64-gnu": "1.9.2",
22
- "@xberg-io/liter-llm-linux-arm64-gnu": "1.9.2",
23
- "@xberg-io/liter-llm-darwin-x64": "1.9.2",
24
- "@xberg-io/liter-llm-darwin-arm64": "1.9.2",
25
- "@xberg-io/liter-llm-win32-x64-msvc": "1.9.2",
26
- "@xberg-io/liter-llm-win32-arm64-msvc": "1.9.2"
21
+ "@xberg-io/liter-llm-linux-x64-gnu": "1.10.0",
22
+ "@xberg-io/liter-llm-linux-arm64-gnu": "1.10.0",
23
+ "@xberg-io/liter-llm-darwin-x64": "1.10.0",
24
+ "@xberg-io/liter-llm-darwin-arm64": "1.10.0",
25
+ "@xberg-io/liter-llm-win32-x64-msvc": "1.10.0",
26
+ "@xberg-io/liter-llm-win32-arm64-msvc": "1.10.0"
27
27
  },
28
28
  "napi": {
29
29
  "packageName": "@xberg-io/liter-llm",
@@ -38,11 +38,11 @@
38
38
  ]
39
39
  },
40
40
  "scripts": {
41
- "build": "npx --yes -p @napi-rs/cli@^3.6.2 napi build --platform --release",
42
- "artifacts": "npx --yes -p @napi-rs/cli@^3.6.2 napi artifacts",
43
- "prepublishOnly": "npx --yes -p @napi-rs/cli@^3.6.2 napi prepublish -t npm --skip-optional-publish"
41
+ "build": "npx --yes -p @napi-rs/cli@^3.7.3 napi build --platform --release",
42
+ "artifacts": "npx --yes -p @napi-rs/cli@^3.7.3 napi artifacts",
43
+ "prepublishOnly": "npx --yes -p @napi-rs/cli@^3.7.3 napi prepublish -t npm --skip-optional-publish"
44
44
  },
45
45
  "engines": { "node": ">= 22" },
46
46
  "publishConfig": { "access": "public" },
47
- "devDependencies": { "@napi-rs/cli": "^3.6.2" }
47
+ "devDependencies": { "@napi-rs/cli": "^3.7.3" }
48
48
  }