Comparing version 0.21.0 to 0.22.0
@@ -7,5 +7,5 @@ import * as prettier from "prettier"; | ||
constructor(options: WriterOptions); | ||
format(raw: any): any; | ||
format(raw: any): Promise<any>; | ||
write(filePath: string, raw: any): Promise<void>; | ||
} | ||
export {}; |
@@ -34,5 +34,6 @@ "use strict"; | ||
} | ||
format(raw) { | ||
async format(raw) { | ||
try { | ||
return prettier.format(raw, this.options); | ||
const result = await prettier.format(raw, this.options); | ||
return result; | ||
} | ||
@@ -46,5 +47,5 @@ catch (error) { | ||
await fsp.mkdir(path.parse(filePath).dir, { recursive: true }); | ||
await fsp.writeFile(filePath, this.format(raw)); | ||
await fsp.writeFile(filePath, await this.format(raw)); | ||
} | ||
} | ||
exports.default = Writer; |
{ | ||
"name": "sveld", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"license": "Apache-2.0", | ||
@@ -19,3 +19,3 @@ "description": "Generate TypeScript definitions for your Svelte components.", | ||
"comment-parser": "^1.4.1", | ||
"prettier": "^2.8.8", | ||
"prettier": "^3.3.3", | ||
"rollup": "^2.79.1", | ||
@@ -31,4 +31,4 @@ "rollup-plugin-svelte": "^7.2.2", | ||
"@types/jest": "^29.5.13", | ||
"@types/prettier": "^2.7.3", | ||
"prettier-plugin-svelte": "^2.10.1" | ||
"@types/prettier": "^3.0.0", | ||
"prettier-plugin-svelte": "^3.2.7" | ||
}, | ||
@@ -35,0 +35,0 @@ "bin": { |
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
104584
1963
+ Addedprettier@3.3.3(transitive)
- Removedprettier@2.8.8(transitive)
Updatedprettier@^3.3.3