@auto-engineer/file-upload 1.98.0 → 1.99.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/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "version": "1.98.0",
16
+ "version": "1.99.0",
17
17
  "scripts": {
18
18
  "build": "tsc && tsx ../../scripts/fix-esm-imports.ts",
19
19
  "test": "vitest run --reporter=dot",
@@ -15,7 +15,11 @@ function buildKey(prefix: string | undefined, relativePath: string): string {
15
15
  return prefix ? `${prefix}/${relativePath}` : relativePath;
16
16
  }
17
17
 
18
- export async function uploadFile(relativePath: string, content: Uint8Array, deps: UploadDeps): Promise<void> {
18
+ export async function uploadFile(
19
+ relativePath: string,
20
+ content: Uint8Array<ArrayBuffer>,
21
+ deps: UploadDeps,
22
+ ): Promise<void> {
19
23
  if (deps.uploadUrl?.startsWith('file://')) {
20
24
  const base = fileURLToPath(deps.uploadUrl);
21
25
  const segments = deps.prefix ? [base, deps.prefix, relativePath] : [base, relativePath];