Spaces:
Sleeping
Sleeping
Download frontend/node_modules/@babel/eslint-parser/lib/worker/index.cjs from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40babel/eslint-parser/lib/worker/index.cjs
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@babel/eslint-parser/lib/worker/index.cjs
-
curl -L -o index.cjs https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40babel/eslint-parser/lib/worker/index.cjs
1.31 kB
| ; | |
| function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); } | |
| function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; } | |
| const babel = require("./babel-core.cjs"); | |
| const handleMessage = require("./handle-message.cjs"); | |
| const worker_threads = require("worker_threads"); | |
| worker_threads.parentPort.addListener("message", _asyncToGenerator(function* ({ | |
| signal, | |
| port, | |
| action, | |
| payload | |
| }) { | |
| let response; | |
| try { | |
| if (babel.init) yield babel.init; | |
| response = { | |
| result: yield handleMessage(action, payload) | |
| }; | |
| } catch (error) { | |
| response = { | |
| error, | |
| errorData: Object.assign({}, error) | |
| }; | |
| } | |
| try { | |
| port.postMessage(response); | |
| } catch (_unused) { | |
| port.postMessage({ | |
| error: new Error("Cannot serialize worker response") | |
| }); | |
| } finally { | |
| port.close(); | |
| Atomics.store(signal, 0, 1); | |
| Atomics.notify(signal, 0); | |
| } | |
| })); | |
| //# sourceMappingURL=index.cjs.map | |