Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
deno-version: vx.x.x
- name: Typecheck
run: deno check mod.ts
run: deno check src/
- name: Unit Test
run: deno test src/
- name: e2e Test
Expand Down
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Each provider consists of:
- `src/types.ts`
- `src/extract.ts`
- `src/transform.ts`
- `src/async.ts`
- `deno.jsonc`

## Core Concepts and Utilities

Expand Down
3 changes: 2 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"exports": {
".": "./mod.ts",
"./async": "./src/async.ts",
"./providers/appwrite": "./src/providers/appwrite.ts",
"./providers/astro": "./src/providers/astro.ts",
"./providers/builder.io": "./src/providers/builder.io.ts",
"./providers/bunny": "./src/providers/bunny.ts",
Expand Down Expand Up @@ -57,4 +58,4 @@
]
},
"license": "MIT"
}
}
1 change: 1 addition & 0 deletions src/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type AsyncProviderMap = {
[T in ImageCdn]: () => Promise<ProviderModule<T>>;
};
const asyncProviderMap: AsyncProviderMap = {
appwrite: () => import("./providers/appwrite.ts"),
astro: () => import("./providers/astro.ts"),
"builder.io": () => import("./providers/builder.io.ts"),
bunny: () => import("./providers/bunny.ts"),
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export type ImageCdn =
| "appwrite";

export const SupportedProviders: Record<ImageCdn, string> = {
appwrite: "Appwrite",
astro: "Astro image service",
"builder.io": "Builder.io",
bunny: "Bunny.net",
Expand All @@ -88,7 +89,6 @@ export const SupportedProviders: Record<ImageCdn, string> = {
uploadcare: "Uploadcare",
vercel: "Vercel",
wordpress: "WordPress",
appwrite: "Appwrite",
} as const;

export type OperationFormatter<T extends Operations = Operations> = (
Expand Down