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

@angularclass/hmr-loader

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angularclass/hmr-loader - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

12

index.js

@@ -24,12 +24,4 @@ var utils = require('loader-utils');

// return updated metadata
var newLine = ' ';
if (query.pretty) {
newLine = '\n';
}
return ';' +
'if (document.readyState === "complete") {'+ newLine +
' ' + main + '()' + newLine +
'} else {'+ newLine +
' document.addEventListener("DOMContentLoaded", function() { ' + main + '()' + ' });'+ newLine +
'}';
return '(document.readyState === "complete") ? ' + main +
'() : document.addEventListener("DOMContentLoaded", function() { ' + main + '()' + ' })';
});

@@ -36,0 +28,0 @@ return done(source, sourcemap);

2

package.json
{
"name": "@angularclass/hmr-loader",
"version": "3.0.1",
"version": "3.0.2",
"description": "Angular 2 HMR Webpack Loader by @AngularClass",

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

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