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.7 to 2.0.8

4

API.md

@@ -173,3 +173,3 @@ # OpenTok Accelerator Core API Methods

### `subscribe(stream)`
### `subscribe(stream, subscriberProperties)`

@@ -182,2 +182,4 @@ *Subscribe to a stream and update the state*

**stream**: `Object` Optional subscriber properties - https://goo.gl/bzjoLL
**Returns**: `Promise => <resolve: Subscriber, reject: Error >`

@@ -184,0 +186,0 @@

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

* @param {Object} stream - An OpenTok stream object
* @param {Object} [subsriberOptions]
* @returns {Promise} <resolve: Object, reject: Error >

@@ -257,2 +258,3 @@ */

value: function value(stream) {
var subscriberProperties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var analytics = _this.analytics,

@@ -287,3 +289,3 @@ state = _this.state,

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

@@ -290,0 +292,0 @@ if (error) {

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

* @param {Object} stream - An OpenTok stream
* @param {Object} [subscriberProperties] - https://tokbox.com/developer/sdks/js/reference/Session.html#subscribe
* @returns {Promise} <resolve: Subscriber, reject: Error>

@@ -779,4 +780,4 @@ */

writable: true,
value: function value(stream) {
return _this.communication.subscribe(stream);
value: function value(stream, subscriberProperties) {
return _this.communication.subscribe(stream, subscriberProperties);
}

@@ -783,0 +784,0 @@ });

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

var otkanalyticsData = {
clientVersion: 'js-vsol-2.0.7', // x.y.z filled by npm build script
clientVersion: 'js-vsol-2.0.8', // x.y.z filled by npm build script
source: source,

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

{
"name": "opentok-accelerator-core",
"version": "2.0.7",
"version": "2.0.8",
"description": "Opentok Accelerator Core",

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

@@ -124,5 +124,6 @@ /* global OT */

* @param {Object} stream - An OpenTok stream object
* @param {Object} [subsriberOptions]
* @returns {Promise} <resolve: Object, reject: Error >
*/
subscribe = (stream) => {
subscribe = (stream, subscriberProperties = {}) => {
const { analytics, state, streamContainers, session, triggerEvent, callProperties, screenProperties } = this;

@@ -147,3 +148,7 @@ return new Promise((resolve, reject) => {

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

@@ -150,0 +155,0 @@ if (error) {

@@ -524,5 +524,6 @@ /* global OT */

* @param {Object} stream - An OpenTok stream
* @param {Object} [subscriberProperties] - https://tokbox.com/developer/sdks/js/reference/Session.html#subscribe
* @returns {Promise} <resolve: Subscriber, reject: Error>
*/
subscribe = stream => this.communication.subscribe(stream)
subscribe = (stream, subscriberProperties) => this.communication.subscribe(stream, subscriberProperties)

@@ -529,0 +530,0 @@ /**

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