Skip to content

Commit f74a737

Browse files
committed
chore: format
1 parent 40f6407 commit f74a737

29 files changed

+52
-51
lines changed

.vscode/settings.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@
2727
"jsonc",
2828
"yaml"
2929
],
30-
"cSpell.words": [
31-
"Jike"
32-
]
30+
"cSpell.words": ["Jike"]
3331
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
### Node.js
5959

60-
Node.js >= 14.15.0 (推荐 v14.17.0 以上)
60+
Node.js >= 14.15.0 (推荐 v14.17.0 及以上)
6161

6262
```bash
6363
npm i jike-sdk

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
{
22
"name": "jike-sdk",
33
"version": "0.7.3",
4-
"description": "Jike Ⓙ SDK for Node.js",
54
"packageManager": "[email protected]",
5+
"description": "Jike Ⓙ SDK for Node.js",
66
"keywords": [
77
"jike",
88
"sdk"
99
],
10-
"license": "AGPL-3.0",
11-
"repository": {
12-
"type": "git",
13-
"url": "git+https://github.com/open-jike/jike-sdk.git"
10+
"homepage": "https://github.com/open-jike/jike-sdk#readme",
11+
"bugs": {
12+
"url": "https://github.com/open-jike/jike-sdk/issues"
1413
},
14+
"license": "AGPL-3.0",
1515
"author": "三咲智子 <[email protected]>",
1616
"files": [
1717
"dist",
1818
"*.d.ts"
1919
],
20+
"module": "dist/index.js",
2021
"exports": {
2122
".": {
2223
"import": "./dist/index.js"
@@ -25,7 +26,10 @@
2526
"import": "./dist/node.mjs"
2627
}
2728
},
28-
"module": "dist/index.js",
29+
"repository": {
30+
"type": "git",
31+
"url": "git+https://github.com/open-jike/jike-sdk.git"
32+
},
2933
"types": "dist/index.d.ts",
3034
"sideEffects": false,
3135
"scripts": {
@@ -40,13 +44,6 @@
4044
"release": "bumpp --commit --push --tag && npm publish",
4145
"prepublishOnly": "npm run build"
4246
},
43-
"bugs": {
44-
"url": "https://github.com/open-jike/jike-sdk/issues"
45-
},
46-
"engines": {
47-
"node": ">=14"
48-
},
49-
"homepage": "https://github.com/open-jike/jike-sdk#readme",
5047
"dependencies": {
5148
"ky": "^0.30.0",
5249
"node-fetch": "3.2.3"
@@ -73,6 +70,9 @@
7370
"typescript": "^4.6.3",
7471
"vitest": "^0.7.11"
7572
},
73+
"engines": {
74+
"node": ">=14.15.0"
75+
},
7676
"volta": {
7777
"node": "16.14.2"
7878
}

src/api/comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toResponse, request } from '../request'
1+
import { request, toResponse } from '../request'
22
import type { PostTypeRaw } from '../types/entity'
33
import type { AddCommentOption, ListCommentOption } from '../types/options'
44
import type { Comments } from '../types/api-responses'

src/api/notifications.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toResponse, request } from '../request'
1+
import { request, toResponse } from '../request'
22
import type { PaginationOption } from '../types/options'
33
import type { Notifications } from '../types/api-responses'
44

src/api/personal-update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toResponse, request } from '../request'
1+
import { request, toResponse } from '../request'
22
import type { PaginationOption } from '../types/options'
33
import type { PersonalUpdate } from '../types/api-responses'
44

src/api/posts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toResponse, request } from '../request'
1+
import { request, toResponse } from '../request'
22
import type { CreatePostOption, PostType } from '../types/options'
33
import type { Posts } from '../types/api-responses'
44

src/api/recommend-feed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toResponse, request } from '../request'
1+
import { request, toResponse } from '../request'
22
import type { ListRecommendFeedOption } from '../types/options'
33
import type { RecommendFeed } from '../types/api-responses'
44

src/api/users.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getApiConfig, toResponse, request } from '../request'
1+
import { getApiConfig, request, toResponse } from '../request'
22
import type { Users } from '../types/api-responses'
33

44
/**

src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { fetchPaginated } from './utils/paginate'
88
import { AuthorizationError } from './errors/AuthorizationError'
99
import type { Notification } from '../types/entity'
1010
import type { BeforeRetryState } from 'ky/distribution/types/hooks'
11-
import type { PaginatedOption, PaginatedFetcher } from './utils/paginate'
11+
import type { PaginatedFetcher, PaginatedOption } from './utils/paginate'
1212
import type { Api } from '../api'
1313
import type { ApiConfig, ApiConfigResolved } from '../request'
1414

0 commit comments

Comments
 (0)