Huge News!Announcing our $40M Series B led by Abstract Ventures.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.32 to 0.90.33

4

lib/AbstractBrowser.js

@@ -43,2 +43,6 @@ /**

this.getNavigator = function() {
return win.navigator;
};
// constructor validations

@@ -45,0 +49,0 @@ if (!win) throw new Error('AbstractBrowser requires a window object');

4

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

@@ -25,3 +25,3 @@ "repository": {

"node-jsdom": "^3.1.3",
"lodash": "^3.1.0"
"lodash": "^3.6.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

@@ -78,2 +78,3 @@ #Mock Browser

* getLocation()
* getNavigator()
* getHistory()

@@ -101,3 +102,3 @@ * getLocalStorage()

// inherit getWindow(), getDocument(), getLocation(), getHistory(),
// getLocalStorage(), getSessionStorage()
// getLocalStorage(), getSessionStorage(), getNavigator()
AbstractBrowser.extend( this, options );

@@ -151,2 +152,2 @@

- - -
<p><small><em>copyright © 2014-2015 rain city software | version 0.90.31</em></small></p>
<p><small><em>copyright © 2014-2015 rain city software | version 0.90.33</em></small></p>

@@ -35,2 +35,3 @@ /**

'getLocation',
'getNavigator',
'getLocalStorage',

@@ -37,0 +38,0 @@ 'getSessionStorage'

@@ -22,2 +22,3 @@ /**

'getLocation',
'getNavigator',
'getLocalStorage',

@@ -142,4 +143,6 @@ 'getSessionStorage'

should.exist( win.location );
should.exist( win.navigator );
});
});
});
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