@jamm-api/client
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -68,2 +68,3 @@ /// <reference types="node" /> | ||
}; | ||
sidechats?: boolean; | ||
baseURL?: string; | ||
@@ -70,0 +71,0 @@ } |
@@ -108,2 +108,5 @@ "use strict"; | ||
} | ||
if (typeof this.opts.sidechats !== 'undefined') { | ||
params.sidechats = this.opts.sidechats; | ||
} | ||
if (typeof this.opts.detectSameRoom !== 'undefined') { | ||
@@ -139,3 +142,9 @@ params.detectSameRoom = this.opts.detectSameRoom; | ||
this.url += prefix; | ||
var concatParameter = function (acc, k, v) { return typeof v !== 'undefined' ? "" + acc + (acc === '' ? '' : '&') + encodeURIComponent(k) + "=" + encodeURIComponent(v) : ''; }; | ||
var concatParameter = function (acc, k, v) { | ||
if (typeof v === 'undefined') { | ||
return acc; | ||
} | ||
var separator = acc === '' ? '' : '&'; | ||
return "" + acc + separator + encodeURIComponent(k) + "=" + encodeURIComponent(v); | ||
}; | ||
this.url += Object.entries(params).reduce(function (acc, _a) { | ||
@@ -142,0 +151,0 @@ var k = _a[0], v = _a[1]; |
{ | ||
"name": "@jamm-api/client", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "JavaScript library for creating and joining Jamm Video embeds", | ||
@@ -5,0 +5,0 @@ "main": "dist-commonjs/index.js", |
Sorry, the diff of this file is not supported yet
20758
354