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

jsdc

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdc - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

package.json
{
"name": "jsdc",
"version": "0.4.0",
"version": "0.4.1",
"description": "compiler ecmascript6 to ecmascript5",

@@ -5,0 +5,0 @@ "maintainers": [

@@ -23,5 +23,3 @@ var homunculus = require('homunculus');

//存放临时li供block首尾改写引用
this.hash[node.nid()] = {
temp: this.jsdc.uid()
};
this.hash[node.nid()] = true;
this.jsdc.ignore(of, 'forof1');

@@ -32,19 +30,6 @@ }

var last = node.last();
var s = '';
if(!this.jsdc.endsWith(';')
&& !this.jsdc.endsWith(':')
&& !this.jsdc.endsWith('{')
&& !this.jsdc.endsWith('\n')) {
s = ';';
}
s += this.hash[node.nid()].id + '=' + this.hash[node.nid()].temp;
if(last.name() != JsNode.BLOCKSTMT) {
//临时引用写回,使循环正常
this.jsdc.appendBefore(s);
//}闭合
this.jsdc.appendBefore('}');
}
else {
this.jsdc.insert(s, this.jsdc.res.length - 1);
}
}

@@ -109,7 +94,3 @@ },

}
//先存下临时引用
var o = this.hash[node.nid()];
o.id = k;
this.jsdc.append('var ' + o.temp + '=' + k + ';');
this.jsdc.append(k + '=' + o.temp + '.value;');
this.jsdc.append(k + '=' + k + '.value;');
}

@@ -116,0 +97,0 @@ });

@@ -24,5 +24,3 @@ define(function(require, exports, module) {

//存放临时li供block首尾改写引用
this.hash[node.nid()] = {
temp: this.jsdc.uid()
};
this.hash[node.nid()] = true;
this.jsdc.ignore(of, 'forof1');

@@ -33,19 +31,6 @@ }

var last = node.last();
var s = '';
if(!this.jsdc.endsWith(';')
&& !this.jsdc.endsWith(':')
&& !this.jsdc.endsWith('{')
&& !this.jsdc.endsWith('\n')) {
s = ';';
}
s += this.hash[node.nid()].id + '=' + this.hash[node.nid()].temp;
if(last.name() != JsNode.BLOCKSTMT) {
//临时引用写回,使循环正常
this.jsdc.appendBefore(s);
//}闭合
this.jsdc.appendBefore('}');
}
else {
this.jsdc.insert(s, this.jsdc.res.length - 1);
}
}

@@ -110,7 +95,3 @@ },

}
//先存下临时引用
var o = this.hash[node.nid()];
o.id = k;
this.jsdc.append('var ' + o.temp + '=' + k + ';');
this.jsdc.append(k + '=' + o.temp + '.value;');
this.jsdc.append(k + '=' + k + '.value;');
}

@@ -117,0 +98,0 @@ });

Sorry, the diff of this file is not supported yet

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