jiren 1.0.6 → 1.0.8

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.
@@ -8,7 +8,7 @@ import type {
8
8
  } from "../types";
9
9
 
10
10
  export class JirenClient {
11
- private ptr: Pointer | null;
11
+ private ptr: unknown | null;
12
12
 
13
13
  constructor() {
14
14
  this.ptr = lib.symbols.zclient_new();
@@ -21,7 +21,7 @@ export class JirenClient {
21
21
  */
22
22
  public close(): void {
23
23
  if (this.ptr) {
24
- lib.symbols.zclient_free(this.ptr);
24
+ lib.symbols.zclient_free(this.ptr as Pointer);
25
25
  this.ptr = null;
26
26
  }
27
27
  }
@@ -59,7 +59,7 @@ export class JirenClient {
59
59
  }
60
60
 
61
61
  const respPtr = lib.symbols.zclient_request(
62
- this.ptr,
62
+ this.ptr as Pointer,
63
63
  methodBuffer,
64
64
  urlBuffer,
65
65
  headersBuffer,
@@ -132,7 +132,7 @@ export class JirenClient {
132
132
 
133
133
  for (const url of urls) {
134
134
  const urlBuffer = Buffer.from(url + "\0");
135
- lib.symbols.zclient_prefetch(this.ptr, urlBuffer);
135
+ lib.symbols.zclient_prefetch(this.ptr as Pointer, urlBuffer);
136
136
  }
137
137
  }
138
138
 
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "jiren",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "author": "",
5
5
  "main": "index.ts",
6
6
  "module": "index.ts",
7
7
  "types": "dist/index.d.ts",
8
- "dependencies": {
9
- "@types/bun": "^1.3.4"
10
- },
8
+ "dependencies": {},
11
9
  "devDependencies": {
12
- "typescript": "^5"
10
+ "typescript": "^5",
11
+ "@types/bun": "^1.3.4"
13
12
  },
14
13
  "peerDependencies": {
15
14
  "typescript": "^5"