MCPcopy Index your code
hub / github.com/parse-community/parse-server / _validateVersionSyntax

Method _validateVersionSyntax

ci/CiVersionCheck.js:210–216  ·  view source on GitHub ↗

* This validates that the given versions strictly follow semver * syntax. * @param {Array } versions The versions to check.

(versions)

Source from the content-addressed store, hash-verified

208 * @param {Array<String>} versions The versions to check.
209 */
210 _validateVersionSyntax(versions) {
211 for (const version of versions) {
212 if (!semver.valid(version)) {
213 throw version;
214 }
215 }
216 }
217
218 /**
219 * Runs the check.

Callers 1

checkMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected