Add node modules and compiled JavaScript from main

This commit is contained in:
Oliver King 2022-03-03 19:53:21 +00:00
parent 1021f818b9
commit feeb5f7b58
7748 changed files with 1825934 additions and 2 deletions

29
node_modules/is-docker/index.js generated vendored Normal file
View file

@ -0,0 +1,29 @@
'use strict';
const fs = require('fs');
let isDocker;
function hasDockerEnv() {
try {
fs.statSync('/.dockerenv');
return true;
} catch (_) {
return false;
}
}
function hasDockerCGroup() {
try {
return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker');
} catch (_) {
return false;
}
}
module.exports = () => {
if (isDocker === undefined) {
isDocker = hasDockerEnv() || hasDockerCGroup();
}
return isDocker;
};