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

@web/test-runner-chrome

Package Overview
Dependencies
Maintainers
6
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web/test-runner-chrome - npm Package Compare versions

Comparing version 0.5.18 to 0.5.19

7

CHANGELOG.md
# @web/test-runner-chrome
## 0.5.19
### Patch Changes
- 02a3926: expose browser name from BrowserLauncher
- 74cc129: implement commands API
## 0.5.18

@@ -4,0 +11,0 @@

2

dist/ChromeLauncher.d.ts

@@ -14,2 +14,3 @@ import * as puppeteerCore from 'puppeteer-core';

name: string;
type: string;
private config?;

@@ -33,4 +34,5 @@ private testFiles?;

stopSession(sessionId: string): Promise<import("@web/test-runner-core").SessionResult>;
getPage(sessionId: string): puppeteerCore.Page;
setViewport(sessionId: string, viewport: Viewport): Promise<void>;
}
//# sourceMappingURL=ChromeLauncher.d.ts.map

@@ -18,2 +18,3 @@ "use strict";

this.createPageFunction = createPageFunction;
this.type = 'puppeteer';
this.activePages = new Map();

@@ -125,2 +126,10 @@ this.activeDebugPages = new Map();

}
getPage(sessionId) {
var _a, _b, _c;
const page = (_b = (_a = this.activePages.get(sessionId)) === null || _a === void 0 ? void 0 : _a.puppeteerPage) !== null && _b !== void 0 ? _b : (_c = this.activeDebugPages.get(sessionId)) === null || _c === void 0 ? void 0 : _c.puppeteerPage;
if (!page) {
throw new Error(`Could not find a page for session ${sessionId}`);
}
return page;
}
setViewport(sessionId, viewport) {

@@ -127,0 +136,0 @@ const page = this.activePages.get(sessionId);

@@ -13,3 +13,4 @@ import * as puppeteerCore from 'puppeteer-core';

}
export { ChromeLauncher };
export declare function chromeLauncher(args?: ChromeLauncherArgs): ChromeLauncher;
//# sourceMappingURL=index.d.ts.map

3

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.chromeLauncher = void 0;
exports.chromeLauncher = exports.ChromeLauncher = void 0;
const ChromeLauncher_1 = require("./ChromeLauncher");
Object.defineProperty(exports, "ChromeLauncher", { enumerable: true, get: function () { return ChromeLauncher_1.ChromeLauncher; } });
function chromeLauncher(args = {}) {

@@ -6,0 +7,0 @@ var _a;

{
"name": "@web/test-runner-chrome",
"version": "0.5.18",
"version": "0.5.19",
"publishConfig": {

@@ -44,6 +44,6 @@ "access": "public"

"devDependencies": {
"@web/test-runner-mocha": "^0.2.14",
"@web/test-runner-server": "^0.5.13",
"@web/test-runner-mocha": "^0.2.15",
"@web/test-runner-server": "^0.5.15",
"portfinder": "^1.0.26"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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