Socket
Socket
Sign inDemoInstall

@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.3.0 to 26.5.0

2

build/BufferedConsole.d.ts

@@ -7,2 +7,3 @@ /**

*/
/// <reference types="node" />
import { Console } from 'console';

@@ -15,2 +16,3 @@ import type { ConsoleBuffer, LogMessage, LogType } from './types';

private _groupDepth;
Console: NodeJS.ConsoleConstructor;
constructor();

@@ -17,0 +19,0 @@ static write(buffer: ConsoleBuffer, type: LogType, message: LogMessage, level?: number | null): ConsoleBuffer;

16

build/BufferedConsole.js

@@ -78,6 +78,5 @@ 'use strict';

constructor() {
const buffer = [];
super({
write: message => {
BufferedConsole.write(buffer, 'log', message, null);
BufferedConsole.write(this._buffer, 'log', message, null);
return true;

@@ -87,14 +86,11 @@ }

_defineProperty(this, '_buffer', void 0);
_defineProperty(this, '_buffer', []);
_defineProperty(this, '_counters', void 0);
_defineProperty(this, '_counters', {});
_defineProperty(this, '_timers', void 0);
_defineProperty(this, '_timers', {});
_defineProperty(this, '_groupDepth', void 0);
_defineProperty(this, '_groupDepth', 0);
this._buffer = buffer;
this._counters = {};
this._timers = {};
this._groupDepth = 0;
_defineProperty(this, 'Console', _console().Console);
}

@@ -101,0 +97,0 @@

@@ -18,2 +18,3 @@ /**

private _groupDepth;
Console: NodeJS.ConsoleConstructor;
constructor(stdout: NodeJS.WriteStream, stderr: NodeJS.WriteStream, formatBuffer?: Formatter);

@@ -20,0 +21,0 @@ private _log;

@@ -86,14 +86,13 @@ 'use strict';

_defineProperty(this, '_counters', void 0);
_defineProperty(this, '_counters', {});
_defineProperty(this, '_timers', void 0);
_defineProperty(this, '_timers', {});
_defineProperty(this, '_groupDepth', void 0);
_defineProperty(this, '_groupDepth', 0);
_defineProperty(this, 'Console', _console().Console);
this._stdout = stdout;
this._stderr = stderr;
this._formatBuffer = formatBuffer;
this._counters = {};
this._timers = {};
this._groupDepth = 0;
}

@@ -100,0 +99,0 @@

{
"name": "@jest/console",
"version": "26.3.0",
"version": "26.5.0",
"repository": {

@@ -13,7 +13,7 @@ "type": "git",

"dependencies": {
"@jest/types": "^26.3.0",
"@jest/types": "^26.5.0",
"@types/node": "*",
"chalk": "^4.0.0",
"jest-message-util": "^26.3.0",
"jest-util": "^26.3.0",
"jest-message-util": "^26.5.0",
"jest-util": "^26.5.0",
"slash": "^3.0.0"

@@ -30,3 +30,3 @@ },

},
"gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d"
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3"
}
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