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

mock-browser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-browser - npm Package Compare versions

Comparing version 0.90.15 to 0.90.16

2

package.json
{
"name": "mock-browser",
"version": "0.90.15",
"version": "0.90.16",
"description": "A mock browser with window, document, location, navigation, local and session storage to use for client side code tests in a node environment.",

@@ -5,0 +5,0 @@ "repository": {

@@ -56,3 +56,10 @@ #Mock Browser

var opts = {};
opts.window = (typeof window === 'object') ? window : MockBrowser.createWindow();
if (typeof window === 'object') {
// assign the browser window if it exists
opts.window = window;
} else {
// create a mock window object for testing
opts.window = MockBrowser.createWindow();
}

@@ -143,2 +150,2 @@ // create the browser object with a real window in brwosers and mock when not in browser

- - -
<p><small><em>copyright © 2014 rain city software | version 0.90.15</em></small></p>
<p><small><em>copyright © 2014 rain city software | version 0.90.16</em></small></p>
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