connectycube
Advanced tools
Comparing version 3.20.0 to 3.20.1
@@ -294,3 +294,3 @@ const config = require('./cubeConfig') | ||
static cloneObject(obj, escapeNull = false) { | ||
static cloneObject(obj = {}, escapeNull = false) { | ||
try { | ||
@@ -297,0 +297,0 @@ const json = JSON.stringify(obj) |
@@ -769,8 +769,10 @@ const config = require('../cubeConfig'); | ||
function _prepareExtension(extension) { | ||
function _prepareExtension(extension = {}) { | ||
const ext = {userInfo: extension}; | ||
try { | ||
if (({}).toString.call(extension) === '[object Object]') { | ||
return {userInfo: Utils.cloneObject(extension, true)}; | ||
if (Utils.isObject(extension)) { | ||
ext.userInfo = Utils.cloneObject(extension, true) | ||
} else { | ||
throw new Error('Invalid type of "extension" object.'); | ||
Helpers.traceWarning("Ignore 'extension', must be an object."); | ||
} | ||
@@ -777,0 +779,0 @@ } catch (err) { |
{ | ||
"name": "connectycube", | ||
"description": "ConnectyCube chat and video chat JavaScript SDK", | ||
"version": "3.20.0", | ||
"version": "3.20.1", | ||
"homepage": "https://developers.connectycube.com/reactnative", | ||
@@ -84,3 +84,3 @@ "main": "lib/cubeMain.js", | ||
}, | ||
"gitHead": "3a84d71cea6fcdb19cd5b9969447e4e67e5fd5b4" | ||
"gitHead": "ead56a2e79a6758dee0c70455166c1a5d1c25789" | ||
} |
Sorry, the diff of this file is too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1482531
10007