Skip to content

Commit 57228df

Browse files
committed
chore: bump deps
1 parent 55e6061 commit 57228df

File tree

11 files changed

+70
-67
lines changed

11 files changed

+70
-67
lines changed

.github/workflows/size-limit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "size"
1+
name: size
22
on:
33
pull_request:
44
branches:

bun.lockb

-47.7 KB
Binary file not shown.

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import rules from '@mochaa/eslintrc';
2+
3+
export default rules;

package.json

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
11
{
22
"name": "github-proxy",
3+
"type": "module",
34
"private": true,
45
"description": "GitHub proxy on Cloudflare Workers",
5-
"repository": "https://github.com/mchaNetwork/github-proxy",
6-
"license": "MIT",
76
"author": "mochaaP <npm@mochaa.ws>",
8-
"type": "module",
7+
"license": "MIT",
8+
"repository": "https://github.com/mchaNetwork/github-proxy",
99
"main": "dist/_worker.js",
1010
"scripts": {
1111
"build": "rimraf dist && parcel build",
1212
"deploy": "bun run test && bun run build && wrangler pages deploy dist",
1313
"lint": "eslint .",
1414
"size": "size-limit",
15-
"start": "wrangler pages dev dist --compatibility-date=2024-01-01",
15+
"start": "wrangler pages dev dist --compatibility-date=2024-12-01",
1616
"test": "bun run lint && bun run size"
1717
},
1818
"browserslist": "Firefox ESR, iOS >= 12.5, Chrome >= 87",
19+
"peerDependencies": {
20+
"typescript": "^5.3"
21+
},
22+
"dependencies": {
23+
"nord": "nordtheme/nord",
24+
"ress": "^5.0.2",
25+
"worktop": "next"
26+
},
27+
"devDependencies": {
28+
"@cloudflare/workers-types": "4.20241218.0",
29+
"@mochaa/eslintrc": "0.1.12",
30+
"@size-limit/preset-small-lib": "11.1.6",
31+
"eslint": "9.17.0",
32+
"parcel": "2.12.0",
33+
"rimraf": "6.0.1",
34+
"size-limit": "11.1.6",
35+
"svgo": "3.3.2",
36+
"wrangler": "3.97.0"
37+
},
1938
"eslintConfig": {
2039
"env": {
2140
"es2024": true,
@@ -50,23 +69,6 @@
5069
"dist"
5170
]
5271
},
53-
"dependencies": {
54-
"nord": "nordtheme/nord",
55-
"ress": "^5.0.2",
56-
"worktop": "next"
57-
},
58-
"devDependencies": {
59-
"@cloudflare/workers-types": "4.20241218.0",
60-
"@size-limit/preset-small-lib": "11.1.6",
61-
"parcel": "2.12.0",
62-
"rimraf": "6.0.1",
63-
"size-limit": "11.1.6",
64-
"wrangler": "3.97.0",
65-
"xo": "0.60.0"
66-
},
67-
"peerDependencies": {
68-
"typescript": "^5.3"
69-
},
7072
"@parcel/transformer-css": {
7173
"drafts": {
7274
"nesting": true

renovate.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"extends": [
3-
"config:js-lib"
4-
],
5-
"packageRules": [
6-
{
7-
"matchUpdateTypes": [
8-
"minor",
9-
"patch",
10-
"pin",
11-
"digest"
12-
],
13-
"automerge": true
14-
}
15-
]
2+
"extends": [
3+
"config:js-lib"
4+
],
5+
"packageRules": [
6+
{
7+
"matchUpdateTypes": [
8+
"minor",
9+
"patch",
10+
"pin",
11+
"digest"
12+
],
13+
"automerge": true
14+
}
15+
]
1616
}

src/filter/repo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {matcher, type Condition} from '.';
1+
import {type Condition, matcher} from '.';
22

33
type Repo = {
44
user: string;

src/filter/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {matcher, type Condition} from '.';
1+
import {type Condition, matcher} from '.';
22

33
const users = (process.env.GHP_BLOCKED_USERS ?? '').split(',');
44
const rules = users.map(pattern => matcher(pattern));

src/routes/codeload.github.com.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ export type ArchiveFormat =
1010
| 'legacy.zip';
1111

1212
export async function codeload(user: string, repo: string, format: ArchiveFormat, reference: string) {
13-
return fetch(
14-
`https://codeload.github.com/${user}/${repo}/${format}/${reference}`,
15-
);
13+
return fetch(`https://codeload.github.com/${user}/${repo}/${format}/${reference}`);
1614
}
1715

1816
const app = new Router<Bindings>();

src/routes/github.com.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {Router} from 'worktop';
22
import {reply} from 'worktop/response';
33
import forbidRepo from '../filter/repo';
44
import forbidUser from '../filter/user';
5-
import {codeload, type ArchiveFormat} from './codeload.github.com';
5+
import {type ArchiveFormat, codeload} from './codeload.github.com';
66
import {raw} from './raw.githubusercontent.com';
77

88
const app = new Router<Bindings>();

src/routes/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {Router} from 'worktop';
2-
import raw from './raw.githubusercontent.com';
32
import codeload from './codeload.github.com';
4-
import github from './github.com';
53
import gist from './gist.githubusercontent.com';
4+
import github from './github.com';
5+
import raw from './raw.githubusercontent.com';
66

77
export const bind = (app: Router<Bindings>) => {
88
app.mount('/github.com/', github);

0 commit comments

Comments
 (0)