@embeddable.com/sdk-core 3.13.6-next.1 → 3.13.6-next.2
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/lib/index.esm.js +6 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/push.d.ts +2 -1
- package/package.json +1 -1
- package/src/push.ts +26 -15
package/lib/index.esm.js
CHANGED
|
@@ -21778,6 +21778,7 @@ var push = async () => {
|
|
|
21778
21778
|
spinnerPushing = ora("Using API key...").start();
|
|
21779
21779
|
breadcrumbs.push("push by api key");
|
|
21780
21780
|
await pushByApiKey(config, spinnerPushing);
|
|
21781
|
+
publishedSectionFeedback(config, spinnerPushing);
|
|
21781
21782
|
spinnerPushing.succeed("Published using API key");
|
|
21782
21783
|
return;
|
|
21783
21784
|
}
|
|
@@ -21795,6 +21796,7 @@ var push = async () => {
|
|
|
21795
21796
|
spinnerPushing.info(`Publishing to ${workspaceName} using ${workspacePreviewUrl}...`);
|
|
21796
21797
|
breadcrumbs.push("send build");
|
|
21797
21798
|
await sendBuild(config, { workspaceId, token, message });
|
|
21799
|
+
publishedSectionFeedback(config, spinnerPushing);
|
|
21798
21800
|
spinnerPushing.succeed(`Published to ${workspaceName} using ${workspacePreviewUrl}`);
|
|
21799
21801
|
}
|
|
21800
21802
|
catch (error) {
|
|
@@ -21805,6 +21807,10 @@ var push = async () => {
|
|
|
21805
21807
|
process.exit(1);
|
|
21806
21808
|
}
|
|
21807
21809
|
};
|
|
21810
|
+
const publishedSectionFeedback = (config, spinnerPushing) => {
|
|
21811
|
+
config.pushModels && spinnerPushing.succeed("Models published");
|
|
21812
|
+
config.pushComponents && spinnerPushing.succeed("Components published");
|
|
21813
|
+
};
|
|
21808
21814
|
async function pushByApiKey(config, spinner) {
|
|
21809
21815
|
const apiKey = getArgumentByKey(["--api-key", "-k"]);
|
|
21810
21816
|
if (!apiKey) {
|