@@ -4,6 +4,17 @@ import * as path from "path";
44
55import { Core } from "./core" ;
66
7+ // TODO: Improve code and fix linters
8+ /* eslint-disable
9+ prefer-arrow/prefer-arrow-functions,
10+ @typescript -eslint/no-explicit-any,
11+ @typescript -eslint/no-unsafe-assignment,
12+ @typescript -eslint/no-var-requires,
13+ @typescript -eslint/no-unsafe-member-access,
14+ @typescript -eslint/no-unsafe-argument,
15+ @typescript -eslint/require-await
16+ */
17+
718/**
819 * Find the 1Password shared lib path by asking an the wasm core synchronously.
920 */
@@ -80,7 +91,7 @@ export class SharedLibCore implements Core {
8091 private lib : DesktopIPCClient | null = null ;
8192 private acccountName : string ;
8293
83- constructor ( accountName : string ) {
94+ public constructor ( accountName : string ) {
8495 try {
8596 const libPath = find1PasswordLibPath ( ) ;
8697 const loadedModule = require ( libPath ) ;
@@ -108,7 +119,7 @@ export class SharedLibCore implements Core {
108119 /**
109120 * callSharedLibrary - send string to native function, receive string back.
110121 */
111- callSharedLibrary ( input : string , operation_type : string ) : string {
122+ private callSharedLibrary ( input : string , operation_type : string ) : string {
112123 if ( ! this . lib ) {
113124 throw new Error ( "Native library is not available." ) ;
114125 }
@@ -134,7 +145,7 @@ export class SharedLibCore implements Core {
134145 }
135146
136147 const respString = respBuffer . toString ( "utf8" ) ;
137- const response : SharedLibResponse = JSON . parse ( respString ) ;
148+ const response = JSON . parse ( respString ) as SharedLibResponse ;
138149
139150 if ( response . success ) {
140151 const decodedPayload = Buffer . from ( response . payload , "base64" ) . toString (
0 commit comments