@jest/console
Advanced tools
Comparing version 26.6.2 to 27.0.0-next.0
@@ -23,3 +23,3 @@ /** | ||
debug(firstArg: unknown, ...rest: Array<unknown>): void; | ||
dir(firstArg: unknown, ...rest: Array<unknown>): void; | ||
dir(firstArg: unknown, options?: NodeJS.InspectOptions): void; | ||
dirxml(firstArg: unknown, ...rest: Array<unknown>): void; | ||
@@ -26,0 +26,0 @@ error(firstArg: unknown, ...rest: Array<unknown>): void; |
@@ -152,4 +152,6 @@ 'use strict'; | ||
dir(firstArg, ...rest) { | ||
this._log('dir', (0, _util().format)(firstArg, ...rest)); | ||
dir(firstArg, options = {}) { | ||
const representation = (0, _util().inspect)(firstArg, options); | ||
this._log('dir', (0, _util().formatWithOptions)(options, representation)); | ||
} | ||
@@ -156,0 +158,0 @@ |
@@ -26,3 +26,3 @@ /** | ||
debug(firstArg: unknown, ...args: Array<unknown>): void; | ||
dir(firstArg: unknown, ...args: Array<unknown>): void; | ||
dir(firstArg: unknown, options?: NodeJS.InspectOptions): void; | ||
dirxml(firstArg: unknown, ...args: Array<unknown>): void; | ||
@@ -29,0 +29,0 @@ error(firstArg: unknown, ...args: Array<unknown>): void; |
@@ -140,4 +140,6 @@ 'use strict'; | ||
dir(firstArg, ...args) { | ||
this._log('dir', (0, _util().format)(firstArg, ...args)); | ||
dir(firstArg, options = {}) { | ||
const representation = (0, _util().inspect)(firstArg, options); | ||
this._log('dir', (0, _util().formatWithOptions)(options, representation)); | ||
} | ||
@@ -144,0 +146,0 @@ |
@@ -10,3 +10,3 @@ /** | ||
import type { ConsoleBuffer } from './types'; | ||
declare const _default: (root: string, verbose: boolean, buffer: ConsoleBuffer, config?: StackTraceConfig, globalConfig?: Config.GlobalConfig | undefined) => string; | ||
declare const _default: (buffer: ConsoleBuffer, config: StackTraceConfig, globalConfig: Config.GlobalConfig) => string; | ||
export default _default; |
@@ -38,13 +38,4 @@ 'use strict'; | ||
*/ | ||
var _default = ( | ||
root, | ||
verbose, | ||
buffer, // TODO: make mandatory and take Config.ProjectConfig in 27 | ||
config = { | ||
rootDir: root, | ||
testMatch: [] | ||
}, | ||
globalConfig | ||
) => { | ||
const TITLE_INDENT = verbose ? ' ' : ' '; | ||
var _default = (buffer, config, globalConfig) => { | ||
const TITLE_INDENT = globalConfig.verbose ? ' ' : ' '; | ||
const CONSOLE_INDENT = TITLE_INDENT + ' '; | ||
@@ -51,0 +42,0 @@ const logEntries = buffer.reduce((output, {type, message, origin}) => { |
{ | ||
"name": "@jest/console", | ||
"version": "26.6.2", | ||
"version": "27.0.0-next.0", | ||
"repository": { | ||
@@ -10,18 +10,22 @@ "type": "git", | ||
"license": "MIT", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"main": "./build/index.js", | ||
"types": "./build/index.d.ts", | ||
"exports": { | ||
".": "./build/index.js", | ||
"./package.json": "./package.json" | ||
}, | ||
"dependencies": { | ||
"@jest/types": "^26.6.2", | ||
"@jest/types": "^27.0.0-next.0", | ||
"@types/node": "*", | ||
"chalk": "^4.0.0", | ||
"jest-message-util": "^26.6.2", | ||
"jest-util": "^26.6.2", | ||
"jest-message-util": "^27.0.0-next.0", | ||
"jest-util": "^27.0.0-next.0", | ||
"slash": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "^26.6.2", | ||
"@jest/test-utils": "^27.0.0-next.0", | ||
"@types/node": "*" | ||
}, | ||
"engines": { | ||
"node": ">= 10.14.2" | ||
"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" | ||
}, | ||
@@ -31,3 +35,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "4c46930615602cbf983fb7e8e82884c282a624d5" | ||
"gitHead": "4f77c70602cab8419794f10fa39510f13baafef8" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
21592
684
2
+ Added@jest/types@27.5.1(transitive)
+ Added@types/yargs@16.0.9(transitive)
+ Addedansi-styles@5.2.0(transitive)
+ Addedci-info@3.9.0(transitive)
+ Addedjest-message-util@27.5.1(transitive)
+ Addedjest-util@27.5.1(transitive)
+ Addedpretty-format@27.5.1(transitive)
- Removed@jest/types@26.6.2(transitive)
- Removed@types/yargs@15.0.19(transitive)
- Removedci-info@2.0.0(transitive)
- Removedis-ci@2.0.0(transitive)
- Removedjest-message-util@26.6.2(transitive)
- Removedjest-util@26.6.2(transitive)
- Removedpretty-format@26.6.2(transitive)
Updated@jest/types@^27.0.0-next.0
Updatedjest-util@^27.0.0-next.0