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 2.0.12 to 2.0.13

1

dist/core.js

@@ -70,2 +70,3 @@ 'use strict';

// Init analytics
this.applicationName = options.applicationName;
this.analytics = new Analytics(window.location.origin, credentials.sessionId, null, credentials.apiKey);

@@ -72,0 +73,0 @@ this.analytics.log(logAction.init, logVariation.attempt);

6

dist/logging.js

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

var Analytics = function Analytics(source, sessionId, connectionId, apikey) {
var Analytics = function Analytics(source, sessionId, connectionId, apikey, applicationName) {
_classCallCheck(this, Analytics);

@@ -47,6 +47,6 @@

var otkanalyticsData = {
clientVersion: 'js-vsol-2.0.11', // x.y.z filled by npm build script
clientVersion: 'js-vsol-2.0.13', // x.y.z filled by npm build script
source: source,
componentId: 'acceleratorCore',
name: 'coreAccelerator',
name: applicationName || 'coreAccelerator',
partnerId: apikey

@@ -53,0 +53,0 @@ };

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

var subscriber = subscribers.camera[subscriberId] || subscribers.screen[subscriberId];
subscriber && subscriber.subscribeToVideo(enable);
subscriber && subscriber.subscribeToAudio(enable);
}

@@ -262,3 +262,3 @@

var subscriber = subscribers.camera[subscriberId] || subscribers.screen[subscriberId];
subscriber && subscriber.subscribeToAudio(enable);
subscriber && subscriber.subscribeToVideo(enable);
}

@@ -265,0 +265,0 @@

{
"name": "opentok-accelerator-core",
"version": "2.0.12",
"version": "2.0.13",
"description": "Opentok Accelerator Core",

@@ -31,2 +31,3 @@ "repository": "https://github.com/opentok/accelerator-core-js",

"babel-eslint": "^6.1.2",
"babel-plugin-espower": "^2.3.2",
"babel-plugin-transform-class-properties": "^6.24.1",

@@ -36,3 +37,4 @@ "babel-polyfill": "*",

"babelify": "^7.3.0",
"browserify": "^13.1.1",
"browserify": "^13.3.0",
"chai": "^4.1.2",
"eslint": "^3.19.0",

@@ -43,2 +45,16 @@ "eslint-config-airbnb": "^14.0.0",

"eslint-plugin-react": "^6.9.0",
"karma": "^1.7.1",
"karma-browserify": "^5.1.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-firefox-launcher": "^1.0.1",
"karma-html2js-preprocessor": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-phantomjs-launcher": "^1.0.4",
"mocha": "^4.0.1",
"opentok-annotation": "^2.0.55",
"opentok-archiving": "^1.0.19",
"opentok-screen-sharing": "^1.0.27",
"opentok-text-chat": "^1.0.30",
"replace": "^0.3.0"

@@ -45,0 +61,0 @@ },

@@ -262,3 +262,3 @@ ![logo](./tokbox-logo.png)

`Accelerator Core` will cover the use cases for most projects. If you have a special use case, your first course of action should be to open a Github issue. If there is a way that we can add functionality or increase the flexibility of core or one of the accelerator packs while maintaining backwards compatibility, we’re happy to do so. Another option is to use the [OpenTok JS SDK Wrapper](#opentok-js-sdk-wrapper). The `SDK Wrapper` extends the functionality of the [OpenTok JS Client library](https://tokbox.com/developer/sdks/js/) with the same state management provided by `Accelerator Core`. Some use cases for the SDK Wrapper may be:
`Accelerator Core` will cover the use cases for most projects. If you have a special use case, your first course of action should be to open a Github issue. If there is a way that we can add functionality or increase the flexibility of core or one of the accelerator packs while maintaining backwards compatibility, we’re happy to do so. Another option is to use the [OpenTok JS SDK Wrapper](https://github.com/opentok/accelerator-core-js/blob/master/sdkWrapper.MD). The `SDK Wrapper` extends the functionality of the [OpenTok JS Client library](https://tokbox.com/developer/sdks/js/) with the same state management provided by `Accelerator Core`. Some use cases for the SDK Wrapper may be:

@@ -265,0 +265,0 @@ - Creating a messaging or signaling layer using OpenTok sessions.

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

const subscriber = subscribers.camera[subscriberId] || subscribers.screen[subscriberId];
subscriber && subscriber.subscribeToVideo(enable);
subscriber && subscriber.subscribeToAudio(enable);
}

@@ -196,3 +196,3 @@

const subscriber = subscribers.camera[subscriberId] || subscribers.screen[subscriberId];
subscriber && subscriber.subscribeToAudio(enable);
subscriber && subscriber.subscribeToVideo(enable);
}

@@ -199,0 +199,0 @@

@@ -38,3 +38,3 @@ /* Sample Test Suite for Communications.js in core-accelerator component */

it('Should init communications', function() {
xit('Should init communications', function() {
_options = {

@@ -54,6 +54,6 @@ session: _session,

describe('Test Start Call', function() {
it('Should start call', function() {
xit('Should start call', function() {
expect(Communication.startCall.bind(Communication.startCall)).not.to.throw('');
});
it('Should start call even if the call is started', function() {
xit('Should start call even if the call is started', function() {
Communication.startCall();

@@ -65,7 +65,7 @@ expect(Communication.startCall.bind(Communication.startCall)).not.to.throw('');

describe('Test End Call', function() {
it('Should throw error when end a not started call ', function() {
xit('Should throw error when end a not started call ', function() {
expect(Communication.endCall.bind(Communication.endCall)).to.throw('Cannot read property \'logEvent\' of null');
});
});
// TO DO

@@ -72,0 +72,0 @@ // describe('Test Enable Local Audio-Video', function() {

@@ -41,2 +41,5 @@ /* Sample Test Suite for Core.js in core-accelerator component */

};
it('Should pass', function() {
expect(true).to.be.true;
});
xit('Should init core', function() {

@@ -46,7 +49,7 @@ expect(Core.init.bind(Core.init, _options)).not.to.throw('');

it('Should throw exception when init core and there is not options', function() {
xit('Should throw exception when init core and there is not options', function() {
expect(Core.init.bind(Core.init)).to.throw('Missing options required for initialization');
});
it('Should throw exception when init core and credentials are not valid', function() {
xit('Should throw exception when init core and credentials are not valid', function() {
_containers = {};

@@ -88,3 +91,3 @@ _credentials = {

describe('Test Connect/Disconnect', function() {
it('Should connect', function() {
xit('Should connect', function() {
expect(Core.connect.bind(Core.connect)).not.to.throw('');

@@ -101,3 +104,3 @@ });

describe('Test Force Unpublish', function() {
it('Should unpublish', function() {
xit('Should unpublish', function() {
var _stream = "any";

@@ -135,3 +138,3 @@ expect(Core.forceUnpublish.bind(Core.forceUnpublish, _stream)).not.to.throw('');

describe('Test Get Options', function() {
it('Should get options return null when not init', function() {
xit('Should get options return null when not init', function() {
expect(Core.getOptions.bind(Core.getOpions)).not.to.throw('');

@@ -144,3 +147,3 @@ var _options = Core.getOptions();

describe('Test Get Session', function() {
it('Should get session return null when not init', function() {
xit('Should get session return null when not init', function() {
expect(Core.getSession.bind(Core.getSession)).not.to.throw('');

@@ -153,3 +156,3 @@ var _session = Core.getSession();

describe('Test Signal', function() {
it('Should signal', function() {
xit('Should signal', function() {
expect(Core.signal.bind(Core.signal, "any", "any", "any")).not.to.throw('');

@@ -156,0 +159,0 @@ });

@@ -39,3 +39,3 @@ /* Sample Test Suite for State.js in core-accelerator component */

describe('Test Get Publisher and Subscribers', function() {
it('Should get publishers and subscribers', function() {
xit('Should get publishers and subscribers', function() {
expect(State.getPubSub.bind(State.getPubSub)).not.to.throw('');

@@ -60,3 +60,3 @@ var _pubSubsCount = State.getPubSub();

};
it('Should add stream', function() {
xit('Should add stream', function() {
expect(State.addStream.bind(State.addStream, _stream)).not.to.throw('');

@@ -63,0 +63,0 @@ var _streams = State.getStreams();

Sorry, the diff of this file is not supported yet

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

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