Socket
Socket
Sign inDemoInstall

pretty-format

Package Overview
Dependencies
5
Maintainers
6
Versions
236
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 28.0.0-alpha.0 to 28.0.0-alpha.1

48

build/index.d.ts

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

*/
import type {SnapshotFormat} from '@jest/schemas';

@@ -88,16 +89,7 @@ export declare type Colors = {

export declare type Options = {
callToJSON: boolean;
export declare interface Options
extends Omit<RequiredOptions, 'compareKeys' | 'theme'> {
compareKeys: CompareKeys;
escapeRegex: boolean;
escapeString: boolean;
highlight: boolean;
indent: number;
maxDepth: number;
min: boolean;
plugins: Plugins;
printBasicPrototype: boolean;
printFunctionName: boolean;
theme: Theme;
};
theme: Required<RequiredOptions['theme']>;
}

@@ -127,15 +119,5 @@ export declare type OptionsReceived = PrettyFormatOptions;

export declare interface PrettyFormatOptions {
callToJSON?: boolean;
export declare interface PrettyFormatOptions extends SnapshotFormat {
compareKeys?: CompareKeys;
escapeRegex?: boolean;
escapeString?: boolean;
highlight?: boolean;
indent?: number;
maxDepth?: number;
min?: boolean;
plugins?: Plugins;
printBasicPrototype?: boolean;
printFunctionName?: boolean;
theme?: ThemeReceived;
}

@@ -156,20 +138,8 @@

declare type RequiredOptions = Required<PrettyFormatOptions>;
declare type Test = (arg0: any) => boolean;
export declare type Theme = {
comment: string;
content: string;
prop: string;
tag: string;
value: string;
};
export declare type Theme = Options['theme'];
declare type ThemeReceived = {
comment?: string;
content?: string;
prop?: string;
tag?: string;
value?: string;
};
export {};

7

package.json
{
"name": "pretty-format",
"version": "28.0.0-alpha.0",
"version": "28.0.0-alpha.1",
"repository": {

@@ -23,2 +23,3 @@ "type": "git",

"dependencies": {
"@jest/schemas": "^28.0.0-alpha.1",
"ansi-regex": "^5.0.1",

@@ -33,3 +34,3 @@ "ansi-styles": "^5.0.0",

"immutable": "^4.0.0",
"jest-util": "^28.0.0-alpha.0",
"jest-util": "^28.0.0-alpha.1",
"react": "*",

@@ -45,3 +46,3 @@ "react-dom": "*",

},
"gitHead": "89275b08977065d98e42ad71fcf223f4ad169f09"
"gitHead": "d30164dde1847166fa0faec98d20abffd85e6ffd"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc