Compare commits

...

12 Commits

Author SHA1 Message Date
Darius
694d88bb72 1.2.5 2025-11-23 02:49:14 +01:00
Darius
9569477a26 Generic Commit; Most likely a fix or small feature 2025-11-23 02:49:06 +01:00
Darius
6574f8f672 1.2.4 2025-11-23 02:45:59 +01:00
Darius
ea6605f9dc Generic Commit; Most likely a fix or small feature 2025-11-23 02:45:54 +01:00
Darius
953afcbc84 1.2.3 2025-11-21 17:36:06 +01:00
Darius
1d4ade717a Generic Commit; Most likely a fix or small feature 2025-11-21 17:35:58 +01:00
Darius
25ff0b9903 1.2.2 2025-11-21 17:34:20 +01:00
Darius
2f8f3ea017 Generic Commit; Most likely a fix or small feature 2025-11-21 17:34:15 +01:00
Darius
c3f0fd84ac 1.2.1 2025-11-21 17:19:56 +01:00
Darius
64eb6fbf4e Generic Commit; Most likely a fix or small feature 2025-11-21 17:19:50 +01:00
Darius
50c951e0d3 1.2.0 2025-11-21 17:13:31 +01:00
Darius
6086c6dbcc Generic Commit; Most likely a fix or small feature 2025-11-21 17:13:20 +01:00
10 changed files with 27 additions and 19 deletions

5
dist/fastify.d.ts vendored
View File

@@ -3,9 +3,10 @@ export type ServiceResult<T = unknown> = {
result: T;
successful: boolean;
};
export type API_Error = {
export declare class API_Error {
error: string;
};
constructor(error: string);
}
export declare abstract class BaseClient {
private axiosInstance;
constructor(axiosInstance: AxiosInstance);

View File

@@ -1 +1 @@
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,8BAAsB,UAAU;IAC9B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,QAAQ,IAAI,aAAa;CAG1B;AAED,8BAAsB,WAAW,CAAC,CAAC;IACjC,OAAO,CAAC,MAAM,CAAI;gBAEN,MAAM,EAAE,CAAC;IAIrB,SAAS,IAAI,CAAC;IAId,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;IAO7D,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;CAMrD"}
{"version":3,"file":"fastify.d.ts","sourceRoot":"","sources":["../src/fastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,MAAM,aAAa,CAAC,CAAC,GAAG,OAAO,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;IACV,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,qBAAa,SAAS;IACD,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;CACjC;AAED,8BAAsB,UAAU;IAC9B,OAAO,CAAC,aAAa,CAAgB;gBAEzB,aAAa,EAAE,aAAa;IAIxC,QAAQ,IAAI,aAAa;CAG1B;AAED,8BAAsB,WAAW,CAAC,CAAC;IACjC,OAAO,CAAC,MAAM,CAAI;gBAEN,MAAM,EAAE,CAAC;IAIrB,SAAS,IAAI,CAAC;IAId,mBAAmB,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC;IAO7D,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC;CAMrD"}

6
dist/fastify.js vendored
View File

@@ -1,3 +1,9 @@
export class API_Error {
error;
constructor(error) {
this.error = error;
}
}
export class BaseClient {
axiosInstance;
constructor(axiosInstance) {

4
dist/index.d.ts vendored
View File

@@ -1,6 +1,6 @@
export * from "./fastify";
export * from "./homeassistant";
export * as Logger from "./logger";
export * from "./logger";
export * from "./tidal";
export * as TimeHelper from "./timehelper";
export * from "./timehelper";
//# sourceMappingURL=index.d.ts.map

2
dist/index.d.ts.map vendored
View File

@@ -1 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}

4
dist/index.js vendored
View File

@@ -1,5 +1,5 @@
export * from "./fastify";
export * from "./homeassistant";
export * as Logger from "./logger";
export * from "./logger";
export * from "./tidal";
export * as TimeHelper from "./timehelper";
export * from "./timehelper";

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@dpu/shared",
"version": "1.1.5",
"version": "1.2.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@dpu/shared",
"version": "1.1.5",
"version": "1.2.5",
"dependencies": {
"axios": "^1.7.9",
"chalk": "^5.6.2",

View File

@@ -1,9 +1,10 @@
{
"name": "@dpu/shared",
"version": "1.1.5",
"version": "1.2.5",
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist"
],

View File

@@ -5,9 +5,9 @@ export type ServiceResult<T = unknown> = {
successful: boolean;
};
export type API_Error = {
error: string;
};
export class API_Error {
constructor(public error: string) {}
}
export abstract class BaseClient {
private axiosInstance: AxiosInstance;

View File

@@ -1,5 +1,5 @@
export * from "./fastify";
export * from "./homeassistant";
export * as Logger from "./logger";
export * from "./tidal";
export * as TimeHelper from "./timehelper";
export * from "./fastify.js";
export * from "./homeassistant.js";
export * from "./logger.js";
export * from "./tidal.js";
export * from "./timehelper.js";