@arque/core
Advanced tools
Comparing version 0.1.0-alpha.13 to 0.1.0-alpha.14
@@ -0,1 +1,2 @@ | ||
export * from './libs/error'; | ||
export * from './libs/types'; | ||
@@ -2,0 +3,0 @@ export * from './libs/event-id'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./libs/error"), exports); | ||
tslib_1.__exportStar(require("./libs/types"), exports); | ||
@@ -5,0 +6,0 @@ tslib_1.__exportStar(require("./libs/event-id"), exports); |
@@ -24,3 +24,3 @@ /// <reference types="node" /> | ||
timestamp: Date; | ||
events: Pick<Event, 'id' | 'type' | 'body'>[]; | ||
events: Pick<Event, 'id' | 'type' | 'body' | 'meta'>[]; | ||
}): Promise<Transaction>; | ||
@@ -50,5 +50,2 @@ listEvents<TEvent = Event>(params: { | ||
} | ||
export declare class InvalidAggregateVersionError extends Error { | ||
constructor(id: Buffer, version: number); | ||
} | ||
export declare class EventStore { | ||
@@ -55,0 +52,0 @@ private readonly storageAdapter; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EventStore = exports.InvalidAggregateVersionError = void 0; | ||
class InvalidAggregateVersionError extends Error { | ||
constructor(id, version) { | ||
super(`invalid aggregate version: id=${id.toString('hex')} version=${version}`); | ||
} | ||
} | ||
exports.InvalidAggregateVersionError = InvalidAggregateVersionError; | ||
exports.EventStore = void 0; | ||
class EventStore { | ||
@@ -11,0 +5,0 @@ constructor(storageAdapter, streamAdapter, configurationStorageAdapter) { |
{ | ||
"name": "@arque/core", | ||
"version": "0.1.0-alpha.13", | ||
"version": "0.1.0-alpha.14", | ||
"description": "The Event Sourcing library.", | ||
@@ -33,3 +33,3 @@ "author": "ScaleForge", | ||
}, | ||
"gitHead": "a8dbb1dbd25b495e64c8dd65d52ae2a0229962ce" | ||
"gitHead": "c3ebe93245e992c4c557d66802a65a3fc345832f" | ||
} |
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
33703
24
552