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.1.6 to 0.1.7

2

dist/loader.js

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

"use strict";const i=require("code-inspector-core"),x=require("path");function g(e){var r,c;this.cacheable&&this.cacheable();const t=i.normalizePath(this.resourcePath),a=i.normalizePath((c=(r=this.rootContext)!=null?r:this.options.context)!=null?c:""),o=i.normalizePath(x.relative(a,t));let s=new URLSearchParams(this.resource);const h=t.endsWith(".js")||t.endsWith(".ts")||t.endsWith(".jsx")||t.endsWith(".tsx")||t.endsWith(".vue")&&(s.get("isJsx")!==null||s.get("lang.tsx")!==null),l=t.endsWith(".vue")&&(s.get("lang")==="tsx"||s.get("lang")==="jsx"),p=t.endsWith(".vue")&&s.get("type")!=="style"&&s.get("type")!=="script"&&s.get("raw")===null;if(h)e=i.enhanceCode({code:e,filePath:o,fileType:"jsx"});else if(l){const{descriptor:d}=i.parseSFC(e,{sourceMap:!1}),n=d.script.content,u=i.enhanceCode({code:n,filePath:o,fileType:"jsx"});e=e.replace(n,u)}else p&&(e=i.enhanceCode({code:e,filePath:o,fileType:"vue"}));return e}module.exports=g;
"use strict";const s=require("code-inspector-core"),f=require("path");function m(e){var a,c;this.cacheable&&this.cacheable();const o=s.normalizePath(this.resourcePath),l=s.normalizePath((c=(a=this.rootContext)!=null?a:this.options.context)!=null?c:""),r=s.normalizePath(f.relative(l,o));let t=new URLSearchParams(this.resource);const h=[".js",".ts",".jsx",".tsx"],p=["isJsx","isTsx","lang.jsx","lang.tsx"],x=h.some(i=>o.endsWith(i))||o.endsWith(".vue")&&p.some(i=>t.get(i)!==null),u=o.endsWith(".vue")&&(t.get("lang")==="tsx"||t.get("lang")==="jsx"),d=o.endsWith(".vue")&&t.get("type")!=="style"&&t.get("type")!=="script"&&t.get("raw")===null;if(x)e=s.enhanceCode({code:e,filePath:r,fileType:"jsx"});else if(u){const{descriptor:i}=s.parseSFC(e,{sourceMap:!1}),n=i.script.content,g=s.enhanceCode({code:n,filePath:r,fileType:"jsx"});e=e.replace(n,g)}else d&&(e=s.enhanceCode({code:e,filePath:r,fileType:"vue"}));return e}module.exports=m;
{
"name": "webpack-code-inspector-plugin",
"version": "0.1.6",
"version": "0.1.7",
"main": "./dist/index.umd.js",

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

"dependencies": {
"code-inspector-core": "0.1.6"
"code-inspector-core": "0.1.7"
},

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

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

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

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

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