Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/enhanced-img

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/enhanced-img - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

14

package.json
{
"name": "@sveltejs/enhanced-img",
"version": "0.2.1",
"version": "0.3.0",
"description": "Image optimization for your Svelte apps",

@@ -10,2 +10,12 @@ "repository": {

},
"keywords": [
"component",
"enhanced",
"image",
"preprocessor",
"plugin",
"svelte",
"sveltekit",
"vite"
],
"license": "MIT",

@@ -36,3 +46,3 @@ "homepage": "https://kit.svelte.dev",

"vite": "^5.2.8",
"vitest": "^1.5.0"
"vitest": "^1.6.0"
},

@@ -39,0 +49,0 @@ "scripts": {

8

src/index.js

@@ -6,6 +6,6 @@ import path from 'node:path';

/**
* @returns {Promise<import('vite').Plugin[]>}
* @returns {import('vite').Plugin[]}
*/
export async function enhancedImages() {
const imagetools_instance = await imagetools_plugin();
export function enhancedImages() {
const imagetools_instance = imagetools_plugin();
return !process.versions.webcontainer

@@ -64,3 +64,3 @@ ? [image_plugin(imagetools_instance), imagetools_instance]

async function imagetools_plugin() {
function imagetools_plugin() {
/** @type {Partial<import('vite-imagetools').VitePluginOptions>} */

@@ -67,0 +67,0 @@ const imagetools_opts = {

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