koffi 2.3.10 → 2.3.12

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 (24) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/build/{2.3.10 → 2.3.12}/koffi_win32_arm64/koffi.node +0 -0
  3. package/build/{2.3.10 → 2.3.12}/koffi_win32_ia32/koffi.node +0 -0
  4. package/build/{2.3.10 → 2.3.12}/koffi_win32_x64/koffi.node +0 -0
  5. package/package.json +2 -2
  6. package/src/index.d.ts +7 -4
  7. /package/build/{2.3.10 → 2.3.12}/koffi_darwin_arm64/koffi.node +0 -0
  8. /package/build/{2.3.10 → 2.3.12}/koffi_darwin_x64/koffi.node +0 -0
  9. /package/build/{2.3.10 → 2.3.12}/koffi_freebsd_arm64/koffi.node +0 -0
  10. /package/build/{2.3.10 → 2.3.12}/koffi_freebsd_ia32/koffi.node +0 -0
  11. /package/build/{2.3.10 → 2.3.12}/koffi_freebsd_x64/koffi.node +0 -0
  12. /package/build/{2.3.10 → 2.3.12}/koffi_linux_arm32hf/koffi.node +0 -0
  13. /package/build/{2.3.10 → 2.3.12}/koffi_linux_arm64/koffi.node +0 -0
  14. /package/build/{2.3.10 → 2.3.12}/koffi_linux_ia32/koffi.node +0 -0
  15. /package/build/{2.3.10 → 2.3.12}/koffi_linux_riscv64hf64/koffi.node +0 -0
  16. /package/build/{2.3.10 → 2.3.12}/koffi_linux_x64/koffi.node +0 -0
  17. /package/build/{2.3.10 → 2.3.12}/koffi_openbsd_ia32/koffi.node +0 -0
  18. /package/build/{2.3.10 → 2.3.12}/koffi_openbsd_x64/koffi.node +0 -0
  19. /package/build/{2.3.10 → 2.3.12}/koffi_win32_arm64/koffi.exp +0 -0
  20. /package/build/{2.3.10 → 2.3.12}/koffi_win32_arm64/koffi.lib +0 -0
  21. /package/build/{2.3.10 → 2.3.12}/koffi_win32_ia32/koffi.exp +0 -0
  22. /package/build/{2.3.10 → 2.3.12}/koffi_win32_ia32/koffi.lib +0 -0
  23. /package/build/{2.3.10 → 2.3.12}/koffi_win32_x64/koffi.exp +0 -0
  24. /package/build/{2.3.10 → 2.3.12}/koffi_win32_x64/koffi.lib +0 -0
package/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@
4
4
 
5
5
  ### Koffi 2.3
6
6
 
7
- #### Koffi 2.3.10
7
+ #### Koffi 2.3.12
8
+
9
+ **Main fixes:**
10
+
11
+ - Fix broken syntax in TS definition file
12
+ - Add missing exported properties in TS file
13
+
14
+ #### Koffi 2.3.11
8
15
 
9
16
  **Main changes:**
10
17
 
@@ -13,6 +20,7 @@
13
20
  **Other changes:**
14
21
 
15
22
  - Use SQLITE_TRANSIENT in SQLite test code
23
+ - Avoid using `statx()` to allow compilation with glibc < 2.28
16
24
  - Reorganize NPM package files to be less convoluted
17
25
 
18
26
  #### Koffi 2.3.9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koffi",
3
- "version": "2.3.10",
4
- "stable": "2.3.10",
3
+ "version": "2.3.12",
4
+ "stable": "2.3.12",
5
5
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
6
6
  "keywords": [
7
7
  "foreign",
package/src/index.d.ts CHANGED
@@ -22,9 +22,9 @@
22
22
  declare module 'koffi' {
23
23
  export function load(path: string): IKoffiLib;
24
24
 
25
- interface IKoffiCType { __brand: 'IKoffiCType' };
26
- interface IKoffiPointerCast { __brand: 'IKoffiPointerCast' };
27
- interface IKoffiRegisteredCallback { __brand: 'IKoffiRegisteredCallback' };
25
+ interface IKoffiCType { __brand: 'IKoffiCType' }
26
+ interface IKoffiPointerCast { __brand: 'IKoffiPointerCast' }
27
+ interface IKoffiRegisteredCallback { __brand: 'IKoffiRegisteredCallback' }
28
28
 
29
29
  type PrimitiveKind = 'Void' | 'Bool' | 'Int8' | 'UInt8' | 'Int16' | 'Int16S' | 'UInt16' | 'UInt16S' |
30
30
  'Int32' | 'Int32S' | 'UInt32' | 'UInt32S' | 'Int64' | 'Int64S' | 'UInt64' | 'UInt64S' |
@@ -79,7 +79,7 @@ declare module 'koffi' {
79
79
 
80
80
  thiscall(definition: string): KoffiFunction;
81
81
  thiscall(name: string, result: TypeSpec, arguments: TypeSpec[]): KoffiFunction;
82
- };
82
+ }
83
83
 
84
84
  export function struct(name: string, def: Record<string, TypeSpecWithAlignment>): IKoffiCType;
85
85
  export function struct(def: Record<string, TypeSpecWithAlignment>): IKoffiCType;
@@ -130,4 +130,7 @@ declare module 'koffi' {
130
130
  export function config(): Record<string, unknown>;
131
131
  export function config(cfg: Record<string, unknown>): Record<string, unknown>;
132
132
  export function stats(): Record<string, unknown>;
133
+
134
+ export let internal: Boolean;
135
+ export let extension: String;
133
136
  }