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

dprint-node

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dprint-node - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

37

options.d.ts

@@ -14,2 +14,4 @@ /* tslint:disable */

export type QuoteStyle1 = string;
export type QuoteProps = "preserve" | "asNeeded";
export type QuoteProps1 = string;
export type NewLineKind = "auto" | "crlf" | "lf" | "system";

@@ -49,2 +51,4 @@ export type NewLineKind1 = string;

export type EnumDeclarationMemberSpacing1 = string;
export type SpaceAround = boolean;
export type SpaceAround1 = true | false;
export type SpaceSurroundingProperties = boolean;

@@ -110,6 +114,8 @@ export type SpaceSurroundingProperties1 = true | false;

export type SortOrder1 = string;
export type ForceSingleLine = boolean;
export type ForceSingleLine1 = true | false;
export interface Options {
export interface HttpsPluginsDprintDevDprintDprintPluginTypescript0712SchemaJson {
/**
* Whether the configuration is not allowed to be overriden or extended.
* Whether the configuration is not allowed to be overridden or extended.
*/

@@ -138,2 +144,6 @@ locked?: boolean;

/**
* Change when properties in objects are quoted.
*/
quoteProps?: QuoteProps & QuoteProps1;
/**
* The kind of newline to use.

@@ -209,2 +219,18 @@ */

/**
* Whether to place spaces around enclosed expressions.
*/
spaceAround?: SpaceAround & SpaceAround1;
"arguments.spaceAround"?: SpaceAround & SpaceAround1;
"arrayExpression.spaceAround"?: SpaceAround & SpaceAround1;
"arrayPattern.spaceAround"?: SpaceAround & SpaceAround1;
"doWhileStatement.spaceAround"?: SpaceAround & SpaceAround1;
"forInStatement.spaceAround"?: SpaceAround & SpaceAround1;
"forOfStatement.spaceAround"?: SpaceAround & SpaceAround1;
"forStatement.spaceAround"?: SpaceAround & SpaceAround1;
"ifStatement.spaceAround"?: SpaceAround & SpaceAround1;
"parameters.spaceAround"?: SpaceAround & SpaceAround1;
"switchStatement.spaceAround"?: SpaceAround & SpaceAround1;
"tupleType.spaceAround"?: SpaceAround & SpaceAround1;
"whileStatement.spaceAround"?: SpaceAround & SpaceAround1;
/**
* Whether to add a space surrounding the properties of single line object-like nodes.

@@ -323,3 +349,3 @@ */

/**
* Whether to add a space before the literal in a tagged templte.
* Whether to add a space before the literal in a tagged template.
*/

@@ -451,3 +477,8 @@ "taggedTemplate.spaceBeforeLiteral"?: TaggedTemplateSpaceBeforeLiteral & TaggedTemplateSpaceBeforeLiteral1;

"variableStatement.preferSingleLine"?: PreferSingleLine & PreferSingleLine1;
/**
* If code should be forced to be on a single line if able.
*/
"exportDeclaration.forceSingleLine"?: ForceSingleLine & ForceSingleLine1;
"importDeclaration.forceSingleLine"?: ForceSingleLine & ForceSingleLine1;
[k: string]: unknown;
}

6

package.json
{
"name": "dprint-node",
"version": "1.0.5",
"version": "1.0.6",
"description": "A node API for the dprint TypeScript and JavaScript code formatter",

@@ -25,6 +25,6 @@ "repository": "https://github.com/devongovett/dprint-node",

"devDependencies": {
"@napi-rs/cli": "^2.0.0",
"prettier": "^2.3.0",
"@napi-rs/cli": "^2.11.4",
"prettier": "^2.7.1",
"tiny-benchy": "^2.1.0"
}
}

@@ -27,4 +27,4 @@ # dprint-node

$ node bench.js
prettier 216.33 opts/sec (mean: 4.623ms, stddev: 6.7ms, 50 samples)
dprint 6,694.02 opts/sec (mean: 0.149ms, stddev: 0.094ms, 50 samples)
#1 dprint: 12,173 opts/sec, ±17% (mean: 0.082ms, stddev: 0.051ms, 50 samples)
#2 prettier: 450 opts/sec, ±53% (mean: 2.222ms, stddev: 4.229ms, 50 samples)
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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