pup-recorder 0.2.5 → 0.2.6
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/_tsup-dts-rollup.d.ts +43 -15
- package/dist/app.cjs +162 -87
- package/dist/chunk-JYBBDEV3.js +2 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-OS6M3I3L.js +0 -2
|
@@ -65,13 +65,25 @@ export { AudioSpec as AudioSpec_alias_1 }
|
|
|
65
65
|
|
|
66
66
|
export declare function buildRust(): Promise<void>;
|
|
67
67
|
|
|
68
|
-
export declare function
|
|
68
|
+
export declare function buildStegoHTML(targetURL: string, size: Size): string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Builds the JS injector that hooks all time-related globals in the target iframe.
|
|
72
|
+
* Guards against running in the wrapper (top-level) frame so the stego canvas is unaffected.
|
|
73
|
+
* Must be injected via Page.addScriptToEvaluateOnNewDocument AND directly into
|
|
74
|
+
* already-loaded sub-frames.
|
|
75
|
+
*/
|
|
76
|
+
export declare function buildTickInjector(): string;
|
|
69
77
|
|
|
70
78
|
export declare const canIUseGPU: Promise<boolean>;
|
|
71
79
|
|
|
72
80
|
export declare function checkHTML(source: string): void;
|
|
73
81
|
|
|
74
|
-
export declare
|
|
82
|
+
export declare interface CLIOptions {
|
|
83
|
+
name: string;
|
|
84
|
+
defaults: RenderOptions;
|
|
85
|
+
run: (source: string, options: RenderOptions) => Promise<unknown>;
|
|
86
|
+
}
|
|
75
87
|
|
|
76
88
|
declare class ConcurrencyLimiter {
|
|
77
89
|
readonly maxConcurrency: number;
|
|
@@ -89,7 +101,9 @@ declare class ConcurrencyLimiter {
|
|
|
89
101
|
export { ConcurrencyLimiter }
|
|
90
102
|
export { ConcurrencyLimiter as ConcurrencyLimiter_alias_1 }
|
|
91
103
|
|
|
92
|
-
export declare function
|
|
104
|
+
export declare function createStegoURL(src: string, size: Size): string;
|
|
105
|
+
|
|
106
|
+
export declare function decodeStego(bitmap: Buffer, size: Size): number | undefined;
|
|
93
107
|
|
|
94
108
|
declare const DEFAULT_DURATION = 5;
|
|
95
109
|
export { DEFAULT_DURATION }
|
|
@@ -111,6 +125,14 @@ declare const DEFAULT_WIDTH = 1920;
|
|
|
111
125
|
export { DEFAULT_WIDTH }
|
|
112
126
|
export { DEFAULT_WIDTH as DEFAULT_WIDTH_alias_1 }
|
|
113
127
|
|
|
128
|
+
declare const defaultRenderOptions: RenderOptions;
|
|
129
|
+
export { defaultRenderOptions }
|
|
130
|
+
export { defaultRenderOptions as defaultRenderOptions_alias_1 }
|
|
131
|
+
|
|
132
|
+
export declare function doEject(): string;
|
|
133
|
+
|
|
134
|
+
export declare function doProcess(timestampMs: number): string;
|
|
135
|
+
|
|
114
136
|
export declare function electronOpts(): Promise<string[]>;
|
|
115
137
|
|
|
116
138
|
export declare function encodeBgra({ summary, outFile, signal, onProgress }: EncodeBgraOptions): Promise<RenderResult>;
|
|
@@ -263,7 +285,7 @@ declare interface LoggerLike {
|
|
|
263
285
|
export { LoggerLike }
|
|
264
286
|
export { LoggerLike as LoggerLike_alias_1 }
|
|
265
287
|
|
|
266
|
-
export declare function makeCLI(
|
|
288
|
+
export declare function makeCLI(options: CLIOptions): Promise<void>;
|
|
267
289
|
|
|
268
290
|
export declare interface NetworkOptions {
|
|
269
291
|
source: string;
|
|
@@ -287,6 +309,8 @@ declare function parseString(x: unknown): string;
|
|
|
287
309
|
export { parseString }
|
|
288
310
|
export { parseString as parseString_alias_1 }
|
|
289
311
|
|
|
312
|
+
export declare function pauseVirtualTime(cdp: Debugger): Promise<void>;
|
|
313
|
+
|
|
290
314
|
declare function penv<T>(name: string, parser: EnvParser<T>, defaultValue: T): T;
|
|
291
315
|
|
|
292
316
|
declare function penv<T>(name: string, parser: EnvParser<T>, defaultValue?: T): T | undefined;
|
|
@@ -306,7 +330,7 @@ export { ProcessHandle as ProcessHandle_alias_1 }
|
|
|
306
330
|
|
|
307
331
|
export declare function proxiedUrl(url: string): string;
|
|
308
332
|
|
|
309
|
-
declare function pup(source: string, options: PupOptions): Promise<PupResult>;
|
|
333
|
+
declare function pup(source: string, options: Partial<PupOptions>): Promise<PupResult>;
|
|
310
334
|
export { pup }
|
|
311
335
|
export { pup as pup_alias_1 }
|
|
312
336
|
|
|
@@ -371,14 +395,14 @@ export { RenderResult }
|
|
|
371
395
|
export { RenderResult as RenderResult_alias_1 }
|
|
372
396
|
|
|
373
397
|
declare const RenderSchema: z.ZodObject<{
|
|
374
|
-
duration: z.
|
|
375
|
-
width: z.
|
|
376
|
-
height: z.
|
|
377
|
-
fps: z.
|
|
378
|
-
withAudio: z.
|
|
379
|
-
outFile: z.
|
|
380
|
-
useInnerProxy: z.
|
|
381
|
-
deterministic: z.
|
|
398
|
+
duration: z.ZodNumber;
|
|
399
|
+
width: z.ZodNumber;
|
|
400
|
+
height: z.ZodNumber;
|
|
401
|
+
fps: z.ZodNumber;
|
|
402
|
+
withAudio: z.ZodBoolean;
|
|
403
|
+
outFile: z.ZodString;
|
|
404
|
+
useInnerProxy: z.ZodBoolean;
|
|
405
|
+
deterministic: z.ZodBoolean;
|
|
382
406
|
}, z.core.$strip>;
|
|
383
407
|
export { RenderSchema }
|
|
384
408
|
export { RenderSchema as RenderSchema_alias_1 }
|
|
@@ -397,15 +421,19 @@ export declare function setInterceptor({ source, window, useInnerProxy }: Networ
|
|
|
397
421
|
|
|
398
422
|
export declare function setupAudioCapture(outDir: string, getVideoTimeMs: () => number): Promise<AudioCapture>;
|
|
399
423
|
|
|
424
|
+
export declare function setupPupProtocol(): void;
|
|
425
|
+
|
|
400
426
|
export declare function shoot(source: string, options: RenderOptions): Promise<void>;
|
|
401
427
|
|
|
402
428
|
declare function sleep(ms: number): Promise<void>;
|
|
403
429
|
export { sleep }
|
|
404
430
|
export { sleep as sleep_alias_1 }
|
|
405
431
|
|
|
406
|
-
export declare function
|
|
432
|
+
export declare function startStego(cdp: Debugger): Promise<any>;
|
|
433
|
+
|
|
434
|
+
export declare function stopStego(cdp: Debugger): Promise<any>;
|
|
407
435
|
|
|
408
|
-
export declare
|
|
436
|
+
export declare const TICK_SYMBOL = "__pup_tick__";
|
|
409
437
|
|
|
410
438
|
export declare function unsetInterceptor(window: BrowserWindow): void;
|
|
411
439
|
|