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

babel-plugin-transform-global-system-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-global-system-wrapper - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

test/fixtures/es-module-has/actual.js

9

lib/index.js

@@ -23,2 +23,9 @@ 'use strict';

visitor: {
StringLiteral: function StringLiteral(path) {
if (path.node.value === '__esModule') this.hasEsModule = true;
},
MemberExpression: function MemberExpression(path) {
if (path.node.property.name === '__esModule') this.hasEsModule = true;
},
Program: {

@@ -91,3 +98,3 @@ enter: function enter(_ref2) {

var factory = (opts.esModule ? buildFactoryEs : buildFactory)({
var factory = (opts.esModule && !this.hasEsModule ? buildFactoryEs : buildFactory)({
SYSTEM_GLOBAL: systemGlobal,

@@ -94,0 +101,0 @@ EXPORT_NAME: exportName,

2

package.json
{
"name": "babel-plugin-transform-global-system-wrapper",
"version": "0.3.1",
"version": "0.3.2",
"description": "Converts global scripts into named System.registerDynamic('name', [], ...",

@@ -5,0 +5,0 @@ "repository": {

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