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

webpack-code-inspector-plugin

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-code-inspector-plugin - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

./dist/index.umd.js

2

dist/index.umd.js

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

(function(t,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n(require("code-inspector-core"),require("path")):typeof define=="function"&&define.amd?define(["code-inspector-core","path"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,t.WebpackCodeInspectorPlugin=n(t.codeInspectorCore,t.path))})(this,function(t,n){"use strict";var v=Object.defineProperty;var h=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var l=(t,n,i)=>n in t?v(t,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[n]=i,k=(t,n)=>{for(var i in n||(n={}))x.call(n,i)&&l(t,i,n[i]);if(h)for(var i of h(n))y.call(n,i)&&l(t,i,n[i]);return t};let i=!0;const g=(c,e)=>{var u;if(!i)return;i=!1;const r=(c==null?void 0:c.compiler)||c,o=(u=r==null?void 0:r.options)==null?void 0:u.module;((o==null?void 0:o.rules)||(o==null?void 0:o.loaders)||[]).push({test:/\.(vue|jsx|tsx|js|ts)$/,exclude:/node_modules/,use:[n.resolve(__dirname,"./loader.js")],enforce:"pre"}),typeof e=="function"&&e()},f=(c,e)=>{const r=c.lastIndexOf("</html>");return r>-1&&(c=c.slice(0,r)+"\n".concat(e,"\n")+c.slice(r)),c},P=(c,e,r)=>{const o=Object.keys(e).filter(s=>/\.html$/.test(s));o.length?o.forEach(s=>{const u=e[s].source(),p=f(u,c);e[s]={source:()=>p,size:()=>p.length}}):r&&r(new Error("webpack-code-inspector-plugin Cannot find output HTML file"))};class b{constructor(e){this.options=e||{}}apply(e){var o;if(i=!0,this.options.close||((o=e==null?void 0:e.options)==null?void 0:o.mode)!=="development"&&process.env.NODE_ENV!=="development")return;const r=s=>t.getInjectCode(s,k({},this.options||{}));e.hooks&&this.handleWebpackAbove4(e,r)}handleWebpackAbove4(e,r){e.hooks.watchRun.tap("WebpackCodeInspectorLoader",g);const o=e.options.plugins.find(s=>s.constructor.name==="HtmlWebpackPlugin");o?e.hooks.compilation.tap("WebpackCodeInspectorPlugin",s=>{let u=s.hooks.htmlWebpackPluginAfterHtmlProcessing;u||(u=o.constructor.getHooks(s).beforeEmit),u.tapAsync("WebpackCodeInspectorPlugin",(p,a)=>{const d=t.normalizePath(s.options.context);t.startServer(W=>{p.html=f(p.html,r(W)),a(null,p)},d,this.options.editor)})}):e.hooks.emit.tapAsync("WebpackCodeInspectorPlugin",(s,u)=>{const p=t.normalizePath(s.options.context);t.startServer(a=>{const{assets:d}=s;P(r(a),d,u),u()},p)})}}return b});
(function(t,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n(require("code-inspector-core"),require("path")):typeof define=="function"&&define.amd?define(["code-inspector-core","path"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,t.WebpackCodeInspectorPlugin=n(t.codeInspectorCore,t.path))})(this,function(t,n){"use strict";var v=Object.defineProperty;var h=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var l=(t,n,r)=>n in t?v(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,k=(t,n)=>{for(var r in n||(n={}))x.call(n,r)&&l(t,r,n[r]);if(h)for(var r of h(n))y.call(n,r)&&l(t,r,n[r]);return t};let r=!0;const g=(c,e)=>{var u;if(!r)return;r=!1;const i=(c==null?void 0:c.compiler)||c,o=(u=i==null?void 0:i.options)==null?void 0:u.module;((o==null?void 0:o.rules)||(o==null?void 0:o.loaders)||[]).push({test:/\.(vue|jsx|tsx|js|ts)$/,exclude:/node_modules/,use:[n.resolve(__dirname,"./loader.js")]}),typeof e=="function"&&e()},f=(c,e)=>{const i=c.lastIndexOf("</html>");return i>-1&&(c=c.slice(0,i)+"\n".concat(e,"\n")+c.slice(i)),c},P=(c,e,i)=>{const o=Object.keys(e).filter(s=>/\.html$/.test(s));o.length?o.forEach(s=>{const u=e[s].source(),p=f(u,c);e[s]={source:()=>p,size:()=>p.length}}):i&&i(new Error("webpack-code-inspector-plugin Cannot find output HTML file"))};class b{constructor(e){this.options=e||{}}apply(e){var o;if(r=!0,this.options.close||((o=e==null?void 0:e.options)==null?void 0:o.mode)!=="development"&&process.env.NODE_ENV!=="development")return;const i=s=>t.getInjectCode(s,k({},this.options||{}));e.hooks&&this.handleWebpackAbove4(e,i)}handleWebpackAbove4(e,i){e.hooks.watchRun.tap("WebpackCodeInspectorLoader",g);const o=e.options.plugins.find(s=>s.constructor.name==="HtmlWebpackPlugin");o?e.hooks.compilation.tap("WebpackCodeInspectorPlugin",s=>{let u=s.hooks.htmlWebpackPluginAfterHtmlProcessing;u||(u=o.constructor.getHooks(s).beforeEmit),u.tapAsync("WebpackCodeInspectorPlugin",(p,a)=>{const d=t.normalizePath(s.options.context);t.startServer(W=>{p.html=f(p.html,i(W)),a(null,p)},d,this.options.editor)})}):e.hooks.emit.tapAsync("WebpackCodeInspectorPlugin",(s,u)=>{const p=t.normalizePath(s.options.context);t.startServer(a=>{const{assets:d}=s;P(i(a),d,u),u()},p)})}}return b});
{
"name": "webpack-code-inspector-plugin",
"version": "0.3.0",
"version": "0.3.1",
"main": "./dist/index.umd.js",

@@ -41,3 +41,3 @@ "module": "./dist/index.mjs",

"dependencies": {
"code-inspector-core": "0.3.0"
"code-inspector-core": "0.3.1"
},

@@ -44,0 +44,0 @@ "devDependencies": {

@@ -0,0 +0,0 @@ <div align="center">

@@ -0,0 +0,0 @@ import { CodeOptions } from 'code-inspector-core';

@@ -0,0 +0,0 @@ /**

Sorry, the diff of this file is not supported yet

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