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

hotfile

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hotfile - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

models/Hot.js

@@ -30,3 +30,3 @@ const p = require('path')

const { recursive, force } = options
if(await this.exists(path) && !force) return false
if(!force && await this.exists(path)) return false
try {

@@ -33,0 +33,0 @@ await fs.promises.mkdir(path, { recursive })

@@ -24,6 +24,7 @@ const p = require('path')

const path = p.join(this.path, name)
if(!force || await this.exists(path)) return false
if(!force && await this.exists(path)) return null
await fs.promises.appendFile(path, data)
this.children.push(new Hotfile(path))
return true
const file = new Hotfile(path)
this.children.push(file)
return file
}

@@ -33,4 +34,4 @@

const path = p.join(this.path, name)
console.log({path})
await this.mkdir(path, options)
if(!force && await this.exists(path)) return null
const folder = new Hotfolder(path)

@@ -37,0 +38,0 @@ this.children.push(folder)

{
"name": "hotfile",
"version": "0.1.0",
"version": "0.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

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