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

to
0.5.0

./dist/index.js

2

dist/index.js

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

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

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

"dependencies": {
"code-inspector-core": "0.4.6"
"code-inspector-core": "0.5.0"
},

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