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.3 to 2.0.0-beta.4

13

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

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

},
location: {},
location: {
hash: '',
host: '',
hostname: '',
href: '',
origin: '',
pathname: '',
protocol: '',
search: '',
},
history: {},

@@ -87,0 +96,0 @@ CustomEvent: function CustomEvent() {

/**
* SSR Window 2.0.0-beta.2
* SSR Window 2.0.0-beta.3
* Better handling for window object in SSR environment

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

},
location: {},
location: {
hash: '',
host: '',
hostname: '',
href: '',
origin: '',
pathname: '',
protocol: '',
search: '',
},
history: {},

@@ -93,0 +102,0 @@ CustomEvent: function CustomEvent() {

4

dist/ssr-window.min.js
/**
* SSR Window 2.0.0-beta.2
* SSR Window 2.0.0-beta.3
* Better handling for window object in SSR environment

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

*/
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).ssrWindow={})}(this,(function(e){"use strict";function n(e,t){Object.keys(t).forEach((function(o){void 0===e[o]?e[o]=t[o]:"object"==typeof t[o]&&t[o].constructor===Object&&Object.keys(t[o]).length>0&&n(e[o],t[o])}))}var t="undefined"!=typeof document?document:{};n(t,{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:{};n(o,{document:t,navigator:{userAgent:""},location:{},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=t,e.extend=n,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:{},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})}));
//# sourceMappingURL=ssr-window.min.js.map
{
"name": "ssr-window",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "Better handling for window object in SSR environment",

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

"release": "npm run validate && node ./scripts/release",
"test": "npm run validate"
"test": "npm run validate && node ./scripts/test"
},

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

@@ -11,3 +11,12 @@ import extend from './extend';

},
location: {},
location: {
hash: '',
host: '',
hostname: '',
href: '',
origin: '',
pathname: '',
protocol: '',
search: '',
},
history: {},

@@ -14,0 +23,0 @@ CustomEvent: function CustomEvent() {

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