Socket
Socket
Sign inDemoInstall

yow

Package Overview
Dependencies
2
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.10 to 1.0.11

2

package.json
{
"name": "yow",
"version": "1.0.10",
"version": "1.0.11",
"description": "You Only Wish module",

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

var fs = require('fs');
var Path = require('path');
var mkpath = module.exports.mkpath = function(path) {
// TODO: Create the entire path
if (!fileExists(path)) {
fs.mkdirSync(path);
}
}
var fileExists = module.exports.fileExists = function(path) {

@@ -25,10 +16,34 @@

var mkdir = module.exports.mkdir = function(path) {
var mkdir = module.exports.mkdir = function(path, mode) {
if (typeof mode === 'undefined')
mode = 0777 & (~process.umask());
if (!fileExists(path)) {
fs.mkdirSync(path);
}
if (!fileExists(path))
fs.mkdirSync(path, mode);
}
var mkpath = module.exports.mkpath = function (path, mode) {
path = Path.resolve(path);
if (typeof mode === 'undefined')
mode = 0777 & (~process.umask());
try {
if (!fs.statSync(path).isDirectory()) {
throw new Error(path + ' exists and is not a directory');
}
}
catch (error) {
if (error.code === 'ENOENT') {
mkpath(Path.dirname(path), mode);
fs.mkdirSync(path, mode);
}
else {
throw error;
}
}
};
module.exports.sprintf = require('sprintf-js').sprintf;
module.exports.extend = require('extend');
module.exports.isType = require('./src/istype.js').isType;

@@ -6,0 +5,0 @@ module.exports.isArray = require('./src/istype.js').isArray;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc