concurrently
Advanced tools
Comparing version 4.1.2 to 5.0.0
{ | ||
"name": "concurrently", | ||
"version": "4.1.2", | ||
"version": "5.0.0", | ||
"description": "Run commands concurrently", | ||
@@ -33,3 +33,3 @@ "main": "index.js", | ||
"chalk": "^2.4.2", | ||
"date-fns": "^1.30.1", | ||
"date-fns": "^2.0.1", | ||
"lodash": "^4.17.15", | ||
@@ -36,0 +36,0 @@ "read-pkg": "^4.0.1", |
@@ -150,3 +150,3 @@ # Concurrently | ||
-t, --timestamp-format Specify the timestamp in moment/date-fns format. | ||
[string] [default: "YYYY-MM-DD HH:mm:ss.SSS"] | ||
[string] [default: "yyyy-MM-dd HH:mm:ss.SSS"] | ||
@@ -251,4 +251,4 @@ Input handling | ||
- `restartDelay`: how many milliseconds to wait between process restarts. Default: `0`. | ||
- `timestampFormat`: a [date-fns/moment format](https://date-fns.org/v1.29.0/docs/format) | ||
to use when prefixing with `time`. Default: `YYYY-MM-DD HH:mm:ss.ZZZ` | ||
- `timestampFormat`: a [date-fns format](https://date-fns.org/v2.0.1/docs/format) | ||
to use when prefixing with `time`. Default: `yyyy-MM-dd HH:mm:ss.ZZZ` | ||
@@ -255,0 +255,0 @@ > Returns: a `Promise` that resolves if the run was successful (according to `successCondition` option), |
@@ -25,4 +25,4 @@ /** | ||
success: 'all', | ||
// Refer to https://date-fns.org/v1.29.0/docs/format | ||
timestampFormat: 'YYYY-MM-DD HH:mm:ss.SSS' | ||
// Refer to https://date-fns.org/v2.0.1/docs/format | ||
timestampFormat: 'yyyy-MM-dd HH:mm:ss.SSS' | ||
}; |
@@ -11,3 +11,3 @@ const { map } = require('rxjs/operators'); | ||
let caughtSignal; | ||
['SIGINT', 'SIGTERM'].forEach(signal => { | ||
['SIGINT', 'SIGTERM', 'SIGHUP'].forEach(signal => { | ||
this.process.on(signal, () => { | ||
@@ -14,0 +14,0 @@ caughtSignal = signal; |
@@ -71,1 +71,10 @@ const EventEmitter = require('events'); | ||
}); | ||
it('kills all commands on SIGHUP', () => { | ||
controller.handle(commands); | ||
process.emit('SIGHUP'); | ||
expect(process.listenerCount('SIGHUP')).toBe(1); | ||
expect(commands[0].kill).toHaveBeenCalledWith('SIGHUP'); | ||
expect(commands[1].kill).toHaveBeenCalledWith('SIGHUP'); | ||
}); |
@@ -114,3 +114,3 @@ const { Writable } = require('stream'); | ||
it('logs with prefixFormat set to time (with timestampFormat)', () => { | ||
const logger = createLogger({ prefixFormat: 'time', timestampFormat: 'YYYY' }); | ||
const logger = createLogger({ prefixFormat: 'time', timestampFormat: 'yyyy' }); | ||
logger.logCommandText('foo', {}); | ||
@@ -117,0 +117,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
582542
1915
+ Added@babel/runtime@7.25.6(transitive)
+ Addeddate-fns@2.30.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
- Removeddate-fns@1.30.1(transitive)
Updateddate-fns@^2.0.1