lifecycleion 0.0.11 → 0.0.12
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/README.md +3 -1
- package/dist/lib/lifecycle-manager/index.cjs +5 -7
- package/dist/lib/lifecycle-manager/index.cjs.map +1 -1
- package/dist/lib/lifecycle-manager/index.d.cts +2 -8
- package/dist/lib/lifecycle-manager/index.d.ts +2 -8
- package/dist/lib/lifecycle-manager/index.js +5 -7
- package/dist/lib/lifecycle-manager/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1633,10 +1633,7 @@ interface LifecycleManagerEventMap {
|
|
|
1633
1633
|
method: ShutdownMethod;
|
|
1634
1634
|
duringStartup: boolean;
|
|
1635
1635
|
};
|
|
1636
|
-
'lifecycle-manager:shutdown-completed': {
|
|
1637
|
-
durationMS: number;
|
|
1638
|
-
stoppedComponents: string[];
|
|
1639
|
-
stalledComponents: ComponentStallInfo[];
|
|
1636
|
+
'lifecycle-manager:shutdown-completed': ShutdownResult & {
|
|
1640
1637
|
method: ShutdownMethod;
|
|
1641
1638
|
duringStartup: boolean;
|
|
1642
1639
|
};
|
|
@@ -1826,10 +1823,7 @@ declare class LifecycleManagerEvents {
|
|
|
1826
1823
|
autoStartSucceeded?: boolean;
|
|
1827
1824
|
}): void;
|
|
1828
1825
|
lifecycleManagerShutdownInitiated(method: ShutdownMethod, isDuringStartup: boolean): void;
|
|
1829
|
-
lifecycleManagerShutdownCompleted(input: {
|
|
1830
|
-
durationMS: number;
|
|
1831
|
-
stoppedComponents: string[];
|
|
1832
|
-
stalledComponents: ComponentStallInfo[];
|
|
1826
|
+
lifecycleManagerShutdownCompleted(input: ShutdownResult & {
|
|
1833
1827
|
method: ShutdownMethod;
|
|
1834
1828
|
duringStartup: boolean;
|
|
1835
1829
|
}): void;
|
|
@@ -1633,10 +1633,7 @@ interface LifecycleManagerEventMap {
|
|
|
1633
1633
|
method: ShutdownMethod;
|
|
1634
1634
|
duringStartup: boolean;
|
|
1635
1635
|
};
|
|
1636
|
-
'lifecycle-manager:shutdown-completed': {
|
|
1637
|
-
durationMS: number;
|
|
1638
|
-
stoppedComponents: string[];
|
|
1639
|
-
stalledComponents: ComponentStallInfo[];
|
|
1636
|
+
'lifecycle-manager:shutdown-completed': ShutdownResult & {
|
|
1640
1637
|
method: ShutdownMethod;
|
|
1641
1638
|
duringStartup: boolean;
|
|
1642
1639
|
};
|
|
@@ -1826,10 +1823,7 @@ declare class LifecycleManagerEvents {
|
|
|
1826
1823
|
autoStartSucceeded?: boolean;
|
|
1827
1824
|
}): void;
|
|
1828
1825
|
lifecycleManagerShutdownInitiated(method: ShutdownMethod, isDuringStartup: boolean): void;
|
|
1829
|
-
lifecycleManagerShutdownCompleted(input: {
|
|
1830
|
-
durationMS: number;
|
|
1831
|
-
stoppedComponents: string[];
|
|
1832
|
-
stalledComponents: ComponentStallInfo[];
|
|
1826
|
+
lifecycleManagerShutdownCompleted(input: ShutdownResult & {
|
|
1833
1827
|
method: ShutdownMethod;
|
|
1834
1828
|
duringStartup: boolean;
|
|
1835
1829
|
}): void;
|
|
@@ -4110,13 +4110,6 @@ var LifecycleManager = class extends EventEmitterProtected {
|
|
|
4110
4110
|
durationMS
|
|
4111
4111
|
}
|
|
4112
4112
|
});
|
|
4113
|
-
this.lifecycleEvents.lifecycleManagerShutdownCompleted({
|
|
4114
|
-
durationMS,
|
|
4115
|
-
stoppedComponents,
|
|
4116
|
-
stalledComponents,
|
|
4117
|
-
method,
|
|
4118
|
-
duringStartup: isDuringStartup
|
|
4119
|
-
});
|
|
4120
4113
|
const result = {
|
|
4121
4114
|
success: isSuccess,
|
|
4122
4115
|
stoppedComponents,
|
|
@@ -4129,6 +4122,11 @@ var LifecycleManager = class extends EventEmitterProtected {
|
|
|
4129
4122
|
} : {}
|
|
4130
4123
|
};
|
|
4131
4124
|
this.lastShutdownResult = result;
|
|
4125
|
+
this.lifecycleEvents.lifecycleManagerShutdownCompleted({
|
|
4126
|
+
...result,
|
|
4127
|
+
method,
|
|
4128
|
+
duringStartup: isDuringStartup
|
|
4129
|
+
});
|
|
4132
4130
|
return result;
|
|
4133
4131
|
} finally {
|
|
4134
4132
|
if (timeoutHandle) {
|