Skip to content

Commit f088c2b

Browse files
qwerty541harryzcy
authored andcommitted
refactor: fix fetchers names by removing duplicating postfix (anuraghazra#4375)
1 parent b17eac6 commit f088c2b

16 files changed

+11
-11
lines changed

api/gist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from "../src/common/utils.js";
77
import { isLocaleAvailable } from "../src/translations.js";
88
import { renderGistCard } from "../src/cards/gist-card.js";
9-
import { fetchGist } from "../src/fetchers/gist-fetcher.js";
9+
import { fetchGist } from "../src/fetchers/gist.js";
1010

1111
export const handler = async (req, res, env) => {
1212
const {

api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
parseBoolean,
88
renderError,
99
} from "../src/common/utils.js";
10-
import { fetchStats } from "../src/fetchers/stats-fetcher.js";
10+
import { fetchStats } from "../src/fetchers/stats.js";
1111
import { isLocaleAvailable } from "../src/translations.js";
1212

1313
export const handler = async (req, res, env) => {

api/pin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
parseBoolean,
77
renderError,
88
} from "../src/common/utils.js";
9-
import { fetchRepo } from "../src/fetchers/repo-fetcher.js";
9+
import { fetchRepo } from "../src/fetchers/repo.js";
1010
import { isLocaleAvailable } from "../src/translations.js";
1111

1212
export const handler = async (req, res, env) => {

api/top-langs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
parseBoolean,
77
renderError,
88
} from "../src/common/utils.js";
9-
import { fetchTopLanguages } from "../src/fetchers/top-languages-fetcher.js";
9+
import { fetchTopLanguages } from "../src/fetchers/top-languages.js";
1010
import { isLocaleAvailable } from "../src/translations.js";
1111

1212
export const handler = async (req, res, env) => {

api/wakatime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
parseBoolean,
77
renderError,
88
} from "../src/common/utils.js";
9-
import { fetchWakatimeStats } from "../src/fetchers/wakatime-fetcher.js";
9+
import { fetchWakatimeStats } from "../src/fetchers/wakatime.js";
1010
import { isLocaleAvailable } from "../src/translations.js";
1111
import process from "node:process";
1212

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)