New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fis-prepackager-m2c

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-prepackager-m2c - npm Package Compare versions

Comparing version 1.0.9 to 1.0.11

27

lib/cache.js

@@ -9,4 +9,6 @@ 'use strict';

var file = fis.util.realpath(path);
if (!fis.util.isFile(file)) {
fis.log.error('unable to cache file[' + path + ']: No such file.');
fis.log.warning('m2c:unable to cache file[' + path + ']: No such file. ');
return {};
}

@@ -27,5 +29,5 @@ return {

this.mVersion = m2cVersion;
var basename = fis.project.getCachePath(dir);
var hash = fis.util.md5(process.cwd() + (new Date()).toLocaleDateString(), 10);
this.cacheFile = basename + '-a-' + hash + '.tmp';
this.basename = fis.project.getCachePath(dir);
var hash = fis.util.md5(process.cwd(), 10);
this.cacheFile = this.basename + '-a-' + hash + '.tmp';
if (fis.util.exists(this.cacheFile)) {

@@ -64,6 +66,11 @@ try{

} else if (arguments.length >= 2) {
var flag;
//fis.util.md5(file.getContent());
this.deleteNonAttr(file);
flag = fingerprint(key, this.optimize);
if (!fis.util.isEmpty(flag)) {
this.cacheContent[key] = fis.util.merge(file, fingerprint(key, this.optimize));
callback(key, file);
}
//fis.util.md5(file.getContent());
this.cacheContent[key] = fis.util.merge(file, fingerprint(key, this.optimize));
callback(key, file);
}

@@ -73,2 +80,8 @@

},
deleteNonAttr: function(file){
delete file.requiresObj;
delete file.ast;
delete file.paramAst;
},
read: function(path) {

@@ -75,0 +88,0 @@ if (this.exists(path)) {

{
"name": "fis-prepackager-m2c",
"version": "1.0.9",
"version": "1.0.11",
"description": "A modular analysis tool",

@@ -5,0 +5,0 @@ "main": "index.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