Socket
Socket
Sign inDemoInstall

speed-measure-webpack-plugin

Package Overview
Dependencies
298
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.1 to 1.3.2

5

loader.js

@@ -10,3 +10,4 @@ const path = require("path");

const getLoaderName = path => {
const nodeModuleName = /\/node_modules\/([^\/]+)/.exec(path);
const standardPath = path.replace(/\\/g, "/");
const nodeModuleName = /\/node_modules\/([^\/]+)/.exec(standardPath);
return (nodeModuleName && nodeModuleName[1]) || "";

@@ -40,3 +41,3 @@ };

};
}.bind(this)
}.bind(this),
});

@@ -43,0 +44,0 @@

2

package.json
{
"name": "speed-measure-webpack-plugin",
"version": "1.3.1",
"version": "1.3.2",
"description": "Measure + analyse the speed of your webpack loaders and plugins",

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

@@ -144,2 +144,12 @@ <div align="center">

## FAQ
### What does general output time mean?
This tends to be down to webpack reading in from the file-system, but in general it's anything outside of what SMP can actually measure.
### What does modules without loaders mean?
It means vanilla JS files, which webpack can handle out of the box.
## Contributing

@@ -146,0 +156,0 @@

@@ -54,6 +54,8 @@ const isEqual = (x, y) =>

.map(l =>
l.replace(
/^.*\/node_modules\/(@[a-z0-9][\w-.]+\/[a-z0-9][\w-.]*|[^\/]+).*$/,
(_, m) => m
)
l
.replace(/\\/g, "/")
.replace(
/^.*\/node_modules\/(@[a-z0-9][\w-.]+\/[a-z0-9][\w-.]*|[^\/]+).*$/,
(_, m) => m
)
)

@@ -60,0 +62,0 @@ .filter(l => !l.includes("speed-measure-webpack-plugin"))

@@ -167,4 +167,3 @@ let idInc = 0;

const wrappedObjs = [];
const wrap = (orig, pluginName, smp, addEndEvent) => {
if (!orig) return orig;
const findWrappedObj = (orig, pluginName) => {
const prevWrapped = wrappedObjs.find(

@@ -174,2 +173,7 @@ w => w.pluginName === pluginName && (w.orig === orig || w.wrapped === orig)

if (prevWrapped) return prevWrapped.wrapped;
};
const wrap = (orig, pluginName, smp, addEndEvent) => {
if (!orig) return orig;
const prevWrapped = findWrappedObj(orig, pluginName);
if (prevWrapped) return prevWrapped;

@@ -222,2 +226,9 @@ const getOrigConstrucName = target =>

if (shouldWrap && property === "compiler") {
const prevWrapped = findWrappedObj(raw, pluginName);
if (prevWrapped) {
return prevWrapped;
}
}
if (typeof raw === "function") {

@@ -224,0 +235,0 @@ const ret = raw.bind(proxy);

Sorry, the diff of this file is not supported yet

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