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

fela-bindings

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-bindings - npm Package Compare versions

Comparing version 10.6.1 to 10.7.0

11

es/RendererProviderFactory.js

@@ -13,6 +13,11 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

function hasDOM(renderer, targetDocument) {
if (typeof window === 'undefined') return false;
if (!targetDocument) targetDocument = document;
// ensure we're on a browser by using document since window is defined in e.g. React Native
// see https://github.com/robinweser/fela/issues/736
if (typeof document === 'undefined') {
return false;
}
return renderer && !renderer.isNativeRenderer && targetDocument && targetDocument.createElement;
var doc = targetDocument || document;
return renderer && !renderer.isNativeRenderer && doc && doc.createElement;
}

@@ -19,0 +24,0 @@

@@ -26,6 +26,11 @@ 'use strict';

function hasDOM(renderer, targetDocument) {
if (typeof window === 'undefined') return false;
if (!targetDocument) targetDocument = document;
// ensure we're on a browser by using document since window is defined in e.g. React Native
// see https://github.com/robinweser/fela/issues/736
if (typeof document === 'undefined') {
return false;
}
return renderer && !renderer.isNativeRenderer && targetDocument && targetDocument.createElement;
var doc = targetDocument || document;
return renderer && !renderer.isNativeRenderer && doc && doc.createElement;
}

@@ -32,0 +37,0 @@

{
"name": "fela-bindings",
"version": "10.6.1",
"version": "10.7.0",
"description": "Abstract binding factories for Fela",

@@ -30,8 +30,8 @@ "main": "lib/index.js",

"fast-loops": "^1.0.0",
"fela-dom": "^10.6.1",
"fela-tools": "^10.6.1",
"fela-dom": "^10.7.0",
"fela-tools": "^10.7.0",
"react-addons-shallow-compare": "^15.6.2",
"shallow-equal": "^1.0.0"
},
"gitHead": "17ed6c0eff16effe089066ac84e1d817baacb13d"
"gitHead": "1e832301926eefb4c0cf955ec3cb9e7298d9d06e"
}
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