Skip to content

Commit

Permalink
release: 3.0.0-beta.8 (#178)
Browse files Browse the repository at this point in the history
* feat(api): OpenAPI spec update via Stainless API (#177)

* release: 3.0.0-beta.8

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Mar 20, 2024
1 parent 2ad8c2a commit 0a9671a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.0.0-beta.7"
".": "3.0.0-beta.8"
}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.0.0-beta.8 (2024-03-19)

Full Changelog: [v3.0.0-beta.7...v3.0.0-beta.8](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.7...v3.0.0-beta.8)

### Features

* **api:** OpenAPI spec update via Stainless API ([#177](https://github.com/cloudflare/cloudflare-typescript/issues/177)) ([a9ae59c](https://github.com/cloudflare/cloudflare-typescript/commit/a9ae59c9f02a63dedfee717164787d637cd4a103))

## 3.0.0-beta.7 (2024-03-19)

Full Changelog: [v3.0.0-beta.6...v3.0.0-beta.7](https://github.com/cloudflare/cloudflare-typescript/compare/v3.0.0-beta.6...v3.0.0-beta.7)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudflare",
"version": "3.0.0-beta.7",
"version": "3.0.0-beta.8",
"description": "The official TypeScript library for the Cloudflare API",
"author": "Cloudflare <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion src/uploads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ export type ToFileInput = Uploadable | Exclude<BlobLikePart, string> | AsyncIter
export async function toFile(
value: ToFileInput | PromiseLike<ToFileInput>,
name?: string | null | undefined,
options: FilePropertyBag | undefined = {},
options?: FilePropertyBag | undefined,
): Promise<FileLike> {
// If it's a promise, resolve it.
value = await value;

// Use the file's options if there isn't one provided
options ??= isFileLike(value) ? { lastModified: value.lastModified, type: value.type } : {};

if (isResponseLike(value)) {
const blob = await value.blob();
name ||= new URL(value.url).pathname.split(/[\\/]/).pop() ?? 'unknown_file';
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '3.0.0-beta.7'; // x-release-please-version
export const VERSION = '3.0.0-beta.8'; // x-release-please-version

0 comments on commit 0a9671a

Please sign in to comment.