twilio-sync
Advanced tools
Comparing version 0.4.2-dev.5-build.202 to 0.4.2-dev.5-build.203
@@ -393,3 +393,3 @@ "use strict"; | ||
logger_1.default.debug("Failed an attempt to " + action + " subscriptions (c:" + correlationId + "); retrying", _context.t2); | ||
this.backoff.backoff(_context.t2); | ||
this.persist(); | ||
} | ||
@@ -396,0 +396,0 @@ |
@@ -37,5 +37,12 @@ "use strict"; | ||
this.args = new Array(); | ||
this.paths = new Array(); | ||
} | ||
(0, _createClass3.default)(UriBuilder, [{ | ||
key: 'path', | ||
value: function path(name) { | ||
this.paths.push(name); | ||
return this; | ||
} | ||
}, { | ||
key: 'arg', | ||
@@ -51,3 +58,10 @@ value: function arg(name, value) { | ||
value: function build() { | ||
return this.args.length === 0 ? this.base : this.base + '?' + this.args.join('&'); | ||
var result = this.base; | ||
if (this.paths.length) { | ||
result += '/' + this.paths.join('/'); | ||
} | ||
if (this.args.length) { | ||
result += '?' + this.args.join('&'); | ||
} | ||
return result; | ||
} | ||
@@ -54,0 +68,0 @@ }]); |
@@ -140,3 +140,3 @@ "use strict"; | ||
logger_1.default.debug(`Failed an attempt to ${action} subscriptions (c:${correlationId}); retrying`, e); | ||
this.backoff.backoff(e); | ||
this.persist(); | ||
} | ||
@@ -143,0 +143,0 @@ } |
@@ -14,3 +14,5 @@ /** | ||
args: string[]; | ||
paths: string[]; | ||
constructor(base: string); | ||
path(name: string): UriBuilder; | ||
arg(name: string, value: any): UriBuilder; | ||
@@ -17,0 +19,0 @@ build(): string; |
@@ -19,3 +19,8 @@ "use strict"; | ||
this.args = new Array(); | ||
this.paths = new Array(); | ||
} | ||
path(name) { | ||
this.paths.push(name); | ||
return this; | ||
} | ||
arg(name, value) { | ||
@@ -29,5 +34,10 @@ if (typeof value !== 'undefined') { | ||
build() { | ||
return this.args.length === 0 | ||
? this.base | ||
: this.base + '?' + this.args.join('&'); | ||
let result = this.base; | ||
if (this.paths.length) { | ||
result += '/' + this.paths.join('/'); | ||
} | ||
if (this.args.length) { | ||
result += '?' + this.args.join('&'); | ||
} | ||
return result; | ||
} | ||
@@ -34,0 +44,0 @@ ; |
{ | ||
"name": "twilio-sync", | ||
"version": "0.4.2-dev.5-build.202", | ||
"version": "0.4.2-dev.5-build.203", | ||
"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
2001635
29362