@ulixee/commons
Advanced tools
Comparing version 2.0.0-alpha.16 to 2.0.0-alpha.17
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-alpha.17](https://github.com/ulixee/shared/compare/v2.0.0-alpha.16...v2.0.0-alpha.17) (2022-12-15) | ||
### Features | ||
* micronote apis conversion to hold/settle ([c03c6fd](https://github.com/ulixee/shared/commit/c03c6fd8c7d17c29a8347aaba7413920e859c556)) | ||
# [2.0.0-alpha.16](https://github.com/ulixee/shared/compare/v2.0.0-alpha.15...v2.0.0-alpha.16) (2022-12-05) | ||
@@ -8,0 +19,0 @@ |
@@ -10,3 +10,2 @@ export default class UlixeeConfig { | ||
private static cachedConfigObjects; | ||
defaultMinerHost?: string; | ||
databoxOutDir?: string; | ||
@@ -25,3 +24,2 @@ private get configPath(); | ||
export interface IUlixeeConfig { | ||
defaultMinerHost?: string; | ||
databoxOutDir?: string; | ||
@@ -28,0 +26,0 @@ } |
@@ -12,3 +12,2 @@ "use strict"; | ||
const data = JSON.parse(Fs.readFileSync(this.configPath, 'utf8')); | ||
this.defaultMinerHost = data.serverHost; | ||
if (data.databoxOutDir) { | ||
@@ -31,3 +30,2 @@ this.databoxOutDir = Path.isAbsolute(data.databoxOutDir) ? data.databoxOutDir : Path.resolve(this.directoryPath, data.databoxOutDir); | ||
return { | ||
defaultMinerHost: this.defaultMinerHost, | ||
databoxOutDir: this.databoxOutDir, | ||
@@ -34,0 +32,0 @@ }; |
declare class UlixeeError extends Error { | ||
readonly message: any; | ||
readonly code: any; | ||
protected data?: object; | ||
message: any; | ||
code: any; | ||
data?: object; | ||
constructor(message: any, code: any, data?: object); | ||
@@ -10,5 +10,5 @@ toJSON(): unknown; | ||
declare class APIError extends UlixeeError { | ||
readonly status: any; | ||
status: any; | ||
constructor(status: any, json: any); | ||
} | ||
export { APIError, UlixeeError }; |
@@ -19,4 +19,4 @@ export default class TypeSerializer { | ||
export declare function registerSerializableErrorType(errorConstructor: { | ||
new (message?: string): Error; | ||
new (...args: any[]): Error; | ||
}): void; | ||
export declare const stringifiedTypeSerializerClass: string; |
@@ -218,3 +218,4 @@ "use strict"; | ||
const startStack = new Error('').stack.slice(8); // "Error: \n" is 8 chars | ||
const e = new Constructor(message); | ||
const e = new Constructor(); | ||
e.message = message; | ||
e.name = name; | ||
@@ -221,0 +222,0 @@ Object.assign(e, extras); |
{ | ||
"name": "@ulixee/commons", | ||
"version": "2.0.0-alpha.16", | ||
"version": "2.0.0-alpha.17", | ||
"description": "Common utilities for Ulixee", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "3db8aab65779c4033d48a9d07c68a6ec66126e25" | ||
"gitHead": "0d451c61e7618d420507ffbd9e2d66cb7d3b7562" | ||
} |
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
229918
3277