@embeddable.com/sdk-core 4.1.9-next.1 → 4.1.9-next.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.
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/dev.test.ts +44 -15
- package/src/login.test.ts +17 -26
- package/src/provideConfig.test.ts +43 -26
- package/src/push.test.ts +1 -1
- package/src/push.ts +1 -1
- package/src/rollbar.test.ts +27 -12
- package/src/workspaceUtils.test.ts +1 -1
- package/src/workspaceUtils.ts +1 -1
- package/templates/component.tsx.template +6 -6
package/lib/index.esm.js
CHANGED
|
@@ -21817,7 +21817,7 @@ async function getWorkspaces(ctx, token, workspaceSpinner) {
|
|
|
21817
21817
|
throw e;
|
|
21818
21818
|
}
|
|
21819
21819
|
if (((_c = e.response) === null || _c === void 0 ? void 0 : _c.status) === 401) {
|
|
21820
|
-
workspaceSpinner.fail('Unauthorized. Please login using "embeddable
|
|
21820
|
+
workspaceSpinner.fail('Unauthorized. Please login using "npm run embeddable:login"');
|
|
21821
21821
|
}
|
|
21822
21822
|
else {
|
|
21823
21823
|
workspaceSpinner.fail("Failed to fetch workspaces");
|
|
@@ -21962,7 +21962,7 @@ async function verify(ctx) {
|
|
|
21962
21962
|
// TODO: initiate login if no/invalid token.
|
|
21963
21963
|
const token = await getToken();
|
|
21964
21964
|
if (!token) {
|
|
21965
|
-
console.error(
|
|
21965
|
+
console.error('Unauthorized. Please login using "npm run embeddable:login"');
|
|
21966
21966
|
process.exit(1);
|
|
21967
21967
|
}
|
|
21968
21968
|
return token;
|