@twin.org/web 0.0.1-next.29 → 0.0.1-next.30

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.
@@ -668,7 +668,7 @@ class MimeTypeHelper {
668
668
  * @returns The mime type if detected.
669
669
  */
670
670
  static async detect(data) {
671
- if (!core.Is.uint8Array(data)) {
671
+ if (!core.Is.uint8Array(data) || data.length === 0) {
672
672
  return undefined;
673
673
  }
674
674
  // Image
@@ -666,7 +666,7 @@ class MimeTypeHelper {
666
666
  * @returns The mime type if detected.
667
667
  */
668
668
  static async detect(data) {
669
- if (!Is.uint8Array(data)) {
669
+ if (!Is.uint8Array(data) || data.length === 0) {
670
670
  return undefined;
671
671
  }
672
672
  // Image
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
- ## 0.0.1-next.29
3
+ ## 0.0.1-next.30
4
4
 
5
5
  - Initial Release
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/web",
3
- "version": "0.0.1-next.29",
3
+ "version": "0.0.1-next.30",
4
4
  "description": "Contains classes for use with web operations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,8 +14,8 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "0.0.1-next.29",
18
- "@twin.org/crypto": "0.0.1-next.29",
17
+ "@twin.org/core": "0.0.1-next.30",
18
+ "@twin.org/crypto": "0.0.1-next.30",
19
19
  "@twin.org/nameof": "next"
20
20
  },
21
21
  "main": "./dist/cjs/index.cjs",