@cucumber/electron
Advanced tools
Comparing version 2.7.0 to 2.7.1
#!/usr/bin/env node | ||
var spawn = require('child_process').spawn | ||
var path = require('path') | ||
const spawn = require('child_process').spawn | ||
const path = require('path') | ||
var electron = require('electron') | ||
const electron = require('electron') | ||
var args = process.argv.slice(2) | ||
const args = process.argv.slice(2) | ||
if (args.length === 1 && args[0] === '--help' || args[0] === '-h') { | ||
@@ -25,3 +25,3 @@ showHelp() | ||
var child = spawn(electron, args) | ||
const child = spawn(electron, args) | ||
child.stdout.pipe(process.stdout) | ||
@@ -31,3 +31,3 @@ process.stdin.pipe(child.stdin) | ||
child.stderr.on('data', function (data) { | ||
var str = data.toString('utf8') | ||
const str = data.toString('utf8') | ||
// Mute irrelevant chromium errors | ||
@@ -34,0 +34,0 @@ if (str.match(/^\[\d+:\d+/) || str.match(/Couldn't set selectedTextBackgroundColor/)) return |
@@ -12,3 +12,11 @@ # CHANGE LOG | ||
<!-- Releases --> | ||
### [Unreleased](https://github.com/cucumber/cucumber-electron/compare/v2.7.1...master) | ||
### [v2.7.1](https://github.com/cucumber/cucumber-electron/compare/v2.7.0...v2.7.1) | ||
* Add `<!DOCTYPE html>` to avoid quirks mode | ||
* Change package name from `cucumber-electron` to `@cucumber/electron` | ||
* Upgrade dependencies | ||
* Switch from `yarn.lock` to `package-lock.json` | ||
### [2.7.0](https://github.com/cucumber/cucumber-electron/compare/v2.6.0...v2.7.0) | ||
@@ -15,0 +23,0 @@ |
@@ -7,7 +7,7 @@ const { spawn } = require('child_process') | ||
const assert = require('assert') | ||
const mkdirp = require('mkdirp-promise') | ||
const rmfr = require('rmfr') | ||
const colors = require('colors') | ||
const writeFile = promisify(fs.writeFile) | ||
const rmdir = promisify(fs.rmdir) | ||
const mkdir = promisify(fs.mkdir) | ||
@@ -23,3 +23,3 @@ const { setWorldConstructor, setDefaultTimeout, Before } = require('cucumber') | ||
const dir = path.resolve(path.join(this.tempDir, path.dirname(filePath))) | ||
await mkdirp(dir) | ||
await mkdir(dir, { recursive: true }) | ||
await writeFile( | ||
@@ -148,7 +148,7 @@ path.join(this.tempDir, filePath), | ||
Before(function () { | ||
return rmfr(this.tempDir) | ||
Before(async function () { | ||
await rmdir(this.tempDir, { recursive: true }) | ||
}) | ||
Before(function () { | ||
return mkdirp(this.tempDir) | ||
Before(async function () { | ||
await mkdir(this.tempDir, { recursive: true }) | ||
}) |
{ | ||
"name": "@cucumber/electron", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "Runs cucumber.js in electron", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"ansi-to-html": "^0.6.11", | ||
"ansi-to-html": "^0.6.14", | ||
"electron-window": "^0.8.1" | ||
@@ -29,11 +29,8 @@ }, | ||
"devDependencies": { | ||
"colors": "^1.3.2", | ||
"cucumber": "5.0.3", | ||
"colors": "^1.4.0", | ||
"cucumber": "6.0.5", | ||
"debug": "^4.1.1", | ||
"electron": "^5.0.2", | ||
"eslint": "^5.10.0", | ||
"fs-promise": "^2.0.3", | ||
"mkdirp-promise": "^5.0.1", | ||
"rmfr": "^2.0.0" | ||
"electron": "^8.2.0", | ||
"eslint": "^6.8.0" | ||
} | ||
} |
@@ -14,3 +14,3 @@ module.exports = function patchDebug({ isTTY }) { | ||
const cacheKey = Object.keys(require.cache).find( | ||
key => require.cache[key].exports == originalDebug | ||
key => require.cache[key].exports === originalDebug | ||
) | ||
@@ -17,0 +17,0 @@ const nodeDebug = require('debug/src/node') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
85879
5
47
3
Updatedansi-to-html@^0.6.14