koffi 2.14.1 → 2.15.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/build/koffi/darwin_arm64/koffi.node +0 -0
  3. package/build/koffi/darwin_x64/koffi.node +0 -0
  4. package/build/koffi/freebsd_arm64/koffi.node +0 -0
  5. package/build/koffi/freebsd_ia32/koffi.node +0 -0
  6. package/build/koffi/freebsd_x64/koffi.node +0 -0
  7. package/build/koffi/linux_arm64/koffi.node +0 -0
  8. package/build/koffi/linux_armhf/koffi.node +0 -0
  9. package/build/koffi/linux_ia32/koffi.node +0 -0
  10. package/build/koffi/linux_loong64/koffi.node +0 -0
  11. package/build/koffi/linux_riscv64d/koffi.node +0 -0
  12. package/build/koffi/linux_x64/koffi.node +0 -0
  13. package/build/koffi/musl_arm64/koffi.node +0 -0
  14. package/build/koffi/musl_x64/koffi.node +0 -0
  15. package/build/koffi/openbsd_ia32/koffi.node +0 -0
  16. package/build/koffi/openbsd_x64/koffi.node +0 -0
  17. package/build/koffi/win32_arm64/koffi.node +0 -0
  18. package/build/koffi/win32_ia32/koffi.node +0 -0
  19. package/build/koffi/win32_x64/koffi.node +0 -0
  20. package/doc/assets.ini +2 -1
  21. package/doc/build.sh +9 -0
  22. package/doc/pages/404.md +17 -0
  23. package/doc/pages/index.md +1 -1
  24. package/doc/pages/misc.md +16 -11
  25. package/doc/pages.ini +4 -0
  26. package/doc/static/highlight.js +2 -14
  27. package/doc/static/koffi.css +3 -15
  28. package/doc/static/print.css +2 -14
  29. package/index.d.ts +29 -24
  30. package/index.js +8 -8
  31. package/indirect.js +8 -8
  32. package/{src/core → lib/native}/base/base.cc +1058 -630
  33. package/{src/core → lib/native}/base/base.hh +334 -165
  34. package/{src/core → lib/native}/base/crc.inc +2 -20
  35. package/lib/native/base/crc_gen.py +72 -0
  36. package/{src/core → lib/native}/base/mimetypes.inc +2 -20
  37. package/{src/core → lib/native}/base/mimetypes_gen.py +2 -21
  38. package/lib/native/base/tower.cc +821 -0
  39. package/lib/native/base/tower.hh +81 -0
  40. package/{src/core → lib/native}/base/unicode.inc +2 -20
  41. package/{src/core → lib/native}/base/unicode_gen.py +4 -41
  42. package/package.json +1 -1
  43. package/src/cnoke/assets/FindCNoke.cmake +8 -20
  44. package/src/cnoke/assets/win_delay_hook.c +2 -20
  45. package/src/cnoke/cnoke.js +2 -21
  46. package/src/cnoke/src/builder.js +2 -20
  47. package/src/cnoke/src/index.js +2 -20
  48. package/src/cnoke/src/tools.js +2 -20
  49. package/src/koffi/CMakeLists.txt +19 -22
  50. package/src/koffi/cmake/raylib.cmake +5 -22
  51. package/src/koffi/cmake/sqlite3.cmake +2 -20
  52. package/src/koffi/src/abi_arm32.cc +7 -25
  53. package/src/koffi/src/abi_arm32_asm.S +2 -20
  54. package/src/koffi/src/abi_arm64.cc +7 -25
  55. package/src/koffi/src/abi_arm64_asm.S +2 -20
  56. package/src/koffi/src/abi_arm64_asm.asm +2 -20
  57. package/src/koffi/src/abi_loong64.cc +2 -20
  58. package/src/koffi/src/abi_loong64_asm.S +2 -20
  59. package/src/koffi/src/abi_riscv64.cc +7 -25
  60. package/src/koffi/src/abi_riscv64_asm.S +2 -20
  61. package/src/koffi/src/abi_x64_sysv.cc +7 -25
  62. package/src/koffi/src/abi_x64_sysv_asm.S +2 -20
  63. package/src/koffi/src/abi_x64_win.cc +12 -30
  64. package/src/koffi/src/abi_x64_win_asm.asm +2 -20
  65. package/src/koffi/src/abi_x86.cc +7 -25
  66. package/src/koffi/src/abi_x86_asm.S +2 -20
  67. package/src/koffi/src/abi_x86_asm.asm +2 -20
  68. package/src/koffi/src/call.cc +25 -45
  69. package/src/koffi/src/call.hh +3 -21
  70. package/src/koffi/src/errno.inc +2 -20
  71. package/src/koffi/src/ffi.cc +62 -62
  72. package/src/koffi/src/ffi.hh +14 -29
  73. package/src/koffi/src/init.js +2 -20
  74. package/src/koffi/src/parser.cc +13 -27
  75. package/src/koffi/src/parser.hh +3 -21
  76. package/src/koffi/src/trampolines/armasm.inc +0 -21
  77. package/src/koffi/src/trampolines/gnu.inc +0 -21
  78. package/src/koffi/src/trampolines/masm32.inc +0 -21
  79. package/src/koffi/src/trampolines/masm64.inc +0 -21
  80. package/src/koffi/src/trampolines/prototypes.inc +0 -21
  81. package/src/koffi/src/util.cc +44 -59
  82. package/src/koffi/src/util.hh +6 -24
  83. package/src/koffi/src/uv.cc +193 -0
  84. package/src/koffi/src/uv.def +10 -0
  85. package/src/koffi/src/uv.hh +40 -0
  86. package/src/koffi/src/win32.cc +2 -20
  87. package/src/koffi/src/win32.hh +3 -21
  88. package/vendor/node-api-headers/include/uv/aix.h +32 -0
  89. package/vendor/node-api-headers/include/uv/bsd.h +34 -0
  90. package/vendor/node-api-headers/include/uv/darwin.h +61 -0
  91. package/vendor/node-api-headers/include/uv/errno.h +483 -0
  92. package/vendor/node-api-headers/include/uv/linux.h +34 -0
  93. package/vendor/node-api-headers/include/uv/os390.h +33 -0
  94. package/vendor/node-api-headers/include/uv/posix.h +31 -0
  95. package/vendor/node-api-headers/include/uv/sunos.h +44 -0
  96. package/vendor/node-api-headers/include/uv/threadpool.h +37 -0
  97. package/vendor/node-api-headers/include/uv/tree.h +521 -0
  98. package/vendor/node-api-headers/include/uv/unix.h +512 -0
  99. package/vendor/node-api-headers/include/uv/version.h +43 -0
  100. package/vendor/node-api-headers/include/uv/win.h +698 -0
  101. package/vendor/node-api-headers/include/uv.h +1990 -0
  102. package/src/core/base/crc_gen.py +0 -109
package/CHANGELOG.md CHANGED
@@ -5,6 +5,25 @@
5
5
 
6
6
  ## Koffi 2
7
7
 
8
+ ### Koffi 2.15
9
+
10
+ #### Koffi 2.15.0
11
+
12
+ *Released on 2025-12-21*
13
+
14
+ - Fix parsing error with some parameter types that could lead to weird crashes (regression introduced in Koffi 2.14)
15
+ - Fix rare data race in Koffi memory allocation/release
16
+ - Increase default and maximum length of async call queue
17
+ - Decrease default stack and heap size used for async calls
18
+ - Add API to poll sockets with Node libuv event loop ([@mkicherer](https://github.com/mkicherer))
19
+ - Fix erroneous UTF-32 range checks when decoding UTF-32 buffers ([@VastBlast](https://github.com/VastBlast))
20
+ - Fix possible overflow when encoding malformed UTF-16 to UTF-32
21
+ - Throw error when using negative offset in encode and decode functions ([@VastBlast](https://github.com/VastBlast))
22
+ - Use proper Unicode replacement char in UTF-32 routines
23
+
24
+ > [!NOTE]
25
+ > The socket polling/libuv integration API is not yet documented and might change in subsequent releases. You've been warned!
26
+
8
27
  ### Koffi 2.14
9
28
 
10
29
  #### Koffi 2.14.1
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/doc/assets.ini CHANGED
@@ -1,4 +1,5 @@
1
1
  EsbuildPath = ../../vendor/esbuild/native/node_modules/@esbuild
2
+ EsbuildRoot = ../..
2
3
 
3
4
  [favicon.png]
4
5
  Type = Copy
@@ -11,7 +12,7 @@ Ignore = favicon.png *.js *.css
11
12
 
12
13
  [static/site.min.js]
13
14
  Type = Bundle
14
- Source = ../../src/web/flat/static.js
15
+ Source = ../../lib/web/flat/static.js
15
16
 
16
17
  [static/highlight.min.js]
17
18
  Type = Bundle
package/doc/build.sh ADDED
@@ -0,0 +1,9 @@
1
+ #!/bin/bash -e
2
+
3
+ cd "$(dirname $0)"
4
+
5
+ ../../bootstrap.sh
6
+ ../../felix -pFast hodler
7
+
8
+ mkdir -p ../../bin/Web/koffi.dev
9
+ ../../bin/Fast/hodler . -O ../../bin/Web/koffi.dev --gzip
@@ -0,0 +1,17 @@
1
+ *The page you requested does not exist...*
2
+
3
+ <div class="error">Error 404</div>
4
+
5
+ <style>
6
+ main {
7
+ display: flex;
8
+ flex-direction: column;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+ .error {
13
+ margin: 0.8em;
14
+ font-size: 4em;
15
+ font-weight: bold;
16
+ }
17
+ </style>
@@ -7,7 +7,7 @@ Koffi is a **fast and easy-to-use C FFI module for Node.js**, featuring:
7
7
  * Javascript functions can be used as C callbacks
8
8
  * Well-tested code base for popular OS/architecture combinations
9
9
 
10
- I work on this project on my spare time, if you like this project, consider supporting me:
10
+ If you like this project, consider supporting me:
11
11
 
12
12
  <p style="display: flex; gap: 2em; justify-content: center;">
13
13
  <a href="https://buymeacoffee.com/koromix" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174" style="border-radius: 12px;"></a>
package/doc/pages/misc.md CHANGED
@@ -112,21 +112,26 @@ let config = koffi.config();
112
112
  console.log(config);
113
113
  ```
114
114
 
115
- The same is true for asynchronous calls. When an asynchronous call is made, Koffi will allocate new blocks unless there is an unused (resident) set of blocks still available. Once the asynchronous call is finished, these blocks are freed if there are more than `resident_async_pools` sets of blocks left around.
115
+ The same is true for asynchronous calls. When an asynchronous call is made, Koffi will allocate new blocks unless there is an unused (resident) set of blocks still available. Once the asynchronous call is finished, these blocks are freed if there are more than `resident_async_pools` sets of blocks left around. By default, the preallocated stack and heap blocks are much smaller than for synchronous calls (see [default settings](#default-settings)).
116
116
 
117
- There cannot be more than `max_async_calls` running at the same time.
117
+ > [!CAUTION]
118
+ > The **memory usage can blow up easily** if you increase the size of async memory blocks and many async calls are running or queued at the same time !
119
+ >
120
+ > For example, with 4096 running/queued async calls, a stack size of 256 kiB and a heap size of 512 kiB, the memory usage will reach approximately _4096 * (256 + 512) kiB ≈ 3 GiB_ just for Koffi, even though most of it will be freed once the number of queued calls goes down.
121
+
122
+ Async calls run on worker threads, the number of which depends on the number of cores in your machine. Additional async calls are queued, up to `max_async_calls` can run and be queued at the same time. If you try to make an async call once the queue if full, an exception will be thrown.
118
123
 
119
124
  ## Default settings
120
125
 
121
- Setting | Default | Description
122
- -------------------- | ------- | -----------------------------------------------
123
- sync_stack_size | 1 MiB | Stack size for synchronous calls
124
- sync_heap_size | 2 MiB | Heap size for synchronous calls
125
- async_stack_size | 256 kiB | Stack size for asynchronous calls
126
- async_heap_size | 512 kiB | Heap size for asynchronous calls
127
- resident_async_pools | 2 | Number of resident pools for asynchronous calls
128
- max_async_calls | 64 | Maximum number of ongoing asynchronous calls
129
- max_type_size | 64 MiB | Maximum size of Koffi types (for arrays and structs)
126
+ Setting | Default | Maximum | Description
127
+ -------------------- | ------- | ------- | ----------------------------------------------------
128
+ sync_stack_size | 1 MiB | 16 MiB | Stack size for synchronous calls
129
+ sync_heap_size | 2 MiB | 16 MiB | Heap size for synchronous calls
130
+ async_stack_size | 128 kiB | 16 MiB | Stack size for asynchronous calls
131
+ async_heap_size | 128 kiB | 16 MiB | Heap size for asynchronous calls
132
+ resident_async_pools | 4 | 16 | Number of resident pools for asynchronous calls
133
+ max_async_calls | 256 | 4096 | Maximum number of queued asynchronous calls
134
+ max_type_size | 64 MiB | 512 MiB | Maximum size of Koffi types (for arrays and structs)
130
135
 
131
136
  # Usage statistics
132
137
 
package/doc/pages.ini CHANGED
@@ -80,3 +80,7 @@ Title = Changelog | Koffi
80
80
  Menu = Changelog
81
81
  Description = List of Koffi versions
82
82
  Template = templates/page.html
83
+
84
+ [pages/404.md]
85
+ Title = Page not found
86
+ Template = templates/page.html
@@ -1,17 +1,5 @@
1
- // Copyright (C) 2025 Niels Martignène <niels.martignene@protonmail.com>
2
- //
3
- // This program is free software: you can redistribute it and/or modify
4
- // it under the terms of the GNU General Public License as published by
5
- // the Free Software Foundation, either version 3 of the License, or
6
- // (at your option) any later version.
7
- //
8
- // This program is distributed in the hope that it will be useful,
9
- // but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- // GNU General Public License for more details.
12
- //
13
- // You should have received a copy of the GNU General Public License
14
- // along with this program. If not, see <https://www.gnu.org/licenses/>.
1
+ // SPDX-License-Identifier: MIT
2
+ // SPDX-FileCopyrightText: 2025 Niels Martignène <niels.martignene@protonmail.com>
15
3
 
16
4
  import * as hljs from '../../../vendor/highlight.js/highlight.js';
17
5
 
@@ -1,19 +1,7 @@
1
- /* Copyright (C) 2025 Niels Martignène <niels.martignene@protonmail.com>
1
+ /* SPDX-License-Identifier: MIT */
2
+ /* SPDX-FileCopyrightText: 2025 Niels Martignène <niels.martignene@protonmail.com> */
2
3
 
3
- This program is free software: you can redistribute it and/or modify
4
- it under the terms of the GNU General Public License as published by
5
- the Free Software Foundation, either version 3 of the License, or
6
- (at your option) any later version.
7
-
8
- This program is distributed in the hope that it will be useful,
9
- but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- GNU General Public License for more details.
12
-
13
- You should have received a copy of the GNU General Public License
14
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
15
-
16
- @import url('../../../src/web/flat/flat.css');
4
+ @import url('../../../lib/web/flat/flat.css');
17
5
  @import url('../../../vendor/highlight.js/styles/base16/tomorrow.css');
18
6
 
19
7
  html {
@@ -1,17 +1,5 @@
1
- /* Copyright (C) 2025 Niels Martignène <niels.martignene@protonmail.com>
2
-
3
- This program is free software: you can redistribute it and/or modify
4
- it under the terms of the GNU General Public License as published by
5
- the Free Software Foundation, either version 3 of the License, or
6
- (at your option) any later version.
7
-
8
- This program is distributed in the hope that it will be useful,
9
- but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- GNU General Public License for more details.
12
-
13
- You should have received a copy of the GNU General Public License
14
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
1
+ /* SPDX-License-Identifier: MIT */
2
+ /* SPDX-FileCopyrightText: 2025 Niels Martignène <niels.martignene@protonmail.com> */
15
3
 
16
4
  @media print {
17
5
  .schema { width: 90%; }
package/index.d.ts CHANGED
@@ -1,23 +1,5 @@
1
- // Copyright (C) 2025 Niels Martignène <niels.martignene@protonmail.com>
2
- //
3
- // Permission is hereby granted, free of charge, to any person obtaining a copy of
4
- // this software and associated documentation files (the “Software”), to deal in
5
- // the Software without restriction, including without limitation the rights to use,
6
- // copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
7
- // Software, and to permit persons to whom the Software is furnished to do so,
8
- // subject to the following conditions:
9
- //
10
- // The above copyright notice and this permission notice shall be included in all
11
- // copies or substantial portions of the Software.
12
- //
13
- // THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
14
- // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
- // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
16
- // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
17
- // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18
- // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19
- // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
- // OTHER DEALINGS IN THE SOFTWARE.
1
+ // SPDX-License-Identifier: MIT
2
+ // SPDX-FileCopyrightText: 2025 Niels Martignène <niels.martignene@protonmail.com>
21
3
 
22
4
  type LoadOptions = {
23
5
  lazy?: boolean,
@@ -277,7 +259,30 @@ type PrimitiveTypes =
277
259
  | 'wchar_t';
278
260
  export const types: Record<PrimitiveTypes, IKoffiCType>;
279
261
 
280
- // Internal stuff, don't use!
281
- export const node: {
282
- env: { __brand: 'IKoffiNodeEnv' }
283
- };
262
+ export interface IKoffiPollOptions {
263
+ readable?: boolean;
264
+ writable?: boolean;
265
+ disconnect?: boolean;
266
+ }
267
+
268
+ export interface IKoffiPollEvents {
269
+ readable: boolean;
270
+ writable: boolean;
271
+ disconnect: boolean;
272
+ }
273
+
274
+ export namespace node {
275
+ export const env: { __brand: 'IKoffiNodeEnv' };
276
+
277
+ export class PollHandle {
278
+ start(opts: IKoffiPollOptions, callback: (ev: IKoffiPollEvents) => void): void;
279
+ start(callback: (ev: IKoffiPollEvents) => void): void;
280
+ stop(): void;
281
+ close(): void;
282
+ unref(): void;
283
+ ref(): void;
284
+ }
285
+
286
+ export function poll(fd: number, opts: IKoffiPollOptions, callback: (ev: IKoffiPollEvents) => void): PollHandle;
287
+ export function poll(fd: number, callback: (ev: IKoffiPollEvents) => void): PollHandle;
288
+ }
package/index.js CHANGED
@@ -4,9 +4,9 @@ var __commonJS = (cb, mod3) => function __require() {
4
4
  return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports;
5
5
  };
6
6
 
7
- // ../../../bin/Koffi/package/src/cnoke/src/tools.js
7
+ // bin/Koffi/package/src/cnoke/src/tools.js
8
8
  var require_tools = __commonJS({
9
- "../../../bin/Koffi/package/src/cnoke/src/tools.js"(exports2, module2) {
9
+ "bin/Koffi/package/src/cnoke/src/tools.js"(exports2, module2) {
10
10
  "use strict";
11
11
  var crypto = require("crypto");
12
12
  var fs2 = require("fs");
@@ -397,12 +397,12 @@ var require_tools = __commonJS({
397
397
  }
398
398
  });
399
399
 
400
- // ../../../bin/Koffi/package/src/koffi/package.json
400
+ // bin/Koffi/package/src/koffi/package.json
401
401
  var require_package = __commonJS({
402
- "../../../bin/Koffi/package/src/koffi/package.json"(exports2, module2) {
402
+ "bin/Koffi/package/src/koffi/package.json"(exports2, module2) {
403
403
  module2.exports = {
404
404
  name: "koffi",
405
- version: "2.14.1",
405
+ version: "2.15.0",
406
406
  description: "Fast and simple C FFI (foreign function interface) for Node.js",
407
407
  keywords: [
408
408
  "foreign",
@@ -444,9 +444,9 @@ var require_package = __commonJS({
444
444
  }
445
445
  });
446
446
 
447
- // ../../../bin/Koffi/package/src/koffi/src/init.js
447
+ // bin/Koffi/package/src/koffi/src/init.js
448
448
  var require_init = __commonJS({
449
- "../../../bin/Koffi/package/src/koffi/src/init.js"(exports, module) {
449
+ "bin/Koffi/package/src/koffi/src/init.js"(exports, module) {
450
450
  var fs = require("fs");
451
451
  var path = require("path");
452
452
  var util = require("util");
@@ -529,7 +529,7 @@ var require_init = __commonJS({
529
529
  }
530
530
  });
531
531
 
532
- // ../../../bin/Koffi/package/src/koffi/index.js
532
+ // bin/Koffi/package/src/koffi/index.js
533
533
  var { detect: detect2, init: init2 } = require_init();
534
534
  var triplet2 = detect2();
535
535
  var native2 = null;
package/indirect.js CHANGED
@@ -4,9 +4,9 @@ var __commonJS = (cb, mod3) => function __require() {
4
4
  return mod3 || (0, cb[__getOwnPropNames(cb)[0]])((mod3 = { exports: {} }).exports, mod3), mod3.exports;
5
5
  };
6
6
 
7
- // ../../../bin/Koffi/package/src/cnoke/src/tools.js
7
+ // bin/Koffi/package/src/cnoke/src/tools.js
8
8
  var require_tools = __commonJS({
9
- "../../../bin/Koffi/package/src/cnoke/src/tools.js"(exports2, module2) {
9
+ "bin/Koffi/package/src/cnoke/src/tools.js"(exports2, module2) {
10
10
  "use strict";
11
11
  var crypto = require("crypto");
12
12
  var fs2 = require("fs");
@@ -397,12 +397,12 @@ var require_tools = __commonJS({
397
397
  }
398
398
  });
399
399
 
400
- // ../../../bin/Koffi/package/src/koffi/package.json
400
+ // bin/Koffi/package/src/koffi/package.json
401
401
  var require_package = __commonJS({
402
- "../../../bin/Koffi/package/src/koffi/package.json"(exports2, module2) {
402
+ "bin/Koffi/package/src/koffi/package.json"(exports2, module2) {
403
403
  module2.exports = {
404
404
  name: "koffi",
405
- version: "2.14.1",
405
+ version: "2.15.0",
406
406
  description: "Fast and simple C FFI (foreign function interface) for Node.js",
407
407
  keywords: [
408
408
  "foreign",
@@ -444,9 +444,9 @@ var require_package = __commonJS({
444
444
  }
445
445
  });
446
446
 
447
- // ../../../bin/Koffi/package/src/koffi/src/init.js
447
+ // bin/Koffi/package/src/koffi/src/init.js
448
448
  var require_init = __commonJS({
449
- "../../../bin/Koffi/package/src/koffi/src/init.js"(exports, module) {
449
+ "bin/Koffi/package/src/koffi/src/init.js"(exports, module) {
450
450
  var fs = require("fs");
451
451
  var path = require("path");
452
452
  var util = require("util");
@@ -529,7 +529,7 @@ var require_init = __commonJS({
529
529
  }
530
530
  });
531
531
 
532
- // ../../../bin/Koffi/package/src/koffi/indirect.js
532
+ // bin/Koffi/package/src/koffi/indirect.js
533
533
  var { detect: detect2, init: init2 } = require_init();
534
534
  var triplet2 = detect2();
535
535
  var mod2 = init2(triplet2, null);