| import { AppConfigurationClient } from "@azure/app-configuration"; | ||
| export interface AzureAppConfigurationOptions { | ||
| /** | ||
| * Optional prefix for keys. This can be used to isolate keys from different applications in the same Azure App Configuration instance. E.g. "app01" results in keys like "app01:foo" and "app01:bar". | ||
| * @default null | ||
| */ | ||
| prefix?: string; | ||
| /** | ||
| * Optional label for keys. If not provided, all keys will be created and listed without labels. This can be used to isolate keys from different environments in the same Azure App Configuration instance. E.g. "dev" results in keys like "foo" and "bar" with the label "dev". | ||
| * @default '\0' | ||
| */ | ||
| label?: string; | ||
| /** | ||
| * Optional endpoint to use when connecting to Azure App Configuration. If not provided, the appConfigName option must be provided. If both are provided, the endpoint option takes precedence. | ||
| * @default null | ||
| */ | ||
| endpoint?: string; | ||
| /** | ||
| * Optional name of the Azure App Configuration instance to connect to. If not provided, the endpoint option must be provided. If both are provided, the endpoint option takes precedence. | ||
| * @default null | ||
| */ | ||
| appConfigName?: string; | ||
| /** | ||
| * Optional connection string to use when connecting to Azure App Configuration. If not provided, the endpoint option must be provided. If both are provided, the endpoint option takes precedence. | ||
| * @default null | ||
| */ | ||
| connectionString?: string; | ||
| } | ||
| declare const _default: (opts: AzureAppConfigurationOptions | undefined) => import("..").Driver<AzureAppConfigurationOptions | undefined, AppConfigurationClient>; | ||
| export default _default; |
| import { AppConfigurationClient } from "@azure/app-configuration"; | ||
| export interface AzureAppConfigurationOptions { | ||
| /** | ||
| * Optional prefix for keys. This can be used to isolate keys from different applications in the same Azure App Configuration instance. E.g. "app01" results in keys like "app01:foo" and "app01:bar". | ||
| * @default null | ||
| */ | ||
| prefix?: string; | ||
| /** | ||
| * Optional label for keys. If not provided, all keys will be created and listed without labels. This can be used to isolate keys from different environments in the same Azure App Configuration instance. E.g. "dev" results in keys like "foo" and "bar" with the label "dev". | ||
| * @default '\0' | ||
| */ | ||
| label?: string; | ||
| /** | ||
| * Optional endpoint to use when connecting to Azure App Configuration. If not provided, the appConfigName option must be provided. If both are provided, the endpoint option takes precedence. | ||
| * @default null | ||
| */ | ||
| endpoint?: string; | ||
| /** | ||
| * Optional name of the Azure App Configuration instance to connect to. If not provided, the endpoint option must be provided. If both are provided, the endpoint option takes precedence. | ||
| * @default null | ||
| */ | ||
| appConfigName?: string; | ||
| /** | ||
| * Optional connection string to use when connecting to Azure App Configuration. If not provided, the endpoint option must be provided. If both are provided, the endpoint option takes precedence. | ||
| * @default null | ||
| */ | ||
| connectionString?: string; | ||
| } | ||
| declare const _default: (opts: AzureAppConfigurationOptions | undefined) => import("..").Driver<AzureAppConfigurationOptions | undefined, AppConfigurationClient>; | ||
| export default _default; |
| import { Container } from "@azure/cosmos"; | ||
| export interface AzureCosmosOptions { | ||
| /** | ||
| * CosmosDB endpoint in the format of https://<account>.documents.azure.com:443/. | ||
| */ | ||
| endpoint: string; | ||
| /** | ||
| * CosmosDB account key. If not provided, the driver will use the DefaultAzureCredential (recommended). | ||
| */ | ||
| accountKey?: string; | ||
| /** | ||
| * The name of the database to use. Defaults to `unstorage`. | ||
| * @default "unstorage" | ||
| */ | ||
| databaseName?: string; | ||
| /** | ||
| * The name of the container to use. Defaults to `unstorage`. | ||
| * @default "unstorage" | ||
| */ | ||
| containerName?: string; | ||
| } | ||
| export interface AzureCosmosItem { | ||
| /** | ||
| * The unstorage key as id of the item. | ||
| */ | ||
| id: string; | ||
| /** | ||
| * The unstorage value of the item. | ||
| */ | ||
| value: string; | ||
| /** | ||
| * The unstorage mtime metadata of the item. | ||
| */ | ||
| modified: string | Date; | ||
| } | ||
| declare const _default: (opts: AzureCosmosOptions) => import("..").Driver<AzureCosmosOptions, Promise<Container>>; | ||
| export default _default; |
| import { Container } from "@azure/cosmos"; | ||
| export interface AzureCosmosOptions { | ||
| /** | ||
| * CosmosDB endpoint in the format of https://<account>.documents.azure.com:443/. | ||
| */ | ||
| endpoint: string; | ||
| /** | ||
| * CosmosDB account key. If not provided, the driver will use the DefaultAzureCredential (recommended). | ||
| */ | ||
| accountKey?: string; | ||
| /** | ||
| * The name of the database to use. Defaults to `unstorage`. | ||
| * @default "unstorage" | ||
| */ | ||
| databaseName?: string; | ||
| /** | ||
| * The name of the container to use. Defaults to `unstorage`. | ||
| * @default "unstorage" | ||
| */ | ||
| containerName?: string; | ||
| } | ||
| export interface AzureCosmosItem { | ||
| /** | ||
| * The unstorage key as id of the item. | ||
| */ | ||
| id: string; | ||
| /** | ||
| * The unstorage value of the item. | ||
| */ | ||
| value: string; | ||
| /** | ||
| * The unstorage mtime metadata of the item. | ||
| */ | ||
| modified: string | Date; | ||
| } | ||
| declare const _default: (opts: AzureCosmosOptions) => import("..").Driver<AzureCosmosOptions, Promise<Container>>; | ||
| export default _default; |
| import { SecretClient, type SecretClientOptions } from "@azure/keyvault-secrets"; | ||
| export interface AzureKeyVaultOptions { | ||
| /** | ||
| * The name of the key vault to use. | ||
| */ | ||
| vaultName: string; | ||
| /** | ||
| * Version of the Azure Key Vault service to use. Defaults to 7.3. | ||
| * @default '7.3' | ||
| */ | ||
| serviceVersion?: SecretClientOptions["serviceVersion"]; | ||
| /** | ||
| * The number of entries to retrieve per request. Impacts getKeys() and clear() performance. Maximum value is 25. | ||
| * @default 25 | ||
| */ | ||
| pageSize?: number; | ||
| } | ||
| declare const _default: (opts: AzureKeyVaultOptions) => import("..").Driver<AzureKeyVaultOptions, SecretClient>; | ||
| export default _default; |
| import { SecretClient, type SecretClientOptions } from "@azure/keyvault-secrets"; | ||
| export interface AzureKeyVaultOptions { | ||
| /** | ||
| * The name of the key vault to use. | ||
| */ | ||
| vaultName: string; | ||
| /** | ||
| * Version of the Azure Key Vault service to use. Defaults to 7.3. | ||
| * @default '7.3' | ||
| */ | ||
| serviceVersion?: SecretClientOptions["serviceVersion"]; | ||
| /** | ||
| * The number of entries to retrieve per request. Impacts getKeys() and clear() performance. Maximum value is 25. | ||
| * @default 25 | ||
| */ | ||
| pageSize?: number; | ||
| } | ||
| declare const _default: (opts: AzureKeyVaultOptions) => import("..").Driver<AzureKeyVaultOptions, SecretClient>; | ||
| export default _default; |
| import { ContainerClient } from "@azure/storage-blob"; | ||
| export interface AzureStorageBlobOptions { | ||
| /** | ||
| * The name of the Azure Storage account. | ||
| */ | ||
| accountName?: string; | ||
| /** | ||
| * The name of the storage container. All entities will be stored in the same container. Will be created if it doesn't exist. | ||
| * @default "unstorage" | ||
| */ | ||
| containerName?: string; | ||
| /** | ||
| * The account key. If provided, the SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| accountKey?: string; | ||
| /** | ||
| * The SAS token. If provided, the account key will be ignored. Include at least read, list and write permissions to be able to list keys. | ||
| */ | ||
| sasKey?: string; | ||
| /** | ||
| * The SAS URL. If provided, the account key, SAS key and container name will be ignored. | ||
| */ | ||
| sasUrl?: string; | ||
| /** | ||
| * The connection string. If provided, the account key and SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| connectionString?: string; | ||
| /** | ||
| * Storage account endpoint suffix. Need to be changed for Microsoft Azure operated by 21Vianet, Azure Government or Azurite. | ||
| * @default ".blob.core.windows.net" | ||
| */ | ||
| endpointSuffix?: string; | ||
| } | ||
| declare const _default: (opts: AzureStorageBlobOptions) => import("..").Driver<AzureStorageBlobOptions, ContainerClient>; | ||
| export default _default; |
| import { ContainerClient } from "@azure/storage-blob"; | ||
| export interface AzureStorageBlobOptions { | ||
| /** | ||
| * The name of the Azure Storage account. | ||
| */ | ||
| accountName?: string; | ||
| /** | ||
| * The name of the storage container. All entities will be stored in the same container. Will be created if it doesn't exist. | ||
| * @default "unstorage" | ||
| */ | ||
| containerName?: string; | ||
| /** | ||
| * The account key. If provided, the SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| accountKey?: string; | ||
| /** | ||
| * The SAS token. If provided, the account key will be ignored. Include at least read, list and write permissions to be able to list keys. | ||
| */ | ||
| sasKey?: string; | ||
| /** | ||
| * The SAS URL. If provided, the account key, SAS key and container name will be ignored. | ||
| */ | ||
| sasUrl?: string; | ||
| /** | ||
| * The connection string. If provided, the account key and SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| connectionString?: string; | ||
| /** | ||
| * Storage account endpoint suffix. Need to be changed for Microsoft Azure operated by 21Vianet, Azure Government or Azurite. | ||
| * @default ".blob.core.windows.net" | ||
| */ | ||
| endpointSuffix?: string; | ||
| } | ||
| declare const _default: (opts: AzureStorageBlobOptions) => import("..").Driver<AzureStorageBlobOptions, ContainerClient>; | ||
| export default _default; |
| import { TableClient } from "@azure/data-tables"; | ||
| export interface AzureStorageTableOptions { | ||
| /** | ||
| * The name of the Azure Storage account. | ||
| */ | ||
| accountName: string; | ||
| /** | ||
| * The name of the table. All entities will be stored in the same table. | ||
| * @default 'unstorage' | ||
| */ | ||
| tableName?: string; | ||
| /** | ||
| * The partition key. All entities will be stored in the same partition. | ||
| * @default 'unstorage' | ||
| */ | ||
| partitionKey?: string; | ||
| /** | ||
| * The account key. If provided, the SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| accountKey?: string; | ||
| /** | ||
| * The SAS key. If provided, the account key will be ignored. | ||
| */ | ||
| sasKey?: string; | ||
| /** | ||
| * The connection string. If provided, the account key and SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| connectionString?: string; | ||
| /** | ||
| * The number of entries to retrive per request. Impacts getKeys() and clear() performance. Maximum value is 1000. | ||
| * @default 1000 | ||
| */ | ||
| pageSize?: number; | ||
| } | ||
| declare const _default: (opts: AzureStorageTableOptions) => import("..").Driver<AzureStorageTableOptions, TableClient>; | ||
| export default _default; |
| import { TableClient } from "@azure/data-tables"; | ||
| export interface AzureStorageTableOptions { | ||
| /** | ||
| * The name of the Azure Storage account. | ||
| */ | ||
| accountName: string; | ||
| /** | ||
| * The name of the table. All entities will be stored in the same table. | ||
| * @default 'unstorage' | ||
| */ | ||
| tableName?: string; | ||
| /** | ||
| * The partition key. All entities will be stored in the same partition. | ||
| * @default 'unstorage' | ||
| */ | ||
| partitionKey?: string; | ||
| /** | ||
| * The account key. If provided, the SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| accountKey?: string; | ||
| /** | ||
| * The SAS key. If provided, the account key will be ignored. | ||
| */ | ||
| sasKey?: string; | ||
| /** | ||
| * The connection string. If provided, the account key and SAS key will be ignored. Only available in Node.js runtime. | ||
| */ | ||
| connectionString?: string; | ||
| /** | ||
| * The number of entries to retrive per request. Impacts getKeys() and clear() performance. Maximum value is 1000. | ||
| * @default 1000 | ||
| */ | ||
| pageSize?: number; | ||
| } | ||
| declare const _default: (opts: AzureStorageTableOptions) => import("..").Driver<AzureStorageTableOptions, TableClient>; | ||
| export default _default; |
| export interface CapacitorPreferencesOptions { | ||
| base?: string; | ||
| } | ||
| declare const _default: (opts: CapacitorPreferencesOptions) => import("..").Driver<CapacitorPreferencesOptions, import("@capacitor/preferences").PreferencesPlugin>; | ||
| export default _default; |
| export interface CapacitorPreferencesOptions { | ||
| base?: string; | ||
| } | ||
| declare const _default: (opts: CapacitorPreferencesOptions) => import("..").Driver<CapacitorPreferencesOptions, import("@capacitor/preferences").PreferencesPlugin>; | ||
| export default _default; |
| export interface KVOptions { | ||
| binding?: string | KVNamespace; | ||
| /** Adds prefix to all stored keys */ | ||
| base?: string; | ||
| /** | ||
| * The minimum time-to-live (ttl) for setItem in seconds. | ||
| * The default is 60 seconds as per Cloudflare's [documentation](https://developers.cloudflare.com/kv/api/write-key-value-pairs/). | ||
| */ | ||
| minTTL?: number; | ||
| } | ||
| declare const _default: (opts: KVOptions) => import("..").Driver<KVOptions, KVNamespace<string>>; | ||
| export default _default; |
| export interface KVOptions { | ||
| binding?: string | KVNamespace; | ||
| /** Adds prefix to all stored keys */ | ||
| base?: string; | ||
| /** | ||
| * The minimum time-to-live (ttl) for setItem in seconds. | ||
| * The default is 60 seconds as per Cloudflare's [documentation](https://developers.cloudflare.com/kv/api/write-key-value-pairs/). | ||
| */ | ||
| minTTL?: number; | ||
| } | ||
| declare const _default: (opts: KVOptions) => import("..").Driver<KVOptions, KVNamespace<string>>; | ||
| export default _default; |
| interface KVAuthAPIToken { | ||
| /** | ||
| * API Token generated from the [User Profile 'API Tokens' page](https://dash.cloudflare.com/profile/api-tokens) | ||
| * of the Cloudflare console. | ||
| * @see https://api.cloudflare.com/#getting-started-requests | ||
| */ | ||
| apiToken: string; | ||
| } | ||
| interface KVAuthServiceKey { | ||
| /** | ||
| * A special Cloudflare API key good for a restricted set of endpoints. | ||
| * Always begins with "v1.0-", may vary in length. | ||
| * May be used to authenticate in place of `apiToken` or `apiKey` and `email`. | ||
| * @see https://api.cloudflare.com/#getting-started-requests | ||
| */ | ||
| userServiceKey: string; | ||
| } | ||
| interface KVAuthEmailKey { | ||
| /** | ||
| * Email address associated with your account. | ||
| * Should be used along with `apiKey` to authenticate in place of `apiToken`. | ||
| */ | ||
| email: string; | ||
| /** | ||
| * API key generated on the "My Account" page of the Cloudflare console. | ||
| * Should be used along with `email` to authenticate in place of `apiToken`. | ||
| * @see https://api.cloudflare.com/#getting-started-requests | ||
| */ | ||
| apiKey: string; | ||
| } | ||
| export type KVHTTPOptions = { | ||
| /** | ||
| * Cloudflare account ID (required) | ||
| */ | ||
| accountId: string; | ||
| /** | ||
| * The ID of the KV namespace to target (required) | ||
| */ | ||
| namespaceId: string; | ||
| /** | ||
| * The URL of the Cloudflare API. | ||
| * @default https://api.cloudflare.com | ||
| */ | ||
| apiURL?: string; | ||
| /** | ||
| * Adds prefix to all stored keys | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * The minimum time-to-live (ttl) for setItem in seconds. | ||
| * The default is 60 seconds as per Cloudflare's [documentation](https://developers.cloudflare.com/kv/api/write-key-value-pairs/). | ||
| */ | ||
| minTTL?: number; | ||
| } & (KVAuthServiceKey | KVAuthAPIToken | KVAuthEmailKey); | ||
| declare const _default: (opts: KVHTTPOptions) => import("..").Driver<KVHTTPOptions, never>; | ||
| export default _default; |
| interface KVAuthAPIToken { | ||
| /** | ||
| * API Token generated from the [User Profile 'API Tokens' page](https://dash.cloudflare.com/profile/api-tokens) | ||
| * of the Cloudflare console. | ||
| * @see https://api.cloudflare.com/#getting-started-requests | ||
| */ | ||
| apiToken: string; | ||
| } | ||
| interface KVAuthServiceKey { | ||
| /** | ||
| * A special Cloudflare API key good for a restricted set of endpoints. | ||
| * Always begins with "v1.0-", may vary in length. | ||
| * May be used to authenticate in place of `apiToken` or `apiKey` and `email`. | ||
| * @see https://api.cloudflare.com/#getting-started-requests | ||
| */ | ||
| userServiceKey: string; | ||
| } | ||
| interface KVAuthEmailKey { | ||
| /** | ||
| * Email address associated with your account. | ||
| * Should be used along with `apiKey` to authenticate in place of `apiToken`. | ||
| */ | ||
| email: string; | ||
| /** | ||
| * API key generated on the "My Account" page of the Cloudflare console. | ||
| * Should be used along with `email` to authenticate in place of `apiToken`. | ||
| * @see https://api.cloudflare.com/#getting-started-requests | ||
| */ | ||
| apiKey: string; | ||
| } | ||
| export type KVHTTPOptions = { | ||
| /** | ||
| * Cloudflare account ID (required) | ||
| */ | ||
| accountId: string; | ||
| /** | ||
| * The ID of the KV namespace to target (required) | ||
| */ | ||
| namespaceId: string; | ||
| /** | ||
| * The URL of the Cloudflare API. | ||
| * @default https://api.cloudflare.com | ||
| */ | ||
| apiURL?: string; | ||
| /** | ||
| * Adds prefix to all stored keys | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * The minimum time-to-live (ttl) for setItem in seconds. | ||
| * The default is 60 seconds as per Cloudflare's [documentation](https://developers.cloudflare.com/kv/api/write-key-value-pairs/). | ||
| */ | ||
| minTTL?: number; | ||
| } & (KVAuthServiceKey | KVAuthAPIToken | KVAuthEmailKey); | ||
| declare const _default: (opts: KVHTTPOptions) => import("..").Driver<KVHTTPOptions, never>; | ||
| export default _default; |
| export interface CloudflareR2Options { | ||
| binding?: string | R2Bucket; | ||
| base?: string; | ||
| } | ||
| declare const _default: (opts: CloudflareR2Options | undefined) => import("..").Driver<CloudflareR2Options | undefined, R2Bucket>; | ||
| export default _default; |
| export interface CloudflareR2Options { | ||
| binding?: string | R2Bucket; | ||
| base?: string; | ||
| } | ||
| declare const _default: (opts: CloudflareR2Options | undefined) => import("..").Driver<CloudflareR2Options | undefined, R2Bucket>; | ||
| export default _default; |
| import type { Database } from "db0"; | ||
| export interface DB0DriverOptions { | ||
| database: Database; | ||
| tableName?: string; | ||
| } | ||
| declare const _default: (opts: DB0DriverOptions) => import("..").Driver<DB0DriverOptions, Database<import("db0").Connector<unknown>>>; | ||
| export default _default; |
| import type { Database } from "db0"; | ||
| export interface DB0DriverOptions { | ||
| database: Database; | ||
| tableName?: string; | ||
| } | ||
| declare const _default: (opts: DB0DriverOptions) => import("..").Driver<DB0DriverOptions, Database<import("db0").Connector<unknown>>>; | ||
| export default _default; |
| import { openKv, type Kv } from "@deno/kv"; | ||
| export interface DenoKvNodeOptions { | ||
| base?: string; | ||
| path?: string; | ||
| openKvOptions?: Parameters<typeof openKv>[1]; | ||
| } | ||
| declare const _default: (opts: DenoKvNodeOptions) => import("..").Driver<DenoKvNodeOptions, Kv | Promise<Kv>>; | ||
| export default _default; |
| import { openKv, type Kv } from "@deno/kv"; | ||
| export interface DenoKvNodeOptions { | ||
| base?: string; | ||
| path?: string; | ||
| openKvOptions?: Parameters<typeof openKv>[1]; | ||
| } | ||
| declare const _default: (opts: DenoKvNodeOptions) => import("..").Driver<DenoKvNodeOptions, Kv | Promise<Kv>>; | ||
| export default _default; |
| import type { Kv } from "@deno/kv"; | ||
| export interface DenoKvOptions { | ||
| base?: string; | ||
| path?: string; | ||
| openKv?: () => Promise<Deno.Kv | Kv>; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| } | ||
| declare const _default: (opts: DenoKvOptions) => import("..").Driver<DenoKvOptions, Promise<Deno.Kv | Kv>>; | ||
| export default _default; |
| import type { Kv } from "@deno/kv"; | ||
| export interface DenoKvOptions { | ||
| base?: string; | ||
| path?: string; | ||
| openKv?: () => Promise<Deno.Kv | Kv>; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| } | ||
| declare const _default: (opts: DenoKvOptions) => import("..").Driver<DenoKvOptions, Promise<Deno.Kv | Kv>>; | ||
| export default _default; |
| export interface FSStorageOptions { | ||
| base?: string; | ||
| ignore?: (path: string) => boolean; | ||
| readOnly?: boolean; | ||
| noClear?: boolean; | ||
| } | ||
| declare const _default: (opts: FSStorageOptions | undefined) => import("..").Driver<FSStorageOptions | undefined, never>; | ||
| export default _default; |
| export interface FSStorageOptions { | ||
| base?: string; | ||
| ignore?: (path: string) => boolean; | ||
| readOnly?: boolean; | ||
| noClear?: boolean; | ||
| } | ||
| declare const _default: (opts: FSStorageOptions | undefined) => import("..").Driver<FSStorageOptions | undefined, never>; | ||
| export default _default; |
| import { type ChokidarOptions } from "chokidar"; | ||
| export interface FSStorageOptions { | ||
| base?: string; | ||
| ignore?: string[]; | ||
| readOnly?: boolean; | ||
| noClear?: boolean; | ||
| watchOptions?: ChokidarOptions; | ||
| } | ||
| declare const _default: (opts: FSStorageOptions | undefined) => import("..").Driver<FSStorageOptions | undefined, never>; | ||
| export default _default; |
| import { type ChokidarOptions } from "chokidar"; | ||
| export interface FSStorageOptions { | ||
| base?: string; | ||
| ignore?: string[]; | ||
| readOnly?: boolean; | ||
| noClear?: boolean; | ||
| watchOptions?: ChokidarOptions; | ||
| } | ||
| declare const _default: (opts: FSStorageOptions | undefined) => import("..").Driver<FSStorageOptions | undefined, never>; | ||
| export default _default; |
| export interface GithubOptions { | ||
| /** | ||
| * The name of the repository. (e.g. `username/my-repo`) | ||
| * Required | ||
| */ | ||
| repo: string; | ||
| /** | ||
| * The branch to fetch. (e.g. `dev`) | ||
| * @default "main" | ||
| */ | ||
| branch?: string; | ||
| /** | ||
| * @default "" | ||
| */ | ||
| dir?: string; | ||
| /** | ||
| * @default 600 | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * Github API token (recommended) | ||
| */ | ||
| token?: string; | ||
| /** | ||
| * @default "https://api.github.com" | ||
| */ | ||
| apiURL?: string; | ||
| /** | ||
| * @default "https://raw.githubusercontent.com" | ||
| */ | ||
| cdnURL?: string; | ||
| } | ||
| declare const _default: (opts: GithubOptions) => import("..").Driver<GithubOptions, never>; | ||
| export default _default; |
| export interface GithubOptions { | ||
| /** | ||
| * The name of the repository. (e.g. `username/my-repo`) | ||
| * Required | ||
| */ | ||
| repo: string; | ||
| /** | ||
| * The branch to fetch. (e.g. `dev`) | ||
| * @default "main" | ||
| */ | ||
| branch?: string; | ||
| /** | ||
| * @default "" | ||
| */ | ||
| dir?: string; | ||
| /** | ||
| * @default 600 | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * Github API token (recommended) | ||
| */ | ||
| token?: string; | ||
| /** | ||
| * @default "https://api.github.com" | ||
| */ | ||
| apiURL?: string; | ||
| /** | ||
| * @default "https://raw.githubusercontent.com" | ||
| */ | ||
| cdnURL?: string; | ||
| } | ||
| declare const _default: (opts: GithubOptions) => import("..").Driver<GithubOptions, never>; | ||
| export default _default; |
| export interface HTTPOptions { | ||
| base: string; | ||
| headers?: Record<string, string>; | ||
| } | ||
| declare const _default: (opts: HTTPOptions) => import("..").Driver<HTTPOptions, never>; | ||
| export default _default; |
| export interface HTTPOptions { | ||
| base: string; | ||
| headers?: Record<string, string>; | ||
| } | ||
| declare const _default: (opts: HTTPOptions) => import("..").Driver<HTTPOptions, never>; | ||
| export default _default; |
| export interface IDBKeyvalOptions { | ||
| base?: string; | ||
| dbName?: string; | ||
| storeName?: string; | ||
| } | ||
| declare const _default: (opts: IDBKeyvalOptions | undefined) => import("..").Driver<IDBKeyvalOptions | undefined, never>; | ||
| export default _default; |
| export interface IDBKeyvalOptions { | ||
| base?: string; | ||
| dbName?: string; | ||
| storeName?: string; | ||
| } | ||
| declare const _default: (opts: IDBKeyvalOptions | undefined) => import("..").Driver<IDBKeyvalOptions | undefined, never>; | ||
| export default _default; |
| export interface LocalStorageOptions { | ||
| base?: string; | ||
| window?: typeof window; | ||
| windowKey?: "localStorage" | "sessionStorage"; | ||
| storage?: typeof window.localStorage | typeof window.sessionStorage; | ||
| /** @deprecated use `storage` option */ | ||
| sessionStorage?: typeof window.sessionStorage; | ||
| /** @deprecated use `storage` option */ | ||
| localStorage?: typeof window.localStorage; | ||
| } | ||
| declare const _default: (opts: LocalStorageOptions | undefined) => import("..").Driver<LocalStorageOptions | undefined, Storage>; | ||
| export default _default; |
| export interface LocalStorageOptions { | ||
| base?: string; | ||
| window?: typeof window; | ||
| windowKey?: "localStorage" | "sessionStorage"; | ||
| storage?: typeof window.localStorage | typeof window.sessionStorage; | ||
| /** @deprecated use `storage` option */ | ||
| sessionStorage?: typeof window.sessionStorage; | ||
| /** @deprecated use `storage` option */ | ||
| localStorage?: typeof window.localStorage; | ||
| } | ||
| declare const _default: (opts: LocalStorageOptions | undefined) => import("..").Driver<LocalStorageOptions | undefined, Storage>; | ||
| export default _default; |
| import { LRUCache } from "lru-cache"; | ||
| type LRUCacheOptions = LRUCache.OptionsBase<string, any, any> & Partial<LRUCache.OptionsMaxLimit<string, any, any>> & Partial<LRUCache.OptionsSizeLimit<string, any, any>> & Partial<LRUCache.OptionsTTLLimit<string, any, any>>; | ||
| export interface LRUDriverOptions extends LRUCacheOptions { | ||
| } | ||
| declare const _default: (opts: LRUDriverOptions | undefined) => import("..").Driver<LRUDriverOptions | undefined, LRUCache<string, any, any>>; | ||
| export default _default; |
| import { LRUCache } from "lru-cache"; | ||
| type LRUCacheOptions = LRUCache.OptionsBase<string, any, any> & Partial<LRUCache.OptionsMaxLimit<string, any, any>> & Partial<LRUCache.OptionsSizeLimit<string, any, any>> & Partial<LRUCache.OptionsTTLLimit<string, any, any>>; | ||
| export interface LRUDriverOptions extends LRUCacheOptions { | ||
| } | ||
| declare const _default: (opts: LRUDriverOptions | undefined) => import("..").Driver<LRUDriverOptions | undefined, LRUCache<string, any, any>>; | ||
| export default _default; |
| declare const _default: (opts: void) => import("..").Driver<void, Map<string, any>>; | ||
| export default _default; |
| declare const _default: (opts: void) => import("..").Driver<void, Map<string, any>>; | ||
| export default _default; |
| import { type Collection, type MongoClientOptions } from "mongodb"; | ||
| export interface MongoDbOptions { | ||
| /** | ||
| * The MongoDB connection string. | ||
| */ | ||
| connectionString: string; | ||
| /** | ||
| * Optional configuration settings for the MongoClient instance. | ||
| */ | ||
| clientOptions?: MongoClientOptions; | ||
| /** | ||
| * The name of the database to use. | ||
| * @default "unstorage" | ||
| */ | ||
| databaseName?: string; | ||
| /** | ||
| * The name of the collection to use. | ||
| * @default "unstorage" | ||
| */ | ||
| collectionName?: string; | ||
| } | ||
| declare const _default: (opts: MongoDbOptions) => import("..").Driver<MongoDbOptions, Collection<import("mongodb").Document>>; | ||
| export default _default; |
| import { type Collection, type MongoClientOptions } from "mongodb"; | ||
| export interface MongoDbOptions { | ||
| /** | ||
| * The MongoDB connection string. | ||
| */ | ||
| connectionString: string; | ||
| /** | ||
| * Optional configuration settings for the MongoClient instance. | ||
| */ | ||
| clientOptions?: MongoClientOptions; | ||
| /** | ||
| * The name of the database to use. | ||
| * @default "unstorage" | ||
| */ | ||
| databaseName?: string; | ||
| /** | ||
| * The name of the collection to use. | ||
| * @default "unstorage" | ||
| */ | ||
| collectionName?: string; | ||
| } | ||
| declare const _default: (opts: MongoDbOptions) => import("..").Driver<MongoDbOptions, Collection<import("mongodb").Document>>; | ||
| export default _default; |
| import type { Store, GetStoreOptions, GetDeployStoreOptions } from "@netlify/blobs"; | ||
| export type NetlifyStoreOptions = NetlifyDeployStoreLegacyOptions | NetlifyDeployStoreOptions | NetlifyNamedStoreOptions; | ||
| export interface ExtraOptions { | ||
| /** If set to `true`, the store is scoped to the deploy. This means that it is only available from that deploy, and will be deleted or rolled-back alongside it. */ | ||
| deployScoped?: boolean; | ||
| } | ||
| export interface NetlifyDeployStoreOptions extends GetDeployStoreOptions, ExtraOptions { | ||
| name?: never; | ||
| deployScoped: true; | ||
| } | ||
| export interface NetlifyDeployStoreLegacyOptions extends NetlifyDeployStoreOptions { | ||
| region?: never; | ||
| } | ||
| export interface NetlifyNamedStoreOptions extends GetStoreOptions, ExtraOptions { | ||
| name: string; | ||
| deployScoped?: false; | ||
| } | ||
| declare const _default: (opts: NetlifyStoreOptions) => import("..").Driver<NetlifyStoreOptions, Store>; | ||
| export default _default; |
| import type { Store, GetStoreOptions, GetDeployStoreOptions } from "@netlify/blobs"; | ||
| export type NetlifyStoreOptions = NetlifyDeployStoreLegacyOptions | NetlifyDeployStoreOptions | NetlifyNamedStoreOptions; | ||
| export interface ExtraOptions { | ||
| /** If set to `true`, the store is scoped to the deploy. This means that it is only available from that deploy, and will be deleted or rolled-back alongside it. */ | ||
| deployScoped?: boolean; | ||
| } | ||
| export interface NetlifyDeployStoreOptions extends GetDeployStoreOptions, ExtraOptions { | ||
| name?: never; | ||
| deployScoped: true; | ||
| } | ||
| export interface NetlifyDeployStoreLegacyOptions extends NetlifyDeployStoreOptions { | ||
| region?: never; | ||
| } | ||
| export interface NetlifyNamedStoreOptions extends GetStoreOptions, ExtraOptions { | ||
| name: string; | ||
| deployScoped?: false; | ||
| } | ||
| declare const _default: (opts: NetlifyStoreOptions) => import("..").Driver<NetlifyStoreOptions, Store>; | ||
| export default _default; |
| declare const _default: (opts: void) => import("..").Driver<void, never>; | ||
| export default _default; |
| declare const _default: (opts: void) => import("..").Driver<void, never>; | ||
| export default _default; |
| import type { Driver } from ".."; | ||
| export interface OverlayStorageOptions { | ||
| layers: Driver[]; | ||
| } | ||
| declare const _default: (opts: OverlayStorageOptions) => Driver<OverlayStorageOptions, never>; | ||
| export default _default; |
| import type { Driver } from ".."; | ||
| export interface OverlayStorageOptions { | ||
| layers: Driver[]; | ||
| } | ||
| declare const _default: (opts: OverlayStorageOptions) => Driver<OverlayStorageOptions, never>; | ||
| export default _default; |
| import type { Connection } from "@planetscale/database"; | ||
| export interface PlanetscaleDriverOptions { | ||
| url?: string; | ||
| table?: string; | ||
| boostCache?: boolean; | ||
| } | ||
| declare const _default: (opts: PlanetscaleDriverOptions | undefined) => import("..").Driver<PlanetscaleDriverOptions | undefined, Connection>; | ||
| export default _default; |
| import type { Connection } from "@planetscale/database"; | ||
| export interface PlanetscaleDriverOptions { | ||
| url?: string; | ||
| table?: string; | ||
| boostCache?: boolean; | ||
| } | ||
| declare const _default: (opts: PlanetscaleDriverOptions | undefined) => import("..").Driver<PlanetscaleDriverOptions | undefined, Connection>; | ||
| export default _default; |
| import Redis, { Cluster, type ClusterNode, type ClusterOptions, type RedisOptions as _RedisOptions } from "ioredis"; | ||
| export interface RedisOptions extends _RedisOptions { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Url to use for connecting to redis. Takes precedence over `host` option. Has the format `redis://<REDIS_USER>:<REDIS_PASSWORD>@<REDIS_HOST>:<REDIS_PORT>` | ||
| */ | ||
| url?: string; | ||
| /** | ||
| * List of redis nodes to use for cluster mode. Takes precedence over `url` and `host` options. | ||
| */ | ||
| cluster?: ClusterNode[]; | ||
| /** | ||
| * Options to use for cluster mode. | ||
| */ | ||
| clusterOptions?: ClusterOptions; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * How many keys to scan at once. | ||
| * | ||
| * [redis documentation](https://redis.io/docs/latest/commands/scan/#the-count-option) | ||
| */ | ||
| scanCount?: number; | ||
| /** | ||
| * Whether to initialize the redis instance immediately. | ||
| * Otherwise, it will be initialized on the first read/write call. | ||
| * @default false | ||
| */ | ||
| preConnect?: boolean; | ||
| } | ||
| declare const _default: (opts: RedisOptions) => import("..").Driver<RedisOptions, Redis | Cluster>; | ||
| export default _default; |
| import Redis, { Cluster, type ClusterNode, type ClusterOptions, type RedisOptions as _RedisOptions } from "ioredis"; | ||
| export interface RedisOptions extends _RedisOptions { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Url to use for connecting to redis. Takes precedence over `host` option. Has the format `redis://<REDIS_USER>:<REDIS_PASSWORD>@<REDIS_HOST>:<REDIS_PORT>` | ||
| */ | ||
| url?: string; | ||
| /** | ||
| * List of redis nodes to use for cluster mode. Takes precedence over `url` and `host` options. | ||
| */ | ||
| cluster?: ClusterNode[]; | ||
| /** | ||
| * Options to use for cluster mode. | ||
| */ | ||
| clusterOptions?: ClusterOptions; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * How many keys to scan at once. | ||
| * | ||
| * [redis documentation](https://redis.io/docs/latest/commands/scan/#the-count-option) | ||
| */ | ||
| scanCount?: number; | ||
| /** | ||
| * Whether to initialize the redis instance immediately. | ||
| * Otherwise, it will be initialized on the first read/write call. | ||
| * @default false | ||
| */ | ||
| preConnect?: boolean; | ||
| } | ||
| declare const _default: (opts: RedisOptions) => import("..").Driver<RedisOptions, Redis | Cluster>; | ||
| export default _default; |
| export interface S3DriverOptions { | ||
| /** | ||
| * Access Key ID | ||
| */ | ||
| accessKeyId: string; | ||
| /** | ||
| * Secret Access Key | ||
| */ | ||
| secretAccessKey: string; | ||
| /** | ||
| * The endpoint URL of the S3 service. | ||
| * | ||
| * - For AWS S3: "https://s3.[region].amazonaws.com/" | ||
| * - For cloudflare R2: "https://[uid].r2.cloudflarestorage.com/" | ||
| */ | ||
| endpoint: string; | ||
| /** | ||
| * The region of the S3 bucket. | ||
| * | ||
| * - For AWS S3, this is the region of the bucket. | ||
| * - For cloudflare, this is can be set to `auto`. | ||
| */ | ||
| region: string; | ||
| /** | ||
| * The name of the bucket. | ||
| */ | ||
| bucket: string; | ||
| /** | ||
| * Enabled by default to speedup `clear()` operation. Set to `false` if provider is not implementing [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html). | ||
| */ | ||
| bulkDelete?: boolean; | ||
| } | ||
| declare const _default: (opts: S3DriverOptions) => import("..").Driver<S3DriverOptions, never>; | ||
| export default _default; |
| export interface S3DriverOptions { | ||
| /** | ||
| * Access Key ID | ||
| */ | ||
| accessKeyId: string; | ||
| /** | ||
| * Secret Access Key | ||
| */ | ||
| secretAccessKey: string; | ||
| /** | ||
| * The endpoint URL of the S3 service. | ||
| * | ||
| * - For AWS S3: "https://s3.[region].amazonaws.com/" | ||
| * - For cloudflare R2: "https://[uid].r2.cloudflarestorage.com/" | ||
| */ | ||
| endpoint: string; | ||
| /** | ||
| * The region of the S3 bucket. | ||
| * | ||
| * - For AWS S3, this is the region of the bucket. | ||
| * - For cloudflare, this is can be set to `auto`. | ||
| */ | ||
| region: string; | ||
| /** | ||
| * The name of the bucket. | ||
| */ | ||
| bucket: string; | ||
| /** | ||
| * Enabled by default to speedup `clear()` operation. Set to `false` if provider is not implementing [DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html). | ||
| */ | ||
| bulkDelete?: boolean; | ||
| } | ||
| declare const _default: (opts: S3DriverOptions) => import("..").Driver<S3DriverOptions, never>; | ||
| export default _default; |
| import { type LocalStorageOptions } from "./localstorage"; | ||
| export interface SessionStorageOptions extends LocalStorageOptions { | ||
| } | ||
| declare const _default: (opts: LocalStorageOptions | undefined) => import("..").Driver<LocalStorageOptions | undefined, Storage>; | ||
| export default _default; |
| import { type LocalStorageOptions } from "./localstorage"; | ||
| export interface SessionStorageOptions extends LocalStorageOptions { | ||
| } | ||
| declare const _default: (opts: LocalStorageOptions | undefined) => import("..").Driver<LocalStorageOptions | undefined, Storage>; | ||
| export default _default; |
| import { UTApi } from "uploadthing/server"; | ||
| type UTApiOptions = Omit<Exclude<ConstructorParameters<typeof UTApi>[0], undefined>, "defaultKeyType">; | ||
| export interface UploadThingOptions extends UTApiOptions { | ||
| /** base key to add to keys */ | ||
| base?: string; | ||
| } | ||
| declare const _default: (opts: UploadThingOptions) => import("..").Driver<UploadThingOptions, UTApi>; | ||
| export default _default; |
| import { UTApi } from "uploadthing/server"; | ||
| type UTApiOptions = Omit<Exclude<ConstructorParameters<typeof UTApi>[0], undefined>, "defaultKeyType">; | ||
| export interface UploadThingOptions extends UTApiOptions { | ||
| /** base key to add to keys */ | ||
| base?: string; | ||
| } | ||
| declare const _default: (opts: UploadThingOptions) => import("..").Driver<UploadThingOptions, UTApi>; | ||
| export default _default; |
| import { type RedisConfigNodejs, Redis } from "@upstash/redis"; | ||
| export interface UpstashOptions extends Partial<RedisConfigNodejs> { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * How many keys to scan at once. | ||
| * | ||
| * [redis documentation](https://redis.io/docs/latest/commands/scan/#the-count-option) | ||
| */ | ||
| scanCount?: number; | ||
| } | ||
| declare const _default: (opts: UpstashOptions) => import("..").Driver<UpstashOptions, Redis>; | ||
| export default _default; |
| import { type RedisConfigNodejs, Redis } from "@upstash/redis"; | ||
| export interface UpstashOptions extends Partial<RedisConfigNodejs> { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * How many keys to scan at once. | ||
| * | ||
| * [redis documentation](https://redis.io/docs/latest/commands/scan/#the-count-option) | ||
| */ | ||
| scanCount?: number; | ||
| } | ||
| declare const _default: (opts: UpstashOptions) => import("..").Driver<UpstashOptions, Redis>; | ||
| export default _default; |
| export declare function getBinding(binding: KVNamespace | R2Bucket | string): KVNamespace<string> | R2Bucket; | ||
| export declare function getKVBinding(binding?: KVNamespace | string): KVNamespace; | ||
| export declare function getR2Binding(binding?: R2Bucket | string): R2Bucket; |
| export declare function getBinding(binding: KVNamespace | R2Bucket | string): KVNamespace<string> | R2Bucket; | ||
| export declare function getKVBinding(binding?: KVNamespace | string): KVNamespace; | ||
| export declare function getR2Binding(binding?: R2Bucket | string): R2Bucket; |
| import type { Driver } from "../.."; | ||
| type DriverFactory<OptionsT, InstanceT> = (opts: OptionsT) => Driver<OptionsT, InstanceT>; | ||
| interface ErrorOptions { | ||
| } | ||
| export declare function defineDriver<OptionsT = any, InstanceT = never>(factory: DriverFactory<OptionsT, InstanceT>): DriverFactory<OptionsT, InstanceT>; | ||
| export declare function normalizeKey(key: string | undefined, sep?: ":" | "/"): string; | ||
| export declare function joinKeys(...keys: string[]): string; | ||
| export declare function createError(driver: string, message: string, opts?: ErrorOptions): Error; | ||
| export declare function createRequiredError(driver: string, name: string | string[]): Error; | ||
| export {}; |
| import type { Driver } from "../.."; | ||
| type DriverFactory<OptionsT, InstanceT> = (opts: OptionsT) => Driver<OptionsT, InstanceT>; | ||
| interface ErrorOptions { | ||
| } | ||
| export declare function defineDriver<OptionsT = any, InstanceT = never>(factory: DriverFactory<OptionsT, InstanceT>): DriverFactory<OptionsT, InstanceT>; | ||
| export declare function normalizeKey(key: string | undefined, sep?: ":" | "/"): string; | ||
| export declare function joinKeys(...keys: string[]): string; | ||
| export declare function createError(driver: string, message: string, opts?: ErrorOptions): Error; | ||
| export declare function createRequiredError(driver: string, name: string | string[]): Error; | ||
| export {}; |
| import { Dirent, promises as fsPromises } from "node:fs"; | ||
| type WriteFileData = Parameters<typeof fsPromises.writeFile>[1]; | ||
| export declare function writeFile(path: string, data: WriteFileData, encoding?: BufferEncoding): Promise<void>; | ||
| export declare function readFile(path: string, encoding?: BufferEncoding): Promise<any>; | ||
| export declare function stat(path: string): Promise<any>; | ||
| export declare function unlink(path: string): Promise<any>; | ||
| export declare function readdir(dir: string): Promise<Dirent[]>; | ||
| export declare function ensuredir(dir: string): Promise<void>; | ||
| export declare function readdirRecursive(dir: string, ignore?: (p: string) => boolean, maxDepth?: number): Promise<string[]>; | ||
| export declare function rmRecursive(dir: string): Promise<void>; | ||
| export {}; |
| import { Dirent, promises as fsPromises } from "node:fs"; | ||
| type WriteFileData = Parameters<typeof fsPromises.writeFile>[1]; | ||
| export declare function writeFile(path: string, data: WriteFileData, encoding?: BufferEncoding): Promise<void>; | ||
| export declare function readFile(path: string, encoding?: BufferEncoding): Promise<any>; | ||
| export declare function stat(path: string): Promise<any>; | ||
| export declare function unlink(path: string): Promise<any>; | ||
| export declare function readdir(dir: string): Promise<Dirent[]>; | ||
| export declare function ensuredir(dir: string): Promise<void>; | ||
| export declare function readdirRecursive(dir: string, ignore?: (p: string) => boolean, maxDepth?: number): Promise<string[]>; | ||
| export declare function rmRecursive(dir: string): Promise<void>; | ||
| export {}; |
| export interface VercelBlobOptions { | ||
| /** | ||
| * Whether the blob should be publicly accessible. (required, must be "public") | ||
| */ | ||
| access: "public"; | ||
| /** | ||
| * Prefix to prepend to all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Rest API Token to use for connecting to your Vercel Blob store. | ||
| * If not provided, it will be read from the environment variable `BLOB_READ_WRITE_TOKEN`. | ||
| */ | ||
| token?: string; | ||
| /** | ||
| * Prefix to use for token environment variable name. | ||
| * Default is `BLOB` (env name = `BLOB_READ_WRITE_TOKEN`). | ||
| */ | ||
| envPrefix?: string; | ||
| } | ||
| declare const _default: (opts: VercelBlobOptions) => import("..").Driver<VercelBlobOptions, never>; | ||
| export default _default; |
| export interface VercelBlobOptions { | ||
| /** | ||
| * Whether the blob should be publicly accessible. (required, must be "public") | ||
| */ | ||
| access: "public"; | ||
| /** | ||
| * Prefix to prepend to all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Rest API Token to use for connecting to your Vercel Blob store. | ||
| * If not provided, it will be read from the environment variable `BLOB_READ_WRITE_TOKEN`. | ||
| */ | ||
| token?: string; | ||
| /** | ||
| * Prefix to use for token environment variable name. | ||
| * Default is `BLOB` (env name = `BLOB_READ_WRITE_TOKEN`). | ||
| */ | ||
| envPrefix?: string; | ||
| } | ||
| declare const _default: (opts: VercelBlobOptions) => import("..").Driver<VercelBlobOptions, never>; | ||
| export default _default; |
| import type { VercelKV } from "@vercel/kv"; | ||
| import type { RedisConfigNodejs } from "@upstash/redis"; | ||
| export interface VercelKVOptions extends Partial<RedisConfigNodejs> { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Optional flag to customize environment variable prefix (Default is `KV`). Set to `false` to disable env inference for `url` and `token` options | ||
| */ | ||
| env?: false | string; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * How many keys to scan at once. | ||
| * | ||
| * [redis documentation](https://redis.io/docs/latest/commands/scan/#the-count-option) | ||
| */ | ||
| scanCount?: number; | ||
| } | ||
| declare const _default: (opts: VercelKVOptions) => import("..").Driver<VercelKVOptions, VercelKV>; | ||
| export default _default; |
| import type { VercelKV } from "@vercel/kv"; | ||
| import type { RedisConfigNodejs } from "@upstash/redis"; | ||
| export interface VercelKVOptions extends Partial<RedisConfigNodejs> { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Optional flag to customize environment variable prefix (Default is `KV`). Set to `false` to disable env inference for `url` and `token` options | ||
| */ | ||
| env?: false | string; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * How many keys to scan at once. | ||
| * | ||
| * [redis documentation](https://redis.io/docs/latest/commands/scan/#the-count-option) | ||
| */ | ||
| scanCount?: number; | ||
| } | ||
| declare const _default: (opts: VercelKVOptions) => import("..").Driver<VercelKVOptions, VercelKV>; | ||
| export default _default; |
| import type { RuntimeCache } from "@vercel/functions"; | ||
| export interface VercelCacheOptions { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * Default tags to apply to all cache entries. | ||
| */ | ||
| tags?: string[]; | ||
| } | ||
| declare const _default: (opts: VercelCacheOptions) => import("..").Driver<VercelCacheOptions, RuntimeCache>; | ||
| export default _default; |
| import type { RuntimeCache } from "@vercel/functions"; | ||
| export interface VercelCacheOptions { | ||
| /** | ||
| * Optional prefix to use for all keys. Can be used for namespacing. | ||
| */ | ||
| base?: string; | ||
| /** | ||
| * Default TTL for all items in seconds. | ||
| */ | ||
| ttl?: number; | ||
| /** | ||
| * Default tags to apply to all cache entries. | ||
| */ | ||
| tags?: string[]; | ||
| } | ||
| declare const _default: (opts: VercelCacheOptions) => import("..").Driver<VercelCacheOptions, RuntimeCache>; | ||
| export default _default; |
+19
-19
| { | ||
| "name": "unstorage", | ||
| "version": "1.17.2", | ||
| "version": "1.17.3", | ||
| "description": "Universal Storage Layer", | ||
@@ -38,9 +38,9 @@ "homepage": "https://unstorage.unjs.io", | ||
| "node-fetch-native": "^1.6.7", | ||
| "ofetch": "^1.5.0", | ||
| "ofetch": "^1.5.1", | ||
| "ufo": "^1.6.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@azure/app-configuration": "^1.9.0", | ||
| "@azure/cosmos": "^4.7.0", | ||
| "@azure/data-tables": "^13.3.1", | ||
| "@azure/app-configuration": "^1.10.0", | ||
| "@azure/cosmos": "^4.8.0", | ||
| "@azure/data-tables": "^13.3.2", | ||
| "@azure/identity": "^4.13.0", | ||
@@ -50,7 +50,7 @@ "@azure/keyvault-secrets": "^4.10.0", | ||
| "@capacitor/preferences": "^7.0.2", | ||
| "@cloudflare/workers-types": "^4.20251014.0", | ||
| "@cloudflare/workers-types": "^4.20251120.0", | ||
| "@deno/kv": "^0.12.0", | ||
| "@electric-sql/pglite": "^0.3.11", | ||
| "@electric-sql/pglite": "^0.3.14", | ||
| "@libsql/client": "^0.15.15", | ||
| "@netlify/blobs": "^10.3.1", | ||
| "@netlify/blobs": "^10.4.1", | ||
| "@planetscale/database": "^1.19.0", | ||
@@ -60,8 +60,8 @@ "@types/deno": "^2.5.0", | ||
| "@types/jsdom": "^27.0.0", | ||
| "@types/node": "^24.9.2", | ||
| "@types/node": "^24.10.1", | ||
| "@upstash/redis": "^1.35.6", | ||
| "@vercel/blob": "^2.0.0", | ||
| "@vercel/functions": "^3.1.4", | ||
| "@vercel/functions": "^3.3.3", | ||
| "@vercel/kv": "^3.0.0", | ||
| "@vitest/coverage-v8": "^4.0.5", | ||
| "@vitest/coverage-v8": "^4.0.12", | ||
| "aws4fetch": "^1.0.20", | ||
@@ -73,5 +73,5 @@ "azurite": "^3.35.0", | ||
| "db0": "^0.3.4", | ||
| "eslint": "^9.38.0", | ||
| "eslint": "^9.39.1", | ||
| "eslint-config-unjs": "^0.5.0", | ||
| "fake-indexeddb": "^6.2.4", | ||
| "fake-indexeddb": "^6.2.5", | ||
| "get-port-please": "^3.2.0", | ||
@@ -82,8 +82,8 @@ "idb-keyval": "^6.2.2", | ||
| "jiti": "^2.6.1", | ||
| "jsdom": "^27.1.0", | ||
| "jsdom": "^27.2.0", | ||
| "listhen": "^1.9.0", | ||
| "mitata": "^1.0.34", | ||
| "mlly": "^1.8.0", | ||
| "mongodb": "^6.20.0", | ||
| "mongodb-memory-server": "^10.2.3", | ||
| "mongodb": "^7.0.0", | ||
| "mongodb-memory-server": "^10.3.0", | ||
| "prettier": "^3.6.2", | ||
@@ -95,5 +95,5 @@ "scule": "^1.3.0", | ||
| "uploadthing": "^7.7.4", | ||
| "vite": "^7.1.12", | ||
| "vitest": "^4.0.5", | ||
| "wrangler": "^4.45.3" | ||
| "vite": "^7.2.4", | ||
| "vitest": "^4.0.12", | ||
| "wrangler": "^4.49.1" | ||
| }, | ||
@@ -100,0 +100,0 @@ "peerDependencies": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
353889
14.56%199
56.69%37
2.78%Updated