Socket
Socket
Sign inDemoInstall

css-hot-loader

Package Overview
Dependencies
13
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.7 to 1.3.8

4

History.md

@@ -0,1 +1,5 @@

### 1.3.8 2018-03-01
- feat: using debounce for update in DOM by @53c701d [!35](https://github.com/shepherdwind/css-hot-loader/pull/35)
### 1.3.7 / 2018-02-10

@@ -2,0 +6,0 @@

10

hotModuleReplacement.js
var normalizeUrl = require('normalize-url');
var srcByModuleId = Object.create(null);
var debounce = require('lodash/debounce');

@@ -7,3 +8,3 @@ var noDocument = typeof document === 'undefined';

var noop = function () {}
var noop = function () {};

@@ -38,3 +39,3 @@ var getCurrentScriptUrl = function(moduleId) {

};
}
};

@@ -113,3 +114,4 @@ function updateCss(el, url) {

getScriptSrc = getCurrentScriptUrl(moduleId);
return function() {
function update() {
var src = getScriptSrc(options.fileMap);

@@ -124,2 +126,4 @@ var reloaded = reloadStyle(src);

}
return debounce(update, 10);
};
{
"name": "css-hot-loader",
"version": "1.3.7",
"version": "1.3.8",
"description": "css hot reload work with extract-text-webpack-plugin",

@@ -26,2 +26,3 @@ "main": "index.js",

"loader-utils": "^1.1.0",
"lodash": "^4.17.5",
"normalize-url": "^1.9.1"

@@ -28,0 +29,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc