summary refs log tree commit diff
diff options
context:
space:
mode:
authordevelopomp <developomp@gmail.com>2021-10-20 09:15:52 +0900
committerdevelopomp <developomp@gmail.com>2021-10-20 09:15:52 +0900
commita03d470c93bc519ddf9f4f303f5a24e50ce2a78f (patch)
tree73dfe5315860aa1bfbc4dfffcb501325cd86730c
parentprettier formatted /cdn (diff)
downloadserver-a03d470c93bc519ddf9f4f303f5a24e50ce2a78f.tar.xz
prettier formatted /gateway
-rw-r--r--gateway/.github/FUNDING.yml2
-rw-r--r--gateway/src/util/SessionUtils.ts4
-rw-r--r--gateway/tsconfig.json10
3 files changed, 12 insertions, 4 deletions
diff --git a/gateway/.github/FUNDING.yml b/gateway/.github/FUNDING.yml
index f76b9015..43f3b63b 100644
--- a/gateway/.github/FUNDING.yml
+++ b/gateway/.github/FUNDING.yml
@@ -1 +1 @@
-open_collective: fosscord
\ No newline at end of file
+open_collective: fosscord
diff --git a/gateway/src/util/SessionUtils.ts b/gateway/src/util/SessionUtils.ts
index c66c7e76..bf854042 100644
--- a/gateway/src/util/SessionUtils.ts
+++ b/gateway/src/util/SessionUtils.ts
@@ -7,5 +7,7 @@ export function genVoiceToken() {
 }
 
 function genRanHex(size: number) {
-	return [...Array(size)].map(() => Math.floor(Math.random() * 16).toString(16)).join("");
+	return [...Array(size)]
+		.map(() => Math.floor(Math.random() * 16).toString(16))
+		.join("");
 }
diff --git a/gateway/tsconfig.json b/gateway/tsconfig.json
index b6ae9455..5ecb21e1 100644
--- a/gateway/tsconfig.json
+++ b/gateway/tsconfig.json
@@ -8,7 +8,11 @@
 		"incremental": true /* Enable incremental compilation */,
 		"target": "ES2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
 		"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
-		"lib": ["ES2015", "ES2020.BigInt", "DOM"] /* Specify library files to be included in the compilation. */,
+		"lib": [
+			"ES2015",
+			"ES2020.BigInt",
+			"DOM"
+		] /* Specify library files to be included in the compilation. */,
 		"allowJs": true /* Allow javascript files to be compiled. */,
 		"checkJs": true /* Report errors in .js files. */,
 		// "jsx": "preserve",                     /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
@@ -48,7 +52,9 @@
 		// "paths": {},                           /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
 		// "rootDirs": [],                        /* List of root folders whose combined content represents the structure of the project at runtime. */
 		// "typeRoots": [],                       /* List of folders to include type definitions from. */
-		"types": ["node"] /* Type declaration files to be included in compilation. */,
+		"types": [
+			"node"
+		] /* Type declaration files to be included in compilation. */,
 		// "allowSyntheticDefaultImports": true,  /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
 		"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
 		// "preserveSymlinks": true,              /* Do not resolve the real path of symlinks. */