candle.bot
Advanced tools
Comparing version 0.4.1 to 0.4.2
import { TimeFrame, Market, BithumbCC, BitfinexCC } from 'cryptocurrency-crawler.client'; | ||
export declare class ErrorWithStatusCode extends Error { | ||
status: number; | ||
constructor(message: string, status?: number); | ||
} | ||
export interface CandleBotConfig { | ||
@@ -3,0 +7,0 @@ timeFrame: TimeFrame; |
@@ -13,3 +13,9 @@ "use strict"; | ||
const fourdollar_promisify_1 = require("fourdollar.promisify"); | ||
const errors_1 = require("../errors"); | ||
class ErrorWithStatusCode extends Error { | ||
constructor(message, status = 500) { | ||
super(message); | ||
this.status = status; | ||
} | ||
} | ||
exports.ErrorWithStatusCode = ErrorWithStatusCode; | ||
var ProcessStatus; | ||
@@ -98,3 +104,3 @@ (function (ProcessStatus) { | ||
if (typeof (e) === 'string') { | ||
throw new errors_1.ErrorWithStatusCode(e, 500); | ||
throw new ErrorWithStatusCode(e, 500); | ||
} | ||
@@ -101,0 +107,0 @@ else { |
export { TimeFrame, Market, BithumbCC, BitfinexCC, CandleData, BithumbCandleData, } from 'cryptocurrency-crawler.client'; | ||
export * from './candle.bot'; | ||
export declare class ErrorWithStatusCode extends Error { | ||
status: number; | ||
constructor(message: string, status?: number); | ||
} |
@@ -12,9 +12,2 @@ "use strict"; | ||
__export(require("./candle.bot")); | ||
class ErrorWithStatusCode extends Error { | ||
constructor(message, status = 500) { | ||
super(message); | ||
this.status = status; | ||
} | ||
} | ||
exports.ErrorWithStatusCode = ErrorWithStatusCode; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "candle.bot", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Cryptocurrency Candle Bot", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
16228
281