New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@web/test-runner-chrome

Package Overview
Dependencies
Maintainers
6
Versions
94
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.4 to 0.5.5

6

CHANGELOG.md
# @web/test-runner-chrome
## 0.5.5
### Patch Changes
- 1d6d498: allow changing viewport in tests
## 0.5.4

@@ -4,0 +10,0 @@

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

const activePages = new Map();
const debugPages = new Map();
const inactivePages = [];

@@ -69,2 +70,3 @@ let browser;

activePages.set(session.id, page);
await page.setViewport({ height: 600, width: 800 });
await page.goto(url);

@@ -88,4 +90,16 @@ },

const page = await debugBrowser.newPage();
debugPages.set(session.id, page);
page.on('close', () => {
debugPages.delete(session.id);
});
await page.goto(url);
},
setViewport(session, viewport) {
const page = activePages.get(session.id);
const debugPage = debugPages.get(session.id);
if (!page && !debugPage) {
throw new Error(`Cannot set viewport for inactive session: ${session.id}`);
}
return (page || debugPage).setViewport(viewport);
},
};

@@ -92,0 +106,0 @@ }

4

package.json
{
"name": "@web/test-runner-chrome",
"version": "0.5.4",
"version": "0.5.5",
"publishConfig": {

@@ -46,4 +46,4 @@ "access": "public"

"@web/test-runner-mocha": "^0.2.6",
"@web/test-runner-server": "^0.5.7"
"@web/test-runner-server": "^0.5.8"
}
}

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