@11ty/eleventy-img
Advanced tools
Comparing version 5.0.0-beta.8 to 5.0.0-beta.9
@@ -167,8 +167,8 @@ const path = require("path"); | ||
getFileContents(overridePath) { | ||
if(this.isRemoteUrl) { | ||
getFileContents(overrideLocalFilePath) { | ||
if(!overrideLocalFilePath && this.isRemoteUrl) { | ||
return false; | ||
} | ||
let src = overridePath || this.src; | ||
let src = overrideLocalFilePath || this.src; | ||
if(!this._contents) { | ||
@@ -175,0 +175,0 @@ this._contents = {}; |
{ | ||
"name": "@11ty/eleventy-img", | ||
"version": "5.0.0-beta.8", | ||
"version": "5.0.0-beta.9", | ||
"description": "Low level utility to perform build-time image transformations.", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -75,2 +75,5 @@ const fs = require("fs"); | ||
} | ||
if(!stat.buffer) { | ||
throw new Error("Could not find `buffer` property for image."); | ||
} | ||
@@ -77,0 +80,0 @@ return { |
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
62973
1397