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

2

package.json
{
"name": "ssr-window",
"version": "4.0.0-beta.3",
"version": "4.0.0",
"description": "Better handling for window object in SSR environment",

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

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

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

*
* Released on: August 4, 2021
* Released on: August 25, 2021
*/

@@ -13,0 +13,0 @@ /* eslint-disable no-param-reassign */

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

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

*
* Released on: August 4, 2021
* Released on: August 25, 2021
*/

@@ -13,0 +13,0 @@ (function (global, factory) {

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

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

*
* Released on: August 4, 2021
* Released on: August 25, 2021
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ssrWindow={})}(this,(function(e){"use strict";function t(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function n(e={},o={}){Object.keys(o).forEach((i=>{void 0===e[i]?e[i]=o[i]:t(o[i])&&t(e[i])&&Object.keys(o[i]).length>0&&n(e[i],o[i])}))}const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};const i={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};e.extend=n,e.getDocument=function(){const e="undefined"!=typeof document?document:{};return n(e,o),e},e.getWindow=function(){const e="undefined"!=typeof window?window:{};return n(e,i),e},e.ssrDocument=o,e.ssrWindow=i,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ssr-window.umd.min.js.map
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