@xy-planning-network/trees 0.7.3-dev → 0.7.4-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xy-planning-network/trees",
3
- "version": "0.7.3-dev",
3
+ "version": "0.7.4-dev",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "repository": "github:xy-planning-network/trees",
@@ -44,7 +44,6 @@
44
44
  "@vue/eslint-config-typescript": "^11.0.3",
45
45
  "autoprefixer": "^10.4.14",
46
46
  "copyfiles": "^2.4.1",
47
- "deepmerge": "^4.3.1",
48
47
  "eslint": "^8.42.0",
49
48
  "eslint-plugin-vue": "^9.14.1",
50
49
  "postcss": "^8.4.21",
@@ -53,7 +52,6 @@
53
52
  "tsc-alias": "^1.8.5",
54
53
  "typescript": "^5.0.4",
55
54
  "vite": "^4.3.9",
56
- "vite-plugin-environment": "^1.1.3",
57
55
  "vue-tsc": "^1.2.0"
58
56
  },
59
57
  "dependencies": {
@@ -3,6 +3,10 @@ import { HttpClient, HttpError, HttpPromise, ReqOptions } from "./client";
3
3
  export declare const httpRequest: <T = any>(config: AxiosRequestConfig, opts: ReqOptions) => HttpPromise<T>;
4
4
  declare const BaseAPI: HttpClient;
5
5
  export default BaseAPI;
6
+ interface BaseAPIDefaults {
7
+ baseURL: string;
8
+ }
9
+ export declare const setBaseAPIDefaults: (config: BaseAPIDefaults) => void;
6
10
  /**
7
11
  * A type guard for checking if a variable is in the shape of a HttpError
8
12
  * @param err unknown
package/types/entry.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Plugin } from "vue";
2
- import BaseAPI, { isHttpCancel, isHttpError } from "./api/base";
2
+ import BaseAPI, { isHttpCancel, isHttpError, setBaseAPIDefaults } from "./api/base";
3
3
  import type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged } from "./api/client";
4
4
  declare const install: Exclude<Plugin["install"], undefined>;
5
5
  export default install;
6
6
  export * from "./composables/index";
7
7
  export * from "./lib-components/index";
8
- export { BaseAPI, isHttpCancel, isHttpError };
8
+ export { BaseAPI, isHttpCancel, isHttpError, setBaseAPIDefaults };
9
9
  export type { HttpPromise, HttpError, QueryParams, ReqOptions, ReqPayload, TrailsPromise, TrailsPromisePaged, TrailsResp, TrailsRespPaged, };