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

pretty-format

Package Overview
Dependencies
Maintainers
5
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-format - npm Package Compare versions

Comparing version 21.3.0-beta.2 to 21.3.0-beta.3

20

build/index.js

@@ -45,4 +45,8 @@ 'use strict';

*
*/const toISOString = Date.prototype.toISOString;const errorToString = Error.prototype.toString;const regExpToString = RegExp.prototype.toString;const symbolToString = Symbol.prototype.toString;const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;const NEWLINE_REGEXP = /\n/gi;
*/const toISOString = Date.prototype.toISOString;const errorToString = Error.prototype.toString;const regExpToString = RegExp.prototype.toString;const symbolToString = Symbol.prototype.toString; // Is val is equal to global window object? Works even if it does not exist :)
/* global window */const isWindow = val => typeof window !== 'undefined' && val === window;
const SYMBOL_REGEXP = /^Symbol\((.*)\)(.*)$/;
const NEWLINE_REGEXP = /\n/gi;
function isToStringedArrayType(toStringed) {

@@ -228,3 +232,5 @@ return (

return hitMaxDepth ?
// Avoid failure to serialize global window object in jsdom test environment.
// For example, not even relevant if window is prop of React element.
return hitMaxDepth || isWindow(val) ?
'[' + (val.constructor ? val.constructor.name : 'Object') + ']' :

@@ -354,4 +360,5 @@ (min ? '' : (val.constructor ? val.constructor.name : 'Object') + ' ') +

const getColorsHighlight = options =>
DEFAULT_THEME_KEYS.reduce((colors, key) => {
const getColorsHighlight = (options
// $FlowFixMe: Flow thinks keys from `Colors` are missing from `DEFAULT_THEME_KEYS`
) => DEFAULT_THEME_KEYS.reduce((colors, key) => {
const value =

@@ -374,9 +381,10 @@ options.theme && options.theme[key] !== undefined ?

return colors;
}, {});
}, Object.create(null));
const getColorsEmpty = () =>
// $FlowFixMe: Flow thinks keys from `Colors` are missing from `DEFAULT_THEME_KEYS`
DEFAULT_THEME_KEYS.reduce((colors, key) => {
colors[key] = { close: '', open: '' };
return colors;
}, {});
}, Object.create(null));

@@ -383,0 +391,0 @@ const getPrintFunctionName = options =>

{
"name": "pretty-format",
"version": "21.3.0-beta.2",
"version": "21.3.0-beta.3",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

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