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
4 changes: 2 additions & 2 deletions src/js/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
request.get(url).query({a: 1}).end((err, res) => { res.body })
request.get(url).then((res) => res.body)

esbuildのaliasで 'superagent' をこのモジュールへ向けているため、サイト設定は
書き換えていない。superagentとの差で気をつける点は3つ:
esbuildのaliasで 'superagent' をこのモジュールへ向けているため、2600件以上ある
サイト設定は書き換えていない。superagentとの差で気をつける点は3つ:
- fetchは4xx/5xxでもresolveするので、okでなければerrにして返す
- res.body はJSONのときだけパース結果を入れる(superagentと同じくそれ以外は空オブジェクト)
- res.text は常に生の本文
Expand Down
2 changes: 1 addition & 1 deletion src/js/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export function normalizeIsbn(isbn: string): string {
if (!isbn) return '';
const _tmp = isbn.replace(/[-]+/g, '');
if (_tmp.length <= 10) {
return "   " + _tmp;
return "\u2002\u2002\u2002" + _tmp;
}
return _tmp;
}
Expand Down