drivelist
Advanced tools
Comparing version 9.2.4 to 10.0.0-napi-355d3201dc21489de14a2c05d08a6de0c7ff2223
@@ -7,2 +7,7 @@ # Change Log | ||
# v10.0.0 | ||
## (2022-06-15) | ||
* Switching to Napi [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": "10.0.0-napi-355d3201dc21489de14a2c05d08a6de0c7ff2223", | ||
"description": "List all connected drives in your computer, in all major operating systems", | ||
@@ -30,9 +30,9 @@ "main": "js/index.js", | ||
"readme": "jsdoc2md --template doc/README.hbs js/index.js > README.md", | ||
"configure": "node-gyp configure", | ||
"build": "node-gyp rebuild", | ||
"build-ts": "tsc", | ||
"prepublishOnly": "npm run build-ts && npm run readme", | ||
"install": "prebuild-install --runtime napi || node-gyp rebuild", | ||
"rebuild": "node-gyp rebuild", | ||
"install": "prebuild-install || node-gyp rebuild", | ||
"prebuild-release": "prebuild --all --strip", | ||
"prepublishOnly": "npm run build-ts && npm run readme" | ||
"prebuild": "prebuild --runtime napi --all --strip --verbose", | ||
"upload": "prebuild --runtime napi --upload ${GITHUB_TOKEN}" | ||
}, | ||
@@ -45,15 +45,14 @@ "author": "Juan Cruz Viotti <juan@balena.io>", | ||
"devDependencies": { | ||
"@balena/lint": "^5.3.0", | ||
"@balena/lint": "^6.2.0", | ||
"@types/bindings": "^1.3.0", | ||
"@types/chai": "^4.1.7", | ||
"@types/mocha": "^5.2.6", | ||
"@types/mz": "0.0.32", | ||
"@types/sinon": "^7.0.6", | ||
"@types/mocha": "^9.1.1", | ||
"@types/sinon": "^10.0.11", | ||
"chai": "^4.2.0", | ||
"eslint": "^4.19.1", | ||
"jsdoc-to-markdown": "^4.0.1", | ||
"mocha": "^6.0.0", | ||
"prebuild": "^8.1.2", | ||
"sinon": "^7.2.4", | ||
"ts-node": "^8.0.2", | ||
"eslint": "^8.17.0", | ||
"jsdoc-to-markdown": "^7.1.1", | ||
"mocha": "^10.0.0", | ||
"prebuild": "^11.0.3", | ||
"sinon": "^14.0.0", | ||
"ts-node": "^10.8.1", | ||
"typescript": "^4.1.2" | ||
@@ -64,5 +63,13 @@ }, | ||
"debug": "^3.1.0", | ||
"nan": "^2.14.0", | ||
"prebuild-install": "^5.2.4" | ||
"node-addon-api": "^5.0.0", | ||
"prebuild-install": "^7.1.0" | ||
}, | ||
"binary": { | ||
"napi_versions": [ | ||
3 | ||
] | ||
}, | ||
"versionist": { | ||
"publishedAt": "2022-06-15T22:53:30.960Z" | ||
} | ||
} |
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
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
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
128039
13
1
+ Addednode-addon-api@^5.0.0
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddetect-libc@2.0.3(transitive)
+ Addedmimic-response@3.1.0(transitive)
+ Addednode-abi@3.71.0(transitive)
+ Addednode-addon-api@5.1.0(transitive)
+ Addedprebuild-install@7.1.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsimple-get@4.0.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
- Removednan@^2.14.0
- Removedansi-regex@2.1.1(transitive)
- Removedaproba@1.2.0(transitive)
- Removedare-we-there-yet@1.1.7(transitive)
- Removedcode-point-at@1.1.0(transitive)
- Removedconsole-control-strings@1.1.0(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removeddecompress-response@4.2.1(transitive)
- Removeddelegates@1.0.0(transitive)
- Removeddetect-libc@1.0.3(transitive)
- Removedgauge@2.7.4(transitive)
- Removedhas-unicode@2.0.1(transitive)
- Removedis-fullwidth-code-point@1.0.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmimic-response@2.1.0(transitive)
- Removednan@2.22.0(transitive)
- Removednode-abi@2.30.1(transitive)
- Removednoop-logger@0.1.1(transitive)
- Removednpmlog@4.1.2(transitive)
- Removednumber-is-nan@1.0.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprebuild-install@5.3.6(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsemver@5.7.2(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedsimple-get@3.1.1(transitive)
- Removedstring-width@1.0.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.1(transitive)
- Removedwhich-pm-runs@1.1.0(transitive)
- Removedwide-align@1.1.5(transitive)
Updatedprebuild-install@^7.1.0