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

closure-loader

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

closure-loader - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

index.js

@@ -31,3 +31,2 @@ var loaderUtils = require("loader-utils"),

var provideRegExp = /goog\.provide\((['"])(([^.)]+)[^)]*)\1\)/g,
matchCount = 0,
firstMatch,

@@ -46,6 +45,5 @@ matches;

source = source.replace(matches[0], createProvide(matches[2], matches[3]));
matchCount++;
}
if (es6mode && matchCount === 1 && firstMatch) {
if (es6mode && firstMatch) {
source = appendLine(source, 'module.exports.default = ' + firstMatch + ';');

@@ -52,0 +50,0 @@ source = appendLine(source, 'module.exports.__esModule = true;');

{
"name": "closure-loader",
"version": "0.1.2",
"version": "0.1.3",
"description": "Webpack loader for google closure library dependencies",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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