@visulima/storage 1.0.0-alpha.11 → 1.0.0-alpha.13

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.
Files changed (89) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/LICENSE.md +155 -126
  3. package/dist/handler/http/fetch/index.js +3 -3
  4. package/dist/handler/http/hono/index.js +3 -3
  5. package/dist/handler/http/nextjs/index.d.ts +1 -1
  6. package/dist/handler/http/nextjs/index.js +3 -3
  7. package/dist/handler/http/node/index.js +3 -3
  8. package/dist/handler/http/solid-start/index.d.ts +1 -1
  9. package/dist/handler/http/solid-start/index.js +3 -3
  10. package/dist/handler/utils/upload-handlers.d.ts +2 -2
  11. package/dist/index.js +5 -5
  12. package/dist/openapi/index.js +5 -5
  13. package/dist/packem_shared/{AwsLightFile-tTneXZgG.js → AwsLightFile-C-Nd5rtl.js} +1 -1
  14. package/dist/packem_shared/{AwsLightMetaStorage-D9qWQt6q.js → AwsLightMetaStorage-BIDb5EPg.js} +1 -1
  15. package/dist/packem_shared/{AwsLightStorage-CEJTYBVv.js → AwsLightStorage-CMuKw4bI.js} +4 -4
  16. package/dist/packem_shared/{AzureFile-CesgFzps.js → AzureFile-C0kug4w4.js} +1 -1
  17. package/dist/packem_shared/{AzureStorage-CH6nvQx8.js → AzureStorage-98-LRZ1e.js} +7 -5
  18. package/dist/packem_shared/{DiskStorage-DziI2mwX.js → DiskStorage-COMe_G42.js} +5 -5
  19. package/dist/packem_shared/{DiskStorageWithChecksum-B_XY8_cO.js → DiskStorageWithChecksum-BVaaZiyS.js} +18 -9
  20. package/dist/packem_shared/{File-Bb3P23dr.js → File-CPUhj3DI.js} +1 -1
  21. package/dist/packem_shared/{GCSFile-BIEunhAN.js → GCSFile-DaDiCKE2.js} +1 -1
  22. package/dist/packem_shared/{GCSMetaStorage-FypK8Tn1.js → GCSMetaStorage-CSamGLFP.js} +1 -1
  23. package/dist/packem_shared/{GCStorage-CasTo9rF.js → GCStorage-Cpp5KSGP.js} +8 -6
  24. package/dist/packem_shared/{LocalMetaStorage-BnllcjV9.js → LocalMetaStorage-DvnZqf61.js} +1 -1
  25. package/dist/packem_shared/{MediaTransformer-BErvw2vE.js → MediaTransformer-BRRqYA0E.js} +9 -3
  26. package/dist/packem_shared/{Multipart-vxBL2VXm.js → Multipart-BzzvNxt4.js} +2 -2
  27. package/dist/packem_shared/{Multipart-CDDlDOs7.js → Multipart-DLtFLQ8s.js} +1 -1
  28. package/dist/packem_shared/{NetlifyBlobFile-CXzyjqrD.js → NetlifyBlobFile-CfyJtGWN.js} +1 -1
  29. package/dist/packem_shared/{NetlifyBlobMetaStorage-DIkZ2umW.js → NetlifyBlobMetaStorage-eJT6RFy9.js} +1 -1
  30. package/dist/packem_shared/{NetlifyBlobStorage-DEpx_4q-.js → NetlifyBlobStorage-nPv7iIAG.js} +4 -4
  31. package/dist/packem_shared/{Rest-D14vM7aJ.js → Rest-DEa7IA9R.js} +3 -3
  32. package/dist/packem_shared/{Rest-CEj3EhMj.js → Rest-qhMbCn5a.js} +3 -3
  33. package/dist/packem_shared/{S3File-DZiyk9Qt.js → S3File-BXCuJaQZ.js} +1 -1
  34. package/dist/packem_shared/{S3Storage-B0scgwPa.js → S3Storage-wi5XT-yu.js} +2 -2
  35. package/dist/packem_shared/{Tus-WOVg-YnB.js → Tus-Ck0Hdle5.js} +3 -3
  36. package/dist/packem_shared/{Tus-Cjz87bpz.js → Tus-_0vCdHyB.js} +1 -1
  37. package/dist/packem_shared/{VercelBlobFile-BCg4aTEq.js → VercelBlobFile-DkFIIb9Q.js} +1 -1
  38. package/dist/packem_shared/{VercelBlobMetaStorage-c0M-TvAR.js → VercelBlobMetaStorage-DjFmi4vp.js} +1 -1
  39. package/dist/packem_shared/{VercelBlobStorage-wOYxv8F7.js → VercelBlobStorage-CmMgiDgr.js} +4 -4
  40. package/dist/packem_shared/{aws-light-meta-storage-Ba2b_h-o.js → aws-light-meta-storage-BGZEiY3y.js} +2 -2
  41. package/dist/packem_shared/{base-handler-core-BoAqTyz7.js → base-handler-core-lVB-D59L.js} +6 -3
  42. package/dist/packem_shared/{base-handler-fetch-CinvR65S.js → base-handler-fetch-CitgN-Aw.js} +1 -1
  43. package/dist/packem_shared/{base-handler-node-c02H0AxN.js → base-handler-node-BiO2DF87.js} +3 -3
  44. package/dist/packem_shared/{defaultCloudStorageFileNameValidation-CGoYrGB2.js → defaultCloudStorageFileNameValidation-Brw40ZEP.js} +1 -1
  45. package/dist/packem_shared/{disk-storage-DeivH-J5.js → disk-storage-D9RfoKjW.js} +31 -15
  46. package/dist/packem_shared/{gcs-meta-storage-B0Baj0Xr.js → gcs-meta-storage-zzzem93r.js} +2 -2
  47. package/dist/packem_shared/{local-meta-storage-BlOk6m7F.js → local-meta-storage-D-pPc3FI.js} +12 -1
  48. package/dist/packem_shared/{part-match-BMNqHDYD.js → part-match-Dt738Ddb.js} +3 -3
  49. package/dist/packem_shared/{rest-base-D9URIFkc.js → rest-base-k1ory8uB.js} +2 -2
  50. package/dist/packem_shared/{restOpenApiSpec-D1zbmid7.js → restOpenApiSpec-BBJ_SiPE.js} +1 -1
  51. package/dist/packem_shared/{s3-base-storage-CG21uusd.js → s3-base-storage-zUO8u8Cp.js} +4 -7
  52. package/dist/packem_shared/{sharedGet-DAyJfjhl.js → sharedGet-CkSLSnMd.js} +6 -2
  53. package/dist/packem_shared/{storage-CpJpqLdn.js → storage-5XW1E7XU.js} +11 -7
  54. package/dist/packem_shared/{transformOpenApiSpec-BC0r6PzI.js → transformOpenApiSpec-BodFhFls.js} +1 -1
  55. package/dist/packem_shared/{tusOpenApiSpec-BLIjKf0s.js → tusOpenApiSpec-DzppyJTW.js} +1 -1
  56. package/dist/packem_shared/{xhrOpenApiSpec-kItrSAsc.js → xhrOpenApiSpec-CXz7BC5J.js} +1 -1
  57. package/dist/storage/aws/index.js +2 -2
  58. package/dist/storage/aws/s3-base-storage.d.ts +1 -1
  59. package/dist/storage/aws/s3-storage.d.ts +1 -1
  60. package/dist/storage/aws/types.d.ts +1 -2
  61. package/dist/storage/aws-light/aws-light-storage.d.ts +3 -2
  62. package/dist/storage/aws-light/index.js +3 -3
  63. package/dist/storage/aws-light/types.d.ts +1 -2
  64. package/dist/storage/azure/azure-storage.d.ts +2 -2
  65. package/dist/storage/azure/index.js +2 -2
  66. package/dist/storage/azure/types.d.ts +1 -2
  67. package/dist/storage/gcs/gcs-storage.d.ts +2 -2
  68. package/dist/storage/gcs/index.js +3 -3
  69. package/dist/storage/gcs/types.d.ts +1 -2
  70. package/dist/storage/local/disk-storage.d.ts +1 -1
  71. package/dist/storage/local/index.js +3 -3
  72. package/dist/storage/local/local-meta-storage.d.ts +2 -7
  73. package/dist/storage/meta-storage-options.d.ts +11 -0
  74. package/dist/storage/meta-storage.d.ts +1 -1
  75. package/dist/storage/netlify-blob/index.js +3 -3
  76. package/dist/storage/netlify-blob/netlify-blob-meta-storage.d.ts +1 -2
  77. package/dist/storage/netlify-blob/netlify-blob-storage.d.ts +2 -2
  78. package/dist/storage/netlify-blob/types.d.ts +1 -2
  79. package/dist/storage/types.d.ts +2 -6
  80. package/dist/storage/vercel-blob/index.js +3 -3
  81. package/dist/storage/vercel-blob/types.d.ts +1 -2
  82. package/dist/storage/vercel-blob/vercel-blob-meta-storage.d.ts +1 -2
  83. package/dist/storage/vercel-blob/vercel-blob-storage.d.ts +2 -2
  84. package/dist/transformer/base-transformer.d.ts +1 -1
  85. package/dist/transformer/index.js +1 -1
  86. package/dist/transformer/transformer-config.d.ts +16 -0
  87. package/dist/transformer/types.d.ts +2 -15
  88. package/dist/utils/types.d.ts +1 -1
  89. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,3 +1,42 @@
1
+ ## @visulima/storage [1.0.0-alpha.13](https://github.com/visulima/visulima/compare/@visulima/storage@1.0.0-alpha.12...@visulima/storage@1.0.0-alpha.13) (2026-04-21)
2
+
3
+ ### Miscellaneous Chores
4
+
5
+ * update the jsr.json ([864ab7e](https://github.com/visulima/visulima/commit/864ab7e71c4b5ae82f64792d1ae8debfea2c539b))
6
+
7
+
8
+ ### Dependencies
9
+
10
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.10
11
+
12
+ ## @visulima/storage [1.0.0-alpha.12](https://github.com/visulima/visulima/compare/@visulima/storage@1.0.0-alpha.11...@visulima/storage@1.0.0-alpha.12) (2026-04-21)
13
+
14
+ ### Bug Fixes
15
+
16
+ * **storage:** parameterize BaseStorage with subclass file type for gcs/netlify/vercel ([4d26390](https://github.com/visulima/visulima/commit/4d26390c75023edba40dc38d1291808e0722fdeb))
17
+ * **storage:** pass concrete file types as BaseStorage generics ([6a4e8f7](https://github.com/visulima/visulima/commit/6a4e8f7bba252be24cf8f9763abb0f63f6d25832))
18
+ * **storage:** resolve eslint and formatting issues ([31e5078](https://github.com/visulima/visulima/commit/31e5078beb640bfca419c144ca22fbfef56926cd))
19
+ * **tui:** inline component and hook barrel exports in ink entry ([1cf8dd2](https://github.com/visulima/visulima/commit/1cf8dd25c91a2001268fb9d964d95df649bf7832))
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ * bump engines.node to ^22.14.0 || >=24.10.0 ([c3d0931](https://github.com/visulima/visulima/commit/c3d0931d1504e4f21ebf50ea680cfa7ce4ba15ce))
24
+ * fixed jsr.json ([5d85e51](https://github.com/visulima/visulima/commit/5d85e5179de38e284ec433b14d77c71a1619c8d6))
25
+ * **storage:** apply formatter and lint fixes ([093d35e](https://github.com/visulima/visulima/commit/093d35edc53ed4e8f48c86b48a74e4062a7e539e))
26
+ * **storage:** apply pending changes ([89a3f64](https://github.com/visulima/visulima/commit/89a3f647d2836a0c48b224d28658ac912e9e1af2))
27
+ * **storage:** enforce curly braces and apply lint fixes ([2093253](https://github.com/visulima/visulima/commit/20932531885ae51604907008f730b9edbc06b962))
28
+
29
+ ### Code Refactoring
30
+
31
+ * **crud:** break handler <-> types circular imports ([#613](https://github.com/visulima/visulima/issues/613)) ([a3c7692](https://github.com/visulima/visulima/commit/a3c7692a5c47cb6ce2284cef7507f4fb992ad3a3))
32
+ * replace inline import() types with top-level imports ([4569a4c](https://github.com/visulima/visulima/commit/4569a4ca04723da069f985855dcfab292f7347e1))
33
+ * **storage:** format code with prettier ([21477ce](https://github.com/visulima/visulima/commit/21477ce4354f83f68fbcbd11e07621e3329357e2))
34
+
35
+
36
+ ### Dependencies
37
+
38
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.9
39
+
1
40
  ## @visulima/storage [1.0.0-alpha.11](https://github.com/visulima/visulima/compare/@visulima/storage@1.0.0-alpha.10...@visulima/storage@1.0.0-alpha.11) (2026-04-08)
2
41
 
3
42
  ### Bug Fixes
package/LICENSE.md CHANGED
@@ -87,7 +87,7 @@ Repository: git+https://github.com/visulima/visulima.git
87
87
  >
88
88
  > # Licenses of bundled dependencies
89
89
  > The published @visulima/fs artifact additionally contains code with the following licenses:
90
- > MIT
90
+ > ISC, MIT
91
91
  >
92
92
  > # Bundled dependencies:
93
93
  > ## @visulima/error
@@ -124,131 +124,6 @@ Repository: git+https://github.com/visulima/visulima.git
124
124
  > > MIT
125
125
  > >
126
126
  > > # Bundled dependencies:
127
- > > ## @visulima/path
128
- > > License: MIT
129
- > > By: Daniel Bannert
130
- > > Repository: git+https://github.com/visulima/visulima.git
131
- > >
132
- > > > MIT License
133
- > > >
134
- > > > Copyright (c) 2026 visulima
135
- > > >
136
- > > > Permission is hereby granted, free of charge, to any person obtaining a copy
137
- > > > of this software and associated documentation files (the "Software"), to deal
138
- > > > in the Software without restriction, including without limitation the rights
139
- > > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
140
- > > > copies of the Software, and to permit persons to whom the Software is
141
- > > > furnished to do so, subject to the following conditions:
142
- > > >
143
- > > > The above copyright notice and this permission notice shall be included in all
144
- > > > copies or substantial portions of the Software.
145
- > > >
146
- > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147
- > > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
148
- > > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
149
- > > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
150
- > > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
151
- > > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
152
- > > > SOFTWARE.
153
- > > >
154
- > > > ---
155
- > > >
156
- > > > MIT License
157
- > > >
158
- > > > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
159
- > > >
160
- > > > Permission is hereby granted, free of charge, to any person obtaining a copy
161
- > > > of this software and associated documentation files (the "Software"), to deal
162
- > > > in the Software without restriction, including without limitation the rights
163
- > > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
164
- > > > copies of the Software, and to permit persons to whom the Software is
165
- > > > furnished to do so, subject to the following conditions:
166
- > > >
167
- > > > The above copyright notice and this permission notice shall be included in all
168
- > > > copies or substantial portions of the Software.
169
- > > >
170
- > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
171
- > > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
172
- > > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
173
- > > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
174
- > > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
175
- > > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
176
- > > > SOFTWARE.
177
- > > >
178
- > > > ---
179
- > > >
180
- > > > Copyright Joyent, Inc. and other Node contributors.
181
- > > >
182
- > > > Permission is hereby granted, free of charge, to any person obtaining a
183
- > > > copy of this software and associated documentation files (the
184
- > > > "Software"), to deal in the Software without restriction, including
185
- > > > without limitation the rights to use, copy, modify, merge, publish,
186
- > > > distribute, sublicense, and/or sell copies of the Software, and to permit
187
- > > > persons to whom the Software is furnished to do so, subject to the
188
- > > > following conditions:
189
- > > >
190
- > > > The above copyright notice and this permission notice shall be included
191
- > > > in all copies or substantial portions of the Software.
192
- > > >
193
- > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
194
- > > > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
195
- > > > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
196
- > > > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
197
- > > > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
198
- > > > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
199
- > > > USE OR OTHER DEALINGS IN THE SOFTWARE.
200
- > > >
201
- > > > ---
202
- > > >
203
- > > > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
204
- > > >
205
- > > > The MIT License (MIT)
206
- > > >
207
- > > > Copyright (c) 2023-present Fabio Spampinato
208
- > > >
209
- > > > Permission is hereby granted, free of charge, to any person obtaining a
210
- > > > copy of this software and associated documentation files (the "Software"),
211
- > > > to deal in the Software without restriction, including without limitation
212
- > > > the rights to use, copy, modify, merge, publish, distribute, sublicense,
213
- > > > and/or sell copies of the Software, and to permit persons to whom the
214
- > > > Software is furnished to do so, subject to the following conditions:
215
- > > >
216
- > > > The above copyright notice and this permission notice shall be included in
217
- > > > all copies or substantial portions of the Software.
218
- > > >
219
- > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
220
- > > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
221
- > > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
222
- > > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
223
- > > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
224
- > > > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
225
- > > > DEALINGS IN THE SOFTWARE.
226
- > > >
227
- > > >
228
- > > >
229
- > > > # Licenses of bundled dependencies
230
- > > > The published @visulima/path artifact additionally contains code with the following licenses:
231
- > > > MIT
232
- > > >
233
- > > > # Bundled dependencies:
234
- > > > ## binary-extensions
235
- > > > License: MIT
236
- > > > By: Sindre Sorhus
237
- > > > Repository: sindresorhus/binary-extensions
238
- > > >
239
- > > > > MIT License
240
- > > > >
241
- > > > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
242
- > > > > Copyright (c) Paul Miller (https://paulmillr.com)
243
- > > > >
244
- > > > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
245
- > > > >
246
- > > > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
247
- > > > >
248
- > > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
249
- > >
250
- > > ---------------------------------------
251
- > >
252
127
  > > ## is-plain-obj
253
128
  > > License: MIT
254
129
  > > By: Sindre Sorhus
@@ -283,6 +158,73 @@ Repository: git+https://github.com/visulima/visulima.git
283
158
  >
284
159
  > ---------------------------------------
285
160
  >
161
+ > ## fdir
162
+ > License: MIT
163
+ > By: thecodrr
164
+ > Repository: git+https://github.com/thecodrr/fdir.git
165
+ >
166
+ > > Copyright 2023 Abdullah Atta
167
+ > >
168
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
169
+ > >
170
+ > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
171
+ > >
172
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
173
+ >
174
+ > ---------------------------------------
175
+ >
176
+ > ## glob-parent
177
+ > License: ISC
178
+ > By: Gulp Team, Elan Shanker, Blaine Bublitz
179
+ > Repository: gulpjs/glob-parent
180
+ >
181
+ > > The ISC License
182
+ > >
183
+ > > Copyright (c) 2015, 2019 Elan Shanker, 2021 Blaine Bublitz <blaine.bublitz@gmail.com>, Eric Schoffstall <yo@contra.io> and other contributors
184
+ > >
185
+ > > Permission to use, copy, modify, and/or distribute this software for any
186
+ > > purpose with or without fee is hereby granted, provided that the above
187
+ > > copyright notice and this permission notice appear in all copies.
188
+ > >
189
+ > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
190
+ > > WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
191
+ > > MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
192
+ > > ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
193
+ > > WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
194
+ > > ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
195
+ > > IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
196
+ >
197
+ > ---------------------------------------
198
+ >
199
+ > ## is-extglob
200
+ > License: MIT
201
+ > By: Jon Schlinkert
202
+ > Repository: jonschlinkert/is-extglob
203
+ >
204
+ > > The MIT License (MIT)
205
+ > >
206
+ > > Copyright (c) 2014-2016, Jon Schlinkert
207
+ > >
208
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy
209
+ > > of this software and associated documentation files (the "Software"), to deal
210
+ > > in the Software without restriction, including without limitation the rights
211
+ > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212
+ > > copies of the Software, and to permit persons to whom the Software is
213
+ > > furnished to do so, subject to the following conditions:
214
+ > >
215
+ > > The above copyright notice and this permission notice shall be included in
216
+ > > all copies or substantial portions of the Software.
217
+ > >
218
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
+ > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
+ > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
+ > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
+ > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
+ > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
224
+ > > THE SOFTWARE.
225
+ >
226
+ > ---------------------------------------
227
+ >
286
228
  > ## is-fs-case-sensitive
287
229
  > License: MIT
288
230
  > By: Hiroki Osame
@@ -310,6 +252,93 @@ Repository: git+https://github.com/visulima/visulima.git
310
252
  > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
311
253
  > > SOFTWARE.
312
254
  >
255
+ > ---------------------------------------
256
+ >
257
+ > ## is-glob
258
+ > License: MIT
259
+ > By: Jon Schlinkert, Brian Woodward, Daniel Perez
260
+ > Repository: micromatch/is-glob
261
+ >
262
+ > > The MIT License (MIT)
263
+ > >
264
+ > > Copyright (c) 2014-2017, Jon Schlinkert.
265
+ > >
266
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy
267
+ > > of this software and associated documentation files (the "Software"), to deal
268
+ > > in the Software without restriction, including without limitation the rights
269
+ > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
270
+ > > copies of the Software, and to permit persons to whom the Software is
271
+ > > furnished to do so, subject to the following conditions:
272
+ > >
273
+ > > The above copyright notice and this permission notice shall be included in
274
+ > > all copies or substantial portions of the Software.
275
+ > >
276
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
277
+ > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
278
+ > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
279
+ > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
280
+ > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
281
+ > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
282
+ > > THE SOFTWARE.
283
+ >
284
+ > ---------------------------------------
285
+ >
286
+ > ## picomatch
287
+ > License: MIT
288
+ > By: Jon Schlinkert
289
+ > Repository: micromatch/picomatch
290
+ >
291
+ > > The MIT License (MIT)
292
+ > >
293
+ > > Copyright (c) 2017-present, Jon Schlinkert.
294
+ > >
295
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy
296
+ > > of this software and associated documentation files (the "Software"), to deal
297
+ > > in the Software without restriction, including without limitation the rights
298
+ > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
299
+ > > copies of the Software, and to permit persons to whom the Software is
300
+ > > furnished to do so, subject to the following conditions:
301
+ > >
302
+ > > The above copyright notice and this permission notice shall be included in
303
+ > > all copies or substantial portions of the Software.
304
+ > >
305
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
306
+ > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
307
+ > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
308
+ > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
309
+ > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
310
+ > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
311
+ > > THE SOFTWARE.
312
+ >
313
+ > ---------------------------------------
314
+ >
315
+ > ## tinyglobby
316
+ > License: MIT
317
+ > By: Superchupu
318
+ > Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
319
+ >
320
+ > > MIT License
321
+ > >
322
+ > > Copyright (c) 2024 Madeline Gurriarán
323
+ > >
324
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy
325
+ > > of this software and associated documentation files (the "Software"), to deal
326
+ > > in the Software without restriction, including without limitation the rights
327
+ > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
328
+ > > copies of the Software, and to permit persons to whom the Software is
329
+ > > furnished to do so, subject to the following conditions:
330
+ > >
331
+ > > The above copyright notice and this permission notice shall be included in all
332
+ > > copies or substantial portions of the Software.
333
+ > >
334
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
335
+ > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
336
+ > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
337
+ > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
338
+ > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
339
+ > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
340
+ > > SOFTWARE.
341
+ >
313
342
  >
314
343
  >
315
344
  >
@@ -1,4 +1,4 @@
1
- export { default as Multipart } from '../../../packem_shared/Multipart-CDDlDOs7.js';
2
- export { default as Rest } from '../../../packem_shared/Rest-D14vM7aJ.js';
3
- export { Tus } from '../../../packem_shared/Tus-Cjz87bpz.js';
1
+ export { default as Multipart } from '../../../packem_shared/Multipart-DLtFLQ8s.js';
2
+ export { default as Rest } from '../../../packem_shared/Rest-DEa7IA9R.js';
3
+ export { Tus } from '../../../packem_shared/Tus-_0vCdHyB.js';
4
4
  export { TUS_RESUMABLE, TUS_VERSION } from '../../../packem_shared/TUS_RESUMABLE-Dtfsffnj.js';
@@ -1,6 +1,6 @@
1
- import Multipart from '../../../packem_shared/Multipart-CDDlDOs7.js';
2
- import RestFetch from '../../../packem_shared/Rest-D14vM7aJ.js';
3
- import { Tus } from '../../../packem_shared/Tus-Cjz87bpz.js';
1
+ import Multipart from '../../../packem_shared/Multipart-DLtFLQ8s.js';
2
+ import RestFetch from '../../../packem_shared/Rest-DEa7IA9R.js';
3
+ import { Tus } from '../../../packem_shared/Tus-_0vCdHyB.js';
4
4
 
5
5
  const createHandlerFunction = (handler) => async (c) => {
6
6
  try {
@@ -58,4 +58,4 @@ export interface NextjsHandlerConfig<TFile extends UploadFile> extends UploadOpt
58
58
  * export const OPTIONS = handler;
59
59
  * ```
60
60
  */
61
- export declare const createHandler: <TFile extends UploadFile>(config: NextjsHandlerConfig<TFile>) => ((request: NextRequest) => Promise<NextResponse>);
61
+ export declare const createHandler: <TFile extends UploadFile>(config: NextjsHandlerConfig<TFile>) => (request: NextRequest) => Promise<NextResponse>;
@@ -1,7 +1,7 @@
1
1
  import { NextResponse } from 'next/server.js';
2
- import Multipart from '../../../packem_shared/Multipart-CDDlDOs7.js';
3
- import RestFetch from '../../../packem_shared/Rest-D14vM7aJ.js';
4
- import { Tus } from '../../../packem_shared/Tus-Cjz87bpz.js';
2
+ import Multipart from '../../../packem_shared/Multipart-DLtFLQ8s.js';
3
+ import RestFetch from '../../../packem_shared/Rest-DEa7IA9R.js';
4
+ import { Tus } from '../../../packem_shared/Tus-_0vCdHyB.js';
5
5
 
6
6
  const createHandler = (config) => {
7
7
  let handler;
@@ -1,6 +1,6 @@
1
- import Multipart from '../../../packem_shared/Multipart-vxBL2VXm.js';
2
- import Rest from '../../../packem_shared/Rest-CEj3EhMj.js';
3
- import { Tus } from '../../../packem_shared/Tus-WOVg-YnB.js';
1
+ import Multipart from '../../../packem_shared/Multipart-BzzvNxt4.js';
2
+ import Rest from '../../../packem_shared/Rest-qhMbCn5a.js';
3
+ import { Tus } from '../../../packem_shared/Tus-Ck0Hdle5.js';
4
4
  export { TUS_RESUMABLE, TUS_VERSION } from '../../../packem_shared/TUS_RESUMABLE-Dtfsffnj.js';
5
5
 
6
6
 
@@ -57,4 +57,4 @@ export interface SolidStartHandlerConfig<TFile extends UploadFile> extends Uploa
57
57
  * export const OPTIONS = handler;
58
58
  * ```
59
59
  */
60
- export declare const createSolidStartHandler: <TFile extends UploadFile>(config: SolidStartHandlerConfig<TFile>) => ((event: APIEvent) => Promise<Response>);
60
+ export declare const createSolidStartHandler: <TFile extends UploadFile>(config: SolidStartHandlerConfig<TFile>) => (event: APIEvent) => Promise<Response>;
@@ -1,6 +1,6 @@
1
- import Multipart from '../../../packem_shared/Multipart-CDDlDOs7.js';
2
- import RestFetch from '../../../packem_shared/Rest-D14vM7aJ.js';
3
- import { Tus } from '../../../packem_shared/Tus-Cjz87bpz.js';
1
+ import Multipart from '../../../packem_shared/Multipart-DLtFLQ8s.js';
2
+ import RestFetch from '../../../packem_shared/Rest-DEa7IA9R.js';
3
+ import { Tus } from '../../../packem_shared/Tus-_0vCdHyB.js';
4
4
 
5
5
  const createSolidStartHandler = (config) => {
6
6
  let handler;
@@ -1,7 +1,7 @@
1
1
  import type { IncomingMessage, ServerResponse } from "node:http";
2
2
  import type { Readable } from "node:stream";
3
3
  import type { UploadFile } from "../../storage/utils/index.d.ts";
4
- import type { ResponseBody, UploadResponse } from "../../utils/types.d.ts";
4
+ import type { UploadResponse } from "../../utils/types.d.ts";
5
5
  import type { ResponseFile, ResponseList } from "../types.d.ts";
6
6
  /**
7
7
  * Handles HEAD/OPTIONS requests.
@@ -22,7 +22,7 @@ export declare const handleHeadOptionsRequest: <TFile extends UploadFile, NodeRe
22
22
  * @param sendStream Function to send stream response
23
23
  * @param parseRangeHeader Function to parse range header
24
24
  */
25
- export declare const handleGetRequest: <TFile extends UploadFile, NodeResponse extends ServerResponse>(file: ResponseFile<TFile> | ResponseList<TFile>, request: IncomingMessage, response: NodeResponse, next: (() => void) | undefined, send: (response: NodeResponse, data: UploadResponse<ResponseBody>) => void, sendStream: (response: NodeResponse, stream: Readable, options: {
25
+ export declare const handleGetRequest: <TFile extends UploadFile, NodeResponse extends ServerResponse>(file: ResponseFile<TFile> | ResponseList<TFile>, request: IncomingMessage, response: NodeResponse, next: (() => void) | undefined, send: (response: NodeResponse, data: UploadResponse) => void, sendStream: (response: NodeResponse, stream: Readable, options: {
26
26
  headers: Record<string, string | number>;
27
27
  range?: {
28
28
  end: number;
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  export { waitForStorage } from './packem_shared/waitForStorage-Cscw85sx.js';
2
- export { D as DiskStorage } from './packem_shared/disk-storage-DeivH-J5.js';
3
- export { default as DiskStorageWithChecksum } from './packem_shared/DiskStorageWithChecksum-B_XY8_cO.js';
4
- export { L as LocalMetaStorage } from './packem_shared/local-meta-storage-BlOk6m7F.js';
2
+ export { D as DiskStorage } from './packem_shared/disk-storage-D9RfoKjW.js';
3
+ export { default as DiskStorageWithChecksum } from './packem_shared/DiskStorageWithChecksum-BVaaZiyS.js';
4
+ export { L as LocalMetaStorage } from './packem_shared/local-meta-storage-D-pPc3FI.js';
5
5
  export { default as MetaStorage } from './packem_shared/MetaStorage-pECeFOad.js';
6
- export { B as AbstractBaseStorage, d as defaultCloudStorageFileNameValidation, a as defaultFilesystemFileNameValidation } from './packem_shared/storage-CpJpqLdn.js';
6
+ export { B as AbstractBaseStorage, d as defaultCloudStorageFileNameValidation, a as defaultFilesystemFileNameValidation } from './packem_shared/storage-5XW1E7XU.js';
7
7
  export { ERRORS, ErrorMap, UploadError, isUploadError, throwErrorCode } from './packem_shared/ERRORS-D0apMqnc.js';
8
8
  export { createRetryWrapper, isRetryableError, retry } from './packem_shared/isRetryableError-Dycp7127.js';
9
9
  export { fileTypeFromBlob, fileTypeFromBuffer, fileTypeFromTokenizer, supportedExtensions, supportedMimeTypes } from 'file-type';
10
- export { default as File } from './packem_shared/File-Bb3P23dr.js';
10
+ export { default as File } from './packem_shared/File-CPUhj3DI.js';
11
11
  export { default as NoOpMetrics } from './packem_shared/NoOpMetrics-DhAk5rXc.js';
12
12
  export { default as OpenTelemetryMetrics } from './packem_shared/OpenTelemetryMetrics-BnxhqIaH.js';
13
13
  export { Metadata } from './packem_shared/Metadata-DRLXeJ0F.js';
@@ -1,5 +1,5 @@
1
- export { default as restOpenApiSpec } from '../packem_shared/restOpenApiSpec-D1zbmid7.js';
2
- export { sharedErrorSchemaObject, sharedFileMetaExampleObject, sharedFileMetaSchemaObject, sharedGet, sharedGetList } from '../packem_shared/sharedGet-DAyJfjhl.js';
3
- export { default as transformOpenApiSpec } from '../packem_shared/transformOpenApiSpec-BC0r6PzI.js';
4
- export { default as tusOpenApiSpec } from '../packem_shared/tusOpenApiSpec-BLIjKf0s.js';
5
- export { default as xhrOpenApiSpec } from '../packem_shared/xhrOpenApiSpec-kItrSAsc.js';
1
+ export { default as restOpenApiSpec } from '../packem_shared/restOpenApiSpec-BBJ_SiPE.js';
2
+ export { sharedErrorSchemaObject, sharedFileMetaExampleObject, sharedFileMetaSchemaObject, sharedGet, sharedGetList } from '../packem_shared/sharedGet-CkSLSnMd.js';
3
+ export { default as transformOpenApiSpec } from '../packem_shared/transformOpenApiSpec-BodFhFls.js';
4
+ export { default as tusOpenApiSpec } from '../packem_shared/tusOpenApiSpec-DzppyJTW.js';
5
+ export { default as xhrOpenApiSpec } from '../packem_shared/xhrOpenApiSpec-CXz7BC5J.js';
@@ -1,4 +1,4 @@
1
- import File from './File-Bb3P23dr.js';
1
+ import File from './File-CPUhj3DI.js';
2
2
 
3
3
  class AwsLightFile extends File {
4
4
  Parts;
@@ -1,4 +1,4 @@
1
1
  import './MetaStorage-pECeFOad.js';
2
2
  import './Metadata-DRLXeJ0F.js';
3
- export { A as default } from './aws-light-meta-storage-Ba2b_h-o.js';
3
+ export { A as default } from './aws-light-meta-storage-BGZEiY3y.js';
4
4
  import './is-expired-CTThU1q5.js';
@@ -1,13 +1,13 @@
1
1
  import { Readable } from 'node:stream';
2
- import { S as S3BaseStorage } from './s3-base-storage-CG21uusd.js';
3
- import { a as AwsLightApiAdapter, A as AwsLightMetaStorage } from './aws-light-meta-storage-Ba2b_h-o.js';
4
- import AwsLightFile from './AwsLightFile-tTneXZgG.js';
2
+ import { S as S3BaseStorage } from './s3-base-storage-zUO8u8Cp.js';
3
+ import { a as AwsLightApiAdapter, A as AwsLightMetaStorage } from './aws-light-meta-storage-BGZEiY3y.js';
4
+ import AwsLightFile from './AwsLightFile-C-Nd5rtl.js';
5
5
 
6
6
  class AwsLightStorage extends S3BaseStorage {
7
7
  static name = "aws-light";
8
8
  s3Api;
9
9
  constructor(config) {
10
- const { bucket = process.env.S3_BUCKET || process.env.AWS_S3_BUCKET, region = process.env.S3_REGION || process.env.AWS_REGION } = config;
10
+ const { bucket = process.env.S3_BUCKET || process.env.AWS_S3_BUCKET, region } = config;
11
11
  if (!bucket) {
12
12
  throw new Error("S3 bucket is not defined");
13
13
  }
@@ -1,4 +1,4 @@
1
- import File from './File-Bb3P23dr.js';
1
+ import File from './File-CPUhj3DI.js';
2
2
 
3
3
  class AzureFile extends File {
4
4
  requestId;
@@ -1,10 +1,10 @@
1
1
  import { BlobServiceClient, StorageSharedKeyCredential } from '@azure/storage-blob';
2
- import { p as partMatch, d as detectFileTypeFromStream, g as getFileStatus } from './part-match-BMNqHDYD.js';
2
+ import { p as partMatch, d as detectFileTypeFromStream, g as getFileStatus } from './part-match-Dt738Ddb.js';
3
3
  import { throwErrorCode, ERRORS } from './ERRORS-D0apMqnc.js';
4
- import { B as BaseStorage, t as toMilliseconds } from './storage-CpJpqLdn.js';
4
+ import { B as BaseStorage, t as toMilliseconds } from './storage-5XW1E7XU.js';
5
5
  import { createRetryWrapper } from './isRetryableError-Dycp7127.js';
6
- import { L as LocalMetaStorage } from './local-meta-storage-BlOk6m7F.js';
7
- import AzureFile from './AzureFile-CesgFzps.js';
6
+ import { L as LocalMetaStorage } from './local-meta-storage-D-pPc3FI.js';
7
+ import AzureFile from './AzureFile-C0kug4w4.js';
8
8
  import AzureMetaStorage from './AzureSMetaStorage-BEbXX9Uk.js';
9
9
  import { n as normalize } from './path-aV9lMdcn-DMU5H1-h.js';
10
10
  import { h as hasContent } from './has-content-CY66ehMK.js';
@@ -198,7 +198,9 @@ class AzureStorage extends BaseStorage {
198
198
  }
199
199
  const blobClient = this.containerClient.getBlockBlobClient(this.getFullPath(file.name));
200
200
  const abortController = new AbortController();
201
- part.body.on("error", () => abortController.abort());
201
+ part.body.on("error", () => {
202
+ abortController.abort();
203
+ });
202
204
  const response = await this.retry(
203
205
  () => blobClient.uploadStream(part.body, void 0, void 0, {
204
206
  abortSignal: abortController.signal,
@@ -1,12 +1,12 @@
1
1
  import 'node:fs';
2
2
  import 'node:fs/promises';
3
3
  import 'node:stream';
4
- export { D as default } from './disk-storage-DeivH-J5.js';
5
- import './part-match-BMNqHDYD.js';
4
+ export { D as default } from './disk-storage-D9RfoKjW.js';
5
+ import './part-match-Dt738Ddb.js';
6
6
  import './ERRORS-D0apMqnc.js';
7
- import './storage-CpJpqLdn.js';
8
- import './local-meta-storage-BlOk6m7F.js';
9
- import './File-Bb3P23dr.js';
7
+ import './storage-5XW1E7XU.js';
8
+ import './local-meta-storage-D-pPc3FI.js';
9
+ import './File-CPUhj3DI.js';
10
10
  import './update-size-CCGm6i1J.js';
11
11
  import './has-content-CY66ehMK.js';
12
12
  import './path-aV9lMdcn-DMU5H1-h.js';
@@ -1,12 +1,12 @@
1
1
  import { createReadStream, createWriteStream } from 'node:fs';
2
2
  import { truncate } from 'node:fs/promises';
3
3
  import { Transform, pipeline } from 'node:stream';
4
- import { p as partMatch, d as detectFileTypeFromStream, g as getFileStatus } from './part-match-BMNqHDYD.js';
4
+ import { p as partMatch, d as detectFileTypeFromStream, g as getFileStatus } from './part-match-Dt738Ddb.js';
5
5
  import { throwErrorCode, ERRORS } from './ERRORS-D0apMqnc.js';
6
- import { D as DiskStorage, e as ensureFile, S as StreamLength, s as streamChecksum } from './disk-storage-DeivH-J5.js';
6
+ import { D as DiskStorage, e as ensureFile, S as StreamLength, s as streamChecksum } from './disk-storage-D9RfoKjW.js';
7
7
  import { LRUCache } from 'lru-cache';
8
8
  import { createHash } from 'node:crypto';
9
- import { r as remove } from './local-meta-storage-BlOk6m7F.js';
9
+ import { r as remove } from './local-meta-storage-D-pPc3FI.js';
10
10
  import { u as updateSize } from './update-size-CCGm6i1J.js';
11
11
  import { h as hasContent } from './has-content-CY66ehMK.js';
12
12
 
@@ -115,7 +115,9 @@ class RangeHasher extends LRUCache {
115
115
  if (initial !== void 0) {
116
116
  digester.hash = initial;
117
117
  }
118
- createReadStream(path, { start }).on("error", reject).on("end", () => resolve(digester.hash)).pipe(digester).resume();
118
+ createReadStream(path, { start }).on("error", reject).on("end", () => {
119
+ resolve(digester.hash);
120
+ }).pipe(digester).resume();
119
121
  });
120
122
  }
121
123
  }
@@ -223,15 +225,22 @@ class DiskStorageWithChecksum extends DiskStorage {
223
225
  destination.close();
224
226
  resolve([Number.NaN, code]);
225
227
  };
226
- lengthChecker.on("error", () => failWithCode(ERRORS.FILE_CONFLICT));
227
- checksumChecker.on("error", () => failWithCode(ERRORS.CHECKSUM_MISMATCH));
228
- part.body.on("aborted", () => failWithCode(keepPartial ? void 0 : ERRORS.REQUEST_ABORTED));
228
+ lengthChecker.on("error", () => {
229
+ failWithCode(ERRORS.FILE_CONFLICT);
230
+ });
231
+ checksumChecker.on("error", () => {
232
+ failWithCode(ERRORS.CHECKSUM_MISMATCH);
233
+ });
234
+ part.body.on("aborted", () => {
235
+ failWithCode(keepPartial ? void 0 : ERRORS.REQUEST_ABORTED);
236
+ });
229
237
  pipeline(part.body, lengthChecker, checksumChecker, digester, destination, (error) => {
230
238
  if (error) {
231
239
  digester.reset();
232
- return reject(error);
240
+ reject(error);
241
+ return;
233
242
  }
234
- return resolve([part.start + destination.bytesWritten]);
243
+ resolve([part.start + destination.bytesWritten]);
235
244
  });
236
245
  });
237
246
  }
@@ -49,7 +49,7 @@ class File {
49
49
  hash;
50
50
  content;
51
51
  ETag;
52
- constructor({ contentType, expiredAt, metadata = {}, originalName, size }) {
52
+ constructor({ contentType, expiredAt, metadata, originalName, size }) {
53
53
  this.metadata = metadata;
54
54
  this.originalName = originalName || extractOriginalName(metadata) || (this.id = nanoid());
55
55
  this.contentType = contentType || extractMimeType(metadata) || "application/octet-stream";
@@ -1,4 +1,4 @@
1
- import File from './File-Bb3P23dr.js';
1
+ import File from './File-CPUhj3DI.js';
2
2
 
3
3
  class GCSFile extends File {
4
4
  GCSUploadURI;