Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js
-
curl -L -o handleTimestampOption.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/schema/handleTimestampOption.js
364 Bytes
| ; | |
| module.exports = handleTimestampOption; | |
| /*! | |
| * ignore | |
| */ | |
| function handleTimestampOption(arg, prop) { | |
| if (arg == null) { | |
| return null; | |
| } | |
| if (typeof arg === 'boolean') { | |
| return prop; | |
| } | |
| if (typeof arg[prop] === 'boolean') { | |
| return arg[prop] ? prop : null; | |
| } | |
| if (!(prop in arg)) { | |
| return prop; | |
| } | |
| return arg[prop]; | |
| } | |