dprint-node
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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; | ||
} |
{ | ||
"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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 7 instances in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
25512916
491
1