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

vite-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

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

Comparing version 0.11.0 to 0.12.0

2

dist/index.js

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

"use strict";var C=Object.defineProperty,h=Object.defineProperties;var x=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var V=(e,t,l)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,d=(e,t)=>{for(var l in t||(t={}))P.call(t,l)&&V(e,l,t[l]);if(m)for(var l of m(t))W.call(t,l)&&V(e,l,t[l]);return e},v=(e,t)=>h(e,x(t));var g=(e,t,l)=>new Promise((r,i)=>{var f=a=>{try{s(l.next(a))}catch(c){i(c)}},u=a=>{try{s(l.throw(a))}catch(c){i(c)}},s=a=>a.done?r(a.value):Promise.resolve(a.value).then(f,u);s((l=l.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("code-inspector-core"),_="vite-code-inspector-plugin",M=["isJsx","isTsx","lang.jsx","lang.tsx"];function T(e){const t={port:0,entry:"",nextJsEntry:"",ssrEntry:""};return v(d({name:_},e.enforcePre===!1?{}:{enforce:"pre"}),{apply(r,{command:i}){if(e!=null&&e.close)return!1;let f;return typeof(e==null?void 0:e.dev)=="function"?f=e==null?void 0:e.dev():f=e==null?void 0:e.dev,f===!1?!1:!!f||i==="serve"},resolveId(r){return g(this,null,function*(){return t.port||(yield n.startServer(e,t)),r===n.ViteVirtualModule_EliminateVueWarning?"\0".concat(n.ViteVirtualModule_EliminateVueWarning):r===n.ViteVirtualModule_Client?"\0".concat(n.ViteVirtualModule_Client):null})},load(r){return r==="\0".concat(n.ViteVirtualModule_EliminateVueWarning)?n.getEliminateVueWarningCode():r==="\0".concat(n.ViteVirtualModule_Client)?n.getClientInjectCode(t.port,e):null},transform(r,i){return g(this,null,function*(){if(i.match("node_modules"))return r;r=yield n.getCodeWithWebComponent(e,i,r,t);const[f]=i.split("?",2),u=n.normalizePath(f),s=new URLSearchParams(i);if(e!=null&&e.match&&!e.match.test(u))return r;const{escapeTags:a=[]}=e||{};return n.isJsTypeFile(u)||u.endsWith(".vue")&&(M.some(y=>s.get(y)!==null)||s.get("lang")==="tsx"||s.get("lang")==="jsx")?n.transformCode({content:r,filePath:u,fileType:"jsx",escapeTags:a}):u.endsWith(".vue")&&s.get("type")!=="style"&&s.get("raw")===null?n.transformCode({content:r,filePath:u,fileType:"vue",escapeTags:a}):u.endsWith(".svelte")?n.transformCode({content:r,filePath:u,fileType:"svelte",escapeTags:a}):r})}})}exports.ViteCodeInspectorPlugin=T;
"use strict";var y=Object.defineProperty,P=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var C=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var g=(e,r,l)=>r in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[r]=l,m=(e,r)=>{for(var l in r||(r={}))x.call(r,l)&&g(e,l,r[l]);if(C)for(var l of C(r))_.call(r,l)&&g(e,l,r[l]);return e},v=(e,r)=>P(e,h(r));var d=(e,r,l)=>new Promise((t,s)=>{var i=a=>{try{f(l.next(a))}catch(c){s(c)}},u=a=>{try{f(l.throw(a))}catch(c){s(c)}},f=a=>a.done?t(a.value):Promise.resolve(a.value).then(i,u);f((l=l.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("code-inspector-core"),M="vite-code-inspector-plugin",T=["isJsx","isTsx","lang.jsx","lang.tsx"];function j(e){const r={port:0,entry:"",nextJsEntry:"",ssrEntry:""};return v(m({name:M},e.enforcePre===!1?{}:{enforce:"pre"}),{apply(t,{command:s}){if(e!=null&&e.close)return!1;let i;return typeof(e==null?void 0:e.dev)=="function"?i=e==null?void 0:e.dev():i=e==null?void 0:e.dev,i===!1?!1:!!i||s==="serve"},resolveId(t){return d(this,null,function*(){return r.port||(yield n.startServer(e,r)),t===n.ViteVirtualModule_PrependCode?"\0".concat(n.ViteVirtualModule_PrependCode):t===n.ViteVirtualModule_ClientCode?"\0".concat(n.ViteVirtualModule_ClientCode):null})},load(t){return t==="\0".concat(n.ViteVirtualModule_PrependCode)?n.getPrependCode(e):t==="\0".concat(n.ViteVirtualModule_ClientCode)?n.getClientInjectCode(r.port,e):null},transform(t,s){return d(this,null,function*(){if(s.match("node_modules"))return t;t=yield n.getCodeWithWebComponent(e,s,t,r);const[i]=s.split("?",2),u=n.normalizePath(i),f=new URLSearchParams(s);if(e!=null&&e.match&&!e.match.test(u))return t;const{escapeTags:a=[]}=e||{};return n.isJsTypeFile(u)||u.endsWith(".vue")&&(T.some(V=>f.get(V)!==null)||f.get("lang")==="tsx"||f.get("lang")==="jsx")?n.transformCode({content:t,filePath:u,fileType:"jsx",escapeTags:a}):u.endsWith(".vue")&&f.get("type")!=="style"&&f.get("raw")===null?n.transformCode({content:t,filePath:u,fileType:"vue",escapeTags:a}):u.endsWith(".svelte")?n.transformCode({content:t,filePath:u,fileType:"svelte",escapeTags:a}):t})}})}exports.ViteCodeInspectorPlugin=j;
{
"name": "vite-code-inspector-plugin",
"version": "0.11.0",
"version": "0.12.0",
"main": "./dist/index.js",

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

"dependencies": {
"code-inspector-core": "0.11.0"
"code-inspector-core": "0.12.0"
},

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

@@ -302,10 +302,2 @@ <div align="center">

Sponsoring this project can help the author create better . If you needed, you can contact the author to have your avatar added to the list of sponsors.
- Afdian(ηˆ±ε‘η”΅): https://afdian.net/a/zhoulixiang
- Alipay or WeChatPay:
<div style="display: flex; column-gap: 16px; row-gap: 16px; flex-wrap: wrap;">
<img src="https://cdn.jsdelivr.net/gh/zh-lx/static-img/code-inspector/wxpay.jpg" width="200" height="272" />
<img src="https://cdn.jsdelivr.net/gh/zh-lx/static-img/code-inspector/alipay.jpg" width="180" height="272" />
</div>
Sponsoring this project can help the author create better. If you are willing, thanks for sponsoring me through [here](https://inspector.fe-dev.cn/en/more/sponsor.html).

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

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