twilio-sync
Advanced tools
Comparing version 0.3.0-rc6 to 0.3.0-rc7
@@ -264,3 +264,3 @@ 'use strict'; | ||
var cached = this._entities.get(id, type); | ||
return cached ? _promise2.default.resolve(cached) : null; | ||
return cached ? _promise2.default.resolve(cached._subscribe()) : null; | ||
} | ||
@@ -267,0 +267,0 @@ |
@@ -60,3 +60,4 @@ 'use strict'; | ||
value: function _subscribe() { | ||
return this._deps.router.subscribe(this.sid, this); | ||
this._deps.router.subscribe(this.sid, this); | ||
return this; | ||
} | ||
@@ -72,3 +73,4 @@ | ||
value: function _unsubscribe() { | ||
return this._deps.router.unsubscribe(this.sid, this); | ||
this._deps.router.unsubscribe(this.sid, this); | ||
return this; | ||
} | ||
@@ -75,0 +77,0 @@ |
@@ -157,3 +157,3 @@ 'use strict'; | ||
var listToRemove = substract(this._persisted, this._subscriptions).map(function (x) { | ||
return { id: x.id, type: _this2._types.get(x.id) }; | ||
return { sid: x.sid, type: _this2._types.get(x.sid) }; | ||
}); | ||
@@ -160,0 +160,0 @@ if (listToRemove.length > 0) { |
{ | ||
"name": "twilio-sync", | ||
"version": "0.3.0-rc6", | ||
"version": "0.3.0-rc7", | ||
"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
2120867
27499