Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade debug from 4.1.1 to 4.2.0 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ node_modules/
# Coverage
coverage

# Transpiled files
build/

# VS Code
.vscode
!.vscode/tasks.js
Expand All @@ -26,4 +23,4 @@ build/
.eslintcache

# Misc
.DS_Store
.DS_Store
33 changes: 33 additions & 0 deletions build/PageVideoCapture.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Page } from 'playwright-core';
import { SortedFrameQueue } from './SortedFrameQueue';
import { ScreencastFrameCollector } from './ScreencastFrameCollector';
import { VideoWriter } from './VideoWriter';
export interface CaptureOptions {
followPopups: boolean;
fps?: number;
}
interface ConstructorArgs {
collector: ScreencastFrameCollector;
queue: SortedFrameQueue;
page: Page;
writer: VideoWriter;
}
interface StartArgs {
page: Page;
savePath: string;
options?: CaptureOptions;
}
export declare class PageVideoCapture {
static start({ page, savePath, options, }: StartArgs): Promise<PageVideoCapture>;
_collector: ScreencastFrameCollector;
private _previousFrame?;
private _queue;
_stopped: boolean;
private _writer;
protected constructor({ collector, queue, page, writer }: ConstructorArgs);
private _listenForFrames;
private _writePreviousFrame;
private _writeFinalFrameUpToTimestamp;
stop(): Promise<void>;
}
export {};
73 changes: 73 additions & 0 deletions build/PageVideoCapture.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/PageVideoCapture.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions build/ScreencastFrameCollector.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/// <reference types="node" />
import { EventEmitter } from 'events';
import { CDPSession, Page } from 'playwright-core';
import { CaptureOptions } from './PageVideoCapture';
export interface ScreencastFrame {
data: Buffer;
received: number;
timestamp: number;
}
export declare class ScreencastFrameCollector extends EventEmitter {
static create(originalPage: Page, options?: CaptureOptions): Promise<ScreencastFrameCollector>;
_clients: [CDPSession?];
private _originalPage;
private _stoppedTimestamp;
private _endedPromise;
_followPopups: boolean;
protected constructor(page: Page, options: CaptureOptions);
private _popupFollower;
private _installPopupFollower;
private _uninstallPopupFollower;
private _buildClient;
private _getActiveClient;
private _listenForFrames;
private _activatePage;
private _deactivatePage;
start(): Promise<void>;
stop(): Promise<number>;
}
161 changes: 161 additions & 0 deletions build/ScreencastFrameCollector.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/ScreencastFrameCollector.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions build/SortedFrameQueue.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/// <reference types="node" />
import { EventEmitter } from 'events';
import { ScreencastFrame } from './ScreencastFrameCollector';
export declare class SortedFrameQueue extends EventEmitter {
_frames: any[];
private _size;
constructor(size?: number);
private _findInsertionIndex;
private _emitFrames;
insert(frame: ScreencastFrame): void;
drain(): void;
}
Loading