@tsukilabs/nil-ffi 0.7.4 → 0.7.5
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/README.md +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/queue.d.ts +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { definitions } from './def';
|
|
2
2
|
import { Option } from '@tb-dev/utils';
|
|
3
3
|
import { QueueOptions } from './queue';
|
|
4
|
-
import { AuthorizeRequest,
|
|
4
|
+
import { AuthorizeRequest, ClientOptions, GetPlayerIdsRequest, GetPlayerIdsResponse, GetPlayerRequest, GetPlayerStatusRequest, GetRemoteWorldsResponse, LocalServer, PlayerExistsRequest, ServerAddr, SetPlayerStatusRequest, SpawnPlayerRequest, ValidateTokenRequest, ValidateTokenResponse, WorldOptions } from '@tsukilabs/nil-bindings';
|
|
5
5
|
import * as ffi from "node:ffi";
|
|
6
6
|
export * from './def';
|
|
7
7
|
export * from './error';
|
|
8
8
|
export type Handle = ffi.DynamicLibraryResult<typeof definitions>;
|
|
9
|
+
export type { ErrorHandler } from './queue';
|
|
9
10
|
export declare const VERSION: string;
|
|
10
11
|
export declare const USER_AGENT: string;
|
|
11
12
|
export declare class Nil implements Disposable {
|
|
@@ -48,7 +49,7 @@ export declare class Nil implements Disposable {
|
|
|
48
49
|
startServerWithSavedata(path: string): Promise<LocalServer>;
|
|
49
50
|
stopClient(): Promise<import('@tb-dev/utils').nil>;
|
|
50
51
|
stopServer(): Promise<import('@tb-dev/utils').nil>;
|
|
51
|
-
updateClient(options:
|
|
52
|
+
updateClient(options: ClientOptions): Promise<import('@tb-dev/utils').nil>;
|
|
52
53
|
validateToken(req: ValidateTokenRequest): Promise<ValidateTokenResponse>;
|
|
53
54
|
}
|
|
54
55
|
export interface NilOptions {
|
package/dist/index.js
CHANGED
|
@@ -752,7 +752,7 @@ var Queue = class Queue {
|
|
|
752
752
|
};
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region package.json
|
|
755
|
-
var version = "0.7.
|
|
755
|
+
var version = "0.7.5";
|
|
756
756
|
//#endregion
|
|
757
757
|
//#region \0@oxc-project+runtime@0.139.0/helpers/esm/decorate.js
|
|
758
758
|
function __decorate(decorators, target, key, desc) {
|
package/dist/queue.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare class Queue implements Disposable {
|
|
|
22
22
|
private onResponse;
|
|
23
23
|
}
|
|
24
24
|
type RequestFn = (requestId: ffi_RequestId) => void;
|
|
25
|
-
type ErrorHandler = (error: unknown) => void;
|
|
25
|
+
export type ErrorHandler = (error: unknown) => void;
|
|
26
26
|
export interface QueueOptions {
|
|
27
27
|
onError?: Option<ErrorHandler>;
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsukilabs/nil-ffi",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
|
+
"description": "FFI bindings for Call of Nil",
|
|
4
5
|
"type": "module",
|
|
5
|
-
"packageManager": "pnpm@11.
|
|
6
|
+
"packageManager": "pnpm@11.18.0",
|
|
6
7
|
"license": "AGPL-3.0-only",
|
|
7
8
|
"private": false,
|
|
8
9
|
"homepage": "https://nil.dev.br",
|
|
@@ -25,11 +26,12 @@
|
|
|
25
26
|
"keywords": ["call-of-nil", "ffi"],
|
|
26
27
|
"scripts": {
|
|
27
28
|
"build": "vite build",
|
|
28
|
-
"type-check": "tsc --noEmit"
|
|
29
|
+
"type-check": "tsc --noEmit",
|
|
30
|
+
"typedoc": "typedoc --plugin typedoc-plugin-mdn-links"
|
|
29
31
|
},
|
|
30
32
|
"dependencies": {
|
|
31
33
|
"@tb-dev/utils": "^8.1.1",
|
|
32
|
-
"@tsukilabs/nil-bindings": "^0.7.
|
|
34
|
+
"@tsukilabs/nil-bindings": "^0.7.4",
|
|
33
35
|
"es-toolkit": "^1.50.0"
|
|
34
36
|
},
|
|
35
37
|
"files": ["dist"],
|