intor 2.2.1 → 2.2.3

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.
@@ -41,28 +41,28 @@ type RouteNamespaces = {
41
41
  [key: string]: string[];
42
42
  default: string[];
43
43
  };
44
- interface ApiHeaders {
44
+ interface RemoteHeaders {
45
45
  authorization?: string;
46
46
  "x-api-key"?: string;
47
47
  [key: string]: string | undefined;
48
48
  }
49
49
  type BaseLoaderOptions = {
50
- basePath?: string;
50
+ rootDir?: string;
51
51
  namespaces?: string[];
52
52
  routeNamespaces?: RouteNamespaces;
53
53
  concurrency?: number;
54
54
  lazyLoad?: boolean;
55
55
  };
56
- type ImportLoader = BaseLoaderOptions & {
57
- type: "import";
56
+ type LocalLoader = BaseLoaderOptions & {
57
+ type: "local";
58
58
  };
59
- type ApiLoader = BaseLoaderOptions & {
60
- type: "api";
61
- apiUrl: string;
62
- apiHeaders?: ApiHeaders;
59
+ type RemoteLoader = BaseLoaderOptions & {
60
+ type: "remote";
61
+ remoteUrl: string;
62
+ remoteHeaders?: RemoteHeaders;
63
63
  fullReload?: boolean;
64
64
  };
65
- type LoaderOptions = ImportLoader | ApiLoader;
65
+ type LoaderOptions = LocalLoader | RemoteLoader;
66
66
 
67
67
  type LoggerOptions = {
68
68
  level?: Level;
@@ -41,28 +41,28 @@ type RouteNamespaces = {
41
41
  [key: string]: string[];
42
42
  default: string[];
43
43
  };
44
- interface ApiHeaders {
44
+ interface RemoteHeaders {
45
45
  authorization?: string;
46
46
  "x-api-key"?: string;
47
47
  [key: string]: string | undefined;
48
48
  }
49
49
  type BaseLoaderOptions = {
50
- basePath?: string;
50
+ rootDir?: string;
51
51
  namespaces?: string[];
52
52
  routeNamespaces?: RouteNamespaces;
53
53
  concurrency?: number;
54
54
  lazyLoad?: boolean;
55
55
  };
56
- type ImportLoader = BaseLoaderOptions & {
57
- type: "import";
56
+ type LocalLoader = BaseLoaderOptions & {
57
+ type: "local";
58
58
  };
59
- type ApiLoader = BaseLoaderOptions & {
60
- type: "api";
61
- apiUrl: string;
62
- apiHeaders?: ApiHeaders;
59
+ type RemoteLoader = BaseLoaderOptions & {
60
+ type: "remote";
61
+ remoteUrl: string;
62
+ remoteHeaders?: RemoteHeaders;
63
63
  fullReload?: boolean;
64
64
  };
65
- type LoaderOptions = ImportLoader | ApiLoader;
65
+ type LoaderOptions = LocalLoader | RemoteLoader;
66
66
 
67
67
  type LoggerOptions = {
68
68
  level?: Level;