@bluelibs/runner 4.5.7 → 4.5.9
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/dist/index.cjs +2 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -7
- package/dist/index.mjs +2 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1691,13 +1691,7 @@ declare function buildTestFacade(deps: {
|
|
|
1691
1691
|
|
|
1692
1692
|
declare const globals: {
|
|
1693
1693
|
events: {
|
|
1694
|
-
readonly ready: IEvent<
|
|
1695
|
-
root: IResource<any, any, any, any>;
|
|
1696
|
-
}>;
|
|
1697
|
-
readonly unhandledError: IEvent<{
|
|
1698
|
-
kind: "task" | "middleware" | "resourceInit" | "hook" | "process" | "run";
|
|
1699
|
-
error: any;
|
|
1700
|
-
}>;
|
|
1694
|
+
readonly ready: IEvent<void>;
|
|
1701
1695
|
};
|
|
1702
1696
|
resources: {
|
|
1703
1697
|
store: IResource<void, Promise<Store>, {}, any, any, TagType[], ResourceMiddlewareAttachmentType[]>;
|
package/dist/index.mjs
CHANGED
|
@@ -974,7 +974,7 @@ var globalTags = {
|
|
|
974
974
|
};
|
|
975
975
|
|
|
976
976
|
// src/globals/globalEvents.ts
|
|
977
|
-
|
|
977
|
+
globalTags.system;
|
|
978
978
|
var globalEvents = {
|
|
979
979
|
// Minimal core events retained if any (custom events can still be defined by users)
|
|
980
980
|
/**
|
|
@@ -986,17 +986,6 @@ var globalEvents = {
|
|
|
986
986
|
title: "System Ready",
|
|
987
987
|
description: "Emitted when the system has completed boot and is ready for listeners to start work.This runs right before returning value for run()."
|
|
988
988
|
}
|
|
989
|
-
}),
|
|
990
|
-
/**
|
|
991
|
-
* Central error boundary event for any thrown error across the runner.
|
|
992
|
-
*/
|
|
993
|
-
unhandledError: defineEvent({
|
|
994
|
-
id: "globals.events.unhandledError",
|
|
995
|
-
meta: {
|
|
996
|
-
title: "Unhandled Error",
|
|
997
|
-
description: "Central error boundary event for any thrown error across the runner."
|
|
998
|
-
},
|
|
999
|
-
tags: [systemTag, globalTags.excludeFromGlobalHooks]
|
|
1000
989
|
})
|
|
1001
990
|
};
|
|
1002
991
|
var globalEventsArray = [globalEvents.ready];
|
|
@@ -4108,13 +4097,7 @@ async function run(resourceOrResourceWithConfig, options) {
|
|
|
4108
4097
|
store2.lock();
|
|
4109
4098
|
eventManager.lock();
|
|
4110
4099
|
await logger.lock();
|
|
4111
|
-
await eventManager.emit(
|
|
4112
|
-
globalEvents.ready,
|
|
4113
|
-
{
|
|
4114
|
-
root: store2.root.resource
|
|
4115
|
-
},
|
|
4116
|
-
"system"
|
|
4117
|
-
);
|
|
4100
|
+
await eventManager.emit(globalEvents.ready, void 0, "run");
|
|
4118
4101
|
await boundedLogger.info("Runner online. Awaiting tasks and events.");
|
|
4119
4102
|
if (shutdownHooks) {
|
|
4120
4103
|
unhookShutdown = registerShutdownHook(() => store2.dispose());
|