Skip to content
Snippets Groups Projects
Commit 385a6c85 authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Replace rfdc with structuredClone

parent 78667ccd
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
"prismjs": "^1.29.0",
"rfdc": "^1.4.1",
"svelte": "^5.0.5",
"svelte-check": "^4.0.5",
"svelte-i18n": "^4.0.0",
......@@ -4702,13 +4701,6 @@
"node": ">=0.10.0"
}
},
"node_modules/rfdc": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz",
"integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==",
"dev": true,
"license": "MIT"
},
"node_modules/rollup": {
"version": "4.24.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz",
......
......@@ -50,7 +50,6 @@
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "^0.6.5",
"prismjs": "^1.29.0",
"rfdc": "^1.4.1",
"svelte": "^5.0.5",
"svelte-check": "^4.0.5",
"svelte-i18n": "^4.0.0",
......
......@@ -16,7 +16,6 @@
type SingleAmountScaleParameter,
} from "@tax-benefit/openfisca-json-model"
import { Button } from "flowbite-svelte"
import rfdc from "rfdc"
import { page } from "$app/stores"
import ReferencesEdit from "$lib/components/parameters/ReferencesEdit.svelte"
......@@ -43,7 +42,6 @@
showErrors,
}: Props = $props()
const deepCopy = rfdc()
let instantReferencesAndScaleArray = $state(
buildInstantReferencesAndScaleArray(parameter),
)
......@@ -68,7 +66,7 @@
threshold: { value: null },
},
]
: deepCopy(instantReferencesAndScaleArray[0][1])
: structuredClone(instantReferencesAndScaleArray[0][1])
instantReferencesAndScaleArray = [
{
instant: new Date().toISOString().split("T")[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment