@objectstack/core 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +13 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/kernel.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -954,6 +954,8 @@ var ObjectKernel = class {
|
|
|
954
954
|
try {
|
|
955
955
|
const service2 = this.pluginLoader.getService(name);
|
|
956
956
|
if (service2 instanceof Promise) {
|
|
957
|
+
service2.catch(() => {
|
|
958
|
+
});
|
|
957
959
|
throw new Error(`Service '${name}' is async - use await`);
|
|
958
960
|
}
|
|
959
961
|
return service2;
|