Socket
Socket
Sign inDemoInstall

wrapper-path

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.1 to 2.1.2

2

package.json
{
"name": "wrapper-path",
"version": "2.1.1",
"version": "2.1.2",
"description": "wrapper to path module, to simple require, get and others",

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

@@ -22,3 +22,3 @@ 'use strict';

if (!dir || typeof dir !== 'string') throw new Error('Param must be "string"');
if (dir.charAt(0) !== '/') throw new Error('Invalid path');
if (dir.charAt(0) !== '/') throw new Error(`Invalid path "${dir}"`);
if (!dir.startsWith(this.pathRoot)) return `${this.pathRoot}${dir}`;

@@ -32,3 +32,3 @@ return dir;

} catch (e) {
throw new Error('No such file or directory');
throw new Error(`No such file or directory "${dir}"`);
}

@@ -41,3 +41,3 @@ }

} catch (e) {
throw new Error('Not a directory');
throw new Error(`Not a directory "${dir}"`);
}

@@ -44,0 +44,0 @@ }

@@ -183,2 +183,6 @@ # wrapper-path

### Changed
- Se modifica mensaje de error cuando no se encuentra el archivo/carpeta, con el objetivo de tener conocimiento de a que esta intentando acceder
## [2.1.1] - 2018-01-03
### Changed
- Corrección de documentación de **remove** y detalles ortográficos

@@ -188,3 +192,3 @@

### Added
- Función **recursive** tiene como opción la profundidad máxima (maxDepth) con la que se desea obtener el listado de archivos/carpetas
- Función **recursive** tiene como opción de profundidad máxima (maxDepth) con la que se desea obtener el listado de archivos/carpetas

@@ -191,0 +195,0 @@ ## [2.0.2] - 2017-11-20

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