Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@timberio/tools

Package Overview
Dependencies
Maintainers
5
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@timberio/tools - npm Package Compare versions

Comparing version 0.30.0 to 0.31.0

10

dist/cjs/deferred.d.ts

@@ -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

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