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

sveld

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sveld - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0

2

lib/writer/Writer.d.ts

@@ -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": {

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