Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@open-editor/vite

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-editor/vite - npm Package Compare versions

Comparing version
0.9.0
to
0.9.1
+1
-1
dist/index.d.ts

@@ -41,3 +41,3 @@ import { ViteDevServer } from 'vite';

*
* @default false
* @default true
*/

@@ -44,0 +44,0 @@ crossIframe?: boolean;

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

"use strict";var node_path=require("node:path"),shared=require("@open-editor/shared"),node=require("@open-editor/shared/node"),server=require("@open-editor/server"),_documentCurrentScript=typeof document<"u"?document.currentScript:null;const CLIENT_ID="/client.mjs";function OpenEditorPlugin(options={}){if(!node.isDev())return{name:"OpenEditorPlugin"};const{onOpenEditor}=options,rootDir=shared.normalizePath(options.rootDir?node_path.resolve(options.rootDir):process.cwd());return{name:"OpenEditorPlugin",apply:"serve",configureServer(server$1){server$1.middlewares.use(shared.ServerApis.OPEN_EDITOR,server.openEditorMiddleware({rootDir,onOpenEditor}))},resolveId(id){if(id===shared.CLIENT_MODULE_ID)return node.resolvePath(shared.CLIENT_MODULE_ID,typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.src||new URL("index.js",document.baseURI).href).replace(/\.js$/,".mjs")},transform(code,id){if(id.endsWith(CLIENT_ID))return shared.injectClient(code,{...options,rootDir})}}}module.exports=OpenEditorPlugin;
"use strict";var node_path=require("node:path"),shared=require("@open-editor/shared"),node=require("@open-editor/shared/node"),server=require("@open-editor/server"),_documentCurrentScript=typeof document<"u"?document.currentScript:null;const CLIENT_ID="/client.mjs";function OpenEditorPlugin(options={}){if(!node.isDev())return{name:"OpenEditorPlugin"};const{onOpenEditor}=options,rootDir=shared.normalizePath(options.rootDir?node_path.resolve(options.rootDir):process.cwd());return{name:"OpenEditorPlugin",apply:"serve",configureServer(server$1){server$1.middlewares.use(shared.ServerApis.OPEN_EDITOR,server.openEditorMiddleware({rootDir,onOpenEditor}))},resolveId(id){if(id===shared.CLIENT_MODULE_ID)return node.resolvePath(shared.CLIENT_MODULE_ID,typeof document>"u"?require("url").pathToFileURL(__filename).href:_documentCurrentScript&&_documentCurrentScript.tagName.toUpperCase()==="SCRIPT"&&_documentCurrentScript.src||new URL("index.js",document.baseURI).href).replace(/\.js$/,".mjs")},transform(code,id){if(id.endsWith(CLIENT_ID))return shared.injectClient(code,{...options,rootDir})}}}module.exports=OpenEditorPlugin;
{
"name": "@open-editor/vite",
"version": "0.9.0",
"version": "0.9.1",
"description": "🚀 A vite plugin for fast find source code.",

@@ -39,5 +39,5 @@ "main": "./dist/index.js",

"dependencies": {
"@open-editor/client": "0.9.0",
"@open-editor/server": "0.9.0",
"@open-editor/shared": "0.9.0"
"@open-editor/client": "0.9.1",
"@open-editor/server": "0.9.1",
"@open-editor/shared": "0.9.1"
},

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

@@ -73,3 +73,3 @@ # @open-editor/vite

*
* @default false
* @default true
*/

@@ -76,0 +76,0 @@ crossIframe?: boolean;