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

win-doc

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

win-doc - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

10

build/cjs/src/index.js

@@ -18,6 +18,5 @@ "use strict";

var doc = function doc(w) {
var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultObj;
var doc = function doc(w, def) {
w = w || win();
return _reshowConstant.UNDEFINED !== (0, _typeof2["default"])(w.document) ? w.document : def;
return _reshowConstant.UNDEFINED !== (0, _typeof2["default"])(w.document) ? w.document : def || defaultObj;
};

@@ -33,4 +32,3 @@

var win = function win() {
var def = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultObj;
var win = function win(def) {
return (

@@ -41,3 +39,3 @@ /**

*/
"undefined" !== typeof window ? window : def
"undefined" !== typeof window ? window : def || defaultObj
);

@@ -44,0 +42,0 @@ };

@@ -7,6 +7,5 @@ import _typeof from "reshow-runtime/es/helpers/typeof";

var doc = function doc(w) {
var def = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultObj;
var doc = function doc(w, def) {
w = w || win();
return UNDEFINED !== _typeof(w.document) ? w.document : def;
return UNDEFINED !== _typeof(w.document) ? w.document : def || defaultObj;
};

@@ -18,4 +17,3 @@

var win = function win() {
var def = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultObj;
var win = function win(def) {
return (

@@ -26,3 +24,3 @@ /**

*/
"undefined" !== typeof window ? window : def
"undefined" !== typeof window ? window : def || defaultObj
);

@@ -29,0 +27,0 @@ };

2

package.json
{
"name": "win-doc",
"version": "0.1.0",
"version": "0.1.1",
"description": "Simple to avoid global not found error",

@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism",

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