Download node_modules/@tanstack/query-core/build/legacy/environmentManager.cjs from metarm/QMetaRam: direct link, hf CLI and curl.
- Browser
- Download file 694 Bytes
-
https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40tanstack/query-core/build/legacy/environmentManager.cjs
- Command line
-
hf download hf://metarm/QMetaRam/node_modules/@tanstack/query-core/build/legacy/environmentManager.cjs
-
curl -L -o environmentManager.cjs https://huggingface.co/metarm/QMetaRam/resolve/main/node_modules/%40tanstack/query-core/build/legacy/environmentManager.cjs
694 Bytes
| Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | |
| const require_utils = require("./utils.cjs"); | |
| //#region src/environmentManager.ts | |
| let isServerFn = () => require_utils.isServer; | |
| /** | |
| * Returns whether the current runtime should be treated as a server environment. | |
| */ | |
| const isServer = () => isServerFn(); | |
| /** | |
| * Manages environment detection used by TanStack Query internals. | |
| */ | |
| const environmentManager = { | |
| isServer, | |
| /** | |
| * Overrides the server check globally. | |
| */ | |
| setIsServer(isServerValue) { | |
| isServerFn = isServerValue; | |
| } | |
| }; | |
| //#endregion | |
| exports.environmentManager = environmentManager; | |
| exports.isServer = isServer; | |
| //# sourceMappingURL=environmentManager.cjs.map |