MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getVersion

Function getVersion

scripts/version-helper.js:8–13  ·  view source on GitHub ↗

* Derive extension version from pkg.version and pkg.beta fields. * * > manifest.version = `${pkg.version}.${pkg.beta}`

()

Source from the content-addressed store, hash-verified

6 * > manifest.version = `${pkg.version}.${pkg.beta}`
7 */
8function getVersion() {
9 return (
10 process.env.VERSION ||
11 `${pkg.version.match(/\d+\.\d+/)[0]}.${pkg.beta || 0}`
12 );
13}
14
15function isBeta() {
16 return process.env.BETA || pkg.beta > 0;

Callers 5

amo-upload.mjsFile · 0.90
bumpFunction · 0.85
buildManifestFunction · 0.85
action-helper.jsFile · 0.85
webpack.conf.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected