New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jayli-server

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jayli-server - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

5

lib/chunk.js

@@ -11,3 +11,3 @@ // 'use strict';

var reg = '<!--#(chunk)(\\s([a-z]+)=[\'"](.+?)[\'"])* -->';
var reg = '--#(chunk)(\\s([a-z]+)=[\'"](.+?)[\'"])*--';

@@ -19,2 +19,3 @@ // p:绝对路径

var firstInclude = hasIncludes(chunk);
console.log(firstInclude);
if(firstInclude){

@@ -72,2 +73,2 @@ parseFirstIncludes(chunk,function(newchunk){

exports.parse = parseOne;
exports.parse = parseOne;

@@ -232,3 +232,3 @@ /**

if(incFile.indexOf('http://') != -1){
return '<!--#chunk url="' + incFile.replace(/\\/g, '/') + '" -->';
return '--#chunk url="' + incFile.replace(/\\/g, '/') + '"--';
}

@@ -285,3 +285,3 @@

}
return ret;

@@ -310,3 +310,5 @@ }

);
cont = awpp_replacement(cont);
var repReg = new RegExp((val_insert + '|' + include), 'g');

@@ -328,2 +330,12 @@

exports.ssiChunk = parseContent;
// 将<!--HTTP:xxx,utf8:HTTP-->替换为<!--#include path="..." -->
function awpp_replacement(cont){
var awpp_include = '<!--HTTP:([^,]+),(utf-8|utf8|gbk|gb2312):HTTP-->';
cont = cont.replace(new RegExp(awpp_include),function(){
var args = arguments;
return "<!--#include " + 'virtual="' + args[1] + '" -->';
});
return cont;
}
exports.ssiChunk = parseContent;

2

package.json

@@ -7,3 +7,3 @@ {

},
"version": "0.0.15",
"version": "0.0.16",
"description": "A node.js module for delivering static files,width ssi,mock and php",

@@ -10,0 +10,0 @@ "keywords": [

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