New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

opentok-accelerator-core

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opentok-accelerator-core - npm Package Compare versions

Comparing version

to
1.0.15

2

CHANGELOG.md

@@ -6,5 +6,5 @@ # Accelerator Core Javascript CHANGELOG

#### [1.0.0]
####[1.0.0]
Official release
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -28,9 +28,9 @@ /* global OT */

var session = void 0;
var accPack = void 0;
var callProperties = void 0;
var screenProperties = void 0;
var streamContainers = void 0;
var autoSubscribe = void 0;
var connectionLimit = void 0;
var session = undefined;
var accPack = undefined;
var callProperties = undefined;
var screenProperties = undefined;
var streamContainers = undefined;
var autoSubscribe = undefined;
var connectionLimit = undefined;
var active = false;

@@ -150,3 +150,3 @@

var container = dom.query(streamContainers('subscriber', type, connectionData, streamId));
var options = type === 'camera' || type === 'sip' ? callProperties : screenProperties;
var options = type === 'camera' ? callProperties : screenProperties;
var subscriber = session.subscribe(stream, container, options, function (error) {

@@ -153,0 +153,0 @@ if (error) {

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -41,6 +41,6 @@ /* global OT */

var textChat = void 0; // eslint-disable-line no-unused-vars
var screenSharing = void 0; // eslint-disable-line no-unused-vars
var annotation = void 0;
var archiving = void 0; // eslint-disable-line no-unused-vars
var textChat = undefined; // eslint-disable-line no-unused-vars
var screenSharing = undefined; // eslint-disable-line no-unused-vars
var annotation = undefined;
var archiving = undefined; // eslint-disable-line no-unused-vars

@@ -102,5 +102,5 @@ /**

} else {
eventCallbacks.add(callback);
// logAnalytics(logAction.on, logVariation.success);
}
eventCallbacks.add(callback);
// logAnalytics(logAction.on, logVariation.success);
}
};

@@ -227,3 +227,3 @@

triggerEvent('endScreenShare', internalState.getPubSub());
if (internalAnnotation) {
if (usingAnnotation) {
annotation.end();

@@ -251,3 +251,3 @@ }

var stream = streams[streamId];
return stream.videoType === 'camera' || stream.videoType === 'sip' ? acc.concat(stream) : acc;
return stream.videoType === 'camera' ? acc.concat(stream) : acc;
}, []);

@@ -273,3 +273,3 @@ cameraStreams.forEach(annotation.addSubscriberToExternalWindow);

var optionalRequire = function optionalRequire(packageName, globalName) {
var result = void 0;
var result = undefined;
/* eslint-disable global-require, import/no-extraneous-dependencies, import/no-unresolved */

@@ -276,0 +276,0 @@ try {

@@ -10,2 +10,3 @@ "use strict";

/** Errors */
var CoreError = function (_Error) {

@@ -12,0 +13,0 @@ _inherits(CoreError, _Error);

@@ -53,3 +53,3 @@ 'use strict';

var otkanalyticsData = {
clientVersion: 'js-vsol-1.0.13',
clientVersion: 'js-vsol-1.0.0',
source: source,

@@ -56,0 +56,0 @@ componentId: 'acceleratorCore',

@@ -10,2 +10,3 @@ "use strict";

/** Errors */
var SDKError = function (_Error) {

@@ -12,0 +13,0 @@ _inherits(SDKError, _Error);

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -110,2 +110,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

*/
function OpenTokSDK(credentials) {

@@ -112,0 +113,0 @@ _classCallCheck(this, OpenTokSDK);

'use strict';
var _require = require('./util'),
pathOr = _require.pathOr;
/**
* Internal variables
*/
// Map publisher ids to publisher objects
var publishers = {

@@ -148,3 +144,3 @@ camera: {},

var removeStream = function removeStream(stream) {
var type = pathOr('sip', 'videoType', stream);
var type = stream.videoType;
var subscriberId = streamMap[stream.id];

@@ -209,4 +205,4 @@ delete streamMap[stream.id];

var addSubscriber = function addSubscriber(subscriber) {
var type = subscriber.stream.videoType;
var streamId = subscriber.stream.id;
var type = pathOr('sip', 'stream.videoType', subscriber);
subscribers[type][subscriber.id] = subscriber;

@@ -213,0 +209,0 @@ streamMap[streamId] = subscriber.id;

{
"name": "opentok-accelerator-core",
"version": "1.0.14",
"version": "1.0.15",
"description": "Opentok Accelerator Core",

@@ -5,0 +5,0 @@ "repository": "https://github.com/opentok/accelerator-core-js",

@@ -17,3 +17,4 @@ {

"react-dom": "^15.3.2",
"react-spinner": "^0.2.6"
"react-spinner": "^0.2.6",
"babel-polyfill": "^6.23.0"
},

@@ -20,0 +21,0 @@ "scripts": {

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -28,9 +28,9 @@ /* global OT */

var session = void 0;
var accPack = void 0;
var callProperties = void 0;
var screenProperties = void 0;
var streamContainers = void 0;
var autoSubscribe = void 0;
var connectionLimit = void 0;
var session = undefined;
var accPack = undefined;
var callProperties = undefined;
var screenProperties = undefined;
var streamContainers = undefined;
var autoSubscribe = undefined;
var connectionLimit = undefined;
var active = false;

@@ -150,3 +150,3 @@

var container = dom.query(streamContainers('subscriber', type, connectionData, streamId));
var options = type === 'camera' || type === 'sip' ? callProperties : screenProperties;
var options = type === 'camera' ? callProperties : screenProperties;
var subscriber = session.subscribe(stream, container, options, function (error) {

@@ -153,0 +153,0 @@ if (error) {

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -41,6 +41,6 @@ /* global OT */

var textChat = void 0; // eslint-disable-line no-unused-vars
var screenSharing = void 0; // eslint-disable-line no-unused-vars
var annotation = void 0;
var archiving = void 0; // eslint-disable-line no-unused-vars
var textChat = undefined; // eslint-disable-line no-unused-vars
var screenSharing = undefined; // eslint-disable-line no-unused-vars
var annotation = undefined;
var archiving = undefined; // eslint-disable-line no-unused-vars

@@ -102,5 +102,5 @@ /**

} else {
eventCallbacks.add(callback);
// logAnalytics(logAction.on, logVariation.success);
}
eventCallbacks.add(callback);
// logAnalytics(logAction.on, logVariation.success);
}
};

@@ -227,3 +227,3 @@

triggerEvent('endScreenShare', internalState.getPubSub());
if (internalAnnotation) {
if (usingAnnotation) {
annotation.end();

@@ -251,3 +251,3 @@ }

var stream = streams[streamId];
return stream.videoType === 'camera' || stream.videoType === 'sip' ? acc.concat(stream) : acc;
return stream.videoType === 'camera' ? acc.concat(stream) : acc;
}, []);

@@ -273,3 +273,3 @@ cameraStreams.forEach(annotation.addSubscriberToExternalWindow);

var optionalRequire = function optionalRequire(packageName, globalName) {
var result = void 0;
var result = undefined;
/* eslint-disable global-require, import/no-extraneous-dependencies, import/no-unresolved */

@@ -276,0 +276,0 @@ try {

@@ -10,2 +10,3 @@ "use strict";

/** Errors */
var CoreError = function (_Error) {

@@ -12,0 +13,0 @@ _inherits(CoreError, _Error);

@@ -53,3 +53,3 @@ 'use strict';

var otkanalyticsData = {
clientVersion: 'js-vsol-1.0.13',
clientVersion: 'js-vsol-1.0.0',
source: source,

@@ -56,0 +56,0 @@ componentId: 'acceleratorCore',

@@ -10,2 +10,3 @@ "use strict";

/** Errors */
var SDKError = function (_Error) {

@@ -12,0 +13,0 @@ _inherits(SDKError, _Error);

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -110,2 +110,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

*/
function OpenTokSDK(credentials) {

@@ -112,0 +113,0 @@ _classCallCheck(this, OpenTokSDK);

'use strict';
var _require = require('./util'),
pathOr = _require.pathOr;
/**
* Internal variables
*/
// Map publisher ids to publisher objects
var publishers = {

@@ -148,3 +144,3 @@ camera: {},

var removeStream = function removeStream(stream) {
var type = pathOr('sip', 'videoType', stream);
var type = stream.videoType;
var subscriberId = streamMap[stream.id];

@@ -209,4 +205,4 @@ delete streamMap[stream.id];

var addSubscriber = function addSubscriber(subscriber) {
var type = subscriber.stream.videoType;
var streamId = subscriber.stream.id;
var type = pathOr('sip', 'stream.videoType', subscriber);
subscribers[type][subscriber.id] = subscriber;

@@ -213,0 +209,0 @@ streamMap[streamId] = subscriber.id;

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -28,9 +28,9 @@ /* global OT */

var session = void 0;
var accPack = void 0;
var callProperties = void 0;
var screenProperties = void 0;
var streamContainers = void 0;
var autoSubscribe = void 0;
var connectionLimit = void 0;
var session = undefined;
var accPack = undefined;
var callProperties = undefined;
var screenProperties = undefined;
var streamContainers = undefined;
var autoSubscribe = undefined;
var connectionLimit = undefined;
var active = false;

@@ -150,3 +150,3 @@

var container = dom.query(streamContainers('subscriber', type, connectionData, streamId));
var options = type === 'camera' || type === 'sip' ? callProperties : screenProperties;
var options = type === 'camera' ? callProperties : screenProperties;
var subscriber = session.subscribe(stream, container, options, function (error) {

@@ -153,0 +153,0 @@ if (error) {

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -41,6 +41,6 @@ /* global OT */

var textChat = void 0; // eslint-disable-line no-unused-vars
var screenSharing = void 0; // eslint-disable-line no-unused-vars
var annotation = void 0;
var archiving = void 0; // eslint-disable-line no-unused-vars
var textChat = undefined; // eslint-disable-line no-unused-vars
var screenSharing = undefined; // eslint-disable-line no-unused-vars
var annotation = undefined;
var archiving = undefined; // eslint-disable-line no-unused-vars

@@ -102,5 +102,5 @@ /**

} else {
eventCallbacks.add(callback);
// logAnalytics(logAction.on, logVariation.success);
}
eventCallbacks.add(callback);
// logAnalytics(logAction.on, logVariation.success);
}
};

@@ -227,3 +227,3 @@

triggerEvent('endScreenShare', internalState.getPubSub());
if (internalAnnotation) {
if (usingAnnotation) {
annotation.end();

@@ -251,3 +251,3 @@ }

var stream = streams[streamId];
return stream.videoType === 'camera' || stream.videoType === 'sip' ? acc.concat(stream) : acc;
return stream.videoType === 'camera' ? acc.concat(stream) : acc;
}, []);

@@ -273,3 +273,3 @@ cameraStreams.forEach(annotation.addSubscriberToExternalWindow);

var optionalRequire = function optionalRequire(packageName, globalName) {
var result = void 0;
var result = undefined;
/* eslint-disable global-require, import/no-extraneous-dependencies, import/no-unresolved */

@@ -276,0 +276,0 @@ try {

@@ -10,2 +10,3 @@ "use strict";

/** Errors */
var CoreError = function (_Error) {

@@ -12,0 +13,0 @@ _inherits(CoreError, _Error);

@@ -53,3 +53,3 @@ 'use strict';

var otkanalyticsData = {
clientVersion: 'js-vsol-1.0.13',
clientVersion: 'js-vsol-1.0.0',
source: source,

@@ -56,0 +56,0 @@ componentId: 'acceleratorCore',

@@ -10,2 +10,3 @@ "use strict";

/** Errors */
var SDKError = function (_Error) {

@@ -12,0 +13,0 @@ _inherits(SDKError, _Error);

'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

@@ -110,2 +110,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

*/
function OpenTokSDK(credentials) {

@@ -112,0 +113,0 @@ _classCallCheck(this, OpenTokSDK);

'use strict';
var _require = require('./util'),
pathOr = _require.pathOr;
/**
* Internal variables
*/
// Map publisher ids to publisher objects
var publishers = {

@@ -148,3 +144,3 @@ camera: {},

var removeStream = function removeStream(stream) {
var type = pathOr('sip', 'videoType', stream);
var type = stream.videoType;
var subscriberId = streamMap[stream.id];

@@ -209,4 +205,4 @@ delete streamMap[stream.id];

var addSubscriber = function addSubscriber(subscriber) {
var type = subscriber.stream.videoType;
var streamId = subscriber.stream.id;
var type = pathOr('sip', 'stream.videoType', subscriber);
subscribers[type][subscriber.id] = subscriber;

@@ -213,0 +209,0 @@ streamMap[streamId] = subscriber.id;

@@ -123,3 +123,3 @@ /* global OT */

const container = dom.query(streamContainers('subscriber', type, connectionData, streamId));
const options = type === 'camera' || type === 'sip' ? callProperties : screenProperties;
const options = type === 'camera' ? callProperties : screenProperties;
const subscriber = session.subscribe(stream, container, options, (error) => {

@@ -126,0 +126,0 @@ if (error) {

@@ -206,3 +206,3 @@ /* global OT */

triggerEvent('endScreenShare', internalState.getPubSub());
if (internalAnnotation) {
if (usingAnnotation) {
annotation.end();

@@ -228,3 +228,3 @@ }

const stream = streams[streamId];
return stream.videoType === 'camera' || stream.videoType === 'sip' ? acc.concat(stream) : acc;
return stream.videoType === 'camera' ? acc.concat(stream) : acc;
}, []);

@@ -231,0 +231,0 @@ cameraStreams.forEach(annotation.addSubscriberToExternalWindow);

@@ -49,3 +49,3 @@ const OTKAnalytics = require('opentok-solutions-logging');

const otkanalyticsData = {
clientVersion: 'js-vsol-1.0.14',
clientVersion: 'js-vsol-1.0.0',
source,

@@ -52,0 +52,0 @@ componentId: 'acceleratorCore',

@@ -1,6 +0,5 @@

const { pathOr } = require('./util');
/**
* Internal variables
*/
// Map publisher ids to publisher objects

@@ -134,3 +133,3 @@ const publishers = {

const removeStream = (stream) => {
const type = pathOr('sip', 'videoType', stream);
const type = stream.videoType;
const subscriberId = streamMap[stream.id];

@@ -191,4 +190,4 @@ delete streamMap[stream.id];

const addSubscriber = (subscriber) => {
const type = subscriber.stream.videoType;
const streamId = subscriber.stream.id;
const type = pathOr('sip', 'stream.videoType', subscriber);
subscribers[type][subscriber.id] = subscriber;

@@ -195,0 +194,0 @@ streamMap[streamId] = subscriber.id;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display