Socket
Socket
Sign inDemoInstall

dprint

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dprint - npm Package Compare versions

Comparing version 0.32.2 to 0.33.0

12

info.json
{
"version": "0.32.2",
"version": "0.33.0",
"checksums": {
"windows-x86_64": "e4c0916438a11b18b1d6a3ce7c4e23f18998648d39247fa0b617c9863dea6d11",
"darwin-x86_64": "5abcc7e2f99b98a629b73ded47ca84bc851b4f6ec35ff6df496c2eefd569c55c",
"darwin-aarch64": "ec909acfc179b064e7d19e130c1aa1bdf0350d929b9a04dc6f6b5ce84432eb69",
"linux-x86_64": "8e8d0f32e5522a61f6251fb3b9c6be106584ccdfdb13008b276c1ee8bfdc6ffa",
"linux-aarch64": "ddff520568958b6dfeac83105a913db7247188035a0e1af12d4100d0c0d631e4"
"windows-x86_64": "98d3e6616e23cb9b2a969975b9c34b4b571e40725b0348d19cebedcb9c584be5",
"darwin-x86_64": "d4b502bb00bd4e3e19657092648883e8d8270de32f61a0ff78af7709dc70b9b2",
"darwin-aarch64": "df3a99c68d7229125040e720990d70fcec0e16b64e7ccba266f5771e2e9e7edd",
"linux-x86_64": "77c52e21df129e96a7860163029e267f38e705bc7be014b79668ad15f6e0c8e2",
"linux-aarch64": "9762ae7b175d68d853daed32a17580b0662a3a46402053d1770ee6e7f355b2e5"
}
}

@@ -37,3 +37,3 @@ // @ts-check

// now try to download it
return downloadZipFile(url).then(() => {
return downloadZipFileWithRetries(url).then(() => {
verifyZipChecksum();

@@ -79,2 +79,20 @@ return extractZipFile().then(() => {

function downloadZipFileWithRetries(url) {
/** @param remaining {number} */
function download(remaining) {
return downloadZipFile(url)
.catch(err => {
if (remaining === 0) {
return Promise.reject(err);
} else {
console.error("Error downloading dprint zip file.", err);
console.error("Retrying download (remaining: " + remaining + ")");
return download(remaining - 1);
}
});
}
return download(3);
}
function downloadZipFile(url) {

@@ -81,0 +99,0 @@ return new Promise((resolve, reject) => {

{
"name": "dprint",
"version": "0.32.2",
"version": "0.33.0",
"description": "Pluggable and configurable code formatting platform written in Rust.",

@@ -5,0 +5,0 @@ "bin": "bin.js",

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