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.8.1 to 0.8.2

lib/browser/capture_stack_trace_polyfill.js

11

lib/browser/index.js

@@ -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",

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