mock os instead of system

This commit is contained in:
Bryan MacFarlane
2020-02-09 18:22:24 -05:00
parent 79b62adb05
commit 241a335117
3 changed files with 20 additions and 27 deletions

15
dist/index.js vendored
View File

@ -4506,15 +4506,8 @@ module.exports = bytesToUuid;
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const os = __importStar(__webpack_require__(87));
let os = __webpack_require__(87);
function getPlatform() {
// darwin and linux match already
// freebsd not supported yet but future proofed.
@ -4536,9 +4529,9 @@ function getArch() {
case 'x64':
arch = 'amd64';
break;
case 'ppc':
arch = 'ppc64';
break;
// case 'ppc':
// arch = 'ppc64';
// break;
case 'x32':
arch = '386';
break;