@sveltejs/vite-plugin-svelte-inspector
Advanced tools
Comparing version 2.0.0-next.0 to 2.0.0-next.1
{ | ||
"name": "@sveltejs/vite-plugin-svelte-inspector", | ||
"version": "2.0.0-next.0", | ||
"version": "2.0.0-next.1", | ||
"license": "MIT", | ||
"author": "dominikg", | ||
"files": [ | ||
"src" | ||
"src", | ||
"types" | ||
], | ||
"type": "module", | ||
"types": "src/index.d.ts", | ||
"types": "types/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./src/index.d.ts", | ||
"import": "./src/index.js" | ||
"import": { | ||
"types": "./types/index.d.ts", | ||
"default": "./src/index.js" | ||
} | ||
} | ||
@@ -39,15 +42,16 @@ }, | ||
"peerDependencies": { | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0-next.0 || ^3.0.0", | ||
"svelte": "^4.0.0", | ||
"vite": "^5.0.0-beta.1 || ^5.0.0", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0-next.0" | ||
"vite": "^5.0.0-beta.1 || ^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/debug": "^4.1.8", | ||
"svelte": "^4.2.0", | ||
"vite": "^5.0.0-beta.1" | ||
"@types/debug": "^4.1.10", | ||
"svelte": "^4.2.2", | ||
"vite": "^5.0.0-beta.12" | ||
}, | ||
"scripts": { | ||
"check:publint": "publint --strict", | ||
"check:types": "tsc --noEmit" | ||
"check:types": "tsc --noEmit", | ||
"generate:types": "dts-buddy -m \"@sveltejs/vite-plugin-svelte-inspector:src/public.d.ts\"" | ||
} | ||
} |
@@ -17,3 +17,6 @@ import { normalizePath } from 'vite'; | ||
/** @type {import('.').svelteInspector} */ | ||
/** | ||
* @param {Partial<import('./public.d.ts').Options>} [options] | ||
* @returns {import('vite').Plugin} | ||
*/ | ||
export function svelteInspector(options) { | ||
@@ -25,3 +28,3 @@ const inspectorPath = getInspectorPath(); | ||
let viteConfig; | ||
/** @type {import('.').Options} */ | ||
/** @type {import('./public.d.ts').Options} */ | ||
let inspectorOptions; | ||
@@ -28,0 +31,0 @@ let disabled = false; |
import { loadEnv } from 'vite'; | ||
import { debug } from './debug.js'; | ||
/** @type {import('.').Options} */ | ||
/** @type {import('./public.d.ts').Options} */ | ||
export const defaultInspectorOptions = { | ||
@@ -17,3 +17,3 @@ toggleKeyCombo: process.platform === 'darwin' ? 'meta-shift' : 'control-shift', | ||
* @param {import('vite').ResolvedConfig} config | ||
* @returns {Partial<import('.').Options> | boolean | void} | ||
* @returns {Partial<import('./public.d.ts').Options> | boolean | void} | ||
*/ | ||
@@ -20,0 +20,0 @@ export function parseEnvironmentOptions(config) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25309
12
311