@jsenv/core 23.2.1 → 23.2.2
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/package.json
CHANGED
|
@@ -83,19 +83,6 @@ export const launchAndExecute = async ({
|
|
|
83
83
|
)
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
if (measureDuration) {
|
|
87
|
-
const startMs = Date.now()
|
|
88
|
-
executionResultTransformer = composeTransformer(
|
|
89
|
-
executionResultTransformer,
|
|
90
|
-
(executionResult) => {
|
|
91
|
-
const endMs = Date.now()
|
|
92
|
-
executionResult.startMs = startMs
|
|
93
|
-
executionResult.endMs = endMs
|
|
94
|
-
return executionResult
|
|
95
|
-
},
|
|
96
|
-
)
|
|
97
|
-
}
|
|
98
|
-
|
|
99
86
|
if (mirrorConsole) {
|
|
100
87
|
runtimeConsoleCallback = composeCallback(
|
|
101
88
|
runtimeConsoleCallback,
|
|
@@ -226,6 +213,19 @@ export const launchAndExecute = async ({
|
|
|
226
213
|
)
|
|
227
214
|
}
|
|
228
215
|
|
|
216
|
+
if (measureDuration) {
|
|
217
|
+
const startMs = Date.now()
|
|
218
|
+
executionResultTransformer = composeTransformer(
|
|
219
|
+
executionResultTransformer,
|
|
220
|
+
(executionResult) => {
|
|
221
|
+
const endMs = Date.now()
|
|
222
|
+
executionResult.startMs = startMs
|
|
223
|
+
executionResult.endMs = endMs
|
|
224
|
+
return executionResult
|
|
225
|
+
},
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
|
|
229
229
|
try {
|
|
230
230
|
const runtimeLabel = `${runtime.name}/${runtime.version}`
|
|
231
231
|
logger.debug(`launch ${runtimeLabel} to execute something in it`)
|