Spaces:
Runtime error
Runtime error
Download static/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js
-
curl -L -o isDefiningProjection.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongoose/lib/helpers/projection/isDefiningProjection.js
435 Bytes
| ; | |
| /*! | |
| * ignore | |
| */ | |
| module.exports = function isDefiningProjection(val) { | |
| if (val == null) { | |
| // `undefined` or `null` become exclusive projections | |
| return true; | |
| } | |
| if (typeof val === 'object') { | |
| // Only cases where a value does **not** define whether the whole projection | |
| // is inclusive or exclusive are `$meta` and `$slice`. | |
| return !('$meta' in val) && !('$slice' in val); | |
| } | |
| return true; | |
| }; | |