@embeddable.com/sdk-core 3.14.1-next.1 → 3.14.2-next.0
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/defineConfig.d.ts +2 -0
- package/lib/index.esm.js +4 -2
- package/lib/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/defineConfig.test.ts +1 -0
- package/src/defineConfig.ts +2 -0
- package/src/push.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@embeddable.com/sdk-core",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.2-next.0",
|
|
4
4
|
"description": "Core Embeddable SDK module responsible for web-components bundling and publishing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embeddable",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@embeddable.com/core": "2.10.1
|
|
43
|
+
"@embeddable.com/core": "2.10.1",
|
|
44
44
|
"@embeddable.com/sdk-utils": "0.8.0",
|
|
45
45
|
"@inquirer/prompts": "^7.2.1",
|
|
46
46
|
"@stencil/core": "^4.23.0",
|
package/src/defineConfig.test.ts
CHANGED
package/src/defineConfig.ts
CHANGED
|
@@ -94,6 +94,7 @@ export type ResolvedEmbeddableConfig = {
|
|
|
94
94
|
logger: any;
|
|
95
95
|
sys: any;
|
|
96
96
|
};
|
|
97
|
+
region: Region;
|
|
97
98
|
[PLUGIN_NAME]: {
|
|
98
99
|
rootDir: string;
|
|
99
100
|
templatesDir: string;
|
|
@@ -284,6 +285,7 @@ export default (config: EmbeddableConfig) => {
|
|
|
284
285
|
logger: undefined,
|
|
285
286
|
sys: undefined,
|
|
286
287
|
},
|
|
288
|
+
region,
|
|
287
289
|
pushModels,
|
|
288
290
|
pushComponents,
|
|
289
291
|
pushBaseUrl: pushBaseUrl ?? regionConfig.pushBaseUrl,
|
package/src/push.ts
CHANGED
|
@@ -48,8 +48,9 @@ export default async () => {
|
|
|
48
48
|
} catch (error: any) {
|
|
49
49
|
if (error.response?.data?.errorCode === "BUILDER-998") {
|
|
50
50
|
spinnerPushing.fail(
|
|
51
|
-
`Authentication failure. Server responded with: "${error.response?.data?.errorMessage}".
|
|
52
|
-
|
|
51
|
+
`Authentication failure. Server responded with: "${error.response?.data?.errorMessage}".
|
|
52
|
+
Ensure that your API key is valid for the region specified in the embeddable.config.ts|js file.
|
|
53
|
+
You are using the following region: ${config.region.replace("legacy-", "")} (${config.previewBaseUrl.replace("https://", "")} via ${config.pushBaseUrl})
|
|
53
54
|
Read more about deployment regions at https://docs.embeddable.com/deployment/deployment-regions`,
|
|
54
55
|
);
|
|
55
56
|
process.exit(1);
|