New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@biomejs/backend-jsonrpc

Package Overview
Dependencies
Maintainers
4
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biomejs/backend-jsonrpc - npm Package Compare versions

Comparing version 1.2.2 to 1.3.0

2

package.json

@@ -1,1 +0,1 @@

{"name":"@biomejs/backend-jsonrpc","version":"1.2.2","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.2.2","@biomejs/cli-win32-arm64":"1.2.2","@biomejs/cli-darwin-x64":"1.2.2","@biomejs/cli-darwin-arm64":"1.2.2","@biomejs/cli-linux-x64":"1.2.2","@biomejs/cli-linux-arm64":"1.2.2"}}
{"name":"@biomejs/backend-jsonrpc","version":"1.3.0","main":"dist/index.js","scripts":{"test":"vitest","test:ci":"pnpm build && vitest --run","tsc":"tsc --noEmit","build":"tsc"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"npm/backend-jsonrpc"},"author":"Biome Developers and Contributors","bugs":"https://github.com/biomejs/biome/issues","description":"Bindings to the JSON-RPC Workspace API of the Biome daemon","keywords":["JavaScript","TypeScript","format","lint","toolchain"],"engines":{"node":">=14.*"},"license":"MIT","devDependencies":{"@types/node":"^18.7.2","typescript":"^4.8.2","vite":"^3.0.8","vitest":"^0.22.0"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.3.0","@biomejs/cli-win32-arm64":"1.3.0","@biomejs/cli-darwin-x64":"1.3.0","@biomejs/cli-darwin-arm64":"1.3.0","@biomejs/cli-linux-x64":"1.3.0","@biomejs/cli-linux-arm64":"1.3.0"}}
/**
* Gets the path of the Rome binary for the current platform
* Gets the path of the Biome binary for the current platform
*

@@ -4,0 +4,0 @@ * @returns Filesystem path to the binary, or null if no prebuilt distribution exists for the current platform

@@ -30,3 +30,3 @@ import { getCommand } from "./command";

*
* @param command Path to the Rome binary distribution
* @param command Path to the Biome binary distribution
* @returns A Workspace client, or null if the underlying platform is not supported

@@ -33,0 +33,0 @@ */

@@ -32,5 +32,5 @@ import { spawn } from "child_process";

/**
* Ensure the Rome daemon server is running and create a Socket connected to the RPC channel
* Ensure the Biome daemon server is running and create a Socket connected to the RPC channel
*
* @param command Path to the Rome daemon binary
* @param command Path to the Biome daemon binary
* @returns Socket instance connected to the daemon

@@ -37,0 +37,0 @@ */

@@ -99,3 +99,3 @@ interface Socket {

/**
* Implements the Rome daemon server JSON-RPC protocol over a Socket instance
* Implements the Biome daemon server JSON-RPC protocol over a Socket instance
*/

@@ -102,0 +102,0 @@ export class Transport {

@@ -59,2 +59,6 @@ // Generated file, do not edit by hand, see `xtask/codegen`

/**
* A list of granular patterns that should be applied only to a sub set of files
*/
overrides?: Overrides;
/**
* The configuration of the VCS integration

@@ -70,3 +74,3 @@ */

/**
* A list of Unix shell style patterns. Biome tools will ignore files/folders that will match these patterns.
* A list of Unix shell style patterns. Biome will ignore files/folders that will match these patterns.
*/

@@ -79,2 +83,6 @@ ignore?: StringSet;

/**
* A list of Unix shell style patterns. Biome will handle only those files/folders that will match these patterns.
*/
include?: StringSet;
/**
* The maximum allowed size for source code files in bytes. Files above this limit will be ignored for performance reasons. Defaults to 1 MiB

@@ -98,4 +106,8 @@ */

/**
* The size of the indentation, 2 by default
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
*/
include?: StringSet;
/**
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
*/
indentSize?: number;

@@ -107,2 +119,6 @@ /**

/**
* The size of the indentation, 2 by default
*/
indentWidth?: number;
/**
* What's the max width of a line. Defaults to 80.

@@ -155,2 +171,6 @@ */

/**
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
*/
include?: StringSet;
/**
* List of rules

@@ -169,3 +189,10 @@ */

ignore?: StringSet;
/**
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
*/
include?: StringSet;
}
export interface Overrides {
list: OverridePattern[];
}
/**

@@ -222,2 +249,6 @@ * Set of properties to integrate Biome with a VCS software.

/**
* The size of the indentation applied to JavaScript (and its super languages) files. Default to 2.
*/
indentWidth?: number;
/**
* The type of quotes used in JSX. Defaults to double.

@@ -273,2 +304,6 @@ */

/**
* The size of the indentation applied to JSON (and its super languages) files. Default to 2.
*/
indentWidth?: number;
/**
* What's the max width of a line, applied to JSON (and its super languages) files. Defaults to 80.

@@ -286,2 +321,6 @@ */

allowComments?: boolean;
/**
* Allow parsing trailing commas in `.json` files
*/
allowTrailingCommas?: boolean;
}

@@ -306,2 +345,32 @@ export interface Rules {

}
export interface OverridePattern {
/**
* Specific configuration for the Json language
*/
formatter?: OverrideFormatterConfiguration;
/**
* A list of Unix shell style patterns. The formatter will ignore files/folders that will match these patterns.
*/
ignore?: StringSet;
/**
* A list of Unix shell style patterns. The formatter will include files/folders that will match these patterns.
*/
include?: StringSet;
/**
* Specific configuration for the JavaScript language
*/
javascript?: JavascriptConfiguration;
/**
* Specific configuration for the Json language
*/
json?: JsonConfiguration;
/**
* Specific configuration for the Json language
*/
linter?: OverrideLinterConfiguration;
/**
* Specific configuration for the Json language
*/
organizeImports?: OverrideOrganizeImportsConfiguration;
}
export type VcsClientKind = "git";

@@ -446,2 +515,6 @@ export type ArrowParentheses = "always" | "asNeeded";

/**
* Disallow functions that exceed a given Cognitive Complexity score.
*/
noExcessiveCognitiveComplexity?: RuleConfiguration;
/**
* Disallow unnecessary boolean casts

@@ -455,3 +528,3 @@ */

/**
* Disallow unclear usage of multiple space characters in regular expression literals
* Disallow unclear usage of consecutive space characters in regular expression literals
*/

@@ -500,2 +573,6 @@ noMultipleSpacesInRegularExpressionLiterals?: RuleConfiguration;

/**
* Disallow the use of void operators, which is not a familiar operator.
*/
noVoid?: RuleConfiguration;
/**
* Disallow with statements in non-strict contexts.

@@ -614,3 +691,3 @@ */

/**
* Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass
* Ensures the super() constructor is called exactly once on every code path in a class constructor before this is accessed if the class has a superclass
*/

@@ -647,2 +724,10 @@ noUnreachableSuper?: RuleConfiguration;

/**
* Enforce all dependencies are correctly specified in a React hook.
*/
useExhaustiveDependencies?: RuleConfiguration;
/**
* Enforce that all React hooks are being called from the Top Level component functions.
*/
useHookAtTopLevel?: RuleConfiguration;
/**
* Require calls to isNaN() when checking for NaN.

@@ -669,10 +754,6 @@ */

/**
* Disallow the use of spread (...) syntax on accumulators.
* Usually, the definition in the standard library is more precise than what people come up with or the used constant exceeds the maximum precision of the number type.
*/
noAccumulatingSpread?: RuleConfiguration;
noApproximativeNumericConstant?: RuleConfiguration;
/**
* Disallow void type outside of generic or return types.
*/
noConfusingVoidType?: RuleConfiguration;
/**
* Disallow two keys with the same name inside a JSON object.

@@ -682,22 +763,38 @@ */

/**
* Disallow functions that exceed a given complexity score.
* Disallow empty block statements and static blocks.
*/
noExcessiveComplexity?: RuleConfiguration;
noEmptyBlockStatements?: RuleConfiguration;
/**
* Disallow fallthrough of switch clauses.
* Disallow empty character classes in regular expression literals.
*/
noFallthroughSwitchClause?: RuleConfiguration;
noEmptyCharacterClassInRegex?: RuleConfiguration;
/**
* Use Number.isFinite instead of global isFinite.
* Enforce that non-interactive ARIA roles are not assigned to interactive HTML elements.
*/
noGlobalIsFinite?: RuleConfiguration;
noInteractiveElementToNoninteractiveRole?: RuleConfiguration;
/**
* Use Number.isNaN instead of global isNaN.
* Disallow new operators with global non-constructor functions.
*/
noGlobalIsNan?: RuleConfiguration;
noInvalidNewBuiltin?: RuleConfiguration;
/**
* Disallow the use of void operators, which is not a familiar operator.
* Enforce proper usage of new and constructor.
*/
noVoid?: RuleConfiguration;
noMisleadingInstantiator?: RuleConfiguration;
/**
* Disallow shorthand assign when variable appears on both sides.
*/
noMisrefactoredShorthandAssign?: RuleConfiguration;
/**
* Disallow unused imports.
*/
noUnusedImports?: RuleConfiguration;
/**
* Disallow else block when the if block breaks early.
*/
noUselessElse?: RuleConfiguration;
/**
* Disallow unnecessary nested block statements.
*/
noUselessLoneBlockStatements?: RuleConfiguration;
/**
* It enables the recommended rules for this group

@@ -707,2 +804,6 @@ */

/**
* Enforce that tabIndex is assigned to non-interactive HTML elements with aria-activedescendant.
*/
useAriaActivedescendantWithTabindex?: RuleConfiguration;
/**
* Use arrow functions over function expressions.

@@ -712,10 +813,6 @@ */

/**
* Enforce using else if instead of nested if in else clauses.
* Enforce the use of as const over literal type and type annotation.
*/
useCollapsedElseIf?: RuleConfiguration;
useAsConstAssertion?: RuleConfiguration;
/**
* Enforce all dependencies are correctly specified.
*/
useExhaustiveDependencies?: RuleConfiguration;
/**
* Enforce the use of import type when an import only has specifiers with type qualifier.

@@ -725,6 +822,2 @@ */

/**
* Enforce that all React hooks are being called from the Top Level component functions.
*/
useHookAtTopLevel?: RuleConfiguration;
/**
* Disallows package private imports.

@@ -734,5 +827,5 @@ */

/**
* Use Array.isArray() instead of instanceof Array.
* Require assignment operator shorthand where possible.
*/
useIsArray?: RuleConfiguration;
useShorthandAssign?: RuleConfiguration;
}

@@ -748,2 +841,6 @@ /**

/**
* Disallow the use of spread (...) syntax on accumulators.
*/
noAccumulatingSpread?: RuleConfiguration;
/**
* Disallow the use of the delete operator.

@@ -807,3 +904,3 @@ */

/**
* Disallow negation in the condition of an if statement if it has an else clause
* Disallow negation in the condition of an if statement if it has an else clause.
*/

@@ -844,6 +941,10 @@ noNegationElse?: RuleConfiguration;

/**
* Requires following curly brace conventions. JavaScript allows the omission of curly braces when a block contains only one statement. However, it is considered by many to be best practice to never omit curly braces around blocks, even when they are optional, because it can lead to bugs and reduces code clarity.
* Requires following curly brace conventions.
*/
useBlockStatements?: RuleConfiguration;
/**
* Enforce using else if instead of nested if in else clauses.
*/
useCollapsedElseIf?: RuleConfiguration;
/**
* Require const declarations for variables that are never reassigned after declared.

@@ -901,3 +1002,3 @@ */

/**
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed
* Enforce the use of while loops instead of for loops when the initializer and update expressions are not needed.
*/

@@ -947,2 +1048,6 @@ useWhile?: RuleConfiguration;

/**
* Disallow void type outside of generic or return types.
*/
noConfusingVoidType?: RuleConfiguration;
/**
* Disallow the use of console.log

@@ -968,3 +1073,3 @@ */

/**
* Disallow duplicate case labels. If a switch statement has duplicate test expressions in case clauses, it is likely that a programmer copied a case clause but forgot to change the test expression.
* Disallow duplicate case labels.
*/

@@ -981,3 +1086,3 @@ noDuplicateCase?: RuleConfiguration;

/**
* Prevents object literals having more than one property declaration for the same name. If an object property with the same name is defined multiple times (except when combining a getter with a setter), only the last definition makes it into the object and previous definitions are ignored, which is likely a mistake.
* Prevents object literals having more than one property declaration for the same name.
*/

@@ -1002,2 +1107,6 @@ noDuplicateObjectKeys?: RuleConfiguration;

/**
* Disallow fallthrough of switch clauses.
*/
noFallthroughSwitchClause?: RuleConfiguration;
/**
* Disallow reassigning function declarations.

@@ -1007,2 +1116,10 @@ */

/**
* Use Number.isFinite instead of global isFinite.
*/
noGlobalIsFinite?: RuleConfiguration;
/**
* Use Number.isNaN instead of global isNaN.
*/
noGlobalIsNan?: RuleConfiguration;
/**
* Disallow assigning to imported bindings

@@ -1060,2 +1177,6 @@ */

/**
* Use Array.isArray() instead of instanceof Array.
*/
useIsArray?: RuleConfiguration;
/**
* Require using the namespace keyword over the module keyword to declare TypeScript namespaces.

@@ -1069,2 +1190,41 @@ */

}
export interface OverrideFormatterConfiguration {
enabled?: boolean;
/**
* Stores whether formatting should be allowed to proceed if a given file has syntax errors
*/
formatWithErrors?: boolean;
/**
* The size of the indentation, 2 by default (deprecated, use `indent-width`)
*/
indentSize?: number;
/**
* The indent style.
*/
indentStyle?: PlainIndentStyle;
/**
* The size of the indentation, 2 by default
*/
indentWidth?: number;
/**
* What's the max width of a line. Defaults to 80.
*/
lineWidth?: LineWidth;
}
export interface OverrideLinterConfiguration {
/**
* if `false`, it disables the feature and the linter won't be executed. `true` by default
*/
enabled?: boolean;
/**
* List of rules
*/
rules?: Rules;
}
export interface OverrideOrganizeImportsConfiguration {
/**
* if `false`, it disables the feature and the linter won't be executed. `true` by default
*/
enabled?: boolean;
}
export type RuleConfiguration = RulePlainConfiguration | RuleWithOptions;

@@ -1083,3 +1243,3 @@ export type RulePlainConfiguration = "warn" | "error" | "off";

/**
* Options for the rule `noNestedModuleImports`.
* Options for the rule `noExcessiveCognitiveComplexity`.
*/

@@ -1239,3 +1399,2 @@ export interface ComplexityOptions {

| "lint/a11y/useAnchorContent"
| "lint/a11y/useValidAriaValues"
| "lint/a11y/useAriaPropsForRole"

@@ -1251,4 +1410,6 @@ | "lint/a11y/useButtonType"

| "lint/a11y/useValidAriaProps"
| "lint/a11y/useValidAriaValues"
| "lint/a11y/useValidLang"
| "lint/complexity/noBannedTypes"
| "lint/complexity/noExcessiveCognitiveComplexity"
| "lint/complexity/noExtraBooleanCast"

@@ -1267,2 +1428,3 @@ | "lint/complexity/noForEach"

| "lint/complexity/noUselessTypeConstraint"
| "lint/complexity/noVoid"
| "lint/complexity/noWith"

@@ -1300,21 +1462,26 @@ | "lint/complexity/useFlatMap"

| "lint/correctness/noVoidTypeReturn"
| "lint/correctness/useExhaustiveDependencies"
| "lint/correctness/useHookAtTopLevel"
| "lint/correctness/useIsNan"
| "lint/correctness/useValidForDirection"
| "lint/correctness/useYield"
| "lint/nursery/noAccumulatingSpread"
| "lint/nursery/noConfusingVoidType"
| "lint/nursery/noApproximativeNumericConstant"
| "lint/nursery/noDuplicateJsonKeys"
| "lint/nursery/noExcessiveComplexity"
| "lint/nursery/noFallthroughSwitchClause"
| "lint/nursery/noGlobalIsFinite"
| "lint/nursery/noGlobalIsNan"
| "lint/nursery/noVoid"
| "lint/nursery/noEmptyBlockStatements"
| "lint/nursery/noEmptyCharacterClassInRegex"
| "lint/nursery/noInteractiveElementToNoninteractiveRole"
| "lint/nursery/noInvalidNewBuiltin"
| "lint/nursery/noMisleadingInstantiator"
| "lint/nursery/noMisrefactoredShorthandAssign"
| "lint/nursery/noUnusedImports"
| "lint/nursery/noUselessElse"
| "lint/nursery/noUselessLoneBlockStatements"
| "lint/nursery/useAriaActivedescendantWithTabindex"
| "lint/nursery/useArrowFunction"
| "lint/nursery/useAsConstAssertion"
| "lint/nursery/useBiomeSuppressionComment"
| "lint/nursery/useCollapsedElseIf"
| "lint/nursery/useExhaustiveDependencies"
| "lint/nursery/useGroupedTypeImport"
| "lint/nursery/useHookAtTopLevel"
| "lint/nursery/useImportRestrictions"
| "lint/nursery/useIsArray"
| "lint/nursery/useShorthandAssign"
| "lint/performance/noAccumulatingSpread"
| "lint/performance/noDelete"

@@ -1337,2 +1504,3 @@ | "lint/security/noDangerouslySetInnerHtml"

| "lint/style/useBlockStatements"
| "lint/style/useCollapsedElseIf"
| "lint/style/useConst"

@@ -1360,2 +1528,3 @@ | "lint/style/useDefaultParameterLast"

| "lint/suspicious/noConfusingLabels"
| "lint/suspicious/noConfusingVoidType"
| "lint/suspicious/noConsoleLog"

@@ -1374,3 +1543,6 @@ | "lint/suspicious/noConstEnum"

| "lint/suspicious/noExtraNonNullAssertion"
| "lint/suspicious/noFallthroughSwitchClause"
| "lint/suspicious/noFunctionAssign"
| "lint/suspicious/noGlobalIsFinite"
| "lint/suspicious/noGlobalIsNan"
| "lint/suspicious/noImportAssign"

@@ -1388,2 +1560,3 @@ | "lint/suspicious/noLabelVar"

| "lint/suspicious/useGetterReturn"
| "lint/suspicious/useIsArray"
| "lint/suspicious/useNamespaceKeyword"

@@ -1484,2 +1657,4 @@ | "lint/suspicious/useValidTypeof"

| "Info"
| "Debug"
| "Trace"
| "Inverse"

@@ -1486,0 +1661,0 @@ | { Hyperlink: { href: string } };

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