@ethlete/core 5.0.0-next.3 → 5.0.0-next.4
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/core
|
|
2
2
|
|
|
3
|
+
## 5.0.0-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2923](https://github.com/ethlete-io/ethdk/pull/2923) [`5c5fc57`](https://github.com/ethlete-io/ethdk/commit/5c5fc57e2e45b5fd78f0d20bacf0ec310cc84e2b) Thanks [@github-actions](https://github.com/apps/github-actions)! - Support inferring mime types from data uris
|
|
8
|
+
|
|
3
9
|
## 5.0.0-next.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -3759,6 +3759,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.1", ngImpor
|
|
|
3759
3759
|
const inferMimeType = (srcset) => {
|
|
3760
3760
|
if (!srcset)
|
|
3761
3761
|
return null;
|
|
3762
|
+
if (srcset.startsWith('data:')) {
|
|
3763
|
+
const match = /^data:([^;,]+)/.exec(srcset);
|
|
3764
|
+
return match?.[1] ?? null;
|
|
3765
|
+
}
|
|
3762
3766
|
const urls = srcset.split(',');
|
|
3763
3767
|
const firstUrl = urls[0];
|
|
3764
3768
|
if (!firstUrl)
|