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

demoup-react

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demoup-react - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

4

distribution/button.js

@@ -26,3 +26,3 @@ "use strict";

} else {
scriptLoader(config.stage2Path(scope), function () {
scriptLoader(config.stage2Path(scope, this.props.mode), function () {
t.forceUpdate(function () {

@@ -53,3 +53,3 @@ window.DemoUpPlaybuttonRenderer && window.DemoUpPlaybuttonRenderer(t.$container, props);

_extends({}, props.nodeAttrs, {
className: classNames("demoup-trigger1", props.className),
className: classNames("demoup-trigger", props.className),
id: "demoup_stage2_script",

@@ -56,0 +56,0 @@ ref: this.setRef,

"use strict";
module.exports = {
stage2Path: function stage2Path(scope) {
if (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "testing") {
return "//localhost:8000/" + scope + "/playbuttonRenderer.js";
stage2Path: function stage2Path(scope, mode) {
if ((process.env.NODE_ENV === "development" || process.env.NODE_ENV === "testing") && mode !== "production") {
return "//staging.demoup.com/" + scope + "/playbuttonRenderer.js";
//return "//staging.demoup.com/" + scope + "/playbuttonRenderer.js";

@@ -12,5 +12,5 @@ } else {

},
containerPath: function containerPath(scope) {
if (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "testing") {
return "//localhost:8000/" + scope + "/playbuttonContainer.js";
containerPath: function containerPath(scope, mode) {
if ((process.env.NODE_ENV === "development" || process.env.NODE_ENV === "testing") && mode !== "production") {
return "//staging.demoup.com/" + scope + "/playbuttonContainer.js";
} else {

@@ -29,3 +29,3 @@ return "//static.demoup.com/" + scope + "/playbuttonContainer.min.js";

if (process.env.NODE_ENV === "development" || process.env.NODE_ENV === "testing") {
return "//localhost:8000/" + scope + "/playerRenderer.js";
return "//staging.demoup.com/" + scope + "/playerRenderer.js";
} else {

@@ -32,0 +32,0 @@ return "//static.demoup.com/" + scope + "/playerRenderer.min.js";

@@ -34,3 +34,3 @@ "use strict";

} else {
scriptLoader(config.containerPath(scope), _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
scriptLoader(config.containerPath(scope, this.props.mode), _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var t0, t1;

@@ -37,0 +37,0 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

{
"name": "demoup-react",
"version": "0.2.5",
"version": "0.2.6",
"description": "React components for integrating the demoup video player solution in react based websites",

@@ -5,0 +5,0 @@ "main": "distribution/index.js",

@@ -30,2 +30,3 @@ # demoup-react #

width = {60} // Overwrite the width of the button container in pixels. Default is set by DemoUp specific for each shop.
mode = "production" // If not set the component will detect "Node.env" environment variable and choose to either load the local/staging or production version. By default this is staging. To overwrite this detection use this parameter to explicitly set the system into production mode.

@@ -40,2 +41,4 @@ /* The following option turns off the automatic video detection of DemoUp. Use it similiar as a Youtube embed where you want a specific video at a specific place.

* 0.2.6 Made the mode configurable
* 0.2.5 Changed default mode to staging
* 0.2.4 Added support for 3D Videos

@@ -42,0 +45,0 @@

@@ -24,3 +24,3 @@ "use strict";

} else {
scriptLoader(config.stage2Path(scope), function() {
scriptLoader(config.stage2Path(scope, this.props.mode), function() {
t.forceUpdate(function() {

@@ -27,0 +27,0 @@ window.DemoUpPlaybuttonRenderer &&

module.exports = {
stage2Path: function(scope) {
stage2Path: function(scope, mode) {
if (
process.env.NODE_ENV === "development" ||
process.env.NODE_ENV === "testing"
(process.env.NODE_ENV === "development" ||
process.env.NODE_ENV === "testing") &&
mode !== "production"
) {

@@ -13,6 +14,7 @@ return "//staging.demoup.com/" + scope + "/playbuttonRenderer.js";

},
containerPath: function(scope) {
containerPath: function(scope, mode) {
if (
process.env.NODE_ENV === "development" ||
process.env.NODE_ENV === "testing"
(process.env.NODE_ENV === "development" ||
process.env.NODE_ENV === "testing") &&
mode !== "production"
) {

@@ -19,0 +21,0 @@ return "//staging.demoup.com/" + scope + "/playbuttonContainer.js";

@@ -31,3 +31,3 @@ "use strict";

else {
scriptLoader(config.containerPath(scope), async function() {
scriptLoader(config.containerPath(scope, this.props.mode), async function() {
var t0 = performance.now();

@@ -34,0 +34,0 @@ if(window.DemoUpInfoFetcher){

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