prettier
Advanced tools
Comparing version 2.8.1 to 3.0.3
188
package.json
{ | ||
"name": "prettier", | ||
"version": "2.8.1", | ||
"version": "3.0.3", | ||
"description": "Prettier is an opinionated code formatter", | ||
"bin": "./bin-prettier.js", | ||
"bin": "./bin/prettier.cjs", | ||
"repository": "prettier/prettier", | ||
@@ -11,12 +11,186 @@ "funding": "https://github.com/prettier/prettier?sponsor=1", | ||
"license": "MIT", | ||
"main": "./index.js", | ||
"main": "./index.cjs", | ||
"browser": "./standalone.js", | ||
"unpkg": "./standalone.js", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"require": "./index.cjs", | ||
"default": "./index.mjs" | ||
}, | ||
"./*": "./*", | ||
"./doc": { | ||
"types": "./doc.d.ts", | ||
"require": "./doc.js", | ||
"default": "./doc.mjs" | ||
}, | ||
"./standalone": { | ||
"types": "./standalone.d.ts", | ||
"require": "./standalone.js", | ||
"default": "./standalone.mjs" | ||
}, | ||
"./plugins/estree": { | ||
"types": "./plugins/estree.d.ts", | ||
"require": "./plugins/estree.js", | ||
"default": "./plugins/estree.mjs" | ||
}, | ||
"./plugins/babel": { | ||
"types": "./plugins/babel.d.ts", | ||
"require": "./plugins/babel.js", | ||
"default": "./plugins/babel.mjs" | ||
}, | ||
"./plugins/flow": { | ||
"types": "./plugins/flow.d.ts", | ||
"require": "./plugins/flow.js", | ||
"default": "./plugins/flow.mjs" | ||
}, | ||
"./plugins/typescript": { | ||
"types": "./plugins/typescript.d.ts", | ||
"require": "./plugins/typescript.js", | ||
"default": "./plugins/typescript.mjs" | ||
}, | ||
"./plugins/acorn": { | ||
"types": "./plugins/acorn.d.ts", | ||
"require": "./plugins/acorn.js", | ||
"default": "./plugins/acorn.mjs" | ||
}, | ||
"./plugins/meriyah": { | ||
"types": "./plugins/meriyah.d.ts", | ||
"require": "./plugins/meriyah.js", | ||
"default": "./plugins/meriyah.mjs" | ||
}, | ||
"./plugins/angular": { | ||
"types": "./plugins/angular.d.ts", | ||
"require": "./plugins/angular.js", | ||
"default": "./plugins/angular.mjs" | ||
}, | ||
"./plugins/postcss": { | ||
"types": "./plugins/postcss.d.ts", | ||
"require": "./plugins/postcss.js", | ||
"default": "./plugins/postcss.mjs" | ||
}, | ||
"./plugins/graphql": { | ||
"types": "./plugins/graphql.d.ts", | ||
"require": "./plugins/graphql.js", | ||
"default": "./plugins/graphql.mjs" | ||
}, | ||
"./plugins/markdown": { | ||
"types": "./plugins/markdown.d.ts", | ||
"require": "./plugins/markdown.js", | ||
"default": "./plugins/markdown.mjs" | ||
}, | ||
"./plugins/glimmer": { | ||
"types": "./plugins/glimmer.d.ts", | ||
"require": "./plugins/glimmer.js", | ||
"default": "./plugins/glimmer.mjs" | ||
}, | ||
"./plugins/html": { | ||
"types": "./plugins/html.d.ts", | ||
"require": "./plugins/html.js", | ||
"default": "./plugins/html.mjs" | ||
}, | ||
"./plugins/yaml": { | ||
"types": "./plugins/yaml.d.ts", | ||
"require": "./plugins/yaml.js", | ||
"default": "./plugins/yaml.mjs" | ||
}, | ||
"./esm/standalone.mjs": "./standalone.mjs", | ||
"./parser-babel": "./plugins/babel.js", | ||
"./parser-babel.js": "./plugins/babel.js", | ||
"./esm/parser-babel.mjs": "./plugins/babel.mjs", | ||
"./parser-flow": "./plugins/flow.js", | ||
"./parser-flow.js": "./plugins/flow.js", | ||
"./esm/parser-flow.mjs": "./plugins/flow.mjs", | ||
"./parser-typescript": "./plugins/typescript.js", | ||
"./parser-typescript.js": "./plugins/typescript.js", | ||
"./esm/parser-typescript.mjs": "./plugins/typescript.mjs", | ||
"./parser-espree": "./plugins/acorn.js", | ||
"./parser-espree.js": "./plugins/acorn.js", | ||
"./esm/parser-espree.mjs": "./plugins/acorn.mjs", | ||
"./parser-meriyah": "./plugins/meriyah.js", | ||
"./parser-meriyah.js": "./plugins/meriyah.js", | ||
"./esm/parser-meriyah.mjs": "./plugins/meriyah.mjs", | ||
"./parser-angular": "./plugins/angular.js", | ||
"./parser-angular.js": "./plugins/angular.js", | ||
"./esm/parser-angular.mjs": "./plugins/angular.mjs", | ||
"./parser-postcss": "./plugins/postcss.js", | ||
"./parser-postcss.js": "./plugins/postcss.js", | ||
"./esm/parser-postcss.mjs": "./plugins/postcss.mjs", | ||
"./parser-graphql": "./plugins/graphql.js", | ||
"./parser-graphql.js": "./plugins/graphql.js", | ||
"./esm/parser-graphql.mjs": "./plugins/graphql.mjs", | ||
"./parser-markdown": "./plugins/markdown.js", | ||
"./parser-markdown.js": "./plugins/markdown.js", | ||
"./esm/parser-markdown.mjs": "./plugins/markdown.mjs", | ||
"./parser-glimmer": "./plugins/glimmer.js", | ||
"./parser-glimmer.js": "./plugins/glimmer.js", | ||
"./esm/parser-glimmer.mjs": "./plugins/glimmer.mjs", | ||
"./parser-html": "./plugins/html.js", | ||
"./parser-html.js": "./plugins/html.js", | ||
"./esm/parser-html.mjs": "./plugins/html.mjs", | ||
"./parser-yaml": "./plugins/yaml.js", | ||
"./parser-yaml.js": "./plugins/yaml.js", | ||
"./esm/parser-yaml.mjs": "./plugins/yaml.mjs" | ||
}, | ||
"engines": { | ||
"node": ">=10.13.0" | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
"*.js", | ||
"esm/*.mjs" | ||
] | ||
"LICENSE", | ||
"README.md", | ||
"bin/prettier.cjs", | ||
"doc.d.ts", | ||
"doc.js", | ||
"doc.mjs", | ||
"index.cjs", | ||
"index.d.ts", | ||
"index.d.ts", | ||
"index.mjs", | ||
"internal/cli.mjs", | ||
"internal/internal.mjs", | ||
"package.json", | ||
"plugins/acorn.d.ts", | ||
"plugins/acorn.js", | ||
"plugins/acorn.mjs", | ||
"plugins/angular.d.ts", | ||
"plugins/angular.js", | ||
"plugins/angular.mjs", | ||
"plugins/babel.d.ts", | ||
"plugins/babel.js", | ||
"plugins/babel.mjs", | ||
"plugins/estree.d.ts", | ||
"plugins/estree.js", | ||
"plugins/estree.mjs", | ||
"plugins/flow.d.ts", | ||
"plugins/flow.js", | ||
"plugins/flow.mjs", | ||
"plugins/glimmer.d.ts", | ||
"plugins/glimmer.js", | ||
"plugins/glimmer.mjs", | ||
"plugins/graphql.d.ts", | ||
"plugins/graphql.js", | ||
"plugins/graphql.mjs", | ||
"plugins/html.d.ts", | ||
"plugins/html.js", | ||
"plugins/html.mjs", | ||
"plugins/markdown.d.ts", | ||
"plugins/markdown.js", | ||
"plugins/markdown.mjs", | ||
"plugins/meriyah.d.ts", | ||
"plugins/meriyah.js", | ||
"plugins/meriyah.mjs", | ||
"plugins/postcss.d.ts", | ||
"plugins/postcss.js", | ||
"plugins/postcss.mjs", | ||
"plugins/typescript.d.ts", | ||
"plugins/typescript.js", | ||
"plugins/typescript.mjs", | ||
"plugins/yaml.d.ts", | ||
"plugins/yaml.js", | ||
"plugins/yaml.mjs", | ||
"standalone.d.ts", | ||
"standalone.js", | ||
"standalone.mjs" | ||
], | ||
"preferUnplugged": true | ||
} |
@@ -1,2 +0,2 @@ | ||
![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg) | ||
[![Prettier Banner](https://unpkg.com/prettier-logo@1.0.3/images/prettier-banner-light.svg)](https://prettier.io) | ||
@@ -41,7 +41,7 @@ <h2 align="center">Opinionated Code Formatter</h2> | ||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3AProd+branch%3Amain"> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Prod?label=Prod&style=flat-square"></a> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/prod-test.yml?label=Prod&style=flat-square"></a> | ||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ADev+branch%3Amain"> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Dev?label=Dev&style=flat-square"></a> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/dev-test.yml?label=Dev&style=flat-square"></a> | ||
<a href="https://github.com/prettier/prettier/actions?query=workflow%3ALint+branch%3Amain"> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/workflow/status/prettier/prettier/Lint?label=Lint&style=flat-square"></a> | ||
<img alt="Github Actions Build Status" src="https://img.shields.io/github/actions/workflow/status/prettier/prettier/lint.yml?label=Lint&style=flat-square"></a> | ||
<a href="https://codecov.io/gh/prettier/prettier"> | ||
@@ -80,3 +80,3 @@ <img alt="Codecov Coverage Status" src="https://img.shields.io/codecov/c/github/prettier/prettier.svg?style=flat-square"></a> | ||
IShouldRefactorThis(), | ||
isThereSeriouslyAnotherOne() | ||
isThereSeriouslyAnotherOne(), | ||
); | ||
@@ -83,0 +83,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
High entropy strings
Supply chain riskContains high entropy strings. This could be a sign of encrypted data, leaked secrets or obfuscated code.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
54
8491215
65494
50