zarro 1.170.8 → 1.170.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.
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  (function () {
3
- const gulpInfo = require("gulp/package.json"), parts = gulpInfo.version.split(".").map((s) => parseInt(s, 10));
3
+ const { readTextFileSync } = require("yafs"), entryPoint = require.resolve("gulp"), path = require("path"), containingFolder = path.dirname(entryPoint), packageJson = path.join(containingFolder, "package.json"), gulpInfo = readJson(packageJson), parts = gulpInfo.version.split(".").map((s) => parseInt(s, 10));
4
+ function readJson(pathToFile) {
5
+ const contents = readTextFileSync(pathToFile);
6
+ return JSON.parse(contents);
7
+ }
4
8
  module.exports = {
5
9
  major: parts[0],
6
10
  minor: parts[1],
@@ -139,10 +139,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
139
139
  if (process.env[parallelVar] === undefined) {
140
140
  // automatically test in parallel if possible
141
141
  testInParallel = allProjectsReferenceQuackers;
142
- if (testInParallel) {
143
- }
144
- else {
145
- }
146
142
  }
147
143
  else if (parallelFlag && !allProjectsReferenceQuackers) {
148
144
  testInParallel = false;
@@ -388,7 +384,7 @@ Test Run Summary
388
384
  }
389
385
  if (state.inSummary) {
390
386
  /* actual summary log example, using settings
391
-
387
+
392
388
  QUACKERS_LOG_PREFIX = "::",
393
389
  QUACKERS_SUMMARY_START_MARKER = `::SS::`,
394
390
  QUACKERS_SUMMARY_COMPLETE_MARKER = `::SC::`,
@@ -399,7 +395,7 @@ Test Run Summary
399
395
  QUACKERS_SLOW_SUMMARY_COMPLETE_MARKER = "::SSC::",
400
396
  QUACKERS_VERBOSE_SUMMARY = "true",
401
397
  QUACKERS_OUTPUT_FAILURES_INLINE = "true",
402
-
398
+
403
399
  ::::SS::
404
400
  ::::SSS::
405
401
  :: {some slow summary data}
@@ -411,14 +407,14 @@ Test Run Summary
411
407
  ::Failed: 2
412
408
  ::Skipped: 1
413
409
  ::Total: 11
414
-
410
+
415
411
  ::Failures:
416
-
412
+
417
413
  ::[1] QuackersTestHost.SomeTests.ShouldBeLessThan50(75)
418
414
  :: NExpect.Exceptions.UnmetExpectationException : Expected 75 to be less than 50
419
415
  :: at QuackersTestHost.SomeTests.ShouldBeLessThan50(Int32 value) in C:\code\opensource\quackers\src\Demo\SomeTests.cs:line 66
420
416
  ::
421
-
417
+
422
418
  ::[2] QuackersTestHost.SomeTests.ShouldFail
423
419
  :: NExpect.Exceptions.UnmetExpectationException : Expected false but got true
424
420
  :: at QuackersTestHost.SomeTests.ShouldFail() in C:\code\opensource\quackers\src\Demo\SomeTests.cs:line 28
@@ -477,8 +473,7 @@ Test Run Summary
477
473
  }
478
474
  }
479
475
  catch (e) {
480
- const err = e;
481
- const err2 = err;
476
+ debug(`quackersStdOutHandler errors:\n${e}`);
482
477
  }
483
478
  }
484
479
  function incrementTestResultCount(testResults, line) {
@@ -496,7 +491,10 @@ Test Run Summary
496
491
  }
497
492
  }
498
493
  function stripQuackersLogPrefix(line) {
499
- return line.substring(quackersLogPrefixLength);
494
+ while (line.startsWith(QUACKERS_LOG_PREFIX)) {
495
+ line = line.substring(QUACKERS_LOG_PREFIX.length);
496
+ }
497
+ return line;
500
498
  }
501
499
  const quackersRefCache = {};
502
500
  async function projectReferencesQuackers(csproj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.170.8",
3
+ "version": "1.170.12",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"
@@ -58,13 +58,12 @@
58
58
  "bent": "^7.3.12",
59
59
  "cross-env": "^7.0.3",
60
60
  "cross-fetch": "^4.0.0",
61
- "debug": "^4.3.1",
62
61
  "decompress": "^4.2.1",
63
62
  "del": "^5.1.0",
64
63
  "event-stream": "^4.0.1",
65
64
  "exec-step": "^0.8.0",
66
65
  "fancy-log": "^1.3.3",
67
- "gulp": "^4.0.2",
66
+ "gulp": "^4.0.0",
68
67
  "gulp-debug": "^4.0.0",
69
68
  "gulp-dotnet-cli": "^1.1.0",
70
69
  "gulp-edit-xml": "^3.1.1",
@@ -77,7 +76,6 @@
77
76
  "readline": "^1.3.0",
78
77
  "request": "^2.88.2",
79
78
  "require-dir": "^1.2.0",
80
- "requirejs": "^2.3.6",
81
79
  "rimraf": "^3.0.2",
82
80
  "run-sequence": "^2.2.1",
83
81
  "sax": "^1.2.4",
@@ -125,6 +123,7 @@
125
123
  "@types/xml2js": "^0.4.8",
126
124
  "@types/yargs": "^15.0.13",
127
125
  "console-cls": "^1.2.2",
126
+ "debug": "^4.3.4",
128
127
  "debugger-is-attached": "^1.2.0",
129
128
  "expect-even-more-jest": "^1.15.0",
130
129
  "filesystem-sandbox": "^1.20.0",