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.7 to 2.0.8

3

lib/config.js

@@ -12,2 +12,5 @@ var CONFIG = {

// 命中的文件才会做模块分析。
include: [],
// 排除一些文本类型

@@ -14,0 +17,0 @@ excludeTxtType: [],

2

lib/file.js

@@ -55,3 +55,3 @@ var _ = alp._;

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

@@ -58,0 +58,0 @@ }

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

key,
_absUrl,
parentNotExpressionOrSequence;

@@ -290,2 +291,8 @@

}
//处理require('xx'),但是xx不存在的问题;
_absUrl = path.resolve(_.unix(config.get('fileBasedRoot') ? config.get('root') : file.dirname || config.get('root')), requireValue);
if (!_.exists(_absUrl)) {
alp.log.warning(file.realpath + '文件:require(' + requireValue + ') 文件不存在');
return node;
}
rFile = new File(requireValue, file.dirname);

@@ -292,0 +299,0 @@ file.hasRequire = true;

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

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -69,2 +69,6 @@ # alpaca-sm

默认值:[]
####include
解释:命中的文件才会被处理
类型:array | string | RegExp
默认值:[]
####isOptimizer

@@ -71,0 +75,0 @@ 解释:分析的文件是否是被压缩过的文件

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