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

rollup-plugin-prettier

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-prettier - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

16

dist/index.js

@@ -51,3 +51,3 @@ /**

},
}
},
);

@@ -104,3 +104,3 @@ }

this._options = Promise.resolve(
omitBy(options, (value, key) => OPTIONS.has(key))
omitBy(options, (value, key) => OPTIONS.has(key)),
);

@@ -114,3 +114,3 @@

]).then((results) =>
Object.assign({}, ...results.map((result) => result || {}))
Object.assign({}, ...results.map((result) => result || {})),
);

@@ -120,3 +120,3 @@

this._options = this._options.then((options) =>
isEmpty(options) ? undefined : options
isEmpty(options) ? undefined : options,
);

@@ -155,3 +155,3 @@

return this._options.then((options) =>
this._reformat(source, sourcemap, options)
this._reformat(source, sourcemap, options),
);

@@ -171,3 +171,3 @@ }

return Promise.resolve(prettier.format(source, options)).then((output) =>
this._processOutput(source, sourcemap, output)
this._processOutput(source, sourcemap, output),
);

@@ -200,6 +200,6 @@ }

console.warn(
`[${this.name}] Sourcemap is enabled, computing diff is required`
`[${this.name}] Sourcemap is enabled, computing diff is required`,
);
console.warn(
`[${this.name}] This may take a moment (depends on the size of your bundle)`
`[${this.name}] This may take a moment (depends on the size of your bundle)`,
);

@@ -206,0 +206,0 @@ }

{
"name": "rollup-plugin-prettier",
"version": "3.1.0",
"version": "4.0.0",
"description": "Run prettier formatter with rollup",

@@ -31,7 +31,7 @@ "main": "dist/index.js",

"peerDependencies": {
"prettier": "^1.0.0 || ^2.0.0",
"prettier": "^1.0.0 || ^2.0.0 || ^3.0.0",
"rollup": "^1.0.0 || ^2.0.0 || ^3.0.0"
},
"dependencies": {
"@types/prettier": "^1.0.0 || ^2.0.0",
"@types/prettier": "^1.0.0 || ^2.0.0 || ^3.0.0",
"diff": "5.1.0",

@@ -66,3 +66,3 @@ "lodash.hasin": "4.5.2",

"lodash.startswith": "4.2.1",
"prettier": "2.8.8",
"prettier": "3.0.3",
"q": "1.5.1",

@@ -69,0 +69,0 @@ "rimraf": "5.0.1",

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