twilio-sync
Advanced tools
Comparing version 0.3.0-alpha.17 to 0.3.0-rc3
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2648901