返回提交历史
Added
.github/workflows/build.yml
+18
-0
Modified
package-lock.json
+99
-530
Modified
package.json
+5
-5
Modified
src/services/itemDataService.ts
+2
-2
XFEstudio/SpaceNinjaServer
chore: update dependencies (#166)
Co-authored-by: Sainan <Sainan@users.noreply.github.com>
9f98a686
代码差异
4 个文件
+124
-537
@@ -0,0 +1,18 @@
1
name: Build
2
on:
3
push: {}
4
pull_request: {}
5
jobs:
6
build:
7
runs-on: ubuntu-latest
8
permissions:
9
contents: write
10
steps:
11
- name: Checkout
12
uses: actions/checkout@v4.1.2
13
- name: Setup Node.js environment
14
uses: actions/setup-node@v4.0.2
15
with:
16
node-version: "20.x"
17
- run: npm ci
18
- run: npm run build
@@ -15,8 +15,8 @@
15
15
"dependencies": {
16
16
"dotenv": "^16.1.3",
17
17
"express": "^5.0.0-beta.1",
18
"mongoose": "^8.0.2",
19
"warframe-items": "1.1260.121",
18
"mongoose": "^8.1.1",
19
"warframe-items": "^1.1261.19",
20
20
"winston": "^3.11.0",
21
21
"winston-daily-rotate-file": "^4.7.1"
22
22
},
@@ -26,10 +26,10 @@
26
26
"@types/morgan": "^1.9.7",
27
27
"@typescript-eslint/eslint-plugin": "^6.9.0",
28
28
"@typescript-eslint/parser": "^6.2.0",
29
"eslint": "^8.45.0",
30
"eslint-plugin-prettier": "^5.0.0",
29
"eslint": "^8.56.0",
30
"eslint-plugin-prettier": "^5.1.3",
31
31
"morgan": "^1.10.0",
32
"prettier": "^3.0.0",
32
"prettier": "^3.2.4",
33
33
"ts-node-dev": "^2.0.0",
34
34
"tsconfig-paths": "^4.2.0",
35
35
"typescript": "^5.2.2"
@@ -94,8 +94,8 @@ export const blueprintNames = Object.fromEntries(
94
94
const buildables = items.filter(item => !!(item as Buildable).components);
95
95
96
96
export const getItemByBlueprint = (uniqueName: string): (MinItem & Buildable) | undefined => {
97
const item = buildables.find(
98
item => (item as Buildable).components?.find(component => component.uniqueName === uniqueName)
97
const item = buildables.find(item =>
98
(item as Buildable).components?.find(component => component.uniqueName === uniqueName)
99
99
);
100
100
return item;
101
101
};