mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
Merge pull request #10 from luth31/master
This commit is contained in:
commit
e0acff92c1
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@fosscord/server-util",
|
"name": "@fosscord/server-util",
|
||||||
"version": "1.3.34",
|
"version": "1.3.35",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@fosscord/server-util",
|
"name": "@fosscord/server-util",
|
||||||
"version": "1.3.34",
|
"version": "1.3.35",
|
||||||
"license": "GPLV3",
|
"license": "GPLV3",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/jsonwebtoken": "^8.5.0",
|
"@types/jsonwebtoken": "^8.5.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@fosscord/server-util",
|
"name": "@fosscord/server-util",
|
||||||
"version": "1.3.34",
|
"version": "1.3.35",
|
||||||
"description": "Utility functions for the all server repositories",
|
"description": "Utility functions for the all server repositories",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
@ -24,6 +24,15 @@ export interface RateLimitOptions {
|
|||||||
timespan: number;
|
timespan: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface Region {
|
||||||
|
id: string,
|
||||||
|
name: string,
|
||||||
|
vip: boolean,
|
||||||
|
custom: boolean,
|
||||||
|
deprecated: boolean,
|
||||||
|
optimal: boolean,
|
||||||
|
}
|
||||||
|
|
||||||
export interface DefaultOptions {
|
export interface DefaultOptions {
|
||||||
gateway: {
|
gateway: {
|
||||||
endpoint: string | null;
|
endpoint: string | null;
|
||||||
@ -116,6 +125,10 @@ export interface DefaultOptions {
|
|||||||
minSymbols: number;
|
minSymbols: number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
regions: {
|
||||||
|
default: string;
|
||||||
|
available: Region[];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DefaultOptions: DefaultOptions = {
|
export const DefaultOptions: DefaultOptions = {
|
||||||
@ -207,6 +220,12 @@ export const DefaultOptions: DefaultOptions = {
|
|||||||
minSymbols: 0,
|
minSymbols: 0,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
regions: {
|
||||||
|
default: "fosscord",
|
||||||
|
available: [
|
||||||
|
{ id: "fosscord", name: "Fosscord", vip: false, custom: false, deprecated: false, optimal: false },
|
||||||
|
]
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ConfigSchema = new Schema({}, { strict: false });
|
export const ConfigSchema = new Schema({}, { strict: false });
|
||||||
|
Loading…
Reference in New Issue
Block a user