@cucumber/html-formatter 11.0.2 → 13.0.0

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.
Files changed (41) hide show
  1. package/.mocharc.json +2 -2
  2. package/Makefile +16 -2
  3. package/check.js +22 -0
  4. package/default.mk +19 -47
  5. package/dist/cucumber-react.css +291 -0
  6. package/dist/main.js +1 -1
  7. package/dist/main.js.LICENSE.txt +4 -19
  8. package/dist/package.json +22 -35
  9. package/dist/src/CucumberHtmlStream.d.ts +3 -2
  10. package/dist/src/CucumberHtmlStream.d.ts.map +1 -0
  11. package/dist/src/CucumberHtmlStream.js +46 -68
  12. package/dist/src/CucumberHtmlStream.js.map +1 -1
  13. package/dist/src/cli-main.d.ts +1 -0
  14. package/dist/src/cli-main.d.ts.map +1 -0
  15. package/dist/src/cli-main.js +10 -11
  16. package/dist/src/cli-main.js.map +1 -1
  17. package/dist/src/index.mustache.html +1 -0
  18. package/dist/src/main.d.ts +1 -0
  19. package/dist/src/main.d.ts.map +1 -0
  20. package/dist/src/main.js +15 -37
  21. package/dist/src/main.js.map +1 -1
  22. package/dist/test/CucumberHtmlStreamTest.d.ts +1 -0
  23. package/dist/test/CucumberHtmlStreamTest.d.ts.map +1 -0
  24. package/dist/test/CucumberHtmlStreamTest.js +41 -122
  25. package/dist/test/CucumberHtmlStreamTest.js.map +1 -1
  26. package/dist/tsconfig.build.tsbuildinfo +4208 -0
  27. package/logo.svg +7 -0
  28. package/package.json +22 -35
  29. package/src/CucumberHtmlStream.ts +8 -21
  30. package/src/cli-main.ts +7 -20
  31. package/src/index.mustache.html +1 -0
  32. package/src/main.tsx +1 -5
  33. package/test/CucumberHtmlStreamTest.ts +9 -21
  34. package/test/dummy.css +0 -0
  35. package/test/dummy.js +0 -0
  36. package/tsconfig.build.json +13 -0
  37. package/tsconfig.json +1 -24
  38. package/webpack.config.js +1 -17
  39. package/.eslintrc.json +0 -41
  40. package/.nycrc.json +0 -16
  41. package/.prettierrc +0 -5
@@ -12,7 +12,7 @@ object-assign
12
12
  */
13
13
 
14
14
  /*!
15
- * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
15
+ * Font Awesome Free 5.15.3 by @fontawesome - https://fontawesome.com
16
16
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
17
17
  */
18
18
 
@@ -92,21 +92,6 @@ object-assign
92
92
  * Copyright (C) 2016 Oliver Nightingale
93
93
  */
94
94
 
95
- /*! *****************************************************************************
96
- Copyright (c) Microsoft Corporation. All rights reserved.
97
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
98
- this file except in compliance with the License. You may obtain a copy of the
99
- License at http://www.apache.org/licenses/LICENSE-2.0
100
-
101
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
102
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
103
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
104
- MERCHANTABLITY OR NON-INFRINGEMENT.
105
-
106
- See the Apache Version 2.0 License for specific language governing permissions
107
- and limitations under the License.
108
- ***************************************************************************** */
109
-
110
95
  /**
111
96
  * elasticlunr - http://weixsong.github.io
112
97
  * Lightweight full-text search engine in Javascript for browser search and offline search. - 0.9.5
@@ -117,7 +102,7 @@ and limitations under the License.
117
102
  * @license
118
103
  */
119
104
 
120
- /** @license React v0.20.1
105
+ /** @license React v0.20.2
121
106
  * scheduler.production.min.js
122
107
  *
123
108
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -135,7 +120,7 @@ and limitations under the License.
135
120
  * LICENSE file in the root directory of this source tree.
136
121
  */
137
122
 
138
- /** @license React v17.0.1
123
+ /** @license React v17.0.2
139
124
  * react-dom.production.min.js
140
125
  *
141
126
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -144,7 +129,7 @@ and limitations under the License.
144
129
  * LICENSE file in the root directory of this source tree.
145
130
  */
146
131
 
147
- /** @license React v17.0.1
132
+ /** @license React v17.0.2
148
133
  * react.production.min.js
149
134
  *
150
135
  * Copyright (c) Facebook, Inc. and its affiliates.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cucumber/html-formatter",
3
- "version": "11.0.2",
3
+ "version": "13.0.0",
4
4
  "description": "HTML formatter for Cucumber",
5
5
  "bin": {
6
6
  "cucumber-html-formatter": "bin/cucumber-html-formatter.js"
@@ -14,48 +14,35 @@
14
14
  "author": "Aslak Hellesøy",
15
15
  "license": "MIT",
16
16
  "scripts": {
17
- "nyc": "nyc --reporter=html --reporter=text mocha",
18
17
  "test": "mocha",
19
- "lint": "eslint --ext ts,tsx --max-warnings 0 src test",
20
- "lint-fix": "eslint --ext ts,tsx --max-warnings 0 --fix src test",
21
- "build": "tsc && webpack-cli && cp src/index.mustache.html dist/src"
18
+ "prepublishOnly": "tsc --build tsconfig.build.json"
22
19
  },
23
20
  "dependencies": {
24
- "@cucumber/gherkin-utils": "^2.1.1",
25
- "@cucumber/messages": "^13.2.1",
26
- "@cucumber/query": "^7.0.1",
27
- "@cucumber/react": "^11.0.2",
28
- "commander": "^6.2.1",
29
- "react": "^17.0.1",
30
- "react-dom": "^17.0.1",
31
- "resolve-pkg": "^2.0.0",
21
+ "@cucumber/messages": "^15.0.0",
22
+ "commander": "^7.2.0",
32
23
  "source-map-support": "^0.5.19"
33
24
  },
34
25
  "devDependencies": {
35
- "@babel/core": "^7.12.10",
36
- "@types/jsdom": "^16.2.5",
37
- "@types/mocha": "^8.2.0",
38
- "@types/node": "^14.14.14",
39
- "@types/react": "^17.0.0",
40
- "@types/react-dom": "^17.0.0",
41
- "@typescript-eslint/eslint-plugin": "^4.10.0",
42
- "@typescript-eslint/parser": "^4.10.0",
26
+ "@babel/core": "^7.13.14",
27
+ "@cucumber/gherkin-utils": "^4.0.0",
28
+ "@cucumber/query": "^9.0.2",
29
+ "@cucumber/react": "^13.0.0",
30
+ "@cucumber/gherkin-streams": "^1.0.0",
31
+ "@cucumber/message-streams": "^1.0.0",
32
+ "@types/mocha": "^8.2.2",
33
+ "@types/node": "^14.14.37",
34
+ "@types/react": "^17.0.3",
35
+ "@types/react-dom": "^17.0.3",
43
36
  "babel-loader": "^8.2.2",
44
- "eslint": "^7.15.0",
45
- "eslint-config-prettier": "^7.0.0",
46
- "eslint-plugin-node": "^11.1.0",
47
- "eslint-plugin-prettier": "^3.3.0",
48
- "eslint-plugin-react": "^7.21.5",
49
- "gherkin": "^9.0.0",
50
- "mocha": "^8.2.1",
51
- "npm-link-shared": "^0.5.6",
52
- "nyc": "^15.1.0",
53
- "prettier": "^2.2.1",
54
- "ts-loader": "^8.0.12",
37
+ "mocha": "^8.3.2",
38
+ "puppeteer": "^8.0.0",
39
+ "react": "^17.0.2",
40
+ "react-dom": "^17.0.2",
41
+ "ts-loader": "^8.1.0",
55
42
  "ts-node": "^9.1.1",
56
- "typescript": "^4.1.3",
57
- "webpack": "^5.11.0",
58
- "webpack-cli": "^4.2.0"
43
+ "typescript": "^4.2.3",
44
+ "webpack": "^5.30.0",
45
+ "webpack-cli": "^4.6.0"
59
46
  },
60
47
  "bugs": {
61
48
  "url": "https://github.com/cucumber/cucumber/issues"
@@ -2,6 +2,8 @@
2
2
  import { Transform, TransformCallback } from 'stream';
3
3
  import { messages } from '@cucumber/messages';
4
4
  export default class CucumberHtmlStream extends Transform {
5
+ private readonly cssPath;
6
+ private readonly jsPath;
5
7
  private template;
6
8
  private preMessageWritten;
7
9
  private postMessageWritten;
@@ -13,12 +15,11 @@ export default class CucumberHtmlStream extends Transform {
13
15
  constructor(cssPath: string, jsPath: string);
14
16
  _transform(envelope: messages.Envelope, encoding: string, callback: TransformCallback): void;
15
17
  _flush(callback: TransformCallback): void;
16
- private cssPath;
17
18
  private writePreMessageUnlessAlreadyWritten;
18
- private jsPath;
19
19
  private writePostMessage;
20
20
  private writeFile;
21
21
  private writeTemplateBetween;
22
22
  private readTemplate;
23
23
  private writeMessage;
24
24
  }
25
+ //# sourceMappingURL=CucumberHtmlStream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CucumberHtmlStream.d.ts","sourceRoot":"","sources":["../../src/CucumberHtmlStream.ts"],"names":[],"mappings":";AACA,OAAO,EAAY,SAAS,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE7C,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,SAAS;IAS3C,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAU,OAAO,CAAC,QAAQ,CAAC,MAAM;IARrE,OAAO,CAAC,QAAQ,CAAsB;IACtC,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,mBAAmB,CAAQ;IACnC;;;OAGG;gBAC0B,OAAO,EAAE,MAAM,EAAmB,MAAM,EAAE,MAAM;IAItE,UAAU,CACf,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,iBAAiB,GAC1B,IAAI;IAYA,MAAM,CAAC,QAAQ,EAAE,iBAAiB,GAAG,IAAI;IAIhD,OAAO,CAAC,mCAAmC;IAkB3C,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,YAAY;CAQrB"}
@@ -1,67 +1,50 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- extendStatics(d, b);
11
- function __() { this.constructor = d; }
12
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
13
- };
14
- })();
15
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
16
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
4
  };
18
5
  Object.defineProperty(exports, "__esModule", { value: true });
19
- var fs_1 = __importDefault(require("fs"));
20
- var stream_1 = require("stream");
21
- var CucumberHtmlStream = /** @class */ (function (_super) {
22
- __extends(CucumberHtmlStream, _super);
6
+ const fs_1 = __importDefault(require("fs"));
7
+ const stream_1 = require("stream");
8
+ class CucumberHtmlStream extends stream_1.Transform {
23
9
  /**
24
10
  * @param cssPath
25
11
  * @param jsPath
26
12
  */
27
- function CucumberHtmlStream(cssPath, jsPath) {
28
- var _this = _super.call(this, { objectMode: true }) || this;
29
- _this.template = null;
30
- _this.preMessageWritten = false;
31
- _this.postMessageWritten = false;
32
- _this.firstMessageWritten = false;
33
- _this.cssPath = cssPath;
34
- _this.jsPath = jsPath;
35
- return _this;
13
+ constructor(cssPath, jsPath) {
14
+ super({ objectMode: true });
15
+ this.cssPath = cssPath;
16
+ this.jsPath = jsPath;
17
+ this.template = null;
18
+ this.preMessageWritten = false;
19
+ this.postMessageWritten = false;
20
+ this.firstMessageWritten = false;
36
21
  }
37
- CucumberHtmlStream.prototype._transform = function (envelope, encoding, callback) {
38
- var _this = this;
22
+ _transform(envelope, encoding, callback) {
39
23
  if (this.postMessageWritten) {
40
24
  return callback(new Error('Stream closed'));
41
25
  }
42
- this.writePreMessageUnlessAlreadyWritten(function (err) {
26
+ this.writePreMessageUnlessAlreadyWritten((err) => {
43
27
  if (err)
44
28
  return callback(err);
45
- _this.writeMessage(envelope);
29
+ this.writeMessage(envelope);
46
30
  callback();
47
31
  });
48
- };
49
- CucumberHtmlStream.prototype._flush = function (callback) {
32
+ }
33
+ _flush(callback) {
50
34
  this.writePostMessage(callback);
51
- };
52
- CucumberHtmlStream.prototype.writePreMessageUnlessAlreadyWritten = function (callback) {
53
- var _this = this;
35
+ }
36
+ writePreMessageUnlessAlreadyWritten(callback) {
54
37
  if (this.preMessageWritten) {
55
38
  return callback();
56
39
  }
57
40
  this.preMessageWritten = true;
58
- this.writeTemplateBetween(null, '{{css}}', function (err) {
41
+ this.writeTemplateBetween(null, '{{css}}', (err) => {
59
42
  if (err)
60
43
  return callback(err);
61
- _this.writeFile(_this.cssPath, function (err) {
44
+ this.writeFile(this.cssPath, (err) => {
62
45
  if (err)
63
46
  return callback(err);
64
- _this.writeTemplateBetween('{{css}}', '{{messages}}', function (err) {
47
+ this.writeTemplateBetween('{{css}}', '{{messages}}', (err) => {
65
48
  if (err)
66
49
  return callback(err);
67
50
  // this.writeResource("cucumber-react.css", callback);
@@ -69,54 +52,50 @@ var CucumberHtmlStream = /** @class */ (function (_super) {
69
52
  });
70
53
  });
71
54
  });
72
- };
73
- CucumberHtmlStream.prototype.writePostMessage = function (callback) {
74
- var _this = this;
75
- this.writePreMessageUnlessAlreadyWritten(function (err) {
55
+ }
56
+ writePostMessage(callback) {
57
+ this.writePreMessageUnlessAlreadyWritten((err) => {
76
58
  if (err)
77
59
  return callback(err);
78
- _this.writeTemplateBetween('{{messages}}', '{{script}}', function (err) {
60
+ this.writeTemplateBetween('{{messages}}', '{{script}}', (err) => {
79
61
  if (err)
80
62
  return callback(err);
81
- _this.writeFile(_this.jsPath, function (err) {
63
+ this.writeFile(this.jsPath, (err) => {
82
64
  if (err)
83
65
  return callback(err);
84
- _this.writeTemplateBetween('{{script}}', null, callback);
66
+ this.writeTemplateBetween('{{script}}', null, callback);
85
67
  });
86
68
  });
87
69
  });
88
- };
89
- CucumberHtmlStream.prototype.writeFile = function (path, callback) {
90
- var _this = this;
91
- var cssStream = fs_1.default.createReadStream(path, { encoding: 'utf-8' });
92
- cssStream.on('data', function (chunk) { return _this.push(chunk); });
93
- cssStream.on('error', function (err) { return callback(err); });
70
+ }
71
+ writeFile(path, callback) {
72
+ const cssStream = fs_1.default.createReadStream(path, { encoding: 'utf-8' });
73
+ cssStream.on('data', (chunk) => this.push(chunk));
74
+ cssStream.on('error', (err) => callback(err));
94
75
  cssStream.on('end', callback);
95
- };
96
- CucumberHtmlStream.prototype.writeTemplateBetween = function (begin, end, callback) {
97
- var _this = this;
98
- this.readTemplate(function (err, template) {
76
+ }
77
+ writeTemplateBetween(begin, end, callback) {
78
+ this.readTemplate((err, template) => {
99
79
  if (err)
100
80
  return callback(err);
101
- var beginIndex = begin == null ? 0 : template.indexOf(begin) + begin.length;
102
- var endIndex = end == null ? template.length : template.indexOf(end);
103
- _this.push(template.substring(beginIndex, endIndex));
81
+ const beginIndex = begin == null ? 0 : template.indexOf(begin) + begin.length;
82
+ const endIndex = end == null ? template.length : template.indexOf(end);
83
+ this.push(template.substring(beginIndex, endIndex));
104
84
  callback();
105
85
  });
106
- };
107
- CucumberHtmlStream.prototype.readTemplate = function (callback) {
108
- var _this = this;
86
+ }
87
+ readTemplate(callback) {
109
88
  if (this.template !== null) {
110
89
  return callback(null, this.template);
111
90
  }
112
- fs_1.default.readFile(__dirname + '/index.mustache.html', { encoding: 'utf-8' }, function (err, template) {
91
+ fs_1.default.readFile(__dirname + '/index.mustache.html', { encoding: 'utf-8' }, (err, template) => {
113
92
  if (err)
114
93
  return callback(err);
115
- _this.template = template;
94
+ this.template = template;
116
95
  return callback(null, template);
117
96
  });
118
- };
119
- CucumberHtmlStream.prototype.writeMessage = function (envelope) {
97
+ }
98
+ writeMessage(envelope) {
120
99
  if (!this.firstMessageWritten) {
121
100
  this.firstMessageWritten = true;
122
101
  }
@@ -124,8 +103,7 @@ var CucumberHtmlStream = /** @class */ (function (_super) {
124
103
  this.push(',');
125
104
  }
126
105
  this.push(JSON.stringify(envelope.toJSON()));
127
- };
128
- return CucumberHtmlStream;
129
- }(stream_1.Transform));
106
+ }
107
+ }
130
108
  exports.default = CucumberHtmlStream;
131
109
  //# sourceMappingURL=CucumberHtmlStream.js.map
@@ -1 +1 @@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,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAA;YACtE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;YACnD,QAAQ,EAAE,CAAA;QACZ,CAAC,CAAC,CAAA;IACJ,CAAC;IAEO,YAAY,CAAC,QAAuD;QAC1E,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC1B,OAAO,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;SACrC;QACD,YAAE,CAAC,QAAQ,CAAC,SAAS,GAAG,sBAAsB,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE;YACvF,IAAI,GAAG;gBAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAA;YAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;YACxB,OAAO,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;QACjC,CAAC,CAAC,CAAA;IACJ,CAAC;IAEO,YAAY,CAAC,QAA2B;QAC9C,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAC7B,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAA;SAChC;aAAM;YACL,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;SACf;QACD,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IAC9C,CAAC;CACF;AAxGD,qCAwGC"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=cli-main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli-main.d.ts","sourceRoot":"","sources":["../../src/cli-main.ts"],"names":[],"mappings":""}
@@ -3,20 +3,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- var messages_1 = require("@cucumber/messages");
7
- var commander_1 = __importDefault(require("commander"));
8
- var package_json_1 = __importDefault(require("../package.json"));
9
- var resolve_pkg_1 = __importDefault(require("resolve-pkg"));
10
- var stream_1 = require("stream");
11
- var CucumberHtmlStream_1 = __importDefault(require("./CucumberHtmlStream"));
6
+ const messages_1 = require("@cucumber/messages");
7
+ const message_streams_1 = require("@cucumber/message-streams");
8
+ const commander_1 = __importDefault(require("commander"));
9
+ const package_json_1 = __importDefault(require("../package.json"));
10
+ const stream_1 = require("stream");
11
+ const CucumberHtmlStream_1 = __importDefault(require("./CucumberHtmlStream"));
12
12
  commander_1.default.version(package_json_1.default.version);
13
13
  commander_1.default.option('-f, --format <format>', 'output format: ndjson|protobuf', 'protobuf');
14
14
  commander_1.default.parse(process.argv);
15
- var toMessageStream = commander_1.default.format === 'ndjson'
16
- ? new messages_1.NdjsonToMessageStream(messages_1.messages.Envelope.fromObject.bind(messages_1.messages.Envelope))
17
- : new messages_1.BinaryToMessageStream(messages_1.messages.Envelope.decodeDelimited.bind(messages_1.messages.Envelope));
18
- stream_1.pipeline(process.stdin, toMessageStream, new CucumberHtmlStream_1.default(resolve_pkg_1.default('@cucumber/react', { cwd: __dirname }) +
19
- '/dist/src/styles/cucumber-react.css', __dirname + '/../../dist/main.js'), process.stdout, function (err) {
15
+ const toMessageStream = commander_1.default.opts().format === 'ndjson'
16
+ ? new message_streams_1.NdjsonToMessageStream(messages_1.messages.Envelope.fromObject.bind(messages_1.messages.Envelope))
17
+ : new message_streams_1.BinaryToMessageStream(messages_1.messages.Envelope.decodeDelimited.bind(messages_1.messages.Envelope));
18
+ stream_1.pipeline(process.stdin, toMessageStream, new CucumberHtmlStream_1.default(__dirname + '/../../dist/cucumber-react.css', __dirname + '/../../dist/main.js'), process.stdout, (err) => {
20
19
  if (err) {
21
20
  // tslint:disable-next-line:no-console
22
21
  console.error(err);
@@ -1 +1 @@
1
- {"version":3,"file":"cli-main.js","sourceRoot":"","sources":["../../src/cli-main.ts"],"names":[],"mappings":";;;;;AAAA,+CAI2B;AAC3B,wDAA+B;AAC/B,iEAA+B;AAC/B,4DAAoC;AACpC,iCAAiC;AACjC,4EAAqD;AAErD,mBAAO,CAAC,OAAO,CAAC,sBAAC,CAAC,OAAO,CAAC,CAAA;AAC1B,mBAAO,CAAC,MAAM,CACZ,uBAAuB,EACvB,gCAAgC,EAChC,UAAU,CACX,CAAA;AACD,mBAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,IAAM,eAAe,GACnB,mBAAO,CAAC,MAAM,KAAK,QAAQ;IACzB,CAAC,CAAC,IAAI,gCAAqB,CACvB,mBAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAQ,CAAC,QAAQ,CAAC,CACrD;IACH,CAAC,CAAC,IAAI,gCAAqB,CACvB,mBAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAQ,CAAC,QAAQ,CAAC,CAC1D,CAAA;AAEP,iBAAQ,CACN,OAAO,CAAC,KAAK,EACb,eAAe,EACf,IAAI,4BAAkB,CACpB,qBAAU,CAAC,iBAAiB,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;IAC/C,qCAAqC,EACvC,SAAS,GAAG,qBAAqB,CAClC,EACD,OAAO,CAAC,MAAM,EACd,UAAC,GAAQ;IACP,IAAI,GAAG,EAAE;QACP,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KAChB;AACH,CAAC,CACF,CAAA"}
1
+ {"version":3,"file":"cli-main.js","sourceRoot":"","sources":["../../src/cli-main.ts"],"names":[],"mappings":";;;;;AAAA,iDAA6C;AAC7C,+DAAwF;AACxF,0DAA+B;AAC/B,mEAA+B;AAC/B,mCAAiC;AACjC,8EAAqD;AAErD,mBAAO,CAAC,OAAO,CAAC,sBAAC,CAAC,OAAO,CAAC,CAAA;AAC1B,mBAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,gCAAgC,EAAE,UAAU,CAAC,CAAA;AACrF,mBAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,MAAM,eAAe,GACnB,mBAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,QAAQ;IAChC,CAAC,CAAC,IAAI,uCAAqB,CAAC,mBAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,mBAAQ,CAAC,QAAQ,CAAC,CAAC;IACjF,CAAC,CAAC,IAAI,uCAAqB,CAAC,mBAAQ,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,mBAAQ,CAAC,QAAQ,CAAC,CAAC,CAAA;AAE1F,iBAAQ,CACN,OAAO,CAAC,KAAK,EACb,eAAe,EACf,IAAI,4BAAkB,CACpB,SAAS,GAAG,gCAAgC,EAC5C,SAAS,GAAG,qBAAqB,CAClC,EACD,OAAO,CAAC,MAAM,EACd,CAAC,GAAQ,EAAE,EAAE;IACX,IAAI,GAAG,EAAE;QACP,sCAAsC;QACtC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAClB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;KAChB;AACH,CAAC,CACF,CAAA"}
@@ -3,6 +3,7 @@
3
3
  <head>
4
4
  <title>Cucumber</title>
5
5
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
6
+ <link rel="icon" href="data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22ml-3%20ml-md-0%22%20viewBox%3D%220%200%2040.59%2046.31%22%20width%3D%2240.59%22%20height%3D%2246.31%22%3E%0A%20%20%20%20%3Cg%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%2323d96c%22%20fill-rule%3D%22evenodd%22%20d%3D%22M30.283%203.645q-.528-.317-1.08-.593a16.164%2016.164%200%2000-1.154-.518c-.124-.052-.247-.1-.372-.149-.343-.127-.689-.268-1.042-.371a19.427%2019.427%200%2010-9.792%2037.51v5.56c11.676-1.753%2022.016-10.979%2022.787-23.093.459-7.289-3.193-14.73-9.347-18.346z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23173647%22%20d%3D%22M15.787%2046.307v-5.935A20.472%2020.472%200%201126.959%201.015c.274.08.557.187.832.291l.248.093c.165.064.291.113.417.167.348.137.739.313%201.208.543q.589.295%201.153.633c6.393%203.756%2010.354%2011.518%209.857%2019.316-.763%2012-10.722%2022.122-23.679%2024.067zm4.8-44.214h-.026a18.366%2018.366%200%2000-3.524%2036.408l.85.165v5.18c11.392-2.224%2020.009-11.272%2020.686-21.922.448-7.033-3.1-14.018-8.83-17.383l-.008-.005A14.691%2014.691%200%200027.654%203.5a5.74%205.74%200%2000-.344-.138l-.27-.1a9.49%209.49%200%2000-.708-.249%2018.425%2018.425%200%2000-5.743-.92z%22%2F%3E%0A%20%20%20%20%20%20%20%20%3Cpath%20fill%3D%22%23173647%22%20fill-rule%3D%22evenodd%22%20d%3D%22M16.666%2010.58a1.8%201.8%200%20011.583.608%204.184%204.184%200%2001.728%201.107c.645%201.422%201.027%203.461.23%204.605a6.334%206.334%200%2001-3.981-3.087%203.236%203.236%200%2001-.347-1.339%201.957%201.957%200%20011.787-1.894zm-5.683%208.025a7.742%207.742%200%20001.218.737%205.789%205.789%200%20004.883-.138%206.116%206.116%200%2000-3.345-3.45%203.664%203.664%200%2000-1.442-.321%201.884%201.884%200%2000-.319%200%201.766%201.766%200%2000-.995%203.172zm6.1%203.433c-.777-.518-2.379-.309-3.312-.292a4.416%204.416%200%2000-1.666.352%203.5%203.5%200%2000-1.218.738%201.817%201.817%200%20001.409%203.171%203.3%203.3%200%20001.442-.321c1.436-.62%203.141-2.32%203.346-3.648zm2.61%202a6.556%206.556%200%2000-3.724%203.506%203.091%203.091%200%2000-.321%201.314%201.907%201.907%200%20003.3%201.346%207.422%207.422%200%2000.7-1.218c.621-1.333.866-3.72.046-4.948zm2.557-7.167a5.941%205.941%200%20003.7-3.167%203.243%203.243%200%2000.319-1.346%201.915%201.915%200%2000-1.794-1.954%201.832%201.832%200%2000-1.6.641%207.382%207.382%200%2000-.705%201.218c-.62%201.434-.842%203.48.081%204.603zm4.208%2012.115a3.244%203.244%200%2000-.321-1.345%205.869%205.869%200%2000-3.554-3.269%205.386%205.386%200%2000-.226%204.711%204.147%204.147%200%2000.7%201.121c1.133%201.23%203.505.32%203.402-1.218zm4.2-6.28a7.466%207.466%200%2000-1.217-.7%204.425%204.425%200%2000-1.666-.352%206.4%206.4%200%2000-3.188.555%205.959%205.959%200%20003.316%203.386%203.672%203.672%200%20001.442.32%201.8%201.8%200%20001.31-3.209z%22%2F%3E%0A%20%20%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E">
6
7
  <style>
7
8
  {{css}}
8
9
  </style>
@@ -4,3 +4,4 @@ declare global {
4
4
  CUCUMBER_MESSAGES: messages.IEnvelope[];
5
5
  }
6
6
  }
7
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAO7C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,iBAAiB,EAAE,QAAQ,CAAC,SAAS,EAAE,CAAA;KACxC;CACF"}
package/dist/src/main.js CHANGED
@@ -1,46 +1,24 @@
1
1
  "use strict";
2
- var __values = (this && this.__values) || function(o) {
3
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
4
- if (m) return m.call(o);
5
- if (o && typeof o.length === "number") return {
6
- next: function () {
7
- if (o && i >= o.length) o = void 0;
8
- return { value: o && o[i++], done: !o };
9
- }
10
- };
11
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
16
- var e_1, _a;
17
5
  Object.defineProperty(exports, "__esModule", { value: true });
18
- var messages_1 = require("@cucumber/messages");
19
- var react_1 = require("@cucumber/react");
20
- var gherkin_utils_1 = require("@cucumber/gherkin-utils");
21
- var query_1 = require("@cucumber/query");
22
- var react_2 = __importDefault(require("react"));
23
- var react_dom_1 = __importDefault(require("react-dom"));
24
- var gherkinQuery = new gherkin_utils_1.Query();
25
- var cucumberQuery = new query_1.Query();
26
- var envelopesQuery = new react_1.EnvelopesQuery();
27
- try {
28
- for (var _b = __values(window.CUCUMBER_MESSAGES), _c = _b.next(); !_c.done; _c = _b.next()) {
29
- var envelopeObject = _c.value;
30
- var envelope = messages_1.messages.Envelope.fromObject(envelopeObject);
31
- gherkinQuery.update(envelope);
32
- cucumberQuery.update(envelope);
33
- envelopesQuery.update(envelope);
34
- }
35
- }
36
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
37
- finally {
38
- try {
39
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
40
- }
41
- finally { if (e_1) throw e_1.error; }
6
+ const messages_1 = require("@cucumber/messages");
7
+ const react_1 = require("@cucumber/react");
8
+ const gherkin_utils_1 = require("@cucumber/gherkin-utils");
9
+ const query_1 = require("@cucumber/query");
10
+ const react_2 = __importDefault(require("react"));
11
+ const react_dom_1 = __importDefault(require("react-dom"));
12
+ const gherkinQuery = new gherkin_utils_1.Query();
13
+ const cucumberQuery = new query_1.Query();
14
+ const envelopesQuery = new react_1.EnvelopesQuery();
15
+ for (const envelopeObject of window.CUCUMBER_MESSAGES) {
16
+ const envelope = messages_1.messages.Envelope.fromObject(envelopeObject);
17
+ gherkinQuery.update(envelope);
18
+ cucumberQuery.update(envelope);
19
+ envelopesQuery.update(envelope);
42
20
  }
43
- var app = (react_2.default.createElement(react_1.QueriesWrapper, { gherkinQuery: gherkinQuery, cucumberQuery: cucumberQuery, envelopesQuery: envelopesQuery },
21
+ const app = (react_2.default.createElement(react_1.QueriesWrapper, { gherkinQuery: gherkinQuery, cucumberQuery: cucumberQuery, envelopesQuery: envelopesQuery },
44
22
  react_2.default.createElement(react_1.FilteredResults, null)));
45
23
  react_dom_1.default.render(app, document.getElementById('content'));
46
24
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAA6C;AAC7C,yCAIwB;AACxB,yDAA+D;AAC/D,yCAAwD;AACxD,gDAAyB;AACzB,wDAAgC;AAQhC,IAAM,YAAY,GAAG,IAAI,qBAAY,EAAE,CAAA;AACvC,IAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAA;AACzC,IAAM,cAAc,GAAG,IAAI,sBAAc,EAAE,CAAA;;IAE3C,KAA6B,IAAA,KAAA,SAAA,MAAM,CAAC,iBAAiB,CAAA,gBAAA,4BAAE;QAAlD,IAAM,cAAc,WAAA;QACvB,IAAM,QAAQ,GAAG,mBAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;QAC7D,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC7B,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QAC9B,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;KAChC;;;;;;;;;AAED,IAAM,GAAG,GAAG,CACV,8BAAC,sBAAc,IACb,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc;IAE9B,8BAAC,uBAAe,OAAG,CACJ,CAClB,CAAA;AAED,mBAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.tsx"],"names":[],"mappings":";;;;;AAAA,iDAA6C;AAC7C,2CAAiF;AACjF,2DAA+D;AAC/D,2CAAwD;AACxD,kDAAyB;AACzB,0DAAgC;AAQhC,MAAM,YAAY,GAAG,IAAI,qBAAY,EAAE,CAAA;AACvC,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAA;AACzC,MAAM,cAAc,GAAG,IAAI,sBAAc,EAAE,CAAA;AAE3C,KAAK,MAAM,cAAc,IAAI,MAAM,CAAC,iBAAiB,EAAE;IACrD,MAAM,QAAQ,GAAG,mBAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;IAC7D,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC7B,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC9B,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;CAChC;AAED,MAAM,GAAG,GAAG,CACV,8BAAC,sBAAc,IACb,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc;IAE9B,8BAAC,uBAAe,OAAG,CACJ,CAClB,CAAA;AAED,mBAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAA"}
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=CucumberHtmlStreamTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CucumberHtmlStreamTest.d.ts","sourceRoot":"","sources":["../../test/CucumberHtmlStreamTest.ts"],"names":[],"mappings":""}