@tsukilabs/nil-ffi 0.7.11 → 0.7.13

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/dist/queue.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { Handle } from '.';
2
- import { nil, Option } from '@tb-dev/utils';
1
+ import { nil } from '@tb-dev/utils';
2
+ import { Handle, QueueOptions } from './types';
3
3
  import { ffi_RequestId } from '@tsukilabs/nil-bindings';
4
4
  export declare class Queue implements Disposable {
5
5
  private static readonly POLL_INTERVAL;
@@ -22,8 +22,4 @@ export declare class Queue implements Disposable {
22
22
  private onResponse;
23
23
  }
24
24
  type RequestFn = (requestId: ffi_RequestId) => void;
25
- export type ErrorHandler = (error: unknown) => void;
26
- export interface QueueOptions {
27
- onError?: Option<ErrorHandler>;
28
- }
29
25
  export {};
@@ -0,0 +1,15 @@
1
+ import { definitions } from './def';
2
+ import { Option } from '@tb-dev/utils';
3
+ import { DynamicLibraryResult } from 'node:ffi';
4
+ export type Handle = DynamicLibraryResult<typeof definitions>;
5
+ export type ErrorHandler = (error: unknown) => void;
6
+ export interface QueueOptions {
7
+ onError?: Option<ErrorHandler>;
8
+ }
9
+ export interface NilOptions extends QueueOptions {
10
+ }
11
+ export interface DownloadLatestOptions {
12
+ outDir?: Option<string>;
13
+ overwrite?: boolean;
14
+ }
15
+ export type InitLatestOptions = DownloadLatestOptions & NilOptions;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@tsukilabs/nil-ffi",
3
- "version": "0.7.11",
3
+ "version": "0.7.13",
4
4
  "description": "FFI bindings for Call of Nil",
5
5
  "type": "module",
6
- "packageManager": "pnpm@11.19.0",
6
+ "packageManager": "pnpm@11.20.0",
7
7
  "license": "AGPL-3.0-only",
8
8
  "private": false,
9
9
  "homepage": "https://nil.dev.br",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@tb-dev/utils": "^8.1.2",
34
- "@tsukilabs/nil-bindings": "^0.7.10",
34
+ "@tsukilabs/nil-bindings": "^0.7.12",
35
35
  "es-toolkit": "^1.50.0"
36
36
  },
37
37
  "files": ["dist"],