svelte-imgix
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -852,3 +852,3 @@ (function (global, factory) { | ||
: {})); | ||
sets.push(`${trimSrc(src)}?${queryString.stringify(params)}`); | ||
sets.push(`${trimSrc(src)}?${queryString.stringify(params)} ${widths[i]}w`); | ||
} | ||
@@ -911,3 +911,3 @@ return sets.join(', '); | ||
let { src } = $$props; | ||
let { alt = undefined } = $$props; | ||
let { alt } = $$props; | ||
let { imgixParams = {} } = $$props; | ||
@@ -957,3 +957,3 @@ let imgElement; | ||
if ($$self.$$.dirty & /*imgixParams, src*/ 384) { | ||
$$invalidate(3, configuredSrc = Object.keys(imgixParams.length) | ||
$$invalidate(3, configuredSrc = Object.keys(imgixParams).length | ||
? `${baseSrc}?${queryString.stringify(imgixParams)}` | ||
@@ -960,0 +960,0 @@ : src); |
{ | ||
"name": "svelte-imgix", | ||
"description": "Responsive, lazily loaded images with Svelte and Imgix", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -23,2 +23,3 @@ "main": "dist/index.js", | ||
"*.svelte", | ||
"lib", | ||
"dist" | ||
@@ -34,2 +35,3 @@ ], | ||
"devDependencies": { | ||
"@babel/runtime": "^7.12.5", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
@@ -36,0 +38,0 @@ "@rollup/plugin-node-resolve": "^10.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
59223
8
1734
14