Comparing version 2.5.2 to 2.5.3
@@ -7,2 +7,9 @@ # Changelog | ||
#### Koffi 2.5.3 | ||
**Main changes:** | ||
- Add missing union exports in TS definition file | ||
- Fix some parameter names in TS definition file | ||
#### Koffi 2.5.2 | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "koffi", | ||
"version": "2.5.2", | ||
"stable": "2.5.2", | ||
"version": "2.5.3", | ||
"stable": "2.5.3", | ||
"description": "Fast and simple C FFI (foreign function interface) for Node.js", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -89,5 +89,10 @@ // Copyright 2023 Niels Martignène <niels.martignene@protonmail.com> | ||
// export function union(name: string, def: Record<string, TypeSpecWithAlignment>): IKoffiCType; | ||
// export function union(def: Record<string, TypeSpecWithAlignment>): IKoffiCType; | ||
export function union(name: string, def: Record<string, TypeSpecWithAlignment>): IKoffiCType; | ||
export function union(def: Record<string, TypeSpecWithAlignment>): IKoffiCType; | ||
export class Union { | ||
constructor(type: TypeSpec); | ||
[s: string]: any; | ||
} | ||
export function array(ref: TypeSpec, len: number, hint?: ArrayHint | null): IKoffiCType; | ||
@@ -100,8 +105,8 @@ | ||
export function pointer(value: TypeSpec): IKoffiCType; | ||
export function pointer(value: TypeSpec, asteriskCount: number): IKoffiCType; | ||
export function pointer(name: string, value: TypeSpec, asteriskCount: number): IKoffiCType; | ||
export function pointer(ref: TypeSpec): IKoffiCType; | ||
export function pointer(ref: TypeSpec, asteriskCount: number): IKoffiCType; | ||
export function pointer(name: string, ref: TypeSpec, asteriskCount: number): IKoffiCType; | ||
export function out(value: TypeSpec): IKoffiCType; | ||
export function inout(value: TypeSpec): IKoffiCType; | ||
export function out(type: TypeSpec): IKoffiCType; | ||
export function inout(type: TypeSpec): IKoffiCType; | ||
@@ -108,0 +113,0 @@ export function disposable(type: TypeSpec): IKoffiCType; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 21 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 21 instances in 1 package
67757686
6964