@fugood/llama.node 0.6.2 → 0.6.3

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.
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@fugood/llama.node",
3
3
  "access": "public",
4
- "version": "0.6.2",
4
+ "version": "0.6.3",
5
5
  "description": "An another Node binding of llama.cpp",
6
6
  "main": "lib/index.js",
7
7
  "scripts": {
8
- "postinstall": "patch-package",
9
8
  "pretest": "node scripts/download-test-models.js",
10
9
  "test": "jest",
11
10
  "build": "tsc",
@@ -44,7 +43,6 @@
44
43
  ]
45
44
  },
46
45
  "files": [
47
- "patches/*.patch",
48
46
  "bin/**/*",
49
47
  "src/**/*.{c,cc,cpp,h,hh,hpp,txt,cmake}",
50
48
  "lib/*.js",
@@ -61,7 +59,6 @@
61
59
  "cmake-js": "^7.3.0",
62
60
  "husky": "^9.0.11",
63
61
  "jest": "^29.7.0",
64
- "patch-package": "^8.0.0",
65
62
  "release-it": "^17.7.0",
66
63
  "rimraf": "^6.0.1",
67
64
  "typescript": "^5.4.5",
@@ -1,26 +0,0 @@
1
- diff --git a/node_modules/node-api-headers/include/js_native_api.h b/node_modules/node-api-headers/include/js_native_api.h
2
- index e06bdc8..c35398a 100644
3
- --- a/node_modules/node-api-headers/include/js_native_api.h
4
- +++ b/node_modules/node-api-headers/include/js_native_api.h
5
- @@ -22,7 +22,7 @@
6
- // If you need __declspec(dllimport), either include <node_api.h> instead, or
7
- // define NAPI_EXTERN as __declspec(dllimport) on the compiler's command line.
8
- #ifndef NAPI_EXTERN
9
- -#ifdef _WIN32
10
- +#if defined(_WIN32) && _MSC_VER
11
- #define NAPI_EXTERN __declspec(dllexport)
12
- #elif defined(__wasm32__)
13
- #define NAPI_EXTERN \
14
- diff --git a/node_modules/node-api-headers/include/node_api.h b/node_modules/node-api-headers/include/node_api.h
15
- index 0345468..359c496 100644
16
- --- a/node_modules/node-api-headers/include/node_api.h
17
- +++ b/node_modules/node-api-headers/include/node_api.h
18
- @@ -2,7 +2,7 @@
19
- #define SRC_NODE_API_H_
20
-
21
- #ifdef BUILDING_NODE_EXTENSION
22
- -#ifdef _WIN32
23
- +#if defined(_WIN32) && _MSC_VER
24
- // Building native addon against node
25
- #define NAPI_EXTERN __declspec(dllimport)
26
- #elif defined(__wasm32__)