syntex-filesystem
Advanced tools
Comparing version 1.0.3-b8 to 1.0.3-b9
30
main.js
@@ -108,12 +108,5 @@ const fs = require('fs'), path = require('path'); | ||
if(this.enableCache) | ||
if(this.enableCache && path.parse(filePath).ext == '.json') | ||
{ | ||
if(path.parse(filePath).ext == '.json') | ||
{ | ||
cache[filePath] = JSON.stringify(file); | ||
} | ||
else | ||
{ | ||
cache[filePath] = file; | ||
} | ||
cache[filePath] = JSON.stringify(file); | ||
} | ||
@@ -178,12 +171,5 @@ | ||
{ | ||
if(this.enableCache) | ||
if(this.enableCache && path.parse(filePath).ext == '.json') | ||
{ | ||
if(path.parse(filePath).ext == '.json') | ||
{ | ||
cache[filePath] = JSON.stringify(JSON.parse(data)); | ||
} | ||
else | ||
{ | ||
cache[filePath] = data; | ||
} | ||
cache[filePath] = JSON.stringify(JSON.parse(data)); | ||
} | ||
@@ -339,9 +325,5 @@ } | ||
{ | ||
if(this.enableCache && cache[filePath] != null) | ||
if(this.enableCache && cache[filePath] != null && cache[filePath] == JSON.stringify(data)) | ||
{ | ||
if((path.parse(filePath).ext == '.json' && cache[filePath] == JSON.stringify(data)) | ||
|| (path.parse(filePath).ext != '.json' && cache[filePath] == data)) | ||
{ | ||
return false; | ||
} | ||
return false; | ||
} | ||
@@ -348,0 +330,0 @@ |
{ | ||
"name": "syntex-filesystem", | ||
"version": "1.0.3-b8", | ||
"version": "1.0.3-b9", | ||
"description": "A Basic File System", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
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
9909
307