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

fis-postprocessor-jswrapper

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-postprocessor-jswrapper - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

13

index.js

@@ -15,2 +15,9 @@ /*

//扩展template能力,支持function
if(typeof template==='function'){
var temp = template(file);
if(temp){
template = temp;
}
}
// wrap

@@ -20,3 +27,5 @@ if (template) {

.split('${content}').join(content)
.split('${id}').join(file.getId());
.split('${id}').join(file.getId())
.split('${hash}').join(file.getHash());
//增加md5
} else if (type === 'amd') {

@@ -38,2 +47,2 @@ if (!/^\s*define\s*\(/.test(content)) {

return local && typeof local[key] !== 'undefined' ? local[key] : global[key];
}
}

4

package.json
{
"name": "fis-postprocessor-jswrapper",
"description": "A postprocessor plugin for fis to wrap javascript with closure or amd define.",
"version": "0.0.12",
"version": "0.0.13",
"author": "FIS Team <fis@baidu.com>",

@@ -19,2 +19,2 @@ "homepage": "http://fis.baidu.com/",

}
}
}
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