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

syntex-filesystem

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

syntex-filesystem - npm Package Compare versions

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 @@

2

package.json
{
"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",

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