From 6441cbc040f20ad5d8ffadfbce12107373a31db3 Mon Sep 17 00:00:00 2001 From: Andreas Coroiu Date: Thu, 10 Oct 2024 10:40:57 +0200 Subject: [PATCH] fix: node linting I really shouldn't need to be fixing this --- crates/bitwarden-napi/src-ts/bitwarden_client/index.ts | 10 +++++----- crates/bitwarden-napi/src-ts/index.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/bitwarden-napi/src-ts/bitwarden_client/index.ts b/crates/bitwarden-napi/src-ts/bitwarden_client/index.ts index 3a3765a12..2e0fa63cc 100644 --- a/crates/bitwarden-napi/src-ts/bitwarden_client/index.ts +++ b/crates/bitwarden-napi/src-ts/bitwarden_client/index.ts @@ -1,5 +1,5 @@ -import * as rust from "../../binding"; -import { LogLevel } from "../../binding"; +import * as rust from '../../binding'; +import { LogLevel } from '../../binding'; import { Convert, ClientSettings, @@ -11,7 +11,7 @@ import { SecretsDeleteResponse, SecretsResponse, SecretsSyncResponse, -} from "./schemas"; +} from './schemas'; function handleResponse(response: { success: boolean; @@ -19,11 +19,11 @@ function handleResponse(response: { data?: T | null; }): T { if (!response.success) { - throw new Error(response.errorMessage || ""); + throw new Error(response.errorMessage || ''); } if (response.data === null) { - throw new Error(response.errorMessage || "SDK response data is null"); + throw new Error(response.errorMessage || 'SDK response data is null'); } return response.data as T; diff --git a/crates/bitwarden-napi/src-ts/index.ts b/crates/bitwarden-napi/src-ts/index.ts index 36b0649ed..f0bcb892b 100644 --- a/crates/bitwarden-napi/src-ts/index.ts +++ b/crates/bitwarden-napi/src-ts/index.ts @@ -1,3 +1,3 @@ -export * from "./bitwarden_client/index"; -export * from "./bitwarden_client/schemas"; -export { LogLevel } from "../binding"; +export * from './bitwarden_client/index'; +export * from './bitwarden_client/schemas'; +export { LogLevel } from '../binding';