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.4.4 to 0.4.5

./dist/index.js

2

dist/index.js

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

"use strict";var v=Object.defineProperty,y=Object.defineProperties;var d=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var m=(e,t,s)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,x=(e,t)=>{for(var s in t||(t={}))C.call(t,s)&&m(e,s,t[s]);if(g)for(var s of g(t))w.call(t,s)&&m(e,s,t[s]);return e},j=(e,t)=>y(e,d(t));var h=(e,t,s)=>new Promise((n,r)=>{var u=l=>{try{a(s.next(l))}catch(c){r(c)}},i=l=>{try{a(s.throw(l))}catch(c){r(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(u,i);a((s=s.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("code-inspector-core"),I="vite-code-inspector-plugin";function S(e){const t={port:0,entry:"",nextInjectedFile:"",useEffectFile:"",injectAll:!1};return j(x({name:I},e.enforcePre===!1?{}:{enforce:"pre"}),{apply(n,{command:r}){return e!=null&&e.close?!1:r==="serve"},transform(n,r){return h(this,null,function*(){if(n=yield o.getServedCode(e,r,n,t),r.match("node_modules"))return n;const[u]=r.split("?",2),i=o.normalizePath(u),a=new URLSearchParams(r),l=[".js",".ts",".mjs",".mts",".jsx",".tsx"],c=["isJsx","isTsx","lang.jsx","lang.tsx"],p=l.some(f=>i.endsWith(f))||i.endsWith(".vue")&&(c.some(f=>a.get(f)!==null)||a.get("lang")==="tsx"||a.get("lang")==="jsx"),P=i.endsWith(".vue")&&a.get("type")!=="style"&&a.get("raw")===null;return p?n=yield o.enhanceCode({code:n,filePath:i,fileType:"jsx"}):P&&(n=yield o.enhanceCode({code:n,filePath:i,fileType:"vue"})),n})}})}exports.ViteCodeInspectorPlugin=S;
"use strict";var h=Object.defineProperty,v=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var g=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))C.call(t,n)&&g(e,n,t[n]);return e},p=(e,t)=>v(e,j(t));var x=(e,t,n)=>new Promise((s,r)=>{var o=l=>{try{a(n.next(l))}catch(c){r(c)}},i=l=>{try{a(n.throw(l))}catch(c){r(c)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(o,i);a((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("code-inspector-core"),w="vite-code-inspector-plugin";function T(e){const t={port:0,entry:"",nextInjectedFile:"",useEffectFile:"",injectAll:!1};return p(m({name:w},e.enforcePre===!1?{}:{enforce:"pre"}),{apply(s,{command:r}){return e!=null&&e.close?!1:r==="serve"},transform(s,r){return x(this,null,function*(){if(s=yield u.getServedCode(e,r,s,t),r.match("node_modules"))return s;const[o]=r.split("?",2),i=u.normalizePath(o),a=new URLSearchParams(r),l=["isJsx","isTsx","lang.jsx","lang.tsx"],c=u.isJsTypeFile(i)||i.endsWith(".vue")&&(l.some(P=>a.get(P)!==null)||a.get("lang")==="tsx"||a.get("lang")==="jsx"),y=i.endsWith(".vue")&&a.get("type")!=="style"&&a.get("raw")===null;return c?s=yield u.enhanceCode({code:s,filePath:i,fileType:"jsx"}):y&&(s=yield u.enhanceCode({code:s,filePath:i,fileType:"vue"})),s})}})}exports.ViteCodeInspectorPlugin=T;
{
"name": "vite-code-inspector-plugin",
"version": "0.4.4",
"version": "0.4.5",
"main": "./dist/index.js",

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

"dependencies": {
"code-inspector-core": "0.4.4"
"code-inspector-core": "0.4.5"
},

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

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

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