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

alpaca-sm

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

alpaca-sm - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

4

lib/file.js

@@ -94,5 +94,5 @@ var _ = alp._;

},
updateMd5: function(content) {
buildMd5: function(content) {
if (typeof content === 'undefined') {
content = this.getContent();
content = this.getRawContent();
}

@@ -99,0 +99,0 @@ this.md5 = _.md5(content);

@@ -536,6 +536,11 @@ var esprima = require('esprima');

this.contentProcessor(file);
// 同一个html中可以写多个脚本块,所以这里不做判定
if (!file.isLikeHtml && file.subpath in storage && file.mtime === cacheFile.mtime && file.updateMd5() === cacheFile.md5) {
return;
if (!file.isLikeHtml && file.subpath in storage && file.mtime === cacheFile.mtime) {
if (cacheFile.md5) {
if (file.md5 == cacheFile.md5) {
return;
}
} else {
return;
}
}

@@ -556,5 +561,7 @@

content = this.cntProcessor(file);
file.buildMd5(content);
file.setContent(content);
return content;
} else {
file.buildMd5();
return file.getContent();

@@ -561,0 +568,0 @@ }

{
"name": "alpaca-sm",
"version": "2.0.3",
"version": "2.0.4",
"description": "分析Html文件依赖的js文件和css文件",

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