@micromag/core 0.3.811 → 0.3.812
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/utils.js +0 -13
- package/lib/utils.js +0 -13
- package/package.json +2 -2
package/es/utils.js
CHANGED
|
@@ -554,9 +554,6 @@ var getOptimalImageUrl = function getOptimalImageUrl() {
|
|
|
554
554
|
_finalSizes$key$heigh = _finalSizes$key.height,
|
|
555
555
|
height = _finalSizes$key$heigh === void 0 ? null : _finalSizes$key$heigh;
|
|
556
556
|
var sizeUrl = supportsWebp && webpUrl !== null ? webpUrl : url;
|
|
557
|
-
console.log({
|
|
558
|
-
sizeUrl: sizeUrl
|
|
559
|
-
});
|
|
560
557
|
var diffWidth = width !== null && finalContainerWidth !== null ? width - finalContainerWidth : null;
|
|
561
558
|
var diffHeight = height !== null && finalContainerHeight !== null ? height - finalContainerHeight : null;
|
|
562
559
|
var isLarger = (diffWidth === null || diffWidth >= 0) && (diffHeight === null || diffHeight >= 0);
|
|
@@ -577,9 +574,6 @@ var getOptimalImageUrl = function getOptimalImageUrl() {
|
|
|
577
574
|
diff <= maxDiff && !currentIsLarger && isLarger ||
|
|
578
575
|
// Image is larger than previous
|
|
579
576
|
diff <= maxDiff && !currentIsLarger && !isLarger && sizeIsLarger) {
|
|
580
|
-
console.log({
|
|
581
|
-
sizeUrl: sizeUrl
|
|
582
|
-
});
|
|
583
577
|
return {
|
|
584
578
|
key: key,
|
|
585
579
|
url: sizeUrl,
|
|
@@ -596,13 +590,6 @@ var getOptimalImageUrl = function getOptimalImageUrl() {
|
|
|
596
590
|
size: 0
|
|
597
591
|
}),
|
|
598
592
|
finalUrl = _Object$keys$reduce.url;
|
|
599
|
-
console.log({
|
|
600
|
-
finalUrl: finalUrl,
|
|
601
|
-
finalDefaultUrl: finalDefaultUrl,
|
|
602
|
-
supportsWebp: supportsWebp,
|
|
603
|
-
defaultWebpUrl: defaultWebpUrl,
|
|
604
|
-
defaultUrl: defaultUrl
|
|
605
|
-
});
|
|
606
593
|
return finalUrl;
|
|
607
594
|
};
|
|
608
595
|
|
package/lib/utils.js
CHANGED
|
@@ -555,9 +555,6 @@ var getOptimalImageUrl = function getOptimalImageUrl() {
|
|
|
555
555
|
_finalSizes$key$heigh = _finalSizes$key.height,
|
|
556
556
|
height = _finalSizes$key$heigh === void 0 ? null : _finalSizes$key$heigh;
|
|
557
557
|
var sizeUrl = supportsWebp && webpUrl !== null ? webpUrl : url;
|
|
558
|
-
console.log({
|
|
559
|
-
sizeUrl: sizeUrl
|
|
560
|
-
});
|
|
561
558
|
var diffWidth = width !== null && finalContainerWidth !== null ? width - finalContainerWidth : null;
|
|
562
559
|
var diffHeight = height !== null && finalContainerHeight !== null ? height - finalContainerHeight : null;
|
|
563
560
|
var isLarger = (diffWidth === null || diffWidth >= 0) && (diffHeight === null || diffHeight >= 0);
|
|
@@ -578,9 +575,6 @@ var getOptimalImageUrl = function getOptimalImageUrl() {
|
|
|
578
575
|
diff <= maxDiff && !currentIsLarger && isLarger ||
|
|
579
576
|
// Image is larger than previous
|
|
580
577
|
diff <= maxDiff && !currentIsLarger && !isLarger && sizeIsLarger) {
|
|
581
|
-
console.log({
|
|
582
|
-
sizeUrl: sizeUrl
|
|
583
|
-
});
|
|
584
578
|
return {
|
|
585
579
|
key: key,
|
|
586
580
|
url: sizeUrl,
|
|
@@ -597,13 +591,6 @@ var getOptimalImageUrl = function getOptimalImageUrl() {
|
|
|
597
591
|
size: 0
|
|
598
592
|
}),
|
|
599
593
|
finalUrl = _Object$keys$reduce.url;
|
|
600
|
-
console.log({
|
|
601
|
-
finalUrl: finalUrl,
|
|
602
|
-
finalDefaultUrl: finalDefaultUrl,
|
|
603
|
-
supportsWebp: supportsWebp,
|
|
604
|
-
defaultWebpUrl: defaultWebpUrl,
|
|
605
|
-
defaultUrl: defaultUrl
|
|
606
|
-
});
|
|
607
594
|
return finalUrl;
|
|
608
595
|
};
|
|
609
596
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.812",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -167,5 +167,5 @@
|
|
|
167
167
|
"access": "public",
|
|
168
168
|
"registry": "https://registry.npmjs.org/"
|
|
169
169
|
},
|
|
170
|
-
"gitHead": "
|
|
170
|
+
"gitHead": "34ea72adfaffec7c33e328b9c46301cd18cbde83"
|
|
171
171
|
}
|