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

es6-module-transpiler

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-module-transpiler - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

13

lib/module.js

@@ -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 @@ *

4

package.json
{
"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",

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