New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-imagetools

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-imagetools - npm Package Compare versions

Comparing version 6.1.0 to 6.2.0

6

dist/index.js

@@ -33,3 +33,3 @@ import { basename, extname } from 'node:path';

async load(id) {
var _a, _b, _c, _d, _e, _f, _g, _h;
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
if (!filter(id))

@@ -124,4 +124,4 @@ return null;

return dataToEsm(await outputFormat(outputMetadatas), {
namedExports: (_g = (_f = viteConfig.json) === null || _f === void 0 ? void 0 : _f.namedExports) !== null && _g !== void 0 ? _g : true,
compact: (_h = !!viteConfig.build.minify) !== null && _h !== void 0 ? _h : false,
namedExports: (_h = (_f = pluginOptions.namedExports) !== null && _f !== void 0 ? _f : (_g = viteConfig.json) === null || _g === void 0 ? void 0 : _g.namedExports) !== null && _h !== void 0 ? _h : true,
compact: (_j = !!viteConfig.build.minify) !== null && _j !== void 0 ? _j : false,
preferConst: true

@@ -128,0 +128,0 @@ });

@@ -67,7 +67,13 @@ import type { TransformFactory, OutputFormat, resolveConfigs } from 'imagetools-core';

/**
* Wether to remove potentially private metadata from the image, such as exif tags etc.
* Whether to remove potentially private metadata from the image, such as exif tags etc.
* @default true
*/
removeMetadata: boolean;
/**
* Whether to generate named exports.
* Takes precedence over Vite's `json.namedExports`
* @default undefined
*/
namedExports?: undefined;
}
export {};
{
"name": "vite-imagetools",
"description": "Load and transform images using a toolbox of import directives!",
"version": "6.1.0",
"version": "6.2.0",
"type": "module",

@@ -44,3 +44,3 @@ "types": "dist/index.d.ts",

"jsdom": "^22.1.0",
"picomatch": "^2.3.1",
"picomatch": "^3.0.0",
"rollup": "^4.0.0",

@@ -47,0 +47,0 @@ "sharp": "^0.32.4",

@@ -37,6 +37,2 @@ # vite-imagetools

```
yarn add -D vite-imagetools
```
## Usage

@@ -43,0 +39,0 @@

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