@jsenv/core 28.1.2 → 28.1.3

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/main.js CHANGED
@@ -1320,29 +1320,33 @@ const createOperation = () => {
1320
1320
  };
1321
1321
 
1322
1322
  const addAbortSource = abortSourceCallback => {
1323
+ const abortSource = {
1324
+ cleaned: false,
1325
+ signal: null,
1326
+ remove: callbackNoop
1327
+ };
1323
1328
  const abortSourceController = new AbortController();
1324
1329
  const abortSourceSignal = abortSourceController.signal;
1330
+ abortSource.signal = abortSourceSignal;
1325
1331
 
1326
1332
  if (operationSignal.aborted) {
1327
- return {
1328
- signal: abortSourceSignal,
1329
- remove: callbackNoop
1330
- };
1333
+ return abortSource;
1331
1334
  }
1332
1335
 
1333
1336
  const returnValue = abortSourceCallback(value => {
1334
1337
  abortSourceController.abort(value);
1335
1338
  });
1336
- const removeAbortSource = typeof returnValue === "function" ? returnValue : callbackNoop;
1337
1339
  const removeAbortSignal = addAbortSignal(abortSourceSignal, {
1338
1340
  onRemove: () => {
1339
- removeAbortSource();
1341
+ if (typeof returnValue === "function") {
1342
+ returnValue();
1343
+ }
1344
+
1345
+ abortSource.cleaned = true;
1340
1346
  }
1341
1347
  });
1342
- return {
1343
- signal: abortSourceSignal,
1344
- remove: removeAbortSignal
1345
- };
1348
+ abortSource.remove = removeAbortSignal;
1349
+ return abortSource;
1346
1350
  };
1347
1351
 
1348
1352
  const timeout = ms => {
@@ -26503,7 +26507,7 @@ const run = async ({
26503
26507
  } catch (e) {
26504
26508
  cb({
26505
26509
  status: "errored",
26506
- error: e
26510
+ errors: [e]
26507
26511
  });
26508
26512
  }
26509
26513
  }
@@ -27575,7 +27579,7 @@ const executeTestPlan = async ({
27575
27579
  testPlan,
27576
27580
  updateProcessExitCode = true,
27577
27581
  maxExecutionsInParallel = 1,
27578
- defaultMsAllocatedPerExecution = 30000,
27582
+ defaultMsAllocatedPerExecution = 30_000,
27579
27583
  failFast = false,
27580
27584
  // keepRunning: false to ensure runtime is stopped once executed
27581
27585
  // because we have what we wants: execution is completed and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "28.1.2",
3
+ "version": "28.1.3",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -65,15 +65,15 @@
65
65
  "@babel/plugin-transform-modules-umd": "7.18.6",
66
66
  "@c88/v8-coverage": "0.1.1",
67
67
  "@financial-times/polyfill-useragent-normaliser": "2.0.1",
68
- "@jsenv/abort": "4.2.3",
68
+ "@jsenv/abort": "4.2.4",
69
69
  "@jsenv/ast": "1.2.0",
70
70
  "@jsenv/babel-plugins": "1.0.6",
71
- "@jsenv/filesystem": "4.1.2",
71
+ "@jsenv/filesystem": "4.1.3",
72
72
  "@jsenv/importmap": "1.2.1",
73
73
  "@jsenv/integrity": "0.0.1",
74
74
  "@jsenv/log": "3.2.0",
75
75
  "@jsenv/node-esm-resolution": "0.1.0",
76
- "@jsenv/server": "14.1.1",
76
+ "@jsenv/server": "14.1.2",
77
77
  "@jsenv/sourcemap": "1.0.4",
78
78
  "@jsenv/uneval": "1.6.0",
79
79
  "@jsenv/url-meta": "7.0.0",
@@ -108,7 +108,7 @@ export const run = async ({
108
108
  } catch (e) {
109
109
  cb({
110
110
  status: "errored",
111
- error: e,
111
+ errors: [e],
112
112
  })
113
113
  }
114
114
  },
@@ -52,7 +52,7 @@ export const executeTestPlan = async ({
52
52
  testPlan,
53
53
  updateProcessExitCode = true,
54
54
  maxExecutionsInParallel = 1,
55
- defaultMsAllocatedPerExecution = 30000,
55
+ defaultMsAllocatedPerExecution = 30_000,
56
56
  failFast = false,
57
57
  // keepRunning: false to ensure runtime is stopped once executed
58
58
  // because we have what we wants: execution is completed and