diff --git a/dev_site/webpack.config.js b/dev_site/webpack.config.js index 60c9f5b..ab40c87 100644 --- a/dev_site/webpack.config.js +++ b/dev_site/webpack.config.js @@ -1,3 +1,5 @@ +/* eslint-disable @typescript-eslint/no-var-requires */ + const path = require("path"); const HtmlWebpackPlugin = require("html-webpack-plugin"); const { CleanWebpackPlugin } = require("clean-webpack-plugin"); diff --git a/src/node_connection.ts b/src/node_connection.ts index 53f4776..d2297c8 100644 --- a/src/node_connection.ts +++ b/src/node_connection.ts @@ -29,12 +29,12 @@ export class NodeConnection { } async useFetchData( - url: string = "/", - method: string = "GET", - body: string = "", + url = "/", + method = "GET", + body = "", headers: Record = { "Content-Type": "application/json" } ) { - let response = await fetch(this.host + url, { + const response = await fetch(this.host + url, { method: method, body: JSON.stringify(body), headers: headers,