@timberio/tools
Advanced tools
Comparing version 0.30.0 to 0.31.0
@@ -5,4 +5,4 @@ /** | ||
export default class Deferred<A> { | ||
promise: Promise<A>; | ||
constructor(val: any); | ||
promise: Promise<A>; | ||
constructor(val: any); | ||
} | ||
@@ -13,5 +13,5 @@ /** | ||
export default interface Deferred<A> { | ||
val: any; | ||
resolve(value?: A | PromiseLike<A>): Promise<A>; | ||
reject(reason?: string | Error): Promise<A>; | ||
val: any; | ||
resolve(value?: A | PromiseLike<A>): Promise<A>; | ||
reject(reason?: string | Error): Promise<A>; | ||
} |
@@ -7,17 +7,17 @@ "use strict"; | ||
class Deferred { | ||
constructor(val) { | ||
this.val = val; | ||
this.promise = new Promise((resolve, reject) => { | ||
this.resolve = value => { | ||
resolve(value); | ||
return this.promise; | ||
}; | ||
this.reject = reason => { | ||
reject(reason); | ||
return this.promise; | ||
}; | ||
}); | ||
} | ||
constructor(val) { | ||
this.val = val; | ||
this.promise = new Promise((resolve, reject) => { | ||
this.resolve = value => { | ||
resolve(value); | ||
return this.promise; | ||
}; | ||
this.reject = reason => { | ||
reject(reason); | ||
return this.promise; | ||
}; | ||
}); | ||
} | ||
} | ||
exports.default = Deferred; | ||
//# sourceMappingURL=deferred.js.map | ||
//# sourceMappingURL=deferred.js.map |
@@ -5,4 +5,4 @@ /** | ||
export default class Deferred<A> { | ||
promise: Promise<A>; | ||
constructor(val: any); | ||
promise: Promise<A>; | ||
constructor(val: any); | ||
} | ||
@@ -13,5 +13,5 @@ /** | ||
export default interface Deferred<A> { | ||
val: any; | ||
resolve(value?: A | PromiseLike<A>): Promise<A>; | ||
reject(reason?: string | Error): Promise<A>; | ||
val: any; | ||
resolve(value?: A | PromiseLike<A>): Promise<A>; | ||
reject(reason?: string | Error): Promise<A>; | ||
} |
@@ -5,16 +5,16 @@ /** | ||
export default class Deferred { | ||
constructor(val) { | ||
this.val = val; | ||
this.promise = new Promise((resolve, reject) => { | ||
this.resolve = value => { | ||
resolve(value); | ||
return this.promise; | ||
}; | ||
this.reject = reason => { | ||
reject(reason); | ||
return this.promise; | ||
}; | ||
}); | ||
} | ||
constructor(val) { | ||
this.val = val; | ||
this.promise = new Promise((resolve, reject) => { | ||
this.resolve = value => { | ||
resolve(value); | ||
return this.promise; | ||
}; | ||
this.reject = reason => { | ||
reject(reason); | ||
return this.promise; | ||
}; | ||
}); | ||
} | ||
} | ||
//# sourceMappingURL=deferred.js.map | ||
//# sourceMappingURL=deferred.js.map |
{ | ||
"name": "@timberio/tools", | ||
"version": "0.30.0", | ||
"version": "0.31.0", | ||
"description": "Javascript logging tools", | ||
@@ -41,5 +41,5 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"@timberio/types": "^0.30.0" | ||
"@timberio/types": "^0.31.0" | ||
}, | ||
"gitHead": "16941238360eae52d6106dc864e11678fbac0636" | ||
"gitHead": "03cb2806851c894e300389565ceae08df857461a" | ||
} |
@@ -17,3 +17,2 @@ import { ITimberLog } from "@timberio/types"; | ||
/** | ||
@@ -45,3 +44,2 @@ * tries to process logs maximum 3 times in case of server error. | ||
try { | ||
/** | ||
@@ -60,3 +58,2 @@ * returns Fibonacci timeout based on try time list | ||
} catch (e) { | ||
/** | ||
@@ -63,0 +60,0 @@ * throw error if could not process logs all three tries |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1906
95301
+ Added@timberio/types@0.31.0(transitive)
- Removed@timberio/types@0.30.0(transitive)
Updated@timberio/types@^0.31.0