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.4 to 1.0.5

8

index.js

@@ -7,3 +7,3 @@ var Cache = require('./lib/cache.js');

var alpConf = {},
cache = new Cache(!!opt.optimize),
cache = new Cache(!!opt.optimize, ret),
allFiles = {};

@@ -40,5 +40,5 @@

//解决文件内容依赖其它文件的情况比如使用了inline方式
if (file.cache && !fis.util.isEmpty(file.cache.deps) && !fis.util.isEmpty(_cache) && fis.util.md5(file.getContent()) != _cache.md5) {
_cache = {};
}
// if (file.cache && !fis.util.isEmpty(file.cache.deps) && fis.util.isEmpty(_cache)) {
// _cache = {};
// }

@@ -45,0 +45,0 @@ if (!fis.util.isEmpty(_cache)) {

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

function Cache(optimize, dir) {
function Cache(optimize, ret, dir) {
dir = dir || 'compile/prepackager' + (optimize ? '-optimize' : '') + '/alpaca-sm';

@@ -36,2 +36,3 @@ this.version = fis.version;

this.optimize = optimize;
this.ret = ret;
};

@@ -59,4 +60,3 @@

file.md5 = fis.util.md5(file.getContent());
//fis.util.md5(file.getContent());
this.cacheContent[key] = fis.util.merge(file, fingerprint(key, this.optimize));

@@ -95,2 +95,4 @@ callback(key, file);

adeps,
fisFile,
_path,
isExist = true;

@@ -101,4 +103,14 @@ if (fis.util.isEmpty(cache)) {

adeps = cache.aRequires;
fisFile = this.ret.src['/' + path];
if (fisFile && fisFile.cache && fisFile.cache.deps) {
for(var k in fisFile.cache.deps) {
_path = pth.relative(fis.project.getProjectPath(), k).replace(/\\/g, '/');
if (adeps.indexOf(_path) < 0) {
adeps.push(_path);
}
}
}
for (var i = 0, len = adeps.length; i < len; i++) {
if (fis.util.realpath(adeps)) {
if (fis.util.realpath(adeps[i])) {
if (fis.util.isEmpty(this._getCache(adeps[i]))) {

@@ -105,0 +117,0 @@ return false;

{
"name": "fis-prepackager-m2c",
"version": "1.0.4",
"version": "1.0.5",
"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