koffi 2.5.0-beta.2 → 2.5.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/CHANGELOG.md +13 -0
- package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_arm64/koffi.node +0 -0
- package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_ia32/koffi.node +0 -0
- package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.node +0 -0
- package/doc/functions.md +1 -1
- package/doc/unions.md +3 -3
- package/package.json +2 -2
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_darwin_arm64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_darwin_x64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_freebsd_arm64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_freebsd_ia32/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_freebsd_x64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_arm32hf/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_arm64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_ia32/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_riscv64hf64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_x64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_openbsd_ia32/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_openbsd_x64/koffi.node +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_arm64/koffi.exp +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_arm64/koffi.lib +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_ia32/koffi.exp +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_ia32/koffi.lib +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.exp +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.lib +0 -0
- /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.pdb +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Version history
|
|
4
4
|
|
|
5
|
+
### Koffi 2.5
|
|
6
|
+
|
|
7
|
+
#### Koffi 2.5.0
|
|
8
|
+
|
|
9
|
+
**New features:**
|
|
10
|
+
|
|
11
|
+
- Support [union types](unions.md)
|
|
12
|
+
|
|
13
|
+
**Other fixes:**
|
|
14
|
+
|
|
15
|
+
- Fix ABI for single-float aggregate return on i386 BSD systems
|
|
16
|
+
- Don't mess with Node.js signal handling on POSIX systems
|
|
17
|
+
|
|
5
18
|
### Koffi 2.4
|
|
6
19
|
|
|
7
20
|
#### Koffi 2.4.2
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/doc/functions.md
CHANGED
|
@@ -9,7 +9,7 @@ const koffi = require('koffi');
|
|
|
9
9
|
const lib = koffi.load('/path/to/shared/library'); // File extension depends on platforms: .so, .dll, .dylib, etc.
|
|
10
10
|
````
|
|
11
11
|
|
|
12
|
-
This library will be automatically unloaded once all references to it (including all the functions that use it, as described below).
|
|
12
|
+
This library will be automatically unloaded once all references to it are gone (including all the functions that use it, as described below).
|
|
13
13
|
|
|
14
14
|
Starting with *Koffi 2.3.20*, you can explicitly unload a library by calling `lib.unload()`. Any attempt to find or call a function from this library after unloading it will crash.
|
|
15
15
|
|
package/doc/unions.md
CHANGED
|
@@ -104,15 +104,15 @@ const INPUT = koffi.struct('INPUT', {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
const SendInput = user32.func('unsigned int __stdcall SendInput(unsigned int cInputs, INPUT *pInputs, int cbSize');
|
|
107
|
+
const SendInput = user32.func('unsigned int __stdcall SendInput(unsigned int cInputs, INPUT *pInputs, int cbSize)');
|
|
108
108
|
|
|
109
109
|
// Show/hide desktop with Win+D shortcut
|
|
110
110
|
|
|
111
111
|
let events = [
|
|
112
|
-
make_keyboard_event(
|
|
112
|
+
make_keyboard_event(VK_LWIN, true),
|
|
113
113
|
make_keyboard_event(VK_D, true),
|
|
114
114
|
make_keyboard_event(VK_D, false),
|
|
115
|
-
make_keyboard_event(
|
|
115
|
+
make_keyboard_event(VK_LWIN, false)
|
|
116
116
|
];
|
|
117
117
|
|
|
118
118
|
SendInput(events.length, events, koffi.sizeof(INPUT));
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|