@frontegg/js 6.8.2 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.8.2
1
+ /** @license Frontegg v6.9.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
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
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.8.2
1
+ /** @license Frontegg v6.9.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -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
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
- "cdnVersion": "6.8.2"
8
+ "cdnVersion": "6.9.0"
9
9
  };
10
10
  exports.default = _default;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.8.2",
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.2"
8
+ "@frontegg/types": "6.9.0"
9
9
  },
10
10
  "sideEffects": false,
11
11
  "private": false,
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export default {
2
- "cdnVersion": "6.8.2"
2
+ "cdnVersion": "6.9.0"
3
3
  };