@twin.org/web 0.0.1-next.63 → 0.0.1-next.65

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.
@@ -389,6 +389,10 @@ const MimeTypes = {
389
389
  * Application GZIP - application/gzip
390
390
  */
391
391
  Gzip: "application/gzip",
392
+ /**
393
+ * Application deflate - application/zlib
394
+ */
395
+ Zlib: "application/zlib",
392
396
  /**
393
397
  * Application BZIP2 - application/x-bzip2
394
398
  */
@@ -1132,6 +1136,11 @@ class MimeTypeHelper {
1132
1136
  if (MimeTypeHelper.checkBytes(data, [0x1f, 0x8b, 0x8])) {
1133
1137
  return MimeTypes.Gzip;
1134
1138
  }
1139
+ if (MimeTypeHelper.checkBytes(data, [0x78, 0x01]) ||
1140
+ MimeTypeHelper.checkBytes(data, [0x78, 0x9c]) ||
1141
+ MimeTypeHelper.checkBytes(data, [0x78, 0xda])) {
1142
+ return MimeTypes.Zlib;
1143
+ }
1135
1144
  if (MimeTypeHelper.checkBytes(data, [0x42, 0x5a, 0x68])) {
1136
1145
  return MimeTypes.Bzip2;
1137
1146
  }
@@ -1184,6 +1193,7 @@ class MimeTypeHelper {
1184
1193
  [MimeTypes.Xml]: "xml",
1185
1194
  [MimeTypes.OctetStream]: "bin",
1186
1195
  [MimeTypes.Gzip]: "gzip",
1196
+ [MimeTypes.Zlib]: "zlib",
1187
1197
  [MimeTypes.Bzip2]: "bz2",
1188
1198
  [MimeTypes.Zip]: "zip",
1189
1199
  [MimeTypes.Pdf]: "pdf",
@@ -387,6 +387,10 @@ const MimeTypes = {
387
387
  * Application GZIP - application/gzip
388
388
  */
389
389
  Gzip: "application/gzip",
390
+ /**
391
+ * Application deflate - application/zlib
392
+ */
393
+ Zlib: "application/zlib",
390
394
  /**
391
395
  * Application BZIP2 - application/x-bzip2
392
396
  */
@@ -1130,6 +1134,11 @@ class MimeTypeHelper {
1130
1134
  if (MimeTypeHelper.checkBytes(data, [0x1f, 0x8b, 0x8])) {
1131
1135
  return MimeTypes.Gzip;
1132
1136
  }
1137
+ if (MimeTypeHelper.checkBytes(data, [0x78, 0x01]) ||
1138
+ MimeTypeHelper.checkBytes(data, [0x78, 0x9c]) ||
1139
+ MimeTypeHelper.checkBytes(data, [0x78, 0xda])) {
1140
+ return MimeTypes.Zlib;
1141
+ }
1133
1142
  if (MimeTypeHelper.checkBytes(data, [0x42, 0x5a, 0x68])) {
1134
1143
  return MimeTypes.Bzip2;
1135
1144
  }
@@ -1182,6 +1191,7 @@ class MimeTypeHelper {
1182
1191
  [MimeTypes.Xml]: "xml",
1183
1192
  [MimeTypes.OctetStream]: "bin",
1184
1193
  [MimeTypes.Gzip]: "gzip",
1194
+ [MimeTypes.Zlib]: "zlib",
1185
1195
  [MimeTypes.Bzip2]: "bz2",
1186
1196
  [MimeTypes.Zip]: "zip",
1187
1197
  [MimeTypes.Pdf]: "pdf",
@@ -38,6 +38,10 @@ export declare const MimeTypes: {
38
38
  * Application GZIP - application/gzip
39
39
  */
40
40
  readonly Gzip: "application/gzip";
41
+ /**
42
+ * Application deflate - application/zlib
43
+ */
44
+ readonly Zlib: "application/zlib";
41
45
  /**
42
46
  * Application BZIP2 - application/x-bzip2
43
47
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @twin.org/web - Changelog
2
2
 
3
+ ## [0.0.1-next.65](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.64...web-v0.0.1-next.65) (2025-06-19)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **web:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.1-next.64 to 0.0.1-next.65
16
+ * @twin.org/crypto bumped from 0.0.1-next.64 to 0.0.1-next.65
17
+
18
+ ## [0.0.1-next.64](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.63...web-v0.0.1-next.64) (2025-06-19)
19
+
20
+
21
+ ### Features
22
+
23
+ * add zlib/deflate mime types detection ([72c472b](https://github.com/twinfoundation/framework/commit/72c472b5a35a973e7109336f5b6cdd84dbb8bbcb))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/core bumped from 0.0.1-next.63 to 0.0.1-next.64
31
+ * @twin.org/crypto bumped from 0.0.1-next.63 to 0.0.1-next.64
32
+
3
33
  ## [0.0.1-next.63](https://github.com/twinfoundation/framework/compare/web-v0.0.1-next.62...web-v0.0.1-next.63) (2025-06-18)
4
34
 
5
35
 
@@ -60,6 +60,12 @@ Application Octet Stream, arbitrary binary - application/octet-stream
60
60
 
61
61
  Application GZIP - application/gzip
62
62
 
63
+ ### Zlib
64
+
65
+ > `readonly` **Zlib**: `"application/zlib"` = `"application/zlib"`
66
+
67
+ Application deflate - application/zlib
68
+
63
69
  ### Bzip2
64
70
 
65
71
  > `readonly` **Bzip2**: `"application/x-bzip2"` = `"application/x-bzip2"`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/web",
3
- "version": "0.0.1-next.63",
3
+ "version": "0.0.1-next.65",
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.63",
18
- "@twin.org/crypto": "0.0.1-next.63",
17
+ "@twin.org/core": "0.0.1-next.65",
18
+ "@twin.org/crypto": "0.0.1-next.65",
19
19
  "@twin.org/nameof": "next",
20
20
  "jose": "6.0.11"
21
21
  },