Skip to content

Commit

Permalink
Update tsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Nov 18, 2024
1 parent 1493fea commit 345d0a3
Show file tree
Hide file tree
Showing 16 changed files with 198 additions and 218 deletions.
21 changes: 10 additions & 11 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,28 @@
"async-mutex": "^0.4.0",
"axios": "^0.26.0",
"bytes": "^3.1.2",
"clean-architecture": "^4.3.8",
"clean-architecture": "^4.3.9",
"codemirror": "6.0.1",
"compare-versions": "^5.0.1",
"evt": "^2.5.7",
"evt": "^2.5.8",
"file-saver": "^2.0.2",
"flexsearch": "0.7.21",
"i18nifty": "^3.2.2",
"i18nifty": "^3.2.3",
"json5": "2.2.3",
"keycloakify": "10.0.0-rc.59",
"memoizee": "^0.4.15",
"memoizee": "^0.4.17",
"minimal-polyfills": "^2.2.3",
"moment": "^2.29.1",
"oidc-spa": "^5.5.3",
"onyxia-ui": "^6.1.1",
"onyxia-ui": "^6.1.2",
"pathe": "^1.1.2",
"powerhooks": "^1.0.18",
"powerhooks": "^1.0.19",
"react": "^18.3.1",
"react-code-blocks": "^0.1.6",
"react-dom": "^18.3.1",
"run-exclusive": "^2.2.19",
"screen-scaler": "^1.3.2",
"tsafe": "^1.8.4",
"screen-scaler": "^1.3.3",
"tsafe": "^1.8.5",
"tss-react": "^4.9.13",
"type-route": "^1.1.0",
"xterm": "^4.17.0",
Expand All @@ -79,11 +79,10 @@
"xterm-addon-webgl": "^0.11.4",
"yaml": "^2.0.1",
"zod": "^3.23.8",
"mui-icons-material-lazy": "^1.0.2"
"mui-icons-material-lazy": "^1.0.3"
},
"resolutions": {
"@codemirror/view": "6.34.1",
"tsafe": "1.7.2"
"@codemirror/view": "6.34.1"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.8.0",
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/adapters/onyxiaApi/onyxiaApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ import {
import axios from "axios";
import type { AxiosResponse, AxiosRequestConfig } from "axios";
import memoize from "memoizee";
import { assert } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, is } from "tsafe/assert";
import { compareVersions } from "compare-versions";
import { exclude } from "tsafe/exclude";
import type { ApiTypes } from "./ApiTypes";
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/adapters/s3Client/s3Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import {
getNewlyRequestedOrCachedTokenFactory,
createSessionStorageTokenPersistance
} from "core/tools/getNewlyRequestedOrCachedToken";
import { assert } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, is } from "tsafe/assert";
import type { Oidc } from "core/ports/Oidc";
import { bucketNameAndObjectNameFromS3Path } from "./utils/bucketNameAndObjectNameFromS3Path";
import { exclude } from "tsafe/exclude";
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/tools/Stringifyable/assignValueAtPath.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { assert } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, is } from "tsafe/assert";
import type { Stringifyable } from "./Stringifyable";

function assign(
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/tools/commandLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import type {
ReturnType as TsafeReturnType,
Parameters as TsafeParameters
} from "tsafe";
import { is } from "tsafe/is";
import { assert } from "tsafe/assert";
import { assert, is } from "tsafe/assert";
import memoize from "memoizee";

export type CommandLogs = {
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/usecases/catalog/thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import type { Thunks } from "core/bootstrap";
import { waitForDebounceFactory } from "core/tools/waitForDebounce";
import { createUsecaseContextApi } from "clean-architecture";
import { actions, name, type State } from "./state";
import { assert } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, is } from "tsafe/assert";
import memoize from "memoizee";
import FlexSearch from "flexsearch";
import { getMatchPositions } from "core/tools/highlightMatches";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { FormFieldGroup, FormField } from "../../formTypes";
import { assert, type Equals } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, type Equals, is } from "tsafe/assert";

type FormFieldLike = {
type: "field";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { FormFieldGroup, FormField } from "../../formTypes";
import { exclude } from "tsafe/exclude";
import { assert, type Equals } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, type Equals, is } from "tsafe/assert";

type FormFieldLike = {
type: "field";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { FormField, FormFieldGroup } from "../../formTypes";
import { assert, type Equals } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, type Equals, is } from "tsafe/assert";
import { getFormFieldAtPath } from "./getFormFieldAtPath";
import {
helmValuesPathToFormFieldPath,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { Stringifyable } from "core/tools/Stringifyable";
import type { JSONSchema } from "core/ports/OnyxiaApi";
import { getValueAtPath } from "core/tools/Stringifyable";
import { assert, type Equals } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, type Equals, is } from "tsafe/assert";
import {
computeHelmValues_rec,
type XOnyxiaContextLike_computeHelmValues_rec,
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/usecases/projectManagement/thunks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assert, type Equals } from "tsafe/assert";
import { assert, type Equals, is } from "tsafe/assert";
import type { Thunks } from "core/bootstrap";
import { join as pathJoin } from "pathe";
import { generateRandomPassword } from "core/tools/generateRandomPassword";
Expand All @@ -7,7 +7,6 @@ import { protectedSelectors } from "./selectors";
import * as userConfigs from "core/usecases/userConfigs";
import { same } from "evt/tools/inDepth";
import { id } from "tsafe/id";
import { is } from "tsafe/is";
import { updateDefaultS3ConfigsAfterPotentialDeletion } from "core/usecases/s3ConfigManagement/decoupledLogic/updateDefaultS3ConfigsAfterPotentialDeletion";
import * as deploymentRegionManagement from "core/usecases/deploymentRegionManagement";
import { getProjectVaultTopDirPath_reserved } from "./decoupledLogic/projectVaultTopDirPath_reserved";
Expand Down
3 changes: 1 addition & 2 deletions web/src/core/usecases/serviceManagement/selectors.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import type { State as RootState } from "core/bootstrap";
import { createSelector } from "clean-architecture";
import { name } from "./state";
import { assert } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, is } from "tsafe/assert";
import { id } from "tsafe/id";
import { exclude } from "tsafe/exclude";
import * as projectManagement from "core/usecases/projectManagement";
Expand Down
3 changes: 1 addition & 2 deletions web/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import {
addParamToUrl,
updateSearchBarUrl
} from "powerhooks/tools/urlSearchParams";
import { assert, type Equals } from "tsafe/assert";
import { assert, type Equals, is } from "tsafe/assert";
import { isAmong } from "tsafe/isAmong";
import { kcEnvNames } from "keycloak-theme/kc.gen";
import { is } from "tsafe/is";
import { typeGuard } from "tsafe/typeGuard";
import { id } from "tsafe/id";
import { objectKeys } from "tsafe/objectKeys";
Expand Down
3 changes: 1 addition & 2 deletions web/src/ui/shared/parseThemedAssetUrl.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { z } from "zod";
import { assert, type Equals } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, type Equals, is } from "tsafe/assert";
import type { ThemedAssetUrl } from "onyxia-ui";
import { getIsJSON5ObjectOrArray } from "ui/tools/getIsJSON5ObjectOrArray";
import JSON5 from "json5";
Expand Down
3 changes: 1 addition & 2 deletions web/src/ui/theme/injectCustomFontFaceIfNotAlreadyDone.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { env } from "env";
import { assert, type Equals } from "tsafe/assert";
import { is } from "tsafe/is";
import { assert, type Equals, is } from "tsafe/assert";
import { exclude } from "tsafe/exclude";

export function injectCustomFontFaceIfNotAlreadyDone(): void {
Expand Down
Loading

0 comments on commit 345d0a3

Please sign in to comment.