1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00

add node modules to repo

This commit is contained in:
s2
2018-06-03 13:47:11 +02:00
parent e8c95255e8
commit d002126b72
4115 changed files with 440218 additions and 7519 deletions

30
node_modules/mksnapshot/lib/main.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
(function() {
var callMksnapshot, getPathOfMksnapshot, mksnapshot, stripVersion;
callMksnapshot = require('./mksnapshot-call');
getPathOfMksnapshot = require('./mksnapshot-path');
stripVersion = function(version) {
var versions;
if (version[0] === 'v') {
version = version.substr(1);
}
versions = version.split('.');
versions[2] = '0';
return versions.join('.');
};
mksnapshot = function(content, target, version, arch, builddir, callback) {
version = stripVersion(version);
return getPathOfMksnapshot(version, arch, builddir, function(error, mksnapshot) {
if (error) {
return callback(error);
}
return callMksnapshot(mksnapshot, content, target, builddir, callback);
});
};
module.exports = mksnapshot;
}).call(this);