Comparing version 4.3.0 to 4.4.0
@@ -8,2 +8,12 @@ # Changelog | ||
## [4.4.0] - 2021-01-29 | ||
### Added | ||
- `--skip-compressed` - skip compressed files if they already exist | ||
### Changed | ||
- compression extensions like `gz`, `zz`, `br`, etc. excluded by default | ||
## [4.3.0] - 2020-10-30 | ||
@@ -10,0 +20,0 @@ |
{ | ||
"name": "gzipper", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "CLI for compressing files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -41,2 +41,3 @@ # Gzipper | ||
- [--remove-larger](#--remove-larger) | ||
- [--skip-compressed](#--skip-compressed) | ||
- [Cache](#cache-1) | ||
@@ -99,2 +100,3 @@ - [purge](#purge) | ||
--remove-larger remove compressed files if they larger than uncompressed originals | ||
--skip-compressed skip compressed files if they already exist | ||
-h, --help display help for command | ||
@@ -185,3 +187,3 @@ ``` | ||
try { | ||
const files = await compress.run(); | ||
const files = await gzip.run(); | ||
console.info('Compressed files: ', files); | ||
@@ -202,4 +204,4 @@ } catch (err) { | ||
const [gzipFiles, brotliFiles] = await Promise.all([ | ||
gzip.compress(), | ||
brotli.compress(), | ||
gzip.run(), | ||
brotli.run(), | ||
]); | ||
@@ -217,19 +219,20 @@ console.info('Compressed gzip files: ', gzipFiles); | ||
| Option | ENV | | ||
| ----------------------------------------------------------- | ------------------------------ | | ||
| [`--incremental`](#--incremental) (beta) | `GZIPPER_INCREMENTAL` (0 or 1) | | ||
| [`-v, --verbose`](#-v---verbose) | `GZIPPER_VERBOSE` (0 or 1) | | ||
| [`-e, --exclude <extensions>`](#-e---exclude-extensions) | `GZIPPER_EXCLUDE` | | ||
| [`-i, --include <extensions>`](#-i---include-extensions) | `GZIPPER_INCLUDE` | | ||
| [`-t, --threshold <number>`](#-t---threshold-number) | `GZIPPER_THRESHOLD` | | ||
| [`--level <number>`](#--level-number) | `GZIPPER_LEVEL` | | ||
| [`--memory-level <number>`](#--memory-level-number) | `GZIPPER_MEMORY_LEVEL` | | ||
| [`--strategy <number>`](#--strategy-number) | `GZIPPER_STRATEGY` | | ||
| [`--deflate`](#--deflate) | `GZIPPER_DEFLATE` (0 or 1) | | ||
| [`--brotli`](#--brotli) | `GZIPPER_BROTLI` (0 or 1) | | ||
| [`--brotli-param-mode <value>`](#--brotli-param-mode-value) | `GZIPPER_BROTLI_PARAM_MODE` | | ||
| [`--brotli-quality <number>`](#--brotli-quality-number) | `GZIPPER_BROTLI_QUALITY` | | ||
| [`--brotli-size-hint <number>`](#--brotli-size-hint-number) | `GZIPPER_BROTLI_SIZE_HINT` | | ||
| [`--output-file-format <value>`](#--output-file-format) | `GZIPPER_OUTPUT_FILE_FORMAT` | | ||
| [`--remove-larger`](#--remove-larger) | `GZIPPER_REMOVE_LARGER` | | ||
| Option | ENV | | ||
| ----------------------------------------------------------- | ---------------------------------- | | ||
| [`--incremental`](#--incremental) (beta) | `GZIPPER_INCREMENTAL` (0 or 1) | | ||
| [`-v, --verbose`](#-v---verbose) | `GZIPPER_VERBOSE` (0 or 1) | | ||
| [`-e, --exclude <extensions>`](#-e---exclude-extensions) | `GZIPPER_EXCLUDE` | | ||
| [`-i, --include <extensions>`](#-i---include-extensions) | `GZIPPER_INCLUDE` | | ||
| [`-t, --threshold <number>`](#-t---threshold-number) | `GZIPPER_THRESHOLD` | | ||
| [`--level <number>`](#--level-number) | `GZIPPER_LEVEL` | | ||
| [`--memory-level <number>`](#--memory-level-number) | `GZIPPER_MEMORY_LEVEL` | | ||
| [`--strategy <number>`](#--strategy-number) | `GZIPPER_STRATEGY` | | ||
| [`--deflate`](#--deflate) | `GZIPPER_DEFLATE` (0 or 1) | | ||
| [`--brotli`](#--brotli) | `GZIPPER_BROTLI` (0 or 1) | | ||
| [`--brotli-param-mode <value>`](#--brotli-param-mode-value) | `GZIPPER_BROTLI_PARAM_MODE` | | ||
| [`--brotli-quality <number>`](#--brotli-quality-number) | `GZIPPER_BROTLI_QUALITY` | | ||
| [`--brotli-size-hint <number>`](#--brotli-size-hint-number) | `GZIPPER_BROTLI_SIZE_HINT` | | ||
| [`--output-file-format <value>`](#--output-file-format) | `GZIPPER_OUTPUT_FILE_FORMAT` | | ||
| [`--remove-larger`](#--remove-larger) | `GZIPPER_REMOVE_LARGER` (0 or 1) | | ||
| [`--skip-compressed`](#--skip-compressed) | `GZIPPER_SKIP_COMPRESSED` (0 or 1) | | ||
@@ -242,3 +245,3 @@ > ENV Variables have higher priority over CLI arguments. | ||
A special type of compression that significantly decreases the time of compression (_on the second run_) if you have a lot of big and rarely updated files. It creates a `.gzipper` folder with pre-compressed files (`cache`) and config that store all necessary metadata (`.gzipperconfig`). | ||
A special type of compression that significantly decreases the time of compression (_on the second run_) if you have a lot of big and rarely updated files. It creates a `.gzipper` folder with pre-compressed files (`cache`) and config that stores all necessary metadata (`.gzipperconfig`). | ||
@@ -255,3 +258,3 @@ #### -v, --verbose | ||
Exclude file extensions from compression, example: jpeg,jpg... | ||
Exclude file extensions from compression (compression extensions like gz, zz, br, etc. excluded by default), example: jpeg,jpg... | ||
@@ -382,2 +385,6 @@ #### -i, --include <extensions> | ||
#### --skip-compressed | ||
Ignores compressed files that have already exist in your directory. Works only with default `--output-file-format`. | ||
### Cache | ||
@@ -384,0 +391,0 @@ |
@@ -79,2 +79,3 @@ "use strict"; | ||
.option('--remove-larger', 'remove compressed files if they larger than uncompressed originals') | ||
.option('--skip-compressed', 'skip compressed files if they already exist') | ||
.action(this.compress.bind(this)); | ||
@@ -139,2 +140,5 @@ cache = this.commander | ||
: options.removeLarger, | ||
skipCompressed: this.env.GZIPPER_SKIP_COMPRESSED | ||
? !!parseInt(this.env.GZIPPER_SKIP_COMPRESSED) | ||
: options.skipCompressed, | ||
}; | ||
@@ -168,3 +172,3 @@ return [4 /*yield*/, this.runCompress(target, outputPath, adjustedOptions)]; | ||
err_1 = _a.sent(); | ||
logger.log(err_1.message, LogLevel_enum_1.LogLevel.ERROR); | ||
logger.log(err_1, LogLevel_enum_1.LogLevel.ERROR); | ||
return [3 /*break*/, 4]; | ||
@@ -197,3 +201,3 @@ case 4: return [2 /*return*/]; | ||
err_2 = _a.sent(); | ||
logger.log(err_2.message, LogLevel_enum_1.LogLevel.ERROR); | ||
logger.log(err_2, LogLevel_enum_1.LogLevel.ERROR); | ||
return [3 /*break*/, 4]; | ||
@@ -207,6 +211,7 @@ case 4: return [2 /*return*/]; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var compress, err_3; | ||
var logger, compress, err_3; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
logger = new Logger_1.Logger(true); | ||
compress = new Compress_1.Compress(target, outputPath, this.filterOptions(options)); | ||
@@ -222,3 +227,3 @@ _a.label = 1; | ||
err_3 = _a.sent(); | ||
console.error(err_3); | ||
logger.log(err_3, LogLevel_enum_1.LogLevel.ERROR); | ||
return [3 /*break*/, 4]; | ||
@@ -232,7 +237,9 @@ case 4: return [2 /*return*/]; | ||
Index.prototype.filterOptions = function (options) { | ||
Object.keys(options).forEach(function (key) { | ||
if (options[key] === undefined || options[key] !== options[key]) { | ||
delete options[key]; | ||
for (var key in options) { | ||
if (Object.prototype.hasOwnProperty.call(options, key)) { | ||
if (options[key] === undefined || options[key] !== options[key]) { | ||
delete options[key]; | ||
} | ||
} | ||
}); | ||
} | ||
return options; | ||
@@ -252,2 +259,2 @@ }; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmluLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Jpbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSx1Q0FBb0M7QUFFcEMsdUNBQXNDO0FBQ3RDLHFDQUFvQztBQUVwQyw2Q0FBNEM7QUFDNUMsbUNBQWtDO0FBQ2xDLDBDQUF5QztBQUN6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7aUJBQ3JCO2FBQ0Y7U0FDRjtRQUVELE9BQU8sT0FBTyxDQUFDO0lBQ2pCLENBQUM7SUFFTyw2QkFBYSxHQUFyQixVQUF5QixLQUFRO1FBQy9CLElBQUksT0FBTyxLQUFLLEtBQUssUUFBUSxJQUFJLEtBQUssRUFBRTtZQUN0QyxPQUFPLEtBQUssQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUMsR0FBRyxDQUFDLFVBQUMsSUFBSSxJQUFLLE9BQUEsSUFBSSxDQUFDLElBQUksRUFBRSxFQUFYLENBQVcsQ0FBQyxDQUFDO1NBQ3BEO1FBRUQsT0FBTyxLQUFLLENBQUM7SUFDZixDQUFDO0lBQ0gsWUFBQztBQUFELENBQUMsQUE1TkQsSUE0TkM7QUE1Tlksc0JBQUs7QUE4TmxCLElBQUksT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLEtBQUssU0FBUyxFQUFFO0lBQ3RDLElBQUksS0FBSyxFQUFFLENBQUMsSUFBSSxFQUFFLENBQUM7Q0FDcEIifQ== |
@@ -249,3 +249,3 @@ "use strict"; | ||
fileInfo = _e.sent(); | ||
if (!fileInfo.removeCompiled) { | ||
if (!fileInfo.removeCompiled && !fileInfo.isSkipped) { | ||
compressedFiles.push(filePath); | ||
@@ -286,3 +286,3 @@ } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var isCached, inputPath, isFileTarget, outputPath, checksum, _a, isChanged, fileId, cachedFile, beforeSize, afterSize, removeCompiled; | ||
var isCached, isSkipped, inputPath, isFileTarget, outputPath, checksum, _a, isChanged, fileId, cachedFile, beforeSize, afterSize, removeCompiled; | ||
return __generator(this, function (_b) { | ||
@@ -292,2 +292,3 @@ switch (_b.label) { | ||
isCached = false; | ||
isSkipped = false; | ||
inputPath = path_1.default.join(target, filename); | ||
@@ -307,44 +308,59 @@ if (!outputDir) return [3 /*break*/, 3]; | ||
outputPath = this.getOutputPath(target, filename); | ||
if (!this.options.incremental) return [3 /*break*/, 11]; | ||
if (!this.options.skipCompressed) return [3 /*break*/, 5]; | ||
return [4 /*yield*/, this.nativeFs.exists(outputPath)]; | ||
case 4: | ||
if (_b.sent()) { | ||
isSkipped = true; | ||
return [2 /*return*/, { isCached: isCached, isSkipped: isSkipped }]; | ||
} | ||
_b.label = 5; | ||
case 5: | ||
if (!this.options.incremental) return [3 /*break*/, 13]; | ||
return [4 /*yield*/, this.incremental.getFileChecksum(inputPath)]; | ||
case 4: | ||
case 6: | ||
checksum = _b.sent(); | ||
return [4 /*yield*/, this.incremental.setFile(inputPath, checksum, this.compressionInstance.compressionOptions)]; | ||
case 5: | ||
case 7: | ||
_a = _b.sent(), isChanged = _a.isChanged, fileId = _a.fileId; | ||
cachedFile = path_1.default.resolve(this.incremental.cacheFolder, fileId); | ||
if (!isChanged) return [3 /*break*/, 8]; | ||
if (!isChanged) return [3 /*break*/, 10]; | ||
return [4 /*yield*/, this.nativeStream.pipeline(fs_1.default.createReadStream(inputPath), this.createCompression(), fs_1.default.createWriteStream(outputPath))]; | ||
case 6: | ||
case 8: | ||
_b.sent(); | ||
return [4 /*yield*/, this.nativeStream.pipeline(fs_1.default.createReadStream(outputPath), fs_1.default.createWriteStream(cachedFile))]; | ||
case 7: | ||
_b.sent(); | ||
return [3 /*break*/, 10]; | ||
case 8: return [4 /*yield*/, this.nativeStream.pipeline(fs_1.default.createReadStream(cachedFile), fs_1.default.createWriteStream(outputPath))]; | ||
case 9: | ||
_b.sent(); | ||
return [3 /*break*/, 12]; | ||
case 10: return [4 /*yield*/, this.nativeStream.pipeline(fs_1.default.createReadStream(cachedFile), fs_1.default.createWriteStream(outputPath))]; | ||
case 11: | ||
_b.sent(); | ||
isCached = true; | ||
_b.label = 10; | ||
case 10: return [3 /*break*/, 13]; | ||
case 11: return [4 /*yield*/, this.nativeStream.pipeline(fs_1.default.createReadStream(inputPath), this.createCompression(), fs_1.default.createWriteStream(outputPath))]; | ||
case 12: | ||
_b.label = 12; | ||
case 12: return [3 /*break*/, 15]; | ||
case 13: return [4 /*yield*/, this.nativeStream.pipeline(fs_1.default.createReadStream(inputPath), this.createCompression(), fs_1.default.createWriteStream(outputPath))]; | ||
case 14: | ||
_b.sent(); | ||
_b.label = 13; | ||
case 13: | ||
if (!(this.options.verbose || this.options.removeLarger)) return [3 /*break*/, 18]; | ||
_b.label = 15; | ||
case 15: | ||
if (!(this.options.verbose || this.options.removeLarger)) return [3 /*break*/, 20]; | ||
return [4 /*yield*/, this.nativeFs.lstat(inputPath)]; | ||
case 14: | ||
case 16: | ||
beforeSize = (_b.sent()).size; | ||
return [4 /*yield*/, this.nativeFs.lstat(outputPath)]; | ||
case 15: | ||
case 17: | ||
afterSize = (_b.sent()).size; | ||
removeCompiled = this.options.removeLarger && beforeSize < afterSize; | ||
if (!removeCompiled) return [3 /*break*/, 17]; | ||
if (!removeCompiled) return [3 /*break*/, 19]; | ||
return [4 /*yield*/, this.nativeFs.unlink(outputPath)]; | ||
case 16: | ||
case 18: | ||
_b.sent(); | ||
_b.label = 17; | ||
case 17: return [2 /*return*/, { beforeSize: beforeSize, afterSize: afterSize, isCached: isCached, removeCompiled: removeCompiled }]; | ||
case 18: return [2 /*return*/, { isCached: isCached }]; | ||
_b.label = 19; | ||
case 19: return [2 /*return*/, { | ||
beforeSize: beforeSize, | ||
afterSize: afterSize, | ||
isCached: isCached, | ||
isSkipped: isSkipped, | ||
removeCompiled: removeCompiled, | ||
}]; | ||
case 20: return [2 /*return*/, { isCached: isCached, isSkipped: isSkipped }]; | ||
} | ||
@@ -395,8 +411,11 @@ }); | ||
Compress.prototype.isValidFileExtensions = function (ext) { | ||
if (constants_1.COMPRESSION_EXTENSIONS.includes(ext)) { | ||
return false; | ||
} | ||
var excludeExtensions = this.options.exclude; | ||
var includeExtensions = this.options.include; | ||
if (includeExtensions && includeExtensions.length) { | ||
if (includeExtensions === null || includeExtensions === void 0 ? void 0 : includeExtensions.length) { | ||
return includeExtensions.includes(ext); | ||
} | ||
if (excludeExtensions && excludeExtensions.length) { | ||
if (excludeExtensions === null || excludeExtensions === void 0 ? void 0 : excludeExtensions.length) { | ||
return !excludeExtensions.includes(ext); | ||
@@ -410,5 +429,8 @@ } | ||
Compress.prototype.getCompressedFileMsg = function (file, fileInfo, hrtime) { | ||
if (fileInfo.isSkipped) { | ||
return "File " + file + " has been skipped"; | ||
} | ||
var getSize = helpers_1.Helpers.readableSize(fileInfo.beforeSize) + " -> " + helpers_1.Helpers.readableSize(fileInfo.afterSize); | ||
return fileInfo.isCached | ||
? file + " has been retrieved from the cache " + getSize + " (" + helpers_1.Helpers.readableHrtime(hrtime) + ")" | ||
? "File " + file + " has been retrieved from the cache " + getSize + " (" + helpers_1.Helpers.readableHrtime(hrtime) + ")" | ||
: "File " + file + " has been compressed " + getSize + " (" + helpers_1.Helpers.readableHrtime(hrtime) + ")"; | ||
@@ -419,2 +441,2 @@ }; | ||
exports.Compress = Compress; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tcHJlc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvQ29tcHJlc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDBDQUFvQjtBQUNwQiw4Q0FBd0I7QUFDeEIsOENBQXdCO0FBQ3hCLDZCQUEwQjtBQUMxQixrREFBNEI7QUFFNUIscUNBQW9DO0FBQ3BDLDBDQUF5QztBQUN6QyxnREFBMEQ7QUFDMUQsNENBQXNEO0FBQ3RELHlDQU1xQjtBQUVyQixrREFBNEQ7QUFDNUQsNkNBQTRDO0FBQzVDLG1DQUFrQztBQUNsQyx3REFBa0Q7QUFFbEQ7O0dBRUc7QUFDSDtJQXdCRTs7T0FFRztJQUNILG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xDQUNQLE1BQUc7WUFDTixDQUFDLENBQUMsVUFBUSxJQUFJLDZCQUF3QixPQUFPLFVBQUssaUJBQU8sQ0FBQyxjQUFjLENBQ3BFLE1BQU0sQ0FDUCxNQUFHLENBQUM7SUFDWCxDQUFDO0lBQ0gsZUFBQztBQUFELENBQUMsQUEvVkQsSUErVkM7QUEvVlksNEJBQVEifQ== |
export declare const OUTPUT_FILE_FORMAT_REGEXP: RegExp; | ||
export declare const NO_FILES_MESSAGE = "We couldn't find any appropriate files."; | ||
export declare const NO_FILES_MESSAGE = "No files for compression."; | ||
export declare const NO_PATH_MESSAGE = "Can't find a path."; | ||
export declare const INCREMENTAL_ENABLE_MESSAGE = "Incremental compilation has been enabled."; | ||
export declare const INCREMENTAL_ENABLE_MESSAGE = "Incremental compression has been enabled."; | ||
export declare const DEFAULT_OUTPUT_FORMAT_MESSAGE = "Default output file format: [filename].[ext].[compressExt]"; | ||
@@ -9,1 +9,2 @@ export declare const CONFIG_FOLDER = ".gzipper"; | ||
export declare const CONFIG_FILE = ".gzipperconfig"; | ||
export declare const COMPRESSION_EXTENSIONS: string[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CONFIG_FILE = exports.CACHE_FOLDER = exports.CONFIG_FOLDER = exports.DEFAULT_OUTPUT_FORMAT_MESSAGE = exports.INCREMENTAL_ENABLE_MESSAGE = exports.NO_PATH_MESSAGE = exports.NO_FILES_MESSAGE = exports.OUTPUT_FILE_FORMAT_REGEXP = void 0; | ||
exports.COMPRESSION_EXTENSIONS = exports.CONFIG_FILE = exports.CACHE_FOLDER = exports.CONFIG_FOLDER = exports.DEFAULT_OUTPUT_FORMAT_MESSAGE = exports.INCREMENTAL_ENABLE_MESSAGE = exports.NO_PATH_MESSAGE = exports.NO_FILES_MESSAGE = exports.OUTPUT_FILE_FORMAT_REGEXP = void 0; | ||
exports.OUTPUT_FILE_FORMAT_REGEXP = /(\[filename\]*)|(\[hash\]*)|(\[compressExt\]*)|(\[ext\]*)/g; | ||
exports.NO_FILES_MESSAGE = "We couldn't find any appropriate files."; | ||
exports.NO_FILES_MESSAGE = 'No files for compression.'; | ||
exports.NO_PATH_MESSAGE = "Can't find a path."; | ||
exports.INCREMENTAL_ENABLE_MESSAGE = 'Incremental compilation has been enabled.'; | ||
exports.INCREMENTAL_ENABLE_MESSAGE = 'Incremental compression has been enabled.'; | ||
exports.DEFAULT_OUTPUT_FORMAT_MESSAGE = 'Default output file format: [filename].[ext].[compressExt]'; | ||
@@ -12,2 +12,3 @@ exports.CONFIG_FOLDER = '.gzipper'; | ||
exports.CONFIG_FILE = '.gzipperconfig'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLHlCQUF5QixHQUFHLDREQUE0RCxDQUFDO0FBQ3pGLFFBQUEsZ0JBQWdCLEdBQUcseUNBQXlDLENBQUM7QUFDN0QsUUFBQSxlQUFlLEdBQUcsb0JBQW9CLENBQUM7QUFDdkMsUUFBQSwwQkFBMEIsR0FDckMsMkNBQTJDLENBQUM7QUFDakMsUUFBQSw2QkFBNkIsR0FDeEMsNERBQTRELENBQUM7QUFDbEQsUUFBQSxhQUFhLEdBQUcsVUFBVSxDQUFDO0FBQzNCLFFBQUEsWUFBWSxHQUFHLE9BQU8sQ0FBQztBQUN2QixRQUFBLFdBQVcsR0FBRyxnQkFBZ0IsQ0FBQyJ9 | ||
exports.COMPRESSION_EXTENSIONS = ['gz', 'zz', 'br']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLHlCQUF5QixHQUFHLDREQUE0RCxDQUFDO0FBQ3pGLFFBQUEsZ0JBQWdCLEdBQUcsMkJBQTJCLENBQUM7QUFDL0MsUUFBQSxlQUFlLEdBQUcsb0JBQW9CLENBQUM7QUFDdkMsUUFBQSwwQkFBMEIsR0FDckMsMkNBQTJDLENBQUM7QUFDakMsUUFBQSw2QkFBNkIsR0FDeEMsNERBQTRELENBQUM7QUFDbEQsUUFBQSxhQUFhLEdBQUcsVUFBVSxDQUFDO0FBQzNCLFFBQUEsWUFBWSxHQUFHLE9BQU8sQ0FBQztBQUN2QixRQUFBLFdBQVcsR0FBRyxnQkFBZ0IsQ0FBQztBQUMvQixRQUFBLHNCQUFzQixHQUFHLENBQUMsSUFBSSxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMsQ0FBQyJ9 |
@@ -19,3 +19,3 @@ /// <reference types="node" /> | ||
removeLarger?: boolean; | ||
[key: string]: unknown; | ||
skipCompressed?: boolean; | ||
} | ||
@@ -34,2 +34,3 @@ export declare type CompressionOptions = { | ||
isCached: boolean; | ||
isSkipped: boolean; | ||
removeCompiled: boolean; | ||
@@ -36,0 +37,0 @@ } |
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
185734
2085
412