drivelist
Advanced tools
Comparing version 9.2.4 to 9.2.5-nochange-68eb61f94494deca81094898daef34f304d1893e
@@ -7,2 +7,7 @@ # Change Log | ||
# v9.2.5 | ||
## (2022-06-16) | ||
* no change [Zane Hitchcox] | ||
# v9.2.4 | ||
@@ -9,0 +14,0 @@ ## (2021-01-19) |
@@ -69,3 +69,3 @@ "use strict"; | ||
async function list() { | ||
const plat = os_1.platform(); | ||
const plat = (0, os_1.platform)(); | ||
if (plat === 'win32') { | ||
@@ -80,7 +80,7 @@ return await bindingsList(); | ||
else if (plat === 'linux') { | ||
return await lsblk_1.lsblk(); | ||
return await (0, lsblk_1.lsblk)(); | ||
} | ||
throw new Error(`Your OS is not supported by this module: ${os_1.platform()}`); | ||
throw new Error(`Your OS is not supported by this module: ${(0, os_1.platform)()}`); | ||
} | ||
exports.list = list; | ||
//# sourceMappingURL=index.js.map |
@@ -25,3 +25,3 @@ "use strict"; | ||
const pairs_1 = require("./pairs"); | ||
const execFileAsync = util_1.promisify(child_process_1.execFile); | ||
const execFileAsync = (0, util_1.promisify)(child_process_1.execFile); | ||
const DISK_PATH_DIR = '/dev/disk/by-path/'; | ||
@@ -43,3 +43,3 @@ let SUPPORTS_JSON = true; | ||
for (const filename of await fs_1.promises.readdir(DISK_PATH_DIR)) { | ||
const linkPath = path_1.join(DISK_PATH_DIR, filename); | ||
const linkPath = (0, path_1.join)(DISK_PATH_DIR, filename); | ||
let link; | ||
@@ -52,3 +52,3 @@ try { | ||
} | ||
const devicePath = path_1.resolve(DISK_PATH_DIR, link); | ||
const devicePath = (0, path_1.resolve)(DISK_PATH_DIR, link); | ||
mapping.set(devicePath, linkPath); | ||
@@ -69,3 +69,3 @@ } | ||
async function lsblkJSON() { | ||
return json_1.parse(await getOutput('lsblk', '--bytes', '--all', '--json', '--paths', '--output-all')); | ||
return (0, json_1.parse)(await getOutput('lsblk', '--bytes', '--all', '--json', '--paths', '--output-all')); | ||
} | ||
@@ -84,3 +84,3 @@ async function getLsblkPairsOutput() { | ||
async function lsblkPairs() { | ||
return pairs_1.parse(await getLsblkPairsOutput()); | ||
return (0, pairs_1.parse)(await getLsblkPairsOutput()); | ||
} | ||
@@ -87,0 +87,0 @@ async function $lsblk() { |
@@ -105,3 +105,3 @@ "use strict"; | ||
isUAS: null, | ||
partitionTableType: _1.getPartitionTableType(device.pttype), | ||
partitionTableType: (0, _1.getPartitionTableType)(device.pttype), | ||
}; | ||
@@ -108,0 +108,0 @@ }); |
@@ -153,3 +153,3 @@ "use strict"; | ||
isUAS: null, | ||
partitionTableType: _1.getPartitionTableType(device.pttype), | ||
partitionTableType: (0, _1.getPartitionTableType)(device.pttype), | ||
}; | ||
@@ -156,0 +156,0 @@ }); |
{ | ||
"name": "drivelist", | ||
"version": "9.2.4", | ||
"version": "9.2.5-nochange-68eb61f94494deca81094898daef34f304d1893e", | ||
"description": "List all connected drives in your computer, in all major operating systems", | ||
@@ -64,3 +64,6 @@ "main": "js/index.js", | ||
"prebuild-install": "^5.2.4" | ||
}, | ||
"versionist": { | ||
"publishedAt": "2022-06-16T11:55:55.049Z" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
128024
1