sb-mig 5.6.0 → 5.6.1-beta.1
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.
|
@@ -16,8 +16,8 @@ export type SyncDatasources = (args: {
|
|
|
16
16
|
}, config: RequestBaseConfig) => Promise<any>;
|
|
17
17
|
export type SyncProvidedDatasources = (args: {
|
|
18
18
|
datasources: string[];
|
|
19
|
-
}, config: RequestBaseConfig) => void
|
|
20
|
-
export type SyncAllDatasources = (config: RequestBaseConfig) => void
|
|
19
|
+
}, config: RequestBaseConfig) => Promise<void>;
|
|
20
|
+
export type SyncAllDatasources = (config: RequestBaseConfig) => Promise<void>;
|
|
21
21
|
export type GetDatasourceEntries = (args: {
|
|
22
22
|
datasourceName: string;
|
|
23
23
|
}, config: RequestBaseConfig) => Promise<any>;
|
|
@@ -82,12 +82,12 @@ export const sync = async (props) => {
|
|
|
82
82
|
case SYNC_COMMANDS.datasources:
|
|
83
83
|
if (isIt("all")) {
|
|
84
84
|
Logger.log("Syncing all datasources with extension...");
|
|
85
|
-
syncAllDatasources(apiConfig);
|
|
85
|
+
await syncAllDatasources(apiConfig);
|
|
86
86
|
}
|
|
87
87
|
if (!flags["all"]) {
|
|
88
88
|
Logger.log("Syncing provided datasources with extension...");
|
|
89
89
|
const datasourcesToSync = unpackElements(input);
|
|
90
|
-
syncProvidedDatasources({ datasources: datasourcesToSync }, apiConfig);
|
|
90
|
+
await syncProvidedDatasources({ datasources: datasourcesToSync }, apiConfig);
|
|
91
91
|
}
|
|
92
92
|
break;
|
|
93
93
|
case SYNC_COMMANDS.content:
|
|
@@ -17,7 +17,7 @@ export const syncProvidedDatasources = async (args, config) => {
|
|
|
17
17
|
local: allLocalDatasources,
|
|
18
18
|
external: allExternalDatasources,
|
|
19
19
|
});
|
|
20
|
-
managementApi.datasources.syncDatasources({
|
|
20
|
+
await managementApi.datasources.syncDatasources({
|
|
21
21
|
providedDatasources: [...local, ...external],
|
|
22
22
|
}, config);
|
|
23
23
|
};
|
|
@@ -34,7 +34,7 @@ export const syncAllDatasources = async (config) => {
|
|
|
34
34
|
local: allLocalDatasources,
|
|
35
35
|
external: allExternalDatasources,
|
|
36
36
|
});
|
|
37
|
-
managementApi.datasources.syncDatasources({
|
|
37
|
+
await managementApi.datasources.syncDatasources({
|
|
38
38
|
providedDatasources: [...local, ...external],
|
|
39
39
|
}, config);
|
|
40
40
|
};
|
package/dist/cli/index.js
CHANGED
|
File without changes
|