@arque/core
Advanced tools
Comparing version 0.1.0-alpha.9 to 0.1.0-alpha.11
export * from './libs/types'; | ||
export * from './libs/event-id'; | ||
export * from './libs/event-store'; | ||
export * from './libs/aggregate'; | ||
export * from './libs/aggregate-factory'; |
@@ -6,4 +6,5 @@ "use strict"; | ||
tslib_1.__exportStar(require("./libs/event-id"), exports); | ||
tslib_1.__exportStar(require("./libs/event-store"), exports); | ||
tslib_1.__exportStar(require("./libs/aggregate"), exports); | ||
tslib_1.__exportStar(require("./libs/aggregate-factory"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -19,3 +19,3 @@ "use strict"; | ||
async load(id, opts) { | ||
const _id = id.toString('base64'); | ||
const _id = id.toString('hex'); | ||
let promise = this.cache.get(_id); | ||
@@ -31,4 +31,9 @@ if (!promise) { | ||
this.cache.set(_id, promise); | ||
return promise; | ||
} | ||
return promise; | ||
const aggregate = await promise; | ||
if (!(opts === null || opts === void 0 ? void 0 : opts.noReload)) { | ||
await aggregate.reload(opts); | ||
} | ||
return aggregate; | ||
} | ||
@@ -35,0 +40,0 @@ } |
{ | ||
"name": "@arque/core", | ||
"version": "0.1.0-alpha.9", | ||
"version": "0.1.0-alpha.11", | ||
"description": "The Event Sourcing library.", | ||
"author": "rogermadjos <roger@hov.co>", | ||
"homepage": "https://github.com/rogermadjos/arque#readme", | ||
"author": "Scale Technologies", | ||
"homepage": "https://github.com/ScaleTechnologies/arque#README.md", | ||
"license": "MIT", | ||
@@ -14,6 +14,6 @@ "main": "dist/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/rogermadjos/arque.git" | ||
"url": "git+https://github.com/ScaleTechnologies/arque.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/rogermadjos/arque/issues" | ||
"url": "https://github.com/ScaleTechnologies/arque/issues" | ||
}, | ||
@@ -34,3 +34,3 @@ "scripts": { | ||
}, | ||
"gitHead": "a7d2e512aac47fc0e78122140e5082013d2b3315" | ||
"gitHead": "d1d3bf6dd528d86b4378e145361211befdcd5eb1" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33148
541
0