check-disk-space
Advanced tools
Comparing version 3.3.1 to 3.4.0
@@ -1,4 +0,3 @@ | ||
import { ChildProcess, ExecException } from 'child_process'; | ||
import { existsSync } from 'fs'; | ||
import { normalize, sep } from 'path'; | ||
import { access } from 'node:fs/promises'; | ||
import { normalize, sep } from 'node:path'; | ||
@@ -15,11 +14,14 @@ declare class InvalidPathError extends Error { | ||
declare type ExecFileException = ExecException & NodeJS.ErrnoException; | ||
declare type Dependencies = { | ||
type Dependencies = { | ||
platform: NodeJS.Platform; | ||
release: string; | ||
fsExistsSync: typeof existsSync; | ||
fsAccess: typeof access; | ||
pathNormalize: typeof normalize; | ||
pathSep: typeof sep; | ||
cpExecFile: (file: string, args: ReadonlyArray<string> | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void) => ChildProcess; | ||
cpExecFileSync: (command: string) => Buffer; | ||
cpExecFile: (file: string, args: ReadonlyArray<string> | undefined | null, options: { | ||
windowsHide: true; | ||
}) => Promise<{ | ||
stdout: string; | ||
stderr: string; | ||
}>; | ||
}; | ||
@@ -33,3 +35,3 @@ | ||
*/ | ||
declare function getFirstExistingParentPath(directoryPath: string, dependencies: Dependencies): string; | ||
declare function getFirstExistingParentPath(directoryPath: string, dependencies: Dependencies): Promise<string>; | ||
@@ -39,3 +41,3 @@ /** | ||
*/ | ||
declare type DiskSpace = { | ||
type DiskSpace = { | ||
diskPath: string; | ||
@@ -42,0 +44,0 @@ free: number; |
{ | ||
"name": "check-disk-space", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Light multi-platform disk space checker without third party for Node.js", | ||
@@ -14,7 +14,8 @@ "files": [ | ||
"import": "./dist/check-disk-space.mjs", | ||
"require": "./dist/check-disk-space.cjs" | ||
"require": "./dist/check-disk-space.cjs", | ||
"types": "./dist/check-disk-space.d.ts" | ||
}, | ||
"scripts": { | ||
"build:lib": "rollup --config", | ||
"build:dts": "rollup --config rollup.dts.config.js", | ||
"build:dts": "rollup --config rollup.dts.config.mjs", | ||
"build": "npm-run-all build:lib build:dts", | ||
@@ -43,25 +44,25 @@ "lint": "eslint . --cache", | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=16" | ||
}, | ||
"devDependencies": { | ||
"@alex-d/eslint-config": "2.0.0", | ||
"@alex-d/eslint-config": "2.2.0", | ||
"@istanbuljs/nyc-config-typescript": "1.0.2", | ||
"@rollup/plugin-typescript": "8.3.1", | ||
"@types/node": "12.20.46", | ||
"@typescript-eslint/eslint-plugin": "5.13.0", | ||
"@typescript-eslint/parser": "5.13.0", | ||
"ava": "4.1.0", | ||
"eslint": "8.10.0", | ||
"eslint-plugin-ava": "13.2.0", | ||
"eslint-plugin-import": "2.25.4", | ||
"eslint-plugin-simple-import-sort": "7.0.0", | ||
"@rollup/plugin-typescript": "11.1.1", | ||
"@types/node": "16.11.7", | ||
"@typescript-eslint/eslint-plugin": "5.59.6", | ||
"@typescript-eslint/parser": "5.59.6", | ||
"ava": "5.2.0", | ||
"eslint": "8.41.0", | ||
"eslint-plugin-ava": "14.0.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-simple-import-sort": "10.0.0", | ||
"npm-run-all": "4.1.5", | ||
"nyc": "15.1.0", | ||
"rollup": "2.69.2", | ||
"rollup-plugin-dts": "4.2.0", | ||
"rollup": "3.22.0", | ||
"rollup-plugin-dts": "5.3.0", | ||
"source-map-support": "0.5.21", | ||
"ts-node": "10.7.0", | ||
"tsconfig-paths": "3.13.0", | ||
"tslib": "2.3.1", | ||
"typescript": "4.6.2" | ||
"ts-node": "10.9.1", | ||
"tsconfig-paths": "4.2.0", | ||
"tslib": "2.5.2", | ||
"typescript": "5.0.4" | ||
}, | ||
@@ -68,0 +69,0 @@ "repository": { |
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
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
20585
443
0
0