Comparing version 5.0.2-474 to 5.0.2-477
@@ -29,2 +29,8 @@ export declare class MismatchedBlockHashError extends Error { | ||
} | ||
export declare class JsonBlockIndicatesWrongPosition extends Error { | ||
constructor(blockNumber: number, position: number); | ||
} | ||
export declare class JsonBlockDoesNotExist extends Error { | ||
constructor(blockNumber: number); | ||
} | ||
export {}; |
@@ -86,2 +86,16 @@ "use strict"; | ||
exports.NotInitializedError = NotInitializedError; | ||
class JsonBlockIndicatesWrongPosition extends Error { | ||
constructor(blockNumber, position) { | ||
super(`Block with indicated position ${blockNumber} has actual position of ${position}.`); | ||
Object.setPrototypeOf(this, JsonBlockIndicatesWrongPosition.prototype); | ||
} | ||
} | ||
exports.JsonBlockIndicatesWrongPosition = JsonBlockIndicatesWrongPosition; | ||
class JsonBlockDoesNotExist extends Error { | ||
constructor(blockNumber) { | ||
super(`Block at position ${blockNumber} does not exist.`); | ||
Object.setPrototypeOf(this, JsonBlockDoesNotExist.prototype); | ||
} | ||
} | ||
exports.JsonBlockDoesNotExist = JsonBlockDoesNotExist; | ||
//# sourceMappingURL=errors.js.map |
@@ -16,2 +16,5 @@ export interface ActionReaderOptions { | ||
} | ||
export interface JsonActionReaderOptions extends ActionReaderOptions { | ||
blockchain: Block[]; | ||
} | ||
export interface Block { | ||
@@ -18,0 +21,0 @@ actions: Action[]; |
{ | ||
"name": "demux", | ||
"version": "5.0.2-474", | ||
"version": "5.0.2-477", | ||
"author": { | ||
@@ -18,3 +18,3 @@ "name": "block.one", | ||
"devDependencies": { | ||
"@blockone/tslint-config-blockone": "^2.0.0", | ||
"@blockone/tslint-config-blockone": "^3.0.0", | ||
"@types/bunyan": "^1.8.5", | ||
@@ -21,0 +21,0 @@ "@types/express": "^4.16.0", |
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
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
101296
28
1429