@frontegg/js 6.8.1 → 6.9.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/index.js +1 -1
- package/initialize.js +7 -0
- package/node/index.js +1 -1
- package/node/initialize.js +7 -0
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/version.js +1 -1
package/index.js
CHANGED
package/initialize.js
CHANGED
|
@@ -7,6 +7,13 @@ export const initialize = (options, name = 'default') => {
|
|
|
7
7
|
if (typeof document !== 'undefined') {
|
|
8
8
|
var _document$querySelect;
|
|
9
9
|
|
|
10
|
+
if (!options.contextOptions.baseUrl) {
|
|
11
|
+
const error = new Error('Edit <FronteggProvider/> options { ContextOptions: { baseUrl: "" } } in order to connect your application');
|
|
12
|
+
document.body.innerHTML = ``;
|
|
13
|
+
alert(error.message);
|
|
14
|
+
throw error;
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
if (!customElements.get('frontegg-app')) {
|
|
11
18
|
class FronteggAppContainer extends HTMLElement {
|
|
12
19
|
constructor(...args) {
|
package/node/index.js
CHANGED
package/node/initialize.js
CHANGED
|
@@ -17,6 +17,13 @@ const initialize = (options, name = 'default') => {
|
|
|
17
17
|
if (typeof document !== 'undefined') {
|
|
18
18
|
var _document$querySelect;
|
|
19
19
|
|
|
20
|
+
if (!options.contextOptions.baseUrl) {
|
|
21
|
+
const error = new Error('Edit <FronteggProvider/> options { ContextOptions: { baseUrl: "" } } in order to connect your application');
|
|
22
|
+
document.body.innerHTML = ``;
|
|
23
|
+
alert(error.message);
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
if (!customElements.get('frontegg-app')) {
|
|
21
28
|
class FronteggAppContainer extends HTMLElement {
|
|
22
29
|
constructor(...args) {
|
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/runtime": "^7.18.6",
|
|
8
|
-
"@frontegg/types": "6.
|
|
8
|
+
"@frontegg/types": "6.9.0"
|
|
9
9
|
},
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"private": false,
|
package/version.js
CHANGED