Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "es6-class", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"homepage": "https://github.com/square/es6-class", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -0,1 +1,30 @@ | ||
## v0.8.0 | ||
* Update dependencies. | ||
## v0.7.0 | ||
* Use Facebook's fork of Esprima. | ||
## v0.6.0 | ||
* Use recast's `visit` method instead of `traverse`. | ||
## v0.5.2 | ||
* Ensure that static getters and setters work correctly. | ||
## v0.5.1 | ||
* Ensure that getters and setters are enumerable. | ||
## v0.5.0 | ||
* Ensure that classes run in strict mode. | ||
## v0.4.3 | ||
* Use [ast-util](https://github.com/eventualbuddha/ast-util) for a variety of | ||
ast-generation tasks. | ||
## v0.4.2 | ||
@@ -2,0 +31,0 @@ |
@@ -432,3 +432,3 @@ /* jshint node:true, undef:true, unused:true */ | ||
b.blockStatement(definitionStatements), | ||
false, true, false | ||
false, false, false | ||
), | ||
@@ -444,3 +444,2 @@ superClassId ? [node.superClass] : [] | ||
* @private | ||
* @param {Node} node | ||
* @param {NodePath} path | ||
@@ -450,3 +449,3 @@ * @param {Type} type | ||
*/ | ||
function getEnclosingNodeOfType(node, path, type) { | ||
function getEnclosingNodeOfType(path, type) { | ||
var ancestor = path; | ||
@@ -477,4 +476,4 @@ | ||
var node = path.value; | ||
var classNode = getEnclosingNodeOfType(node, path, Class); | ||
var methodDefinition = getEnclosingNodeOfType(node, path, n.MethodDefinition); | ||
var classNode = getEnclosingNodeOfType(path, Class); | ||
var methodDefinition = getEnclosingNodeOfType(path, n.MethodDefinition); | ||
@@ -515,3 +514,3 @@ if (classNode && methodDefinition) { | ||
var node = path.value; | ||
var classNode = getEnclosingNodeOfType(node, path, Class); | ||
var classNode = getEnclosingNodeOfType(path, Class); | ||
@@ -550,3 +549,3 @@ if (classNode) { | ||
var node = path.value; | ||
var classNode = getEnclosingNodeOfType(node, path, Class); | ||
var classNode = getEnclosingNodeOfType(path, Class); | ||
@@ -607,2 +606,3 @@ if (classNode) { | ||
* @param {string} source | ||
* @param {Object} mapOptions | ||
* @return {string} | ||
@@ -626,8 +626,8 @@ */ | ||
module.exports = function () { | ||
module.exports = function() { | ||
var data = ''; | ||
return through(write, end); | ||
function write (buf) { data += buf; } | ||
function end () { | ||
function write(buf) { data += buf; } | ||
function end() { | ||
this.queue(module.exports.compile(data).code); | ||
@@ -634,0 +634,0 @@ this.queue(null); |
{ | ||
"name": "es6-class", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "ES6 classes compiled to ES5.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72560