Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adonisjs/sink

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/sink - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10

3

package.json
{
"name": "@adonisjs/sink",
"version": "2.0.9",
"version": "2.0.10",
"description": "Utilities to create AdonisJs boilerplates and custom providers",

@@ -74,3 +74,2 @@ "main": "index.js",

"@poppinss/utils": "^1.0.4",
"empty-dir": "^2.0.0",
"kleur": "^3.0.3",

@@ -77,0 +76,0 @@ "mrm-core": "^3.3.0"

@@ -1,1 +0,1 @@

export declare function isEmptyDir(location: string, filterFn?: (filePath: string) => boolean): boolean;
export declare function isEmptyDir(location: string): boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const emptyDir = require("empty-dir");
function isEmptyDir(location, filterFn) {
const fs_1 = require("fs");
function isEmptyDir(location) {
try {
return emptyDir.sync(location, filterFn);
const files = fs_1.readdirSync(location);
return files.length === 0;
}
catch (error) {
return false;
return error.code === 'ENOENT';
}
}
exports.isEmptyDir = isEmptyDir;
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