diff options
author | 2023-05-04 23:22:17 +0800 | |
---|---|---|
committer | 2023-05-04 23:22:17 +0800 | |
commit | b6dc0edc94cebdee74d67f5919f46c28cd96b9f8 (patch) | |
tree | ef97add33058dd7f65e662f402cf7ce24b7482e8 /source/github-helpers/api.ts | |
parent | 0f0d7435a649466084fab40bb7fe0481b0c73dba (diff) | |
download | refined-github-b6dc0edc94cebdee74d67f5919f46c28cd96b9f8.tar.gz refined-github-b6dc0edc94cebdee74d67f5919f46c28cd96b9f8.tar.zst refined-github-b6dc0edc94cebdee74d67f5919f46c28cd96b9f8.zip |
Lint (ESM file imports + named functions) (#6613)
Diffstat (limited to 'source/github-helpers/api.ts')
-rw-r--r-- | source/github-helpers/api.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/github-helpers/api.ts b/source/github-helpers/api.ts index dc22f1ec..d0fd1043 100644 --- a/source/github-helpers/api.ts +++ b/source/github-helpers/api.ts @@ -5,7 +5,7 @@ next to the name of the feature that caused them. Usage: -import * as api from '../github-helpers/api'; +import * as api from '../github-helpers/api.js'; const user = await api.v3(`/users/${username}`); const repositoryCommits = await api.v3('commits'); // Without a leading `/`, this is equivalent to `/repo/$current-repository/commits` const data = await api.v4('{user(login: "user") {name}}'); @@ -29,9 +29,9 @@ import mem from 'mem'; import * as pageDetect from 'github-url-detection'; import {JsonObject, AsyncReturnType} from 'type-fest'; -import features from '../feature-manager'; -import {getRepo} from '.'; -import optionsStorage from '../options-storage'; +import features from '../feature-manager.js'; +import {getRepo} from './index.js'; +import optionsStorage from '../options-storage.js'; type JsonError = { message: string; |