Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/ws-npm-8.20.0-b8684d1fe3-2b31d24a53.zip
Binary file not shown.
Binary file not shown.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
"@types/react-native-vector-icons/@types/react": "17.0.2",
"@types/react-native/@types/react": "17.0.2",
"@types/hoist-non-react-statics/@types/react": "17.0.2",
"node-abi": "^4.2.0"
"node-abi": "^4.2.0",
"@typescript-eslint/eslint-plugin": "8.32.1",
"@typescript-eslint/parser": "8.32.1"
},
"dependencies": {
"@standardnotes/snjs": "workspace:*"
Expand All @@ -61,11 +63,11 @@
"@lerna-lite/run": "^4.10.5",
"@lerna-lite/version": "^4.10.5",
"@standardnotes/config": "^2.4.3",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@typescript-eslint/eslint-plugin": "^8.32.0",
"@typescript-eslint/parser": "^8.32.0",
"changelog-parser": "^2.8.1",
"css-loader": "^6.8.1",
"eslint": "^8.45.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.0.0",
"lint-staged": "^13.2.3",
"npm-check-updates": "^16.10.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"eslint-plugin-prettier": "*",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"typescript": "*"
"typescript": "5.8.3"
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/api/src/Domain/Client/Auth/AuthApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AuthApiService implements AuthApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthApiOperations.GenerateRecoveryCodes, false)
Expand All @@ -64,7 +64,7 @@ export class AuthApiService implements AuthApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthApiOperations.GetRecoveryKeyParams, false)
Expand Down Expand Up @@ -95,7 +95,7 @@ export class AuthApiService implements AuthApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthApiOperations.SignInWithRecoveryCodes, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class AuthenticatorApiService implements AuthenticatorApiServiceInterface
const response = await this.authenticatorServer.list({})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.List, false)
Expand All @@ -51,7 +51,7 @@ export class AuthenticatorApiService implements AuthenticatorApiServiceInterface
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.Delete, false)
Expand All @@ -69,7 +69,7 @@ export class AuthenticatorApiService implements AuthenticatorApiServiceInterface
const response = await this.authenticatorServer.generateRegistrationOptions()

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.GenerateRegistrationOptions, false)
Expand All @@ -95,7 +95,7 @@ export class AuthenticatorApiService implements AuthenticatorApiServiceInterface
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.VerifyRegistrationResponse, false)
Expand All @@ -117,7 +117,7 @@ export class AuthenticatorApiService implements AuthenticatorApiServiceInterface
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(AuthenticatorApiOperations.GenerateAuthenticationOptions, false)
Expand Down
6 changes: 3 additions & 3 deletions packages/api/src/Domain/Client/Revision/RevisionApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class RevisionApiService implements RevisionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(RevisionApiOperations.List, false)
Expand All @@ -50,7 +50,7 @@ export class RevisionApiService implements RevisionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(RevisionApiOperations.Get, false)
Expand All @@ -71,7 +71,7 @@ export class RevisionApiService implements RevisionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(RevisionApiOperations.Delete, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class SubscriptionApiService implements SubscriptionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(SubscriptionApiOperations.ListingInvites, false)
Expand All @@ -64,7 +64,7 @@ export class SubscriptionApiService implements SubscriptionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(SubscriptionApiOperations.CancelingInvite, false)
Expand All @@ -85,7 +85,7 @@ export class SubscriptionApiService implements SubscriptionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(SubscriptionApiOperations.Inviting, false)
Expand All @@ -105,7 +105,7 @@ export class SubscriptionApiService implements SubscriptionApiServiceInterface {
})

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
} finally {
this.operationsInProgress.set(SubscriptionApiOperations.AcceptingInvite, false)
Expand Down
8 changes: 4 additions & 4 deletions packages/api/src/Domain/Client/User/UserApiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class UserApiService implements UserApiServiceInterface {
this.unlockOperation(UserApiOperations.DeletingAccount)

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
}
}
Expand All @@ -64,7 +64,7 @@ export class UserApiService implements UserApiServiceInterface {
this.unlockOperation(UserApiOperations.SubmittingRequest)

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
}
}
Expand All @@ -91,7 +91,7 @@ export class UserApiService implements UserApiServiceInterface {
this.unlockOperation(UserApiOperations.Registering)

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericRegistrationFail)
}
}
Expand All @@ -108,7 +108,7 @@ export class UserApiService implements UserApiServiceInterface {
this.unlockOperation(UserApiOperations.UpdatingUser)

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class WebSocketApiService implements WebSocketApiServiceInterface {
this.operationsInProgress.set(WebSocketApiOperations.CreatingConnectionToken, false)

return response
} catch (error) {
} catch {
throw new ApiCallError(ErrorMessage.GenericFail)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line @typescript-eslint/ban-types
export type GetOutboundAsymmetricMessagesRequestParams = {}
export type GetOutboundAsymmetricMessagesRequestParams = Record<string, never>
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line @typescript-eslint/ban-types
export type GetUserAsymmetricMessagesRequestParams = {}
export type GetUserAsymmetricMessagesRequestParams = Record<string, never>
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line @typescript-eslint/ban-types
export type GetOutboundUserInvitesRequestParams = {}
export type GetOutboundUserInvitesRequestParams = Record<string, never>
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line @typescript-eslint/ban-types
export type GetUserInvitesRequestParams = {}
export type GetUserInvitesRequestParams = Record<string, never>
2 changes: 1 addition & 1 deletion packages/clipper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"eslint": "*",
"eslint-config-prettier": "^8.9.0",
"ts-loader": "^9.4.2",
"typescript": "*",
"typescript": "5.8.3",
"web-ext": "^7.5.0",
"webextension-polyfill": "^0.10.0",
"webpack": "*"
Expand Down
1 change: 1 addition & 0 deletions packages/desktop/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
rules: {
'no-console': ['warn', { allow: ['warn', 'error'] }],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-require-imports': 'off',
},
globals: {
zip: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (userDataPathIndex > 0) {
/** Make sure the path is actually a writeable folder */
try {
fs.closeSync(fs.openSync(path.join(userDataPath, 'sn-test-file'), 'w'))
} catch (e) {
} catch {
console.error('Failed to write to provided user data path. Aborting')
app.exit(1)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop/app/javascripts/Main/File/FilesManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class FilesManager implements FilesManagerInterface {
try {
const data = await fs.promises.readFile(filepath, 'utf8')
return JSON.parse(data)
} catch (error) {
} catch {
return undefined
}
}
Expand Down Expand Up @@ -286,7 +286,7 @@ export class FilesManager implements FilesManagerInterface {
async moveFile(source: PathLike, destination: PathLike): Promise<void> {
try {
await fs.promises.rename(source, destination)
} catch (_error) {
} catch {
/** Fall back to copying and then deleting. */
await fs.promises.copyFile(source, destination, fs.constants.COPYFILE_FICLONE_FORCE)
await fs.promises.unlink(source)
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/app/javascripts/Main/Keychain/Keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function ensureKeychainAccess(store: Store): Promise<BrowserWindow | undef
try {
await getKeychainValue()
store.set(StoreKeys.UseNativeKeychain, true)
} catch (_) {
} catch {
/** Can't access keychain. */
if (keychainAccessIsUserConfigurable) {
return askForKeychainAccess(store)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function getJSON<T>(url: string): Promise<T | undefined> {
try {
const parsed = JSON.parse(data)
resolve(parsed)
} catch (error) {
} catch {
resolve(undefined)
}
})
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop/app/javascripts/Main/Types/Paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export const Paths = {
get homeDir(): string | undefined {
try {
return app.getPath('home')
} catch (error) {
} catch {
return undefined
}
},
get documentsDir(): string | undefined {
try {
return app.getPath('documents')
} catch (error) {
} catch {
return undefined
}
},
Expand Down
4 changes: 2 additions & 2 deletions packages/desktop/app/javascripts/Main/Window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function fileUrlsAreEqual(a: string, b: string): boolean {
bPath = lowercaseDriveLetter(bPath)
}
return aPath === bPath
} catch (error) {
} catch {
return false
}
}
Expand All @@ -275,7 +275,7 @@ async function getPreviousWindowPosition() {
let position: WindowPosition
try {
position = JSON.parse(await fs.promises.readFile(path.join(Paths.userDataDir, 'window-position.json'), 'utf8'))
} catch (e) {
} catch {
return {
bounds: {
width: WINDOW_DEFAULT_WIDTH,
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"terser-webpack-plugin": "^5.3.6",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"typescript": "*",
"typescript": "5.8.3",
"webpack": "*",
"webpack-merge": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"jest": "^29.3.1",
"prettier": "*",
"ts-jest": "^29.0.3",
"typescript": "*"
"typescript": "5.8.3"
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class AsymmetricDecrypt004 {
signaturePublicKey: additionalData.signingData.publicKey,
senderPublicKey: additionalData.senderPublicKey,
}
} catch (error) {
} catch {
return null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class AsymmetricDecryptOwnMessage004 implements SyncUseCaseInterface<Asym
signaturePublicKey: additionalData.signingData.publicKey,
senderPublicKey: additionalData.senderPublicKey,
})
} catch (error) {
} catch {
return Result.fail('Could not decrypt message')
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class AsymmetricSignatureVerificationDetached004 {
signaturePublicKey: additionalData.signingData.publicKey,
senderPublicKey: additionalData.senderPublicKey,
}
} catch (error) {
} catch {
return {
signatureVerified: false,
}
Expand Down
2 changes: 1 addition & 1 deletion packages/features/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"eslint-plugin-prettier": "*",
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"typescript": "*"
"typescript": "5.8.3"
}
}
2 changes: 1 addition & 1 deletion packages/filepicker/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"babel-loader": "^8.2.3",
"html-webpack-plugin": "^5.5.0",
"ts-loader": "^9.2.6",
"typescript": "*",
"typescript": "5.8.3",
"typescript-eslint": "0.0.1-alpha.0",
"webpack": "*",
"webpack-cli": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/filepicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"jest": "^29.3.1",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "*"
"typescript": "5.8.3"
},
"dependencies": {
"@standardnotes/common": "^1.50.0",
Expand Down
Loading
Loading