Spaces:
Configuration error
Configuration error
Download node_modules/es-abstract/helpers/fromPropertyDescriptor.js from W404NET/Telegram-Chat-Bot: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/helpers/fromPropertyDescriptor.js
- Command line
-
hf download hf://spaces/W404NET/Telegram-Chat-Bot/node_modules/es-abstract/helpers/fromPropertyDescriptor.js
-
curl -L -o fromPropertyDescriptor.js https://huggingface.co/spaces/W404NET/Telegram-Chat-Bot/resolve/main/node_modules/es-abstract/helpers/fromPropertyDescriptor.js
580 Bytes
| ; | |
| module.exports = function fromPropertyDescriptor(Desc) { | |
| if (typeof Desc === 'undefined') { | |
| return Desc; | |
| } | |
| var obj = {}; | |
| if ('[[Value]]' in Desc) { | |
| obj.value = Desc['[[Value]]']; | |
| } | |
| if ('[[Writable]]' in Desc) { | |
| obj.writable = !!Desc['[[Writable]]']; | |
| } | |
| if ('[[Get]]' in Desc) { | |
| obj.get = Desc['[[Get]]']; | |
| } | |
| if ('[[Set]]' in Desc) { | |
| obj.set = Desc['[[Set]]']; | |
| } | |
| if ('[[Enumerable]]' in Desc) { | |
| obj.enumerable = !!Desc['[[Enumerable]]']; | |
| } | |
| if ('[[Configurable]]' in Desc) { | |
| obj.configurable = !!Desc['[[Configurable]]']; | |
| } | |
| return obj; | |
| }; | |