react-fela
Advanced tools
Comparing version 10.2.0 to 10.2.1
@@ -1,2 +0,1 @@ | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
@@ -15,6 +14,9 @@ // $FlowFixMe | ||
var propsWithTheme = _extends({}, props, { | ||
theme: theme | ||
}); | ||
if (!renderer) { | ||
throw new Error('The "useFela" hook can only be used inside a "RendererProvider"'); | ||
} | ||
var propsWithTheme = { theme: theme }; | ||
if (props) Object.assign(propsWithTheme, props); | ||
function css() { | ||
@@ -21,0 +23,0 @@ return renderer.renderRule(combineRules.apply(undefined, arguments), propsWithTheme); |
@@ -6,7 +6,2 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
// $FlowFixMe | ||
exports.default = useFela; | ||
@@ -26,6 +21,9 @@ | ||
var propsWithTheme = _extends({}, props, { | ||
theme: theme | ||
}); | ||
if (!renderer) { | ||
throw new Error('The "useFela" hook can only be used inside a "RendererProvider"'); | ||
} | ||
var propsWithTheme = { theme: theme }; | ||
if (props) Object.assign(propsWithTheme, props); | ||
function css() { | ||
@@ -40,2 +38,3 @@ return renderer.renderRule(_fela.combineRules.apply(undefined, arguments), propsWithTheme); | ||
}; | ||
} | ||
} | ||
// $FlowFixMe |
{ | ||
"name": "react-fela", | ||
"version": "10.2.0", | ||
"version": "10.2.1", | ||
"description": "React bindings for Fela", | ||
@@ -31,7 +31,7 @@ "typings": "index.d.ts", | ||
"dependencies": { | ||
"fela-bindings": "^10.2.0", | ||
"fela-dom": "^10.2.0", | ||
"fela-bindings": "^10.2.1", | ||
"fela-dom": "^10.2.1", | ||
"prop-types": "^15.5.8" | ||
}, | ||
"gitHead": "2271df3339a3c3a22e8fd4c457f5cc5a1729a1a8" | ||
"gitHead": "d69af0d3689e88fab5e10046eeffef28328c5886" | ||
} |
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
838
89029
Updatedfela-bindings@^10.2.1
Updatedfela-dom@^10.2.1