mirror of
https://github.com/unraid/api.git
synced 2026-01-03 06:59:50 -06:00
chore(deps): update core
This commit is contained in:
3
package-lock.json
generated
3
package-lock.json
generated
@@ -1016,7 +1016,7 @@
|
||||
}
|
||||
},
|
||||
"@unraid/core": {
|
||||
"version": "github:unraid/core#00bcdd181c83fc91598a074d1b8bb44cc9026dad",
|
||||
"version": "github:unraid/core#a851095f9789ae9a430dbd67d9389f4735354a7d",
|
||||
"from": "github:unraid/core#master",
|
||||
"requires": {
|
||||
"@schemastore/package": "0.0.5",
|
||||
@@ -1093,6 +1093,7 @@
|
||||
"semver": "^7.2.2",
|
||||
"sendmail": "1.6.1",
|
||||
"spread-the-word": "0.8.4",
|
||||
"stoppable": "1.1.0",
|
||||
"systeminformation": "^4.23.3",
|
||||
"temp-write": "^4.0.0",
|
||||
"tracer": "^1.0.3",
|
||||
|
||||
@@ -14,7 +14,7 @@ am(async () => {
|
||||
|
||||
// Load server
|
||||
await core.loadServer('graphql-api', server);
|
||||
}, error => {
|
||||
}, (error: NodeJS.ErrnoException) => {
|
||||
// We should only end here if core has an issue loading
|
||||
|
||||
// Log last error
|
||||
|
||||
@@ -161,11 +161,10 @@ const connectToMothership = async () => {
|
||||
});
|
||||
};
|
||||
|
||||
// Return an object with a server and start/stop async methods.
|
||||
export const server = {
|
||||
server: stoppableServer,
|
||||
async start() {
|
||||
const retryConnection = async error => {
|
||||
const retryConnection = async (error: NodeJS.ErrnoException) => {
|
||||
log.debug(error);
|
||||
await sleep(5);
|
||||
await connectToMothership().catch(retryConnection);
|
||||
|
||||
Reference in New Issue
Block a user