demoup-react
Advanced tools
Comparing version 0.1.15 to 0.1.16
"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; }; | ||
var React = require("react"); | ||
@@ -12,2 +14,3 @@ var config = require("./config"); | ||
defaultProps: { | ||
nodeAttrs: [], | ||
scope: scope | ||
@@ -37,10 +40,11 @@ }, | ||
render: function () { | ||
return React.createElement("div", { | ||
className: classNames("demoup-trigger", this.props.className), | ||
var props = this.props; | ||
return React.createElement("div", _extends({}, props.nodeAttrs, { | ||
className: classNames("demoup-trigger", props.className), | ||
id: "demoup_stage2_script", | ||
ref: this.setRef, | ||
src: config.stage3Path(scope) | ||
}); | ||
})); | ||
} | ||
}); | ||
}; |
{ | ||
"name": "demoup-react", | ||
"version": "0.1.15", | ||
"version": "0.1.16", | ||
"description": "React components for integrating the demoup video player solution in react based websites", | ||
@@ -5,0 +5,0 @@ "main": "distribution/index.js", |
@@ -12,2 +12,3 @@ "use strict"; | ||
defaultProps : { | ||
nodeAttrs: [], | ||
scope : scope | ||
@@ -39,4 +40,6 @@ }, | ||
render : function() { | ||
var props = this.props; | ||
return <div | ||
className={classNames("demoup-trigger", this.props.className)} | ||
{...props.nodeAttrs} | ||
className={classNames("demoup-trigger", props.className)} | ||
id="demoup_stage2_script" | ||
@@ -43,0 +46,0 @@ ref={this.setRef} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10089
209
0