🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

fis-parser-imweb-tplv2

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-parser-imweb-tplv2 - npm Package Compare versions

Comparing version

to
0.0.5

18

index.js

@@ -45,2 +45,20 @@ 'use strict';

})
.replace(/<%=\s*include\(['"]([^'"]+)['"]\)(\([^\)]*\))\s*%>/g, function (all, filename, args) {
var fullname = path.resolve(file.dirname, filename),
data = '';
// 添加links
file.links = file.links || [];
fullname = fullname.replace(/\\/g,'/');
if(fullname.indexOf(root) === 0){
file.addLink(fullname.substring(root.length));
}
if(fs.existsSync(fullname)) {
data = fs.readFileSync(fullname, {'encoding': 'utf8'});
return "', " + compileTmpl(data) + args + ", '";
} else {
console.log('tpl:' + fullname + ' not found!');
return 'tpl:' + fullname + ' not found!';
}
})
.replace(/<%==(.*?)%>/g, "', opt.encodeHtml($1), '")

@@ -47,0 +65,0 @@ .replace(/<%=(.*?)%>/g, "', $1, '")

2

package.json

@@ -75,3 +75,3 @@ {

"scripts": {},
"version": "0.0.4"
"version": "0.0.5"
}