Socket
Socket
Sign inDemoInstall

es6-module-transpiler-amd-formatter

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-module-transpiler-amd-formatter - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

index.js

@@ -184,3 +184,4 @@ /* jshint node:true, undef:true, unused:true */

var node = nodePath.node,
declaration = node.declaration;
declaration = node.declaration,
specifiers = node.specifiers;

@@ -202,3 +203,7 @@ if (n.FunctionDeclaration.check(declaration)) {

} else {
return Replacement.removes(nodePath);
return Replacement.swaps(nodePath, [].concat(specifiers.map(function (specifier) {
return b.expressionStatement(
b.callExpression(b.identifier('__es6_export__'), [b.literal((specifier.name || specifier.id).name), specifier.id])
);
})));
}

@@ -205,0 +210,0 @@ };

{
"name": "es6-module-transpiler-amd-formatter",
"version": "0.1.0",
"version": "0.1.1",
"description": "ES6 Module Transpiler Extension to Output AMD define() Format.",

@@ -5,0 +5,0 @@ "author": "Caridy Patino <caridy@gmail.com>",

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