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

babel-plugin-globals

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-globals - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

index.js

@@ -75,3 +75,9 @@ 'use strict';

assertFilenameRequired(filename);
filenameNoExtCache = filename.substr(0, filename.length - 3);
var extension = '.js';
filenameNoExtCache = filename;
do {
filenameNoExtCache = path.basename(filenameNoExtCache, extension);
extension = path.extname(filenameNoExtCache);
} while (extension !== '');
}

@@ -78,0 +84,0 @@ return filenameNoExtCache;

2

package.json
{
"name": "babel-plugin-globals",
"version": "0.1.1",
"version": "0.1.2",
"description": "A babel plugin that exposes ES6 modules to global variables.",

@@ -5,0 +5,0 @@ "license": "MIT",

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