Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1.0 to 0.1.1

2

./dist/index.js

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

"use strict";var f=Object.defineProperty;var d=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var x=(t,n,e)=>n in t?f(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,P=(t,n)=>{for(var e in n||(n={}))v.call(n,e)&&x(t,e,n[e]);if(d)for(var e of d(n))h.call(n,e)&&x(t,e,n[e]);return t};var p=(t,n,e)=>new Promise((i,o)=>{var s=a=>{try{u(e.next(a))}catch(c){o(c)}},r=a=>{try{u(e.throw(a))}catch(c){o(c)}},u=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);u((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("code-inspector-core"),m=require("path"),w="vite-code-inspector-plugin";let g="";const y=(t,n)=>{const e=t.lastIndexOf("</html>");return e>-1&&(t=t.slice(0,e)+"\n".concat(n,"\n")+t.slice(e)),t};function j(t){return{name:w,enforce:"pre",apply(e,{command:i}){return i==="serve"},transform(e,i){return p(this,null,function*(){g||(g=process.cwd());const[o]=i.split("?",2),s=l.normalizePath(o),r=new URLSearchParams(i),u=s.endsWith(".jsx")||s.endsWith(".tsx")||s.endsWith(".vue")&&(r.get("isJsx")!==null||r.get("lang.tsx")!==null||r.get("lang.jsx")!==null||r.get("lang")==="tsx"||r.get("lang")==="jsx"),a=s.endsWith(".vue")&&r.get("type")!=="style"&&r.get("raw")===null,c=l.normalizePath(m.relative(g,s));return u?e=yield l.enhanceVueCode(e,c,"vue-jsx"):a&&(e=yield l.enhanceVueCode(e,c,"vue")),e})},transformIndexHtml(e){return p(this,null,function*(){return e=yield new Promise(i=>{l.startServer(o=>{const s=l.getInjectCode(o,P({},t||{}));e=y(e,s),i(e)},g)}),e})}}}exports.ViteCodeInspectorPlugin=j;
"use strict";var P=Object.defineProperty;var d=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var f=(t,n,e)=>n in t?P(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,x=(t,n)=>{for(var e in n||(n={}))v.call(n,e)&&f(t,e,n[e]);if(d)for(var e of d(n))y.call(n,e)&&f(t,e,n[e]);return t};var g=(t,n,e)=>new Promise((i,o)=>{var s=a=>{try{u(e.next(a))}catch(c){o(c)}},r=a=>{try{u(e.throw(a))}catch(c){o(c)}},u=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);u((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("code-inspector-core"),h=require("path"),m="vite-code-inspector-plugin";let p="";const w=(t,n)=>{const e=t.lastIndexOf("</html>");return e>-1&&(t=t.slice(0,e)+"\n".concat(n,"\n")+t.slice(e)),t};function j(t){return{name:m,enforce:"pre",apply(e,{command:i}){return i==="serve"},transform(e,i){return g(this,null,function*(){p||(p=process.cwd());const[o]=i.split("?",2),s=l.normalizePath(o),r=new URLSearchParams(i),u=s.endsWith(".jsx")||s.endsWith(".tsx")||s.endsWith(".vue")&&(r.get("isJsx")!==null||r.get("lang.tsx")!==null||r.get("lang.jsx")!==null||r.get("lang")==="tsx"||r.get("lang")==="jsx"),a=s.endsWith(".vue")&&r.get("type")!=="style"&&r.get("raw")===null,c=l.normalizePath(h.relative(p,s));return u?e=yield l.enhanceCode({code:e,filePath:c,fileType:"jsx"}):a&&(e=yield l.enhanceCode({code:e,filePath:c,fileType:"vue"})),e})},transformIndexHtml(e){return g(this,null,function*(){return e=yield new Promise(i=>{l.startServer(o=>{const s=l.getInjectCode(o,x({},t||{}));e=w(e,s),i(e)},p)}),e})}}}exports.ViteCodeInspectorPlugin=j;

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

"use strict";var f=Object.defineProperty;var d=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var x=(t,n,e)=>n in t?f(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,P=(t,n)=>{for(var e in n||(n={}))v.call(n,e)&&x(t,e,n[e]);if(d)for(var e of d(n))h.call(n,e)&&x(t,e,n[e]);return t};var p=(t,n,e)=>new Promise((i,o)=>{var s=a=>{try{u(e.next(a))}catch(c){o(c)}},r=a=>{try{u(e.throw(a))}catch(c){o(c)}},u=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);u((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("code-inspector-core"),m=require("path"),w="vite-code-inspector-plugin";let g="";const y=(t,n)=>{const e=t.lastIndexOf("</html>");return e>-1&&(t=t.slice(0,e)+"\n".concat(n,"\n")+t.slice(e)),t};function j(t){return{name:w,enforce:"pre",apply(e,{command:i}){return i==="serve"},transform(e,i){return p(this,null,function*(){g||(g=process.cwd());const[o]=i.split("?",2),s=l.normalizePath(o),r=new URLSearchParams(i),u=s.endsWith(".jsx")||s.endsWith(".tsx")||s.endsWith(".vue")&&(r.get("isJsx")!==null||r.get("lang.tsx")!==null||r.get("lang.jsx")!==null||r.get("lang")==="tsx"||r.get("lang")==="jsx"),a=s.endsWith(".vue")&&r.get("type")!=="style"&&r.get("raw")===null,c=l.normalizePath(m.relative(g,s));return u?e=yield l.enhanceVueCode(e,c,"vue-jsx"):a&&(e=yield l.enhanceVueCode(e,c,"vue")),e})},transformIndexHtml(e){return p(this,null,function*(){return e=yield new Promise(i=>{l.startServer(o=>{const s=l.getInjectCode(o,P({},t||{}));e=y(e,s),i(e)},g)}),e})}}}exports.ViteCodeInspectorPlugin=j;
"use strict";var P=Object.defineProperty;var d=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var f=(t,n,e)=>n in t?P(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,x=(t,n)=>{for(var e in n||(n={}))v.call(n,e)&&f(t,e,n[e]);if(d)for(var e of d(n))y.call(n,e)&&f(t,e,n[e]);return t};var g=(t,n,e)=>new Promise((i,o)=>{var s=a=>{try{u(e.next(a))}catch(c){o(c)}},r=a=>{try{u(e.throw(a))}catch(c){o(c)}},u=a=>a.done?i(a.value):Promise.resolve(a.value).then(s,r);u((e=e.apply(t,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("code-inspector-core"),h=require("path"),m="vite-code-inspector-plugin";let p="";const w=(t,n)=>{const e=t.lastIndexOf("</html>");return e>-1&&(t=t.slice(0,e)+"\n".concat(n,"\n")+t.slice(e)),t};function j(t){return{name:m,enforce:"pre",apply(e,{command:i}){return i==="serve"},transform(e,i){return g(this,null,function*(){p||(p=process.cwd());const[o]=i.split("?",2),s=l.normalizePath(o),r=new URLSearchParams(i),u=s.endsWith(".jsx")||s.endsWith(".tsx")||s.endsWith(".vue")&&(r.get("isJsx")!==null||r.get("lang.tsx")!==null||r.get("lang.jsx")!==null||r.get("lang")==="tsx"||r.get("lang")==="jsx"),a=s.endsWith(".vue")&&r.get("type")!=="style"&&r.get("raw")===null,c=l.normalizePath(h.relative(p,s));return u?e=yield l.enhanceCode({code:e,filePath:c,fileType:"jsx"}):a&&(e=yield l.enhanceCode({code:e,filePath:c,fileType:"vue"})),e})},transformIndexHtml(e){return g(this,null,function*(){return e=yield new Promise(i=>{l.startServer(o=>{const s=l.getInjectCode(o,x({},t||{}));e=w(e,s),i(e)},p)}),e})}}}exports.ViteCodeInspectorPlugin=j;
{
"name": "vite-code-inspector-plugin",
"version": "0.1.0",
"version": "0.1.1",
"main": "./dist/index.js",

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

"dependencies": {
"code-inspector-core": "0.1.0"
"code-inspector-core": "0.1.1"
},

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

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