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

ssr-window

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssr-window - npm Package Compare versions

Comparing version 2.0.0-beta.6 to 2.0.0-beta.7

14

dist/ssr-window.esm.js
/**
* SSR Window 2.0.0-beta.6
* SSR Window 2.0.0-beta.7
* Better handling for window object in SSR environment

@@ -10,3 +10,3 @@ * https://github.com/nolimits4web/ssr-window

*
* Released on: May 8, 2020
* Released on: May 9, 2020
*/

@@ -95,3 +95,8 @@ /* eslint-disable no-param-reassign */

},
history: {},
history: {
replaceState: function () { },
pushState: function () { },
go: function () { },
back: function () { },
},
CustomEvent: function CustomEvent() {

@@ -114,2 +119,5 @@ return this;

clearTimeout: function () { },
matchMedia: function () {
return {};
},
};

@@ -116,0 +124,0 @@ extend(win, ssrWindow);

/**
* SSR Window 2.0.0-beta.6
* SSR Window 2.0.0-beta.7
* Better handling for window object in SSR environment

@@ -10,3 +10,3 @@ * https://github.com/nolimits4web/ssr-window

*
* Released on: May 8, 2020
* Released on: May 9, 2020
*/

@@ -101,3 +101,8 @@ (function (global, factory) {

},
history: {},
history: {
replaceState: function () { },
pushState: function () { },
go: function () { },
back: function () { },
},
CustomEvent: function CustomEvent() {

@@ -120,2 +125,5 @@ return this;

clearTimeout: function () { },
matchMedia: function () {
return {};
},
};

@@ -122,0 +130,0 @@ extend(win, ssrWindow);

/**
* SSR Window 2.0.0-beta.6
* SSR Window 2.0.0-beta.7
* Better handling for window object in SSR environment

@@ -10,5 +10,5 @@ * https://github.com/nolimits4web/ssr-window

*
* Released on: May 8, 2020
* Released on: May 9, 2020
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).ssrWindow={})}(this,(function(e){"use strict";function t(e,n){Object.keys(n).forEach((function(o){void 0===e[o]?e[o]=n[o]:"object"==typeof n[o]&&n[o].constructor===Object&&Object.keys(n[o]).length>0&&t(e[o],n[o])}))}var n="undefined"!=typeof document?document:{};t(n,{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}});var o="undefined"!=typeof window?window:{};t(o,{document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}),e.document=n,e.extend=t,e.window=o,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).ssrWindow={})}(this,(function(e){"use strict";function t(e,n){Object.keys(n).forEach((function(o){void 0===e[o]?e[o]=n[o]:"object"==typeof n[o]&&n[o].constructor===Object&&Object.keys(n[o]).length>0&&t(e[o],n[o])}))}var n="undefined"!=typeof document?document:{};t(n,{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}});var o="undefined"!=typeof window?window:{};t(o,{document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}}),e.document=n,e.extend=t,e.window=o,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ssr-window.min.js.map
{
"name": "ssr-window",
"version": "2.0.0-beta.6",
"version": "2.0.0-beta.7",
"description": "Better handling for window object in SSR environment",

@@ -18,3 +18,3 @@ "main": "dist/ssr-window.js",

"test": "node ./scripts/test",
"validate": "npm-run-all --parallel test check-format lint build:dev",
"validate": "npm-run-all --parallel test check-format lint",
"release": "npm run validate && node ./scripts/release"

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

@@ -21,3 +21,8 @@ import extend from './extend';

},
history: {},
history: {
replaceState() {},
pushState() {},
go() {},
back() {},
},
CustomEvent: function CustomEvent() {

@@ -40,2 +45,5 @@ return this;

clearTimeout() {},
matchMedia() {
return {};
},
};

@@ -42,0 +50,0 @@

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