mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-21 08:42:31 +00:00
remove unused eslint comment
use _fetch instead of fetch add ignore list
This commit is contained in:
@@ -44,6 +44,7 @@ export default defineConfig([
|
|||||||
"*.config.mjs",
|
"*.config.mjs",
|
||||||
|
|
||||||
// Testing files (Simplified patterns)
|
// Testing files (Simplified patterns)
|
||||||
|
"test/**",
|
||||||
"**/*.test.ts",
|
"**/*.test.ts",
|
||||||
"**/*.unit.spec.ts",
|
"**/*.unit.spec.ts",
|
||||||
"**/test.ts",
|
"**/test.ts",
|
||||||
|
|||||||
+2
-1
@@ -146,7 +146,7 @@ export const _requestToCouchDBFetch = async (
|
|||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
};
|
};
|
||||||
return await fetch(uri, requestParam);
|
return await _fetch(uri, requestParam);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const _requestToCouchDB = async (
|
export const _requestToCouchDB = async (
|
||||||
@@ -214,6 +214,7 @@ import { BASE_IS_NEW, EVEN, TARGET_IS_NEW } from "@lib/common/models/shared.cons
|
|||||||
export { BASE_IS_NEW, EVEN, TARGET_IS_NEW };
|
export { BASE_IS_NEW, EVEN, TARGET_IS_NEW };
|
||||||
// Why 2000? : ZIP FILE Does not have enough resolution.
|
// Why 2000? : ZIP FILE Does not have enough resolution.
|
||||||
import { compareMTime } from "@lib/common/utils.ts";
|
import { compareMTime } from "@lib/common/utils.ts";
|
||||||
|
import { _fetch } from "@/lib/src/common/coreEnvFunctions.ts";
|
||||||
export { compareMTime };
|
export { compareMTime };
|
||||||
function getKey(file: AnyEntry | string | UXFileInfoStub) {
|
function getKey(file: AnyEntry | string | UXFileInfoStub) {
|
||||||
const key = typeof file == "string" ? file : stripAllPrefixes(file.path);
|
const key = typeof file == "string" ? file : stripAllPrefixes(file.path);
|
||||||
|
|||||||
+1
-1
Submodule src/lib updated: 4d5adcdee0...da48c09e78
@@ -27,7 +27,6 @@ export class ObsHttpHandler extends FetchHttpHandler {
|
|||||||
this.requestTimeoutInMs = options === undefined ? undefined : options.requestTimeout;
|
this.requestTimeoutInMs = options === undefined ? undefined : options.requestTimeout;
|
||||||
this.reverseProxyNoSignUrl = reverseProxyNoSignUrl;
|
this.reverseProxyNoSignUrl = reverseProxyNoSignUrl;
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line require-await
|
|
||||||
override async handle(
|
override async handle(
|
||||||
request: HttpRequest,
|
request: HttpRequest,
|
||||||
{ abortSignal }: HttpHandlerOptions = {}
|
{ abortSignal }: HttpHandlerOptions = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user