Socket
Socket
Sign inDemoInstall

hotfile

Package Overview
Dependencies
0
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.6 to 0.0.7

test.js

5

index.js

@@ -35,5 +35,6 @@ const p = require('path')

static async readdir(path, options = {}){
const { model, exclude } = options
const { model, exclude, include } = options
let items = await fs.promises.readdir(path)
if(exclude) items = items.filter(item => !(exclude).test(item))
if(exclude) items = items.filter(item => !exclude.find(regex => (regex).test(item)))
if(include) items = items.filter(item => include.find(regex => (regex).test(item)))
return items.map(i => model ? new model(p.resolve(path,i)) : new Hotfile(p.resolve(path,i)))

@@ -40,0 +41,0 @@ }

4

package.json
{
"name": "hotfile",
"version": "0.0.6",
"version": "0.0.7",
"description": "",
"main": "index.js",
"scripts": {
"dev": "nodemon index.js"
"dev": "nodemon test.js"
},

@@ -9,0 +9,0 @@ "repository": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc