es6-module-transpiler
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -0,1 +1,8 @@ | ||
// Polyfill process.umask() since browserify doesn't add it (yet). | ||
// Remove it once https://github.com/defunctzombie/node-process/pull/22 is | ||
// merged and included in browserify. | ||
process.umask = function() { return 0; }; | ||
require('./capture_stack_trace_polyfill'); | ||
var Container = require('../container'); | ||
@@ -14,5 +21,1 @@ var FileResolver = require('../file_resolver'); | ||
// Polyfill process.umask() since browserify doesn't add it (yet). | ||
// Remove it once https://github.com/defunctzombie/node-process/pull/22 is | ||
// merged and included in browserify. | ||
process.umask = function() { return 0; }; |
@@ -92,6 +92,8 @@ /* jshint node:true, undef:true, unused:true */ | ||
// -> becomes: | ||
// function foo () {} | ||
// var <moduleName>default = foo; | ||
// function <moduleName>foo () {} | ||
// var <moduleName>default = <moduleName>foo; | ||
var renamedDeclaration = Object.create(declaration); | ||
renamedDeclaration.id = this.reference(mod, declaration.id); | ||
return [ | ||
declaration, | ||
renamedDeclaration, | ||
b.variableDeclaration( | ||
@@ -101,3 +103,3 @@ 'var', | ||
this.reference(mod, 'default'), | ||
declaration.id | ||
this.reference(mod, declaration.id) | ||
)] | ||
@@ -104,0 +106,0 @@ ) |
{ | ||
"name": "es6-module-transpiler", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "es6-module-transpiler is an experimental compiler that allows you to write your JavaScript using a subset of the current ES6 module syntax, and compile it into various formats.", | ||
"homepage": "http://square.github.com/es6-module-transpiler", | ||
"homepage": "http://esnext.github.io/es6-module-transpiler", | ||
"keywords": [ | ||
@@ -7,0 +7,0 @@ "es6", |
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
107155
27
3272
1