Comparing version 0.4.0 to 0.4.1
@@ -145,3 +145,4 @@ #!/usr/bin/env node | ||
maxUnusedMinutes: env("IPX_CACHE_CLEAN_MINUTES", 24 * 60) | ||
} | ||
}, | ||
sharp: {} | ||
}; | ||
@@ -450,2 +451,3 @@ function getConfig(options) { | ||
let sharp2 = Sharp__default['default'](data); | ||
Object.assign(sharp2.options, this.options.sharp); | ||
if (!this.skipOperations(info)) { | ||
@@ -452,0 +454,0 @@ sharp2 = this.applyOperations(sharp2, info); |
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.4.1](https://github.com/nuxt-contrib/ipx/compare/v0.4.0...v0.4.1) (2020-11-12) | ||
### Features | ||
* allow overiding `sharp.options` ([#13](https://github.com/nuxt-contrib/ipx/issues/13)) ([ae7244d](https://github.com/nuxt-contrib/ipx/commit/ae7244d83712d352e4fd08fa2106122aac6f2689)) | ||
## [0.4.0](https://github.com/nuxt-contrib/ipx/compare/v0.4.0-rc.1...v0.4.0) (2020-11-05) | ||
@@ -7,0 +14,0 @@ |
@@ -143,3 +143,4 @@ 'use strict'; | ||
maxUnusedMinutes: env("IPX_CACHE_CLEAN_MINUTES", 24 * 60) | ||
} | ||
}, | ||
sharp: {} | ||
}; | ||
@@ -448,2 +449,3 @@ function getConfig(options) { | ||
let sharp2 = Sharp__default['default'](data); | ||
Object.assign(sharp2.options, this.options.sharp); | ||
if (!this.skipOperations(info)) { | ||
@@ -450,0 +452,0 @@ sharp2 = this.applyOperations(sharp2, info); |
@@ -65,2 +65,5 @@ /// <reference types="node" /> | ||
operations?: IPXOperations | ||
sharp?: { | ||
[key: string]: any; | ||
} | ||
} | ||
@@ -67,0 +70,0 @@ |
@@ -65,2 +65,5 @@ /// <reference types="node" /> | ||
operations?: IPXOperations | ||
sharp?: { | ||
[key: string]: any; | ||
} | ||
} | ||
@@ -67,0 +70,0 @@ |
@@ -128,3 +128,4 @@ import { resolve, posix, relative, dirname, extname } from 'path'; | ||
maxUnusedMinutes: env("IPX_CACHE_CLEAN_MINUTES", 24 * 60) | ||
} | ||
}, | ||
sharp: {} | ||
}; | ||
@@ -433,2 +434,3 @@ function getConfig(options) { | ||
let sharp2 = Sharp(data); | ||
Object.assign(sharp2.options, this.options.sharp); | ||
if (!this.skipOperations(info)) { | ||
@@ -435,0 +437,0 @@ sharp2 = this.applyOperations(sharp2, info); |
@@ -143,3 +143,4 @@ 'use strict'; | ||
maxUnusedMinutes: env("IPX_CACHE_CLEAN_MINUTES", 24 * 60) | ||
} | ||
}, | ||
sharp: {} | ||
}; | ||
@@ -448,2 +449,3 @@ function getConfig(options) { | ||
let sharp2 = Sharp__default['default'](data); | ||
Object.assign(sharp2.options, this.options.sharp); | ||
if (!this.skipOperations(info)) { | ||
@@ -450,0 +452,0 @@ sharp2 = this.applyOperations(sharp2, info); |
{ | ||
"name": "ipx", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"repository": "nuxt-contrib/ipx", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
78116
2467