Download node_modules/@babel/runtime/helpers/esm/defineProperty.js from sweet2004/bot: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40babel/runtime/helpers/esm/defineProperty.js
- Command line
-
hf download hf://spaces/sweet2004/bot/node_modules/@babel/runtime/helpers/esm/defineProperty.js
-
curl -L -o defineProperty.js https://huggingface.co/spaces/sweet2004/bot/resolve/main/node_modules/%40babel/runtime/helpers/esm/defineProperty.js
344 Bytes
| import toPropertyKey from "./toPropertyKey.js"; | |
| export default function _defineProperty(obj, key, value) { | |
| key = toPropertyKey(key); | |
| if (key in obj) { | |
| Object.defineProperty(obj, key, { | |
| value: value, | |
| enumerable: true, | |
| configurable: true, | |
| writable: true | |
| }); | |
| } else { | |
| obj[key] = value; | |
| } | |
| return obj; | |
| } |