Socket
Socket
Sign inDemoInstall

twilio-sync

Package Overview
Dependencies
Maintainers
2
Versions
608
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twilio-sync - npm Package Compare versions

Comparing version 0.3.0-alpha.17 to 0.3.0-rc3

19

lib/client.js

@@ -194,21 +194,10 @@ 'use strict';

},
_connectionState: { value: Client.connectionState.CONNECTING, writable: true },
connectionState: { get: function get() {
return _this._connectionState;
return _this._notifications.connectionState;
}, enumerable: true }
});
notifications.on('transportReady', function (state) {
if (state) {
_this._connectionState = Client.connectionState.CONNECTED;
} else {
switch (_this._twilsock.state) {
case 'rejected':
_this._connectionState = Client.connectionState.DENIED;
break;
default:
_this._connectionState = Client.connectionState.CONNECTING;
}
}
_this.emit('connectionStateChanged', _this._connectionState);
notifications.on('connectionStateChanged', function () {
_this.emit('connectionStateChanged', _this._notifications.connectionState);
});

@@ -215,0 +204,0 @@ return _this;

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

* @property {String} sid SyncDocument unique id
* @property {String} uniqueName Unique name of a document
* @property {Object} value Value of a document

@@ -94,5 +95,6 @@ *

uri: { enumerable: true, get: function get() {
uri: { get: function get() {
return _this._descriptor.url;
} },
sid: { enumerable: true, get: function get() {

@@ -103,2 +105,5 @@ return _this._sid;

return _this._data;
} },
uniqueName: { enumerable: true, get: function get() {
return _this._descriptor.unique_name || null;
} }

@@ -105,0 +110,0 @@ });

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

uniqueName: { enumerable: true, get: function get() {
return _this._descriptor.uniqueName;
return _this._descriptor.unique_name || null;
} }

@@ -125,0 +125,0 @@ });

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

uniqueName: { enumerable: true, get: function get() {
return _this._descriptor.uniqueName;
return _this._descriptor.unique_name || null;
} }

@@ -125,0 +125,0 @@ });

{
"name": "twilio-sync",
"version": "0.3.0-alpha.17",
"version": "0.3.0-rc3",
"description": "Twilio Sync client library",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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