Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fis-optimizer-smarty-xss

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fis-optimizer-smarty-xss - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

33

index.js

@@ -1,4 +0,18 @@

var DEFAULT_CONF = {
'escapeMap' : {
'js' : 'f_escape_js',
/*
* fis
* http://fis.baidu.com/
*/
'use strict';
var xss = require('smarty-xss');
module.exports = function(content, file, conf){
xss.config(conf);
return xss.repair(content);
};
module.exports.defaultOptions = {
'escapeMap' : {
'js' : 'f_escape_js',
'html' : 'f_escape_xml',

@@ -9,12 +23,5 @@ 'data' : 'f_escape_data',

'no_escape' : 'escape:none'
},
'leftDelimiter' : '{%',
'rightDelimiter' : '%}'
};
module.exports = function(content, file, conf){
conf = fis.util.merge(DEFAULT_CONF, conf);
var xss = require('smarty-xss');
xss.config(conf);
return content;
},
'leftDelimiter' : '{%',
'rightDelimiter' : '%}'
};

@@ -5,3 +5,3 @@ {

"homepage": "http://fis.baidu.com/",
"version": "0.0.1",
"version": "0.0.2",
"author": {

@@ -8,0 +8,0 @@ "name": "FIS Team",

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