rollup-plugin-gzip
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -5,4 +5,4 @@ /// <reference types="node" /> | ||
import { Plugin } from 'rollup'; | ||
export declare type StringMappingOption = (originalString: string) => string; | ||
export declare type CustomCompressionOption = (content: string | Buffer) => string | Buffer | Promise<string | Buffer>; | ||
export type StringMappingOption = (originalString: string) => string; | ||
export type CustomCompressionOption = (content: string | Buffer) => string | Buffer | Promise<string | Buffer>; | ||
export interface GzipPluginOptions { | ||
@@ -9,0 +9,0 @@ /** |
@@ -76,3 +76,3 @@ "use strict"; | ||
// default options | ||
filter: /\.(js|mjs|cjs|json|css|html|wasm)$/, | ||
filter: /\.(js|mjs|cjs|json|css|html|wasm|svg)$/, | ||
fileName: '.gz', | ||
@@ -79,0 +79,0 @@ customCompression: (fileContent) => gzipPromise(fileContent, options.gzipOptions), |
{ | ||
"name": "rollup-plugin-gzip", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"engines": { | ||
@@ -30,6 +30,5 @@ "node": ">=10.0.0" | ||
"clean": "rimraf dist dist-es", | ||
"docker-node10": "rm -rf node_modules && docker run --rm --user $(id -u):$(id -g) -w='/app' --mount type=bind,source=$(pwd),target=/app node:10-alpine yarn && rm -rf node_modules && yarn", | ||
"format": "prettier --write --config .prettierrc '*.js', './src/**' './test/**' './examples/**'", | ||
"lint": "eslint --ext .js,.ts .", | ||
"test": "jest --runInBand", | ||
"test": "vitest run", | ||
"prepack": "yarn run clean && yarn run build", | ||
@@ -49,20 +48,17 @@ "prepublish": "yarn run lint && yarn run test" | ||
"devDependencies": { | ||
"@types/jest": "^29.2.0", | ||
"@types/node": "^18.11.3", | ||
"@types/rimraf": "^3.0.2", | ||
"@typescript-eslint/eslint-plugin": "^5.40.1", | ||
"@typescript-eslint/parser": "^5.40.1", | ||
"eslint": "^8.26.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^27.1.3", | ||
"@types/node": "^20.10.5", | ||
"@typescript-eslint/eslint-plugin": "^6.16.0", | ||
"@typescript-eslint/parser": "^6.16.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-jest": "^27.6.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"jest": "^29.2.1", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^3.2.3", | ||
"ts-jest": "^29.0.3", | ||
"typescript": "^4.8.4", | ||
"vite": "^2.9.15" | ||
"eslint-plugin-prettier": "^5.1.2", | ||
"prettier": "^3.1.1", | ||
"rimraf": "^5.0.5", | ||
"rollup": "^4.9.1", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.0.10", | ||
"vitest": "^1.1.0" | ||
}, | ||
@@ -72,3 +68,3 @@ "peerDependencies": { | ||
}, | ||
"packageManager": "yarn@3.2.0" | ||
"packageManager": "yarn@4.0.2" | ||
} |
@@ -38,3 +38,3 @@ # rollup-plugin-gzip | ||
Defaults to `/\.(js|mjs|cjs|json|css|html|wasm)$/` | ||
Defaults to `/\.(js|mjs|cjs|json|css|html|wasm|svg)$/` | ||
@@ -41,0 +41,0 @@ **gzipOptions** `object` |
Sorry, the diff of this file is not supported yet
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
15
23512