Comparing version 0.10.0 to 0.10.1-0
@@ -9,3 +9,2 @@ import { BANNER, DECIMALS_SIZE, DEFAULT_CONFIG, DEFAULT_SIZE, MARGINS, MIN_CLI_COLUMNS_SIZE, OVERFLOW_CUT_FROM, UI_HELP, UI_POSITIONS, VALID_KEYS, } from './constants/index.js'; | ||
import ansiEscapes from 'ansi-escapes'; | ||
import { bufferUntil } from './libs/buffer-until.js'; | ||
import { homedir } from 'os'; | ||
@@ -422,8 +421,5 @@ import colors from 'colors'; | ||
.pipe(catchError((error, caught) => { | ||
if (error.bash) { | ||
this.printFolderError(error.message); | ||
return caught; | ||
} | ||
throw error; | ||
}), map((buffer) => buffer.toString()), bufferUntil((chunk) => isChunkCompleted(chunk)), mergeMap((dataFolder) => from(this.consoleService.splitData(dataFolder))), filter((path) => !!path), filter((path) => !isExcludedDangerousDirectory(path)), map((path) => { | ||
this.printFolderError(error.message); | ||
return caught; | ||
}), mergeMap((dataFolder) => from(this.consoleService.splitData(dataFolder))), filter((path) => !!path), filter((path) => !isExcludedDangerousDirectory(path)), map((path) => { | ||
return { | ||
@@ -442,3 +438,3 @@ path, | ||
} | ||
}), mergeMap((nodeFolder) => this.calculateFolderStats(nodeFolder), 4)) | ||
}), mergeMap((nodeFolder) => this.calculateFolderStats(nodeFolder))) | ||
.subscribe(() => this.printFoldersSection(), (error) => this.printError(error), () => this.completeSearch()); | ||
@@ -445,0 +441,0 @@ } |
import { ConsoleService, HttpsService, LinuxFilesService, MacFilesService, ResultsService, SpinnerService, StreamService, UpdateService, WindowsFilesService, } from './services/index.js'; | ||
import { Controller } from './controller.js'; | ||
import { FileWorkerService } from './services/files/files.worker.service.js'; | ||
const getOS = () => process.platform; | ||
@@ -9,5 +10,6 @@ const OSService = { | ||
}; | ||
const fileWorkerService = new FileWorkerService(); | ||
const streamService = new StreamService(); | ||
const fileService = new OSService[getOS()](streamService); | ||
const fileService = new OSService[getOS()](streamService, fileWorkerService); | ||
export const controller = new Controller(fileService, new SpinnerService(), new ConsoleService(), new UpdateService(new HttpsService()), new ResultsService()); | ||
export default () => controller.init(); |
export * from './console.service.js'; | ||
export * from './files.service.js'; | ||
export * from './https.service.js'; | ||
export * from './linux-files.service.js'; | ||
export * from './mac-files.service.js'; | ||
export * from './results.service.js'; | ||
@@ -10,2 +7,2 @@ export * from './spinner.service.js'; | ||
export * from './update.service.js'; | ||
export * from './windows-files.service.js'; | ||
export * from './files/index.js'; |
{ | ||
"name": "npkill", | ||
"version": "0.10.0", | ||
"version": "0.10.1-0", | ||
"description": "List any node_modules directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space.", | ||
@@ -41,3 +41,3 @@ "exports": "./lib/index.js", | ||
"build-go-bin": "gulp buildGo", | ||
"start": "node --loader ts-node/esm ./src/index.ts", | ||
"start": "node --loader ts-node/esm --no-warnings ./src/index.ts", | ||
"test": "node --experimental-vm-modules --experimental-modules node_modules/jest/bin/jest.js --verbose", | ||
@@ -44,0 +44,0 @@ "test:watch": "npm run test -- --watch", |
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
51
1807
4
77482
6