Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koffi

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koffi - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

build/2.5.3/koffi_darwin_arm64/koffi.node

7

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc