Skip to content

Commit

Permalink
fix: add missing cloudflareR2Binding to the builtinDrivers
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jul 4, 2023
1 parent 4386798 commit 48d6842
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ export * from "./utils";
export { defineDriver } from "./drivers/utils";

export const builtinDrivers = {
azureStorageTable: "unstorage/drivers/azure-storage-table",
azureAppConfiguration: "unstorage/drivers/azure-app-configuration",
azureCosmos: "unstorage/drivers/azure-cosmos",
azureKeyVault: "unstorage/drivers/azure-key-vault",
azureStorageBlob: "unstorage/drivers/azure-storage-blob",
cloudflareKVHTTP: "unstorage/drivers/cloudflare-kv-http",
azureStorageTable: "unstorage/drivers/azure-storage-table",
cloudflareKVBinding: "unstorage/drivers/cloudflare-kv-binding",
"cloudflare-kv-http": "unstorage/drivers/cloudflare-kv-http",
"cloudflare-kv-binding": "unstorage/drivers/cloudflare-kv-binding",
cloudflareKVHTTP: "unstorage/drivers/cloudflare-kv-http",
cloudflareR2Binding: "unstorage/drivers/cloudflare-r2-binding",
fs: "unstorage/drivers/fs",
github: "unstorage/drivers/github",
http: "unstorage/drivers/http",
Expand All @@ -21,9 +22,13 @@ export const builtinDrivers = {
overlay: "unstorage/drivers/overlay",
planetscale: "unstorage/drivers/planetscale",
redis: "unstorage/drivers/redis",
azureKeyVault: "unstorage/drivers/azure-key-vault",
sessionStorage: "unstorage/drivers/session-storage",
vercelKV: "unstorage/drivers/vercel-kv",

/** @deprecated */
"cloudflare-kv-binding": "unstorage/drivers/cloudflare-kv-binding",
/** @deprecated */
"cloudflare-kv-http": "unstorage/drivers/cloudflare-kv-http",
};

export type BuiltinDriverName = keyof typeof builtinDrivers;

0 comments on commit 48d6842

Please sign in to comment.