Replace entire codebase with homarr-labs/homarr
This commit is contained in:
36
patches/@types__node-unifi.patch
Normal file
36
patches/@types__node-unifi.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
diff --git a/index.d.ts b/index.d.ts
|
||||
index 04d9340306707b7d9c028bc692a6884c28e5a975..7c15a97c398fc5c41528803822f4e7bd1a27b36e 100644
|
||||
--- a/index.d.ts
|
||||
+++ b/index.d.ts
|
||||
@@ -1,4 +1,6 @@
|
||||
import { EventEmitter2 as EventEmitter } from "eventemitter2";
|
||||
+import {CookieAgentOptions} from 'http-cookie-agent/http'
|
||||
+import { AxiosInstance } from "axios";
|
||||
|
||||
declare namespace nodeUnifi {
|
||||
interface SiteSysinfo {
|
||||
@@ -176,6 +178,8 @@ declare namespace nodeUnifi {
|
||||
}
|
||||
}
|
||||
|
||||
+type CreateAxiosInstance = (options: Required<CookieAgentOptions>) => AxiosInstance;
|
||||
+
|
||||
declare class Controller extends EventEmitter {
|
||||
/**
|
||||
* Initialize a new Controller instance
|
||||
@@ -187,6 +191,7 @@ declare class Controller extends EventEmitter {
|
||||
* @param {boolean} [options.sslverify] - Enable SSL verification
|
||||
* @param {number} [options.timeout] - Request timeout in milliseconds
|
||||
* @param {boolean} [options.rememberMe] - Remember login session
|
||||
+ * @param {CreateAxiosInstance} [options.createAxiosInstance] - Custom Axios instance
|
||||
*/
|
||||
constructor(options?: {
|
||||
host?: string;
|
||||
@@ -198,6 +203,7 @@ declare class Controller extends EventEmitter {
|
||||
sslverify?: boolean;
|
||||
timeout?: number;
|
||||
rememberMe?: boolean;
|
||||
+ createAxiosInstance?: CreateAxiosInstance;
|
||||
});
|
||||
|
||||
/**
|
||||
13
patches/trpc-to-openapi.patch
Normal file
13
patches/trpc-to-openapi.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/dist/esm/utils/zod.mjs b/dist/esm/utils/zod.mjs
|
||||
index a3fda1a5b5403a659bfc70653a94102e607f8b80..070d9728f9b41add50e5d30d3aa559be91018ccd 100644
|
||||
--- a/dist/esm/utils/zod.mjs
|
||||
+++ b/dist/esm/utils/zod.mjs
|
||||
@@ -62,7 +62,7 @@ export const instanceofZodTypeLikeString = (_type) => {
|
||||
}
|
||||
return instanceofZodTypeKind(type, 'string');
|
||||
};
|
||||
-export const zodSupportsCoerce = 'coerce' in z;
|
||||
+export const zodSupportsCoerce = true //'coerce' in z;
|
||||
export const instanceofZodTypeCoercible = (_type) => {
|
||||
const type = unwrapZodType(_type, false);
|
||||
return (instanceofZodTypeKind(type, 'number') ||
|
||||
Reference in New Issue
Block a user