New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esperanto

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esperanto - npm Package Compare versions

Comparing version 0.3.1 to 0.3.3

11

lib/transform.js

@@ -94,8 +94,9 @@ var acorn = require('acorn');

node.specifiers.forEach( function ( specifier ) {
var declaration, name = specifier.id.name;
var declaration, id = specifier.id.name, name;
declaration = 'var ' + name + ' = ' + _import.name;
if ( !options.defaultOnly ) {
declaration += '.' + ( node.kind === 'default' ? 'default' : name );
if ( options.defaultOnlt ) {
declaration = 'var ' + name + ' = ' + _import.name;
} else {
name = ( specifier.name && specifier.name.name ) || id;
declaration = 'var ' + name + ' = ' + _import.name + '.' + ( node.kind === 'default' ? 'default' : id );
}

@@ -102,0 +103,0 @@

{
"name": "esperanto",
"description": "An easier way to convert ES6 modules to AMD and CommonJS",
"version": "0.3.1",
"version": "0.3.3",
"author": "Rich Harris",

@@ -6,0 +6,0 @@ "dependencies": {

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