koffi 2.6.2 → 2.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.
- package/CHANGELOG.md +5 -1
- package/build/koffi/darwin_arm64/koffi.node +0 -0
- package/build/koffi/darwin_x64/koffi.node +0 -0
- package/build/koffi/freebsd_arm64/koffi.node +0 -0
- package/build/koffi/freebsd_ia32/koffi.node +0 -0
- package/build/koffi/freebsd_x64/koffi.node +0 -0
- package/build/koffi/linux_arm32hf/koffi.node +0 -0
- package/build/koffi/linux_arm64/koffi.node +0 -0
- package/build/koffi/linux_ia32/koffi.node +0 -0
- package/build/koffi/linux_riscv64hf64/koffi.node +0 -0
- package/build/koffi/linux_x64/koffi.node +0 -0
- package/build/koffi/openbsd_ia32/koffi.node +0 -0
- package/build/koffi/openbsd_x64/koffi.node +0 -0
- package/build/koffi/win32_arm64/koffi.node +0 -0
- package/build/koffi/win32_ia32/koffi.node +0 -0
- package/build/koffi/win32_x64/koffi.node +0 -0
- package/doc/packaging.md +1 -1
- package/index.js +3 -3
- package/indirect.js +3 -3
- package/package.json +3 -3
- package/src/core/libcc/libcc.cc +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
### Koffi 2.6
|
|
6
6
|
|
|
7
|
-
#### Koffi 2.6.
|
|
7
|
+
#### Koffi 2.6.3 (2023-10-17)
|
|
8
8
|
|
|
9
9
|
- Add indirect loading script to help some bundlers
|
|
10
10
|
|
|
11
|
+
```{warning}
|
|
12
|
+
Pre-built binaries don't work correctly in Koffi 2.6.2, skip this version.
|
|
13
|
+
```
|
|
14
|
+
|
|
11
15
|
#### Koffi 2.6.1 (2023-09-18)
|
|
12
16
|
|
|
13
17
|
- Support string direction qualifiers in classic function definitions
|
|
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/packaging.md
CHANGED
|
@@ -42,7 +42,7 @@ MyApp.exe
|
|
|
42
42
|
|
|
43
43
|
Some bundlers (such as vite) don't like when require is used with native modules.
|
|
44
44
|
|
|
45
|
-
In this case, you can use `
|
|
45
|
+
In this case, you can use `require('koffi/indirect')` but you will need to make sure that the native Koffi modules are packaged properly.
|
|
46
46
|
|
|
47
47
|
## Packaging examples
|
|
48
48
|
|
package/index.js
CHANGED
|
@@ -378,8 +378,8 @@ var require_package = __commonJS({
|
|
|
378
378
|
"build/dist/src/koffi/package.json"(exports2, module2) {
|
|
379
379
|
module2.exports = {
|
|
380
380
|
name: "koffi",
|
|
381
|
-
version: "2.6.
|
|
382
|
-
stable: "2.6.
|
|
381
|
+
version: "2.6.3",
|
|
382
|
+
stable: "2.6.3",
|
|
383
383
|
description: "Fast and simple C FFI (foreign function interface) for Node.js",
|
|
384
384
|
keywords: [
|
|
385
385
|
"foreign",
|
|
@@ -424,7 +424,7 @@ var require_package = __commonJS({
|
|
|
424
424
|
cnoke: {
|
|
425
425
|
output: "build/koffi/{{ platform }}_{{ arch }}",
|
|
426
426
|
napi: 8,
|
|
427
|
-
require: "./
|
|
427
|
+
require: "./index.js"
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
}
|
package/indirect.js
CHANGED
|
@@ -378,8 +378,8 @@ var require_package = __commonJS({
|
|
|
378
378
|
"build/dist/src/koffi/package.json"(exports2, module2) {
|
|
379
379
|
module2.exports = {
|
|
380
380
|
name: "koffi",
|
|
381
|
-
version: "2.6.
|
|
382
|
-
stable: "2.6.
|
|
381
|
+
version: "2.6.3",
|
|
382
|
+
stable: "2.6.3",
|
|
383
383
|
description: "Fast and simple C FFI (foreign function interface) for Node.js",
|
|
384
384
|
keywords: [
|
|
385
385
|
"foreign",
|
|
@@ -424,7 +424,7 @@ var require_package = __commonJS({
|
|
|
424
424
|
cnoke: {
|
|
425
425
|
output: "build/koffi/{{ platform }}_{{ arch }}",
|
|
426
426
|
napi: 8,
|
|
427
|
-
require: "./
|
|
427
|
+
require: "./index.js"
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koffi",
|
|
3
|
-
"version": "2.6.
|
|
4
|
-
"stable": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
|
+
"stable": "2.6.3",
|
|
5
5
|
"description": "Fast and simple C FFI (foreign function interface) for Node.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"foreign",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"cnoke": {
|
|
32
32
|
"output": "build/koffi/{{ platform }}_{{ arch }}",
|
|
33
33
|
"napi": 8,
|
|
34
|
-
"require": "./
|
|
34
|
+
"require": "./index.js"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/core/libcc/libcc.cc
CHANGED
|
@@ -789,10 +789,12 @@ bool ParseBool(Span<const char> str, bool *out_value, unsigned int flags,
|
|
|
789
789
|
TRY_MATCH("1", true);
|
|
790
790
|
TRY_MATCH("On", true);
|
|
791
791
|
TRY_MATCH("Y", true);
|
|
792
|
+
TRY_MATCH("Yes", true);
|
|
792
793
|
TRY_MATCH("True", true);
|
|
793
794
|
TRY_MATCH("0", false);
|
|
794
795
|
TRY_MATCH("Off", false);
|
|
795
796
|
TRY_MATCH("N", false);
|
|
797
|
+
TRY_MATCH("No", false);
|
|
796
798
|
TRY_MATCH("False", false);
|
|
797
799
|
|
|
798
800
|
if (flags & (int)ParseFlag::Log) {
|