quickjs-emscripten-sync 1.9.0 → 1.9.1

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/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export declare class Arena {
14
14
  _map: VMMap;
15
15
  _registeredMap: VMMap;
16
16
  _registeredMapDispose: Set<any>;
17
+ _transientHandles: Set<QuickJSHandle>;
17
18
  _sync: Set<any>;
18
19
  _temporalSync: Set<any>;
19
20
  _symbol: symbol;
@@ -206,6 +207,8 @@ export declare class Arena {
206
207
  _registerHostRef: (t: unknown, handle: QuickJSHandle) => QuickJSHandle;
207
208
  _marshalFind: (t: unknown) => QuickJSHandle | undefined;
208
209
  _marshalPre: (t: unknown, h: QuickJSHandle | QuickJSDeferredPromise, mode: true | "json" | undefined) => Wrapped<QuickJSHandle> | undefined;
210
+ _registerTransient: (handle: QuickJSHandle) => void;
211
+ _disposeTransient: (handle: QuickJSHandle) => void;
209
212
  _marshalPreApply: (target: (...args: any[]) => any, that: unknown, args: unknown[]) => void;
210
213
  _marshal: (target: any) => [QuickJSHandle, boolean];
211
214
  _preUnmarshal: (t: any, h: QuickJSHandle) => Wrapped<any>;
@@ -296,6 +299,8 @@ declare type Options_2 = {
296
299
  marshalByReference?: (target: unknown) => boolean;
297
300
  registerHostRef?: (target: unknown, handle: QuickJSHandle) => QuickJSHandle;
298
301
  find: (target: unknown) => QuickJSHandle | undefined;
302
+ registerTransient?: (handle: QuickJSHandle) => void;
303
+ disposeTransient?: (handle: QuickJSHandle) => void;
299
304
  pre: (target: unknown, handle: QuickJSHandle | QuickJSDeferredPromise, mode: true | "json" | undefined) => QuickJSHandle | undefined;
300
305
  preApply?: (target: (...args: any[]) => any, thisArg: unknown, args: unknown[]) => any;
301
306
  custom?: Iterable<(obj: unknown, ctx: QuickJSContext) => QuickJSHandle | undefined>;