Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puppeteer-stream

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-stream - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

temp/Default/AutofillStrikeDatabase/000003.log

2

.vscode/launch.json

@@ -12,3 +12,3 @@ {

"name": "Launch Program",
"program": "${workspaceFolder}/dist/PuppeteerStream.js",
"program": "${workspaceFolder}/dist/test/test.js",
"preLaunchTask": "tsc: build - tsconfig.json",

@@ -15,0 +15,0 @@ "outFiles": ["${workspaceFolder}/dist/**/*.js"]

@@ -8,3 +8,3 @@ /// <reference types="node" />

_read(): void;
destroy(): Promise<void>;
destroy(page?: Page): Promise<void>;
}

@@ -11,0 +11,0 @@ declare module "puppeteer" {

@@ -25,9 +25,19 @@ "use strict";

_read() { }
destroy() {
super.destroy();
// TODO: do not destory page just stop recording
// await page.evaluate((filename) => {
// window.postMessage({ type: "REC_STOP" }, "*");
// }, exportname);
return this.page.close();
// @ts-ignore
destroy(page = this.page) {
const _super = Object.create(null, {
destroy: { get: () => super.destroy }
});
return __awaiter(this, void 0, void 0, function* () {
_super.destroy.call(this);
// @ts-ignore
yield page.browser().videoCaptureExtension.evaluate(
// @ts-ignore
(index) => {
// @ts-ignore
STOP_RECORDING(index);
},
// @ts-ignore
page._id);
});
}

@@ -124,2 +134,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHVwcGV0ZWVyU3RyZWFtLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL1B1cHBldGVlclN0cmVhbS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSwwREFBc0c7QUFDdEcsbUNBQW1EO0FBQ25ELGdEQUF3QjtBQUV4QixNQ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QUFHLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyx1QkFBdUI7SUFDOUQsSUFBSSxPQUFPLEdBQUcsSUFBSSxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUM7SUFFbEMsS0FBSyxJQUFJLENBQUMsR0FBRyxDQUFDLEVBQUUsTUFBTSxHQUFHLEdBQUcsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxHQUFHLE1BQU0sRUFBRSxDQUFDLEVBQUUsRUFBRTtRQUNyRCxPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQztLQUMvQjtJQUNELE9BQU8sR0FBRyxDQUFDO0FBQ1osQ0FBQyJ9

@@ -6,12 +6,3 @@ // @ts-nocheck

function START_RECORDING({
index,
video,
audio,
frameSize,
audioBitsPerSecond,
videoBitsPerSecond,
bitsPerSecond,
mimeType,
}) {
function START_RECORDING({ index, video, audio, frameSize, audioBitsPerSecond, videoBitsPerSecond, bitsPerSecond, mimeType }) {
chrome.tabCapture.capture(

@@ -71,2 +62,3 @@ {

function STOP_RECORDING(index) {
//chrome.extension.getBackgroundPage().console.log(recorders)
if (!recorders[index]) return;

@@ -73,0 +65,0 @@ recorders[index].stop();

@@ -0,0 +0,0 @@ {

{
"name": "puppeteer-stream",
"version": "2.0.6",
"version": "2.0.7",
"description": "",

@@ -28,4 +28,6 @@ "main": "dist/PuppeteerStream.js",

"@types/node": "^14.14.14",
"@types/puppeteer": "^5.4.2"
"@types/puppeteer": "^5.4.2",
"tsc": "^2.0.3",
"typescript": "^4.4.3"
}
}

@@ -0,0 +0,0 @@ # puppeteer-stream

@@ -12,9 +12,15 @@ import puppeteer, { LaunchOptions, Browser, Page, BrowserOptions, ChromeArgOptions } from "puppeteer";

destroy() {
// @ts-ignore
async destroy(page: Page = this.page) {
super.destroy();
// TODO: do not destory page just stop recording
// await page.evaluate((filename) => {
// window.postMessage({ type: "REC_STOP" }, "*");
// }, exportname);
return this.page.close();
// @ts-ignore
await (<Page>page.browser().videoCaptureExtension).evaluate(
// @ts-ignore
(index) => {
// @ts-ignore
STOP_RECORDING(index);
},
// @ts-ignore
page._id
);
}

@@ -21,0 +27,0 @@ }

@@ -0,0 +0,0 @@ async function videoRecorder() {

@@ -0,0 +0,0 @@ {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc