@arque/core
Advanced tools
Comparing version 1.0.0-alpha.38 to 1.0.0-alpha.39
@@ -13,2 +13,3 @@ /// <reference types="node" /> | ||
static load<T>(this: new (id: ID) => T, id: ID): Promise<T>; | ||
static init<T>(this: new (id: ID) => T, id: ID): Promise<T>; | ||
get type(): string; | ||
@@ -15,0 +16,0 @@ private get eventStore(); |
@@ -24,2 +24,7 @@ "use strict"; | ||
static async load(id) { | ||
const aggregate = await this.init(id); | ||
await aggregate.fold(); | ||
return aggregate; | ||
} | ||
static async init(id) { | ||
let { cache } = this; | ||
@@ -44,3 +49,2 @@ if (!cache) { | ||
const aggregate = await promise; | ||
await aggregate.fold(); | ||
return aggregate; | ||
@@ -47,0 +51,0 @@ } |
{ | ||
"name": "@arque/core", | ||
"version": "1.0.0-alpha.38", | ||
"version": "1.0.0-alpha.39", | ||
"description": "Core for `arque`", | ||
@@ -84,3 +84,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "64e7266284879425f2d59ac93750e33ddc8c4c24" | ||
"gitHead": "5e9ed47ef8affa84172566c0e6ca60e491c7fc42" | ||
} |
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
158019
2187