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.1 to 2.0.2

3

lib/file.js

@@ -57,2 +57,3 @@ var _ = alp._;

this.useCompile = !_.filter(absUrl, config.get('exclude'));
this.mtime = this.getMtime();
}

@@ -87,3 +88,3 @@

getMtime: function () {
return _.mtime(this.origin);
return +_.mtime(this.realpath);
},

@@ -90,0 +91,0 @@ addRequire : function(id){

@@ -523,3 +523,3 @@ var esprima = require('esprima');

_compile: function (src) {
var file;
var file, cacheFile;

@@ -534,4 +534,6 @@ if (src instanceof File) {

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

@@ -538,0 +540,0 @@ }

{
"name": "alpaca-sm",
"version": "2.0.1",
"version": "2.0.2",
"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