@uniformdev/files 20.1.0 → 20.2.0

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/dist/index.d.mts CHANGED
@@ -68,6 +68,8 @@ interface paths {
68
68
  requestBody: {
69
69
  content: {
70
70
  "application/json": {
71
+ /** Format: uuid */
72
+ id?: string;
71
73
  /** Format: uuid */
72
74
  projectId?: string;
73
75
  sourceId?: string;
package/dist/index.d.ts CHANGED
@@ -68,6 +68,8 @@ interface paths {
68
68
  requestBody: {
69
69
  content: {
70
70
  "application/json": {
71
+ /** Format: uuid */
72
+ id?: string;
71
73
  /** Format: uuid */
72
74
  projectId?: string;
73
75
  sourceId?: string;
package/dist/index.esm.js CHANGED
@@ -58,7 +58,9 @@ var FILE_TYPES_IMAGE = [
58
58
  ".svg",
59
59
  ".webp",
60
60
  ".apng",
61
- // AVIF is here for backwards compatibility reasons, as we used to allow it
61
+ // AVIF is here for backwards compatibility reasons, ideally we would throw it
62
+ // out as Cloudflare does not support it as an input format, but it used to be
63
+ // allowed so it continues to be.
62
64
  ".avif"
63
65
  ];
64
66
  var FILE_MIME_TYPES_IMAGE = [
@@ -78,8 +80,13 @@ var FILE_TYPES_VIDEO = [".mp4", ".webm", ".ogg"];
78
80
  var FILE_MIME_TYPES_VIDEO = ["video/mp4", "video/webm", "video/ogg"];
79
81
  var FILE_TYPES_AUDIO = [".mp3", ".wav", ".ogg", ".flac"];
80
82
  var FILE_MIME_TYPES_AUDIO = ["audio/mpeg", "audio/mp4", "audio/wav", "audio/ogg", "audio/flac"];
81
- var FILE_TYPES_OTHER = [".pdf", ".json"];
82
- var FILE_MIME_TYPES_OTHER = ["application/pdf", "application/json"];
83
+ var FILE_TYPES_OTHER = [".pdf", ".json", ".zip", ".lottie"];
84
+ var FILE_MIME_TYPES_OTHER = [
85
+ "application/pdf",
86
+ "application/json",
87
+ "application/zip",
88
+ "application/zip+dotlottie"
89
+ ];
83
90
  var FILE_TYPES_ALL = FILE_TYPES_IMAGE.concat(FILE_TYPES_VIDEO, FILE_TYPES_AUDIO, FILE_TYPES_OTHER);
84
91
  var FILE_MIME_TYPES_ALL = FILE_MIME_TYPES_IMAGE.concat(
85
92
  FILE_MIME_TYPES_VIDEO,
package/dist/index.js CHANGED
@@ -99,7 +99,9 @@ var FILE_TYPES_IMAGE = [
99
99
  ".svg",
100
100
  ".webp",
101
101
  ".apng",
102
- // AVIF is here for backwards compatibility reasons, as we used to allow it
102
+ // AVIF is here for backwards compatibility reasons, ideally we would throw it
103
+ // out as Cloudflare does not support it as an input format, but it used to be
104
+ // allowed so it continues to be.
103
105
  ".avif"
104
106
  ];
105
107
  var FILE_MIME_TYPES_IMAGE = [
@@ -119,8 +121,13 @@ var FILE_TYPES_VIDEO = [".mp4", ".webm", ".ogg"];
119
121
  var FILE_MIME_TYPES_VIDEO = ["video/mp4", "video/webm", "video/ogg"];
120
122
  var FILE_TYPES_AUDIO = [".mp3", ".wav", ".ogg", ".flac"];
121
123
  var FILE_MIME_TYPES_AUDIO = ["audio/mpeg", "audio/mp4", "audio/wav", "audio/ogg", "audio/flac"];
122
- var FILE_TYPES_OTHER = [".pdf", ".json"];
123
- var FILE_MIME_TYPES_OTHER = ["application/pdf", "application/json"];
124
+ var FILE_TYPES_OTHER = [".pdf", ".json", ".zip", ".lottie"];
125
+ var FILE_MIME_TYPES_OTHER = [
126
+ "application/pdf",
127
+ "application/json",
128
+ "application/zip",
129
+ "application/zip+dotlottie"
130
+ ];
124
131
  var FILE_TYPES_ALL = FILE_TYPES_IMAGE.concat(FILE_TYPES_VIDEO, FILE_TYPES_AUDIO, FILE_TYPES_OTHER);
125
132
  var FILE_MIME_TYPES_ALL = FILE_MIME_TYPES_IMAGE.concat(
126
133
  FILE_MIME_TYPES_VIDEO,
package/dist/index.mjs CHANGED
@@ -58,7 +58,9 @@ var FILE_TYPES_IMAGE = [
58
58
  ".svg",
59
59
  ".webp",
60
60
  ".apng",
61
- // AVIF is here for backwards compatibility reasons, as we used to allow it
61
+ // AVIF is here for backwards compatibility reasons, ideally we would throw it
62
+ // out as Cloudflare does not support it as an input format, but it used to be
63
+ // allowed so it continues to be.
62
64
  ".avif"
63
65
  ];
64
66
  var FILE_MIME_TYPES_IMAGE = [
@@ -78,8 +80,13 @@ var FILE_TYPES_VIDEO = [".mp4", ".webm", ".ogg"];
78
80
  var FILE_MIME_TYPES_VIDEO = ["video/mp4", "video/webm", "video/ogg"];
79
81
  var FILE_TYPES_AUDIO = [".mp3", ".wav", ".ogg", ".flac"];
80
82
  var FILE_MIME_TYPES_AUDIO = ["audio/mpeg", "audio/mp4", "audio/wav", "audio/ogg", "audio/flac"];
81
- var FILE_TYPES_OTHER = [".pdf", ".json"];
82
- var FILE_MIME_TYPES_OTHER = ["application/pdf", "application/json"];
83
+ var FILE_TYPES_OTHER = [".pdf", ".json", ".zip", ".lottie"];
84
+ var FILE_MIME_TYPES_OTHER = [
85
+ "application/pdf",
86
+ "application/json",
87
+ "application/zip",
88
+ "application/zip+dotlottie"
89
+ ];
83
90
  var FILE_TYPES_ALL = FILE_TYPES_IMAGE.concat(FILE_TYPES_VIDEO, FILE_TYPES_AUDIO, FILE_TYPES_OTHER);
84
91
  var FILE_MIME_TYPES_ALL = FILE_MIME_TYPES_IMAGE.concat(
85
92
  FILE_MIME_TYPES_VIDEO,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/files",
3
- "version": "20.1.0",
3
+ "version": "20.2.0",
4
4
  "description": "Uniform Files helpers",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@uniformdev/context": "20.1.0"
39
+ "@uniformdev/context": "20.2.0"
40
40
  },
41
- "gitHead": "343f488ce579a33e39d95c88bc7184763404ab07"
41
+ "gitHead": "7ca16ddb9f03fffe82a0252d53790fcaa12ebd3c"
42
42
  }