rollup-plugin-prettier
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195275
+ Added@types/prettier@3.0.0(transitive)
+ Addedprettier@3.3.3(transitive)
- Removed@types/prettier@2.7.3(transitive)
- Removedprettier@2.8.8(transitive)