@kreuzberg/liter-llm-node 1.6.1 → 1.6.2

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
@@ -10,16 +10,9 @@ const isMusl = () => {
10
10
  // "is musl" positive. Fall through to the filesystem heuristic instead: on
11
11
  // glibc systems `/lib64/ld-musl-x86_64.so.1` does not exist; on musl systems
12
12
  // it always does. statSync errors → not musl.
13
- if (
14
- typeof process.report === "object" &&
15
- typeof process.report.getReport === "function"
16
- ) {
13
+ if (typeof process.report === "object" && typeof process.report.getReport === "function") {
17
14
  const report = process.report.getReport();
18
- if (
19
- report &&
20
- report.header &&
21
- typeof report.header.glibcVersion === "string"
22
- ) {
15
+ if (report && report.header && typeof report.header.glibcVersion === "string") {
23
16
  return false;
24
17
  }
25
18
  }
@@ -48,12 +41,48 @@ const tryLoadBinding = () => {
48
41
  // Optional-dep packages are named after `napi.packageName` (npm subpackage names),
49
42
  // which inherits any scope prefix from the parent package.
50
43
  const targets = [
51
- ["linux", "x64", "gnu", "./liter-llm-node.linux-x64-gnu.node", "@kreuzberg/liter-llm-node-linux-x64-gnu"],
52
- ["linux", "arm64", "gnu", "./liter-llm-node.linux-arm64-gnu.node", "@kreuzberg/liter-llm-node-linux-arm64-gnu"],
53
- ["darwin", "x64", null, "./liter-llm-node.darwin-x64.node", "@kreuzberg/liter-llm-node-darwin-x64"],
54
- ["darwin", "arm64", null, "./liter-llm-node.darwin-arm64.node", "@kreuzberg/liter-llm-node-darwin-arm64"],
55
- ["win32", "x64", null, "./liter-llm-node.win32-x64-msvc.node", "@kreuzberg/liter-llm-node-win32-x64-msvc"],
56
- ["win32", "arm64", null, "./liter-llm-node.win32-arm64-msvc.node", "@kreuzberg/liter-llm-node-win32-arm64-msvc"],
44
+ [
45
+ "linux",
46
+ "x64",
47
+ "gnu",
48
+ "./liter-llm-node.linux-x64-gnu.node",
49
+ "@kreuzberg/liter-llm-node-linux-x64-gnu",
50
+ ],
51
+ [
52
+ "linux",
53
+ "arm64",
54
+ "gnu",
55
+ "./liter-llm-node.linux-arm64-gnu.node",
56
+ "@kreuzberg/liter-llm-node-linux-arm64-gnu",
57
+ ],
58
+ [
59
+ "darwin",
60
+ "x64",
61
+ null,
62
+ "./liter-llm-node.darwin-x64.node",
63
+ "@kreuzberg/liter-llm-node-darwin-x64",
64
+ ],
65
+ [
66
+ "darwin",
67
+ "arm64",
68
+ null,
69
+ "./liter-llm-node.darwin-arm64.node",
70
+ "@kreuzberg/liter-llm-node-darwin-arm64",
71
+ ],
72
+ [
73
+ "win32",
74
+ "x64",
75
+ null,
76
+ "./liter-llm-node.win32-x64-msvc.node",
77
+ "@kreuzberg/liter-llm-node-win32-x64-msvc",
78
+ ],
79
+ [
80
+ "win32",
81
+ "arm64",
82
+ null,
83
+ "./liter-llm-node.win32-arm64-msvc.node",
84
+ "@kreuzberg/liter-llm-node-win32-arm64-msvc",
85
+ ],
57
86
  ];
58
87
 
59
88
  for (const [plat, a, abi, localPath, optionalDep] of targets) {
@@ -93,7 +122,7 @@ tryLoadBinding();
93
122
 
94
123
  if (!nativeBinding) {
95
124
  throw new Error(
96
- `Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}`
125
+ `Failed to load native binding for ${platform}-${arch}. Errors: ${loadErrors.join(", ")}`,
97
126
  );
98
127
  }
99
128
 
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@kreuzberg/liter-llm-node",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Universal LLM API client with Rust-powered polyglot bindings.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/kreuzberg-dev/liter-llm.git"
9
9
  },
10
+ "files": [
11
+ "index.js",
12
+ "index.d.ts",
13
+ "*.node"
14
+ ],
10
15
  "main": "index.js",
11
16
  "types": "index.d.ts",
12
17
  "exports": {
@@ -16,18 +21,28 @@
16
21
  "default": "./index.js"
17
22
  }
18
23
  },
19
- "files": ["index.js", "index.d.ts", "*.node"],
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "build": "npx --yes -p @napi-rs/cli@^3.6.2 napi build --platform --release",
29
+ "artifacts": "npx --yes -p @napi-rs/cli@^3.6.2 napi artifacts",
30
+ "prepublishOnly": "npx --yes -p @napi-rs/cli@^3.6.2 napi prepublish -t npm --skip-optional-publish"
31
+ },
32
+ "devDependencies": {
33
+ "@napi-rs/cli": "^3.6.2"
34
+ },
20
35
  "optionalDependencies": {
21
- "@kreuzberg/liter-llm-node-linux-x64-gnu": "1.6.1",
22
- "@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.6.1",
23
- "@kreuzberg/liter-llm-node-darwin-x64": "1.6.1",
24
- "@kreuzberg/liter-llm-node-darwin-arm64": "1.6.1",
25
- "@kreuzberg/liter-llm-node-win32-x64-msvc": "1.6.1",
26
- "@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.6.1"
36
+ "@kreuzberg/liter-llm-node-darwin-arm64": "1.6.2",
37
+ "@kreuzberg/liter-llm-node-darwin-x64": "1.6.2",
38
+ "@kreuzberg/liter-llm-node-linux-arm64-gnu": "1.6.2",
39
+ "@kreuzberg/liter-llm-node-linux-x64-gnu": "1.6.2",
40
+ "@kreuzberg/liter-llm-node-win32-arm64-msvc": "1.6.2",
41
+ "@kreuzberg/liter-llm-node-win32-x64-msvc": "1.6.2"
27
42
  },
28
43
  "napi": {
29
- "packageName": "@kreuzberg/liter-llm-node",
30
44
  "binaryName": "liter-llm-node",
45
+ "packageName": "@kreuzberg/liter-llm-node",
31
46
  "targets": [
32
47
  "x86_64-unknown-linux-gnu",
33
48
  "aarch64-unknown-linux-gnu",
@@ -37,12 +52,7 @@
37
52
  "aarch64-pc-windows-msvc"
38
53
  ]
39
54
  },
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"
44
- },
45
- "engines": { "node": ">= 18" },
46
- "publishConfig": { "access": "public" },
47
- "devDependencies": { "@napi-rs/cli": "^3.6.2" }
55
+ "engines": {
56
+ "node": ">= 18"
57
+ }
48
58
  }