Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@ungap/structured-clone/esm/json.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40ungap/structured-clone/esm/json.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@ungap/structured-clone/esm/json.js
-
curl -L -o json.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40ungap/structured-clone/esm/json.js
690 Bytes
| /*! (c) Andrea Giammarchi - ISC */ | |
| import {deserialize} from './deserialize.js'; | |
| import {serialize} from './serialize.js'; | |
| const {parse: $parse, stringify: $stringify} = JSON; | |
| const options = {json: true, lossy: true}; | |
| /** | |
| * Revive a previously stringified structured clone. | |
| * @param {string} str previously stringified data as string. | |
| * @returns {any} whatever was previously stringified as clone. | |
| */ | |
| export const parse = str => deserialize($parse(str)); | |
| /** | |
| * Represent a structured clone value as string. | |
| * @param {any} any some clone-able value to stringify. | |
| * @returns {string} the value stringified. | |
| */ | |
| export const stringify = any => $stringify(serialize(any, options)); | |