vite-plugin-compression2
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -25,8 +25,3 @@ import { Plugin } from 'vite'; | ||
} | ||
interface AlgorithmFunction<T> { | ||
(buf: Buffer, options: CompressionOptions<T>, callback: (err: Error | null, result: Buffer) => void): any; | ||
} | ||
interface AlgorithmFunction<T> { | ||
(buf: Buffer, options: CompressionOptions<T>, callback: (err: Error | null, result: Buffer) => void): any; | ||
} | ||
type AlgorithmFunction<T> = (buf: Buffer, options: CompressionOptions<T>, callback: (err: Error | null, result: Buffer) => void) => void; | ||
type InternalCompressionPluginOptionsFunction<T> = { | ||
@@ -33,0 +28,0 @@ algorithm?: AlgorithmFunction<T>; |
@@ -123,2 +123,3 @@ 'use strict'; | ||
outputOptions.forEach((opt)=>{ | ||
if (typeof opt === 'object' && !len(Object.keys(opt))) return; | ||
outputs.push({ | ||
@@ -125,0 +126,0 @@ dest: opt.dir || conf.build.outDir |
{ | ||
"name": "vite-plugin-compression2", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "a fast vite compression plugin", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
28990
577