Skip to content

Commit 06e362f

Browse files
committed
fix: fix typo
1 parent 43b40b6 commit 06e362f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class Blobs {
100100
}
101101
}
102102

103-
private static getExpirationeaders(expiration: Date | number | undefined): Record<string, string> {
103+
private static getExpirationHeaders(expiration: Date | number | undefined): Record<string, string> {
104104
if (typeof expiration === 'number') {
105105
return {
106106
[EXPIRY_HEADER]: (Date.now() + expiration).toString(),
@@ -224,7 +224,7 @@ export class Blobs {
224224
}
225225

226226
async set(key: string, data: BlobInput, { expiration }: SetOptions = {}) {
227-
const headers = Blobs.getExpirationeaders(expiration)
227+
const headers = Blobs.getExpirationHeaders(expiration)
228228

229229
await this.makeStoreRequest(key, HTTPMethod.Put, headers, data)
230230
}
@@ -233,7 +233,7 @@ export class Blobs {
233233
const { size } = await stat(path)
234234
const file = Readable.toWeb(createReadStream(path))
235235
const headers = {
236-
...Blobs.getExpirationeaders(expiration),
236+
...Blobs.getExpirationHeaders(expiration),
237237
'content-length': size.toString(),
238238
}
239239

@@ -247,7 +247,7 @@ export class Blobs {
247247
async setJSON(key: string, data: unknown, { expiration }: SetOptions = {}) {
248248
const payload = JSON.stringify(data)
249249
const headers = {
250-
...Blobs.getExpirationeaders(expiration),
250+
...Blobs.getExpirationHeaders(expiration),
251251
'content-type': 'application/json',
252252
}
253253

0 commit comments

Comments
 (0)