mirror of
https://github.com/EthanShoeDev/fressh.git
synced 2026-01-11 14:22:51 +00:00
update deps, add abort signals
This commit is contained in:
@@ -33,8 +33,8 @@
|
|||||||
"@react-navigation/bottom-tabs": "^7.4.0",
|
"@react-navigation/bottom-tabs": "^7.4.0",
|
||||||
"@react-navigation/elements": "^2.6.4",
|
"@react-navigation/elements": "^2.6.4",
|
||||||
"@react-navigation/native": "^7.1.8",
|
"@react-navigation/native": "^7.1.8",
|
||||||
"@tanstack/react-form": "^1.19.5",
|
"@tanstack/react-form": "^1.20.0",
|
||||||
"@tanstack/react-query": "^5.87.1",
|
"@tanstack/react-query": "^5.87.4",
|
||||||
"expo": "54.0.7",
|
"expo": "54.0.7",
|
||||||
"expo-clipboard": "~8.0.7",
|
"expo-clipboard": "~8.0.7",
|
||||||
"expo-constants": "~18.0.8",
|
"expo-constants": "~18.0.8",
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
"react-native-screens": "~4.16.0",
|
"react-native-screens": "~4.16.0",
|
||||||
"react-native-web": "~0.21.1",
|
"react-native-web": "~0.21.1",
|
||||||
"react-native-worklets": "~0.5.1",
|
"react-native-worklets": "~0.5.1",
|
||||||
"zod": "^4.1.5"
|
"zod": "^4.1.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@epic-web/config": "^1.21.3",
|
"@epic-web/config": "^1.21.3",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import { useMutation, useQuery } from '@tanstack/react-query';
|
|||||||
import { useRouter } from 'expo-router';
|
import { useRouter } from 'expo-router';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native';
|
import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native';
|
||||||
|
import { AbortSignalTimeout } from '@/lib/utils';
|
||||||
import { useAppForm, useFieldContext } from '../components/form-components';
|
import { useAppForm, useFieldContext } from '../components/form-components';
|
||||||
import { KeyManagerModal } from '../components/key-manager-modal';
|
import { KeyManagerModal } from '../components/key-manager-modal';
|
||||||
import {
|
import {
|
||||||
@@ -45,6 +46,7 @@ const useSshConnMutation = () => {
|
|||||||
onStatusChange: (status) => {
|
onStatusChange: (status) => {
|
||||||
console.log('SSH connection status', status);
|
console.log('SSH connection status', status);
|
||||||
},
|
},
|
||||||
|
abortSignal: AbortSignalTimeout(5_000),
|
||||||
});
|
});
|
||||||
|
|
||||||
await secretsManager.connections.utils.upsertConnection({
|
await secretsManager.connections.utils.upsertConnection({
|
||||||
@@ -57,6 +59,7 @@ const useSshConnMutation = () => {
|
|||||||
onStatusChange: (status) => {
|
onStatusChange: (status) => {
|
||||||
console.log('SSH shell status', status);
|
console.log('SSH shell status', status);
|
||||||
},
|
},
|
||||||
|
abortSignal: AbortSignalTimeout(5_000),
|
||||||
});
|
});
|
||||||
|
|
||||||
const channelId = shellInterface.channelId as number;
|
const channelId = shellInterface.channelId as number;
|
||||||
|
|||||||
@@ -3,3 +3,11 @@ import { QueryClient } from '@tanstack/react-query';
|
|||||||
export const queryClient = new QueryClient();
|
export const queryClient = new QueryClient();
|
||||||
|
|
||||||
export type StrictOmit<T, K extends keyof T> = Omit<T, K>;
|
export type StrictOmit<T, K extends keyof T> = Omit<T, K>;
|
||||||
|
|
||||||
|
export const AbortSignalTimeout = (timeout: number) => {
|
||||||
|
// AbortSignal.timeout is not available as of expo 54
|
||||||
|
// TypeError: AbortSignal.timeout is not a function (it is undefined)
|
||||||
|
const controller = new AbortController();
|
||||||
|
setTimeout(() => controller.abort(), timeout);
|
||||||
|
return controller.signal;
|
||||||
|
}
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
// https://github.com/jhugman/uniffi-bindgen-react-native/pull/198
|
// https://github.com/jhugman/uniffi-bindgen-react-native/pull/198
|
||||||
// https://github.com/microsoft/TypeScript/issues/41883#issuecomment-1758692340
|
// https://github.com/microsoft/TypeScript/issues/41883#issuecomment-1758692340
|
||||||
// TODO: Get this merged
|
// TODO: Get this merged
|
||||||
// https://github.com/EthanShoeDev/uniffi-bindgen-react-native/tree/build-ts
|
// https://github.com/jhugman/uniffi-bindgen-react-native/pull/297
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "fressh",
|
"name": "fressh",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "workspace:*",
|
"version": "workspace:*",
|
||||||
"packageManager": "pnpm@10.16.0",
|
"packageManager": "pnpm@10.16.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=22"
|
"node": ">=22"
|
||||||
|
|||||||
@@ -65,11 +65,11 @@
|
|||||||
"@react-native/babel-preset": "0.81.1",
|
"@react-native/babel-preset": "0.81.1",
|
||||||
"@react-native/eslint-config": "^0.81.1",
|
"@react-native/eslint-config": "^0.81.1",
|
||||||
"@release-it/conventional-changelog": "^10.0.1",
|
"@release-it/conventional-changelog": "^10.0.1",
|
||||||
"@types/jest": "^29.5.14",
|
"@types/jest": "^30.0.0",
|
||||||
"@types/react": "~19.1.12",
|
"@types/react": "~19.1.12",
|
||||||
"del-cli": "^6.0.0",
|
"del-cli": "^6.0.0",
|
||||||
"eslint": "^9.35.0",
|
"eslint": "^9.35.0",
|
||||||
"jest": "^29.7.0",
|
"jest": "^30.1.3",
|
||||||
"prettier": "^3.6.2",
|
"prettier": "^3.6.2",
|
||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-native": "0.81.4",
|
"react-native": "0.81.4",
|
||||||
@@ -82,7 +82,6 @@
|
|||||||
"react": "19.1.0",
|
"react": "19.1.0",
|
||||||
"react-native": "0.81.4"
|
"react-native": "0.81.4"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.15.1",
|
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "react-native",
|
"preset": "react-native",
|
||||||
"modulePathIgnorePatterns": [
|
"modulePathIgnorePatterns": [
|
||||||
|
|||||||
946
pnpm-lock.yaml
generated
946
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user