es6-module-transpiler
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -46,2 +46,3 @@ /* jshint node:true, undef:true, unused:true */ | ||
Module.prototype.reload = function() { | ||
delete this.src; | ||
delete this.ast; | ||
@@ -95,3 +96,3 @@ delete this.imports; | ||
return recast.parse( | ||
fs.readFileSync(this.path).toString(), { | ||
this.src, { | ||
esprima: esprima, | ||
@@ -104,2 +105,12 @@ sourceFileName: Path.basename(this.path) | ||
/** | ||
* This module's source code. | ||
* | ||
* @type {String} | ||
* @property src | ||
*/ | ||
memo(Module.prototype, 'src', function() { | ||
return fs.readFileSync(this.path).toString(); | ||
}); | ||
/** | ||
* A reference to the options from this module's container. | ||
@@ -106,0 +117,0 @@ * |
{ | ||
"name": "es6-module-transpiler", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"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.", | ||
@@ -42,3 +42,3 @@ "homepage": "http://square.github.com/es6-module-transpiler", | ||
"ast-util": "^0.1.2", | ||
"esprima": "git://github.com/thomasboyt/esprima#4be906f1abcbb", | ||
"esprima": "git://github.com/esnext/esprima#harmony-esnext", | ||
"mkdirp": "^0.5.0", | ||
@@ -45,0 +45,0 @@ "posix-getopt": "^1.0.0", |
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
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
Git dependency
Supply chain riskContains a dependency which resolves to a remote git URL. Dependencies fetched from git URLs are not immutable and can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
89769
2674