ssr-window
Advanced tools
Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "ssr-window", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Better handling for window object in SSR environment", | ||
"main": "./ssr-window.esm.js", | ||
"module": "./ssr-window.esm.js", | ||
"exports": { | ||
@@ -6,0 +8,0 @@ ".": "./ssr-window.esm.js" |
/** | ||
* SSR Window 4.0.0 | ||
* SSR Window 4.0.1 | ||
* Better handling for window object in SSR environment | ||
@@ -10,3 +10,3 @@ * https://github.com/nolimits4web/ssr-window | ||
* | ||
* Released on: August 25, 2021 | ||
* Released on: October 27, 2021 | ||
*/ | ||
@@ -13,0 +13,0 @@ /* eslint-disable no-param-reassign */ |
/** | ||
* SSR Window 4.0.0 | ||
* SSR Window 4.0.1 | ||
* Better handling for window object in SSR environment | ||
@@ -10,3 +10,3 @@ * https://github.com/nolimits4web/ssr-window | ||
* | ||
* Released on: August 25, 2021 | ||
* Released on: October 27, 2021 | ||
*/ | ||
@@ -13,0 +13,0 @@ (function (global, factory) { |
/** | ||
* SSR Window 4.0.0 | ||
* SSR Window 4.0.1 | ||
* Better handling for window object in SSR environment | ||
@@ -10,5 +10,5 @@ * https://github.com/nolimits4web/ssr-window | ||
* | ||
* Released on: August 25, 2021 | ||
* Released on: October 27, 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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20309