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

lory

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lory - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "lory",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "bin": "src/index.js",

@@ -18,5 +18,3 @@ const path = require('path');

state.serversDir = path.resolve(state.dir, 'server');
if (!await file.fileExists(state.serversDir)) {
await fs.promises.mkdir(serverDir);
}
await file.createDirOrIgnore(state.serversDir);

@@ -32,5 +30,3 @@ const servers = typeof state.servers === 'string' ? [state.servers] : state.servers;

state.mountsDir = path.resolve(state.dir, 'mounts');
if (!await file.fileExists(state.mountsDir)) {
await fs.promises.mkdir(state.mountsDir);
}
await file.createDirOrIgnore(state.mountsDir);

@@ -37,0 +33,0 @@ state.mounts = [

const fs = require('fs');
const util = require('util');
module.exports.fileExists = util.promisify(fs.exists);
const fileExists = module.exports.fileExists = util.promisify(fs.exists);
module.exports.createDirOrIgnore = async dir => {
if (!await fileExists(dir)) {
await fs.promises.mkdir(dir);
}
}
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