data-storager
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "data-storager", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Implementation of an interface for saving and restoring small data", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,4 +0,1 @@ | ||
/* eslint-disable class-methods-use-this */ | ||
/* eslint-disable no-multi-assign */ | ||
/* eslint-disable no-console */ | ||
/** | ||
@@ -5,0 +2,0 @@ * |
@@ -1,2 +0,1 @@ | ||
/* eslint-disable no-console */ | ||
const path = require('path'); | ||
@@ -26,3 +25,2 @@ const fs = require('fs'); | ||
this.path = (typeof storragePath === "string") ? storragePath : "./"; | ||
console.log(this.path); | ||
if (!fs.existsSync(this.path)) | ||
@@ -29,0 +27,0 @@ throw new Error(`"${this.path}" folder does not exist`); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11364
166