Comparing version 0.4.2 to 0.4.3
@@ -411,3 +411,3 @@ #!/usr/bin/env node | ||
} | ||
if (!format.match(/jpeg|webp|png|jpg|svg/)) { | ||
if (!format.match(/jpeg|webp|png|jpg|svg|gif/)) { | ||
throw badRequest(`Unkown image format ${format}`); | ||
@@ -521,3 +521,3 @@ } | ||
skipOperations(info) { | ||
if (info.format.match(/svg/)) { | ||
if (info.format.match(/svg|gif/)) { | ||
return true; | ||
@@ -524,0 +524,0 @@ } |
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.4.3](https://github.com/nuxt-contrib/ipx/compare/v0.4.2...v0.4.3) (2020-11-25) | ||
### Features | ||
* allow gif images ([#15](https://github.com/nuxt-contrib/ipx/issues/15)) ([51dcfc1](https://github.com/nuxt-contrib/ipx/commit/51dcfc1dc0a076eca2c33ce5fcaf37b970964bca)) | ||
### [0.4.2](https://github.com/nuxt-contrib/ipx/compare/v0.4.1...v0.4.2) (2020-11-18) | ||
@@ -7,0 +14,0 @@ |
@@ -409,3 +409,3 @@ 'use strict'; | ||
} | ||
if (!format.match(/jpeg|webp|png|jpg|svg/)) { | ||
if (!format.match(/jpeg|webp|png|jpg|svg|gif/)) { | ||
throw badRequest(`Unkown image format ${format}`); | ||
@@ -519,3 +519,3 @@ } | ||
skipOperations(info) { | ||
if (info.format.match(/svg/)) { | ||
if (info.format.match(/svg|gif/)) { | ||
return true; | ||
@@ -522,0 +522,0 @@ } |
@@ -393,3 +393,3 @@ import { resolve, posix, relative, dirname, extname } from 'path'; | ||
} | ||
if (!format.match(/jpeg|webp|png|jpg|svg/)) { | ||
if (!format.match(/jpeg|webp|png|jpg|svg|gif/)) { | ||
throw badRequest(`Unkown image format ${format}`); | ||
@@ -503,3 +503,3 @@ } | ||
skipOperations(info) { | ||
if (info.format.match(/svg/)) { | ||
if (info.format.match(/svg|gif/)) { | ||
return true; | ||
@@ -506,0 +506,0 @@ } |
@@ -409,3 +409,3 @@ 'use strict'; | ||
} | ||
if (!format.match(/jpeg|webp|png|jpg|svg/)) { | ||
if (!format.match(/jpeg|webp|png|jpg|svg|gif/)) { | ||
throw badRequest(`Unkown image format ${format}`); | ||
@@ -519,3 +519,3 @@ } | ||
skipOperations(info) { | ||
if (info.format.match(/svg/)) { | ||
if (info.format.match(/svg|gif/)) { | ||
return true; | ||
@@ -522,0 +522,0 @@ } |
{ | ||
"name": "ipx", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"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
79933