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.5 to 2.0.7

6

lib/processor.js

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

},
compact: true,
newLine: ''

@@ -204,3 +205,3 @@ }

if (isOptimizer) {
content = content.replace(/[;,][\s\n\r]*(?=[;,])/gi, "");
content = content.replace(/([;,][\s\n\r]*(?=[;,]))/gi, "").replace(/(,[\s\n\r]*(?=(var)))/gi, ";");
} else {

@@ -421,4 +422,5 @@ content = content.replace(/([\s\n\r]+);/gi, "");

regExp = new RegExp('@?\\b' + word + '\\b\\s*\\(\\s*[\'\"]{1}([^\'\"]+)[\'\"]{1}\\s*\\);*', 'gi');
regExp = new RegExp('@?\\b' + word + '\\b\\s*[\'\"]{1}([^\'\"]+)[\'\"]{1}\\s*;*', 'gi');
content = content.replace(regExp, function () {

@@ -425,0 +427,0 @@ var args = [].slice.call(arguments, 0),

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

@@ -27,5 +27,4 @@ "main": "index.js",

"colors": "^1.1.2",
"commander": "*",
"escodegen": "*",
"esprima": "*",
"escodegen": "^1.8.0",
"esprima": "^2.7.2",
"estraverse": "4.1.0",

@@ -32,0 +31,0 @@ "iconv-lite": "^0.4.13"

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