first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

28
build/node_modules/semver-truncate/index.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
'use strict';
var semver = require('semver');
module.exports = function (version, type) {
if (['major', 'minor', 'patch'].indexOf(type) === -1) {
throw new TypeError('Invalid version type');
}
version = semver.parse(version, {loose: true});
if (!version) {
throw new Error('Version ' + version + ' is not valid semver');
}
version.build = '';
version.prerelease = '';
if (type === 'minor') {
version.patch = 0;
}
if (type === 'major') {
version.patch = 0;
version.minor = 0;
}
return version.format();
};