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

jfogs

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

jfogs - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

17

lib/jfogs.js

@@ -8,4 +8,4 @@

* zswang (http://weibo.com/zswang)
* @version 0.0.9
* @date 2015-08-26
* @version 0.0.10
* @date 2015-09-07
*/

@@ -145,4 +145,13 @@ var esprima = require('esprima');

if (obj.type === 'Literal') {
code = code.slice(0, obj.range[0]) + propertys[obj.$name] +
code.slice(obj.range[1]);
var begin = code.slice(0, obj.range[0]);
var end = code.slice(obj.range[1]);
code = begin;
if (/[^\s~!%^&*()_+\-={}\[\]|:";'<>,.?]$/.test(begin)) { // compress
code += ' ';
}
code += propertys[obj.$name];
if (/^[^\s~!%^&*()_+\-={}\[\]|:";'<>,.?]/.test(end)) {
code += ' ';
}
code += end;
}

@@ -149,0 +158,0 @@ else { // if (obj.type === 'MemberExpression') {

{
"name": "jfogs",
"version": "0.0.9",
"version": "0.0.10",
"description": "Javascript code obfuscator",

@@ -5,0 +5,0 @@ "main": "index.js",

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