Skip to content

Commit 0e9f61e

Browse files
committed
Update tsafe
1 parent fcc1fe8 commit 0e9f61e

File tree

6 files changed

+9
-13
lines changed

6 files changed

+9
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
],
6464
"homepage": "https://github.com/codegouvfr/react-dsfr",
6565
"dependencies": {
66-
"tsafe": "^1.7.2",
66+
"tsafe": "^1.8.5",
6767
"yargs-parser": "^21.1.1"
6868
},
6969
"peerDependencies": {

src/SearchBar/SearchButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import React, { useEffect, useState, useReducer } from "react";
44
import { useTranslation } from "./SearchBar";
55
import { fr } from "../fr";
6-
import { assert } from "tsafe/assert";
7-
import { is } from "tsafe/is";
6+
import { assert, is } from "tsafe/assert";
87
import { useConstCallback } from "../tools/powerhooks/useConstCallback";
98
import { observeInputValue } from "../tools/observeInputValue";
109
import { id } from "tsafe/id";

src/consentManagement/processConsentChanges.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { useEffect } from "react";
22
import { deepCopy } from "../tools/deepCopy";
33
import type { FinalityConsent } from "./types";
4-
import { assert } from "tsafe/assert";
5-
import { is } from "tsafe/is";
4+
import { assert, is } from "tsafe/assert";
65
import { useConstCallback } from "../tools/powerhooks/useConstCallback";
76

87
export type ConsentCallback<Finality extends string> = (params: {

src/link.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import React, { type ReactNode, type DetailedHTMLProps, type AnchorHTMLAttributes } from "react";
22
import { fr } from "./fr";
33
import { cx } from "./tools/cx";
4-
import { assert } from "tsafe/assert";
5-
import { is } from "tsafe/is";
4+
import { assert, is } from "tsafe/assert";
65
import type { UnpackProps } from "./tools/UnpackProps";
76

87
type HTMLAnchorProps = DetailedHTMLProps<

src/tools/StatefulObservable/StatefulObservable.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { assert } from "tsafe/assert";
2-
import { is } from "tsafe/is";
1+
import { assert, is } from "tsafe/assert";
32

43
export type StatefulObservable<T> = {
54
current: T;

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12282,10 +12282,10 @@ tsafe@^1.4.1:
1228212282
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.4.1.tgz#59cdad8ac41babf88e56dcd1a683ae2fb145d059"
1228312283
integrity sha512-3IDBalvf6SyvHFS14UiwCWzqdSdo+Q0k2J7DZyJYaHW/iraW9DJpaBKDJpry3yQs3o/t/A+oGaRW3iVt2lKxzA==
1228412284

12285-
tsafe@^1.7.2:
12286-
version "1.7.2"
12287-
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.7.2.tgz#0f63d414876287ad01b135f832722f93e22da374"
12288-
integrity sha512-dAPfQLhCfCRre5qs+Z5Q2a7s2CV7RxffZUmvj7puGaePYjECzWREJFd3w4XSFe/T5tbxgowfItA/JSSZ6Ma3dA==
12285+
tsafe@^1.8.5:
12286+
version "1.8.5"
12287+
resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.8.5.tgz#cdf9fa3111974ac480d7ee519f8241815e5d22ea"
12288+
integrity sha512-LFWTWQrW6rwSY+IBNFl2ridGfUzVsPwrZ26T4KUJww/py8rzaQ/SY+MIz6YROozpUCaRcuISqagmlwub9YT9kw==
1228912289

1229012290
tslib@^1.13.0, tslib@^1.8.1, tslib@^1.9.3:
1229112291
version "1.14.1"

0 commit comments

Comments
 (0)