Skip to content

Commit

Permalink
Update internal dependencies and change code accordingly (#2466)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss authored Jan 22, 2025
1 parent cc6c89e commit 095a321
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 91 deletions.
97 changes: 16 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@
"@cucumber/cucumber-expressions": "18.0.1",
"@cucumber/gherkin": "30.0.4",
"@cucumber/gherkin-streams": "5.0.1",
"@cucumber/gherkin-utils": "9.0.0",
"@cucumber/html-formatter": "21.7.0",
"@cucumber/gherkin-utils": "9.1.0",
"@cucumber/html-formatter": "21.8.0",
"@cucumber/junit-xml-formatter": "0.7.1",
"@cucumber/message-streams": "4.0.1",
"@cucumber/messages": "27.0.2",
Expand All @@ -248,7 +248,6 @@
"mz": "^2.7.0",
"progress": "^2.0.3",
"read-package-up": "^11.0.0",
"resolve-pkg": "^2.0.0",
"semver": "7.5.3",
"string-argv": "0.3.1",
"supports-color": "^8.1.1",
Expand Down
8 changes: 1 addition & 7 deletions src/formatter/builtin/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { finished } from 'node:stream'
import { writeFile } from 'node:fs'
import path from 'node:path'
import { CucumberHtmlStream } from '@cucumber/html-formatter'
import resolvePkg from 'resolve-pkg'
import mimeTypes from 'mime'
import {
Attachment,
Expand All @@ -26,12 +25,7 @@ export default {
)
}
const newId = IdGenerator.uuid()
const htmlStream = new CucumberHtmlStream(
resolvePkg('@cucumber/html-formatter', { cwd: __dirname }) +
'/dist/main.css',
resolvePkg('@cucumber/html-formatter', { cwd: __dirname }) +
'/dist/main.js'
)
const htmlStream = new CucumberHtmlStream()
const writeOperations: Promise<void>[] = []
on('message', (message) => {
if (message.attachment && options.externalAttachments) {
Expand Down

0 comments on commit 095a321

Please sign in to comment.