@ramp-network/ramp-instant-sdk
Advanced tools
Comparing version 4.0.3-rc2 to 4.0.3-rc3
@@ -62,6 +62,8 @@ "use strict"; | ||
} | ||
if (config.variant === 'embedded-desktop' || config.variant === 'embedded-mobile') { | ||
if (config.variant === 'embedded-desktop' || | ||
config.variant === 'embedded-mobile' || | ||
config.variant === 'webview-mobile') { | ||
validateContainerNode(config.containerNode, config.variant); | ||
} | ||
if (!['embedded-desktop', 'embedded-mobile'].includes(configCopy.variant)) { | ||
if (!['embedded-desktop', 'embedded-mobile', 'webview-mobile'].includes(configCopy.variant)) { | ||
delete configCopy.containerNode; | ||
@@ -144,3 +146,3 @@ } | ||
} | ||
else if (variant === 'embedded-mobile') { | ||
else if (variant === 'embedded-mobile' || variant === 'webview-mobile') { | ||
if (width + 1 < exports.minWidgetMobileWidth) { | ||
@@ -147,0 +149,0 @@ throw new Error("Container node must be at least ".concat(exports.minWidgetMobileWidth, "px wide.")); |
@@ -366,6 +366,8 @@ /*! ***************************************************************************** | ||
} | ||
if (config.variant === 'embedded-desktop' || config.variant === 'embedded-mobile') { | ||
if (config.variant === 'embedded-desktop' || | ||
config.variant === 'embedded-mobile' || | ||
config.variant === 'webview-mobile') { | ||
validateContainerNode(config.containerNode, config.variant); | ||
} | ||
if (!['embedded-desktop', 'embedded-mobile'].includes(configCopy.variant)) { | ||
if (!['embedded-desktop', 'embedded-mobile', 'webview-mobile'].includes(configCopy.variant)) { | ||
delete configCopy.containerNode; | ||
@@ -444,3 +446,3 @@ } | ||
} | ||
else if (variant === 'embedded-mobile') { | ||
else if (variant === 'embedded-mobile' || variant === 'webview-mobile') { | ||
if (width + 1 < minWidgetMobileWidth) { | ||
@@ -447,0 +449,0 @@ throw new Error("Container node must be at least ".concat(minWidgetMobileWidth, "px wide.")); |
@@ -372,6 +372,8 @@ (function (global, factory) { | ||
} | ||
if (config.variant === 'embedded-desktop' || config.variant === 'embedded-mobile') { | ||
if (config.variant === 'embedded-desktop' || | ||
config.variant === 'embedded-mobile' || | ||
config.variant === 'webview-mobile') { | ||
validateContainerNode(config.containerNode, config.variant); | ||
} | ||
if (!['embedded-desktop', 'embedded-mobile'].includes(configCopy.variant)) { | ||
if (!['embedded-desktop', 'embedded-mobile', 'webview-mobile'].includes(configCopy.variant)) { | ||
delete configCopy.containerNode; | ||
@@ -450,3 +452,3 @@ } | ||
} | ||
else if (variant === 'embedded-mobile') { | ||
else if (variant === 'embedded-mobile' || variant === 'webview-mobile') { | ||
if (width + 1 < minWidgetMobileWidth) { | ||
@@ -453,0 +455,0 @@ throw new Error("Container node must be at least ".concat(minWidgetMobileWidth, "px wide.")); |
{ | ||
"name": "@ramp-network/ramp-instant-sdk", | ||
"version": "4.0.3-rc2", | ||
"version": "4.0.3-rc3", | ||
"description": "SDK for Ramp Instant", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
350325
3115