From 726b81b19251674e149ccfbb1abacbd837fc6db0 Mon Sep 17 00:00:00 2001 From: LinuxWizard42 Date: Wed, 12 Oct 2022 23:08:57 +0300 Subject: Removed files that should not have been included in git --- node_modules/is-wsl/index.js | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 node_modules/is-wsl/index.js (limited to 'node_modules/is-wsl/index.js') diff --git a/node_modules/is-wsl/index.js b/node_modules/is-wsl/index.js deleted file mode 100644 index eb6313f..0000000 --- a/node_modules/is-wsl/index.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict'; -const os = require('os'); -const fs = require('fs'); -const isDocker = require('is-docker'); - -const isWsl = () => { - if (process.platform !== 'linux') { - return false; - } - - if (os.release().toLowerCase().includes('microsoft')) { - if (isDocker()) { - return false; - } - - return true; - } - - try { - return fs.readFileSync('/proc/version', 'utf8').toLowerCase().includes('microsoft') ? - !isDocker() : false; - } catch (_) { - return false; - } -}; - -if (process.env.__IS_WSL_TEST__) { - module.exports = isWsl; -} else { - module.exports = isWsl(); -} -- cgit v1.2.3-86-g962b