Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jest/console

Package Overview
Dependencies
Maintainers
7
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/console - npm Package Compare versions

Comparing version 26.6.2 to 27.0.0-next.0

2

build/BufferedConsole.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc