Download frontend/node_modules/semver/functions/inc.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/functions/inc.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/semver/functions/inc.js
-
curl -L -o inc.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/semver/functions/inc.js
478 Bytes
| const SemVer = require('../classes/semver') | |
| const inc = (version, release, options, identifier, identifierBase) => { | |
| if (typeof (options) === 'string') { | |
| identifierBase = identifier | |
| identifier = options | |
| options = undefined | |
| } | |
| try { | |
| return new SemVer( | |
| version instanceof SemVer ? version.version : version, | |
| options | |
| ).inc(release, identifier, identifierBase).version | |
| } catch (er) { | |
| return null | |
| } | |
| } | |
| module.exports = inc | |