New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

npkill

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npkill - npm Package Compare versions

Comparing version 0.10.0 to 0.10.1-0

lib/services/files/files.service.js

12

lib/controller.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc