@frontegg/rest-api 3.0.91 → 3.0.92

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.
@@ -1,4 +1,4 @@
1
- import { FronteggFeatureFlags, IFeatureFlagsAttributes } from "./interfaces";
1
+ import { IFeatureFlagsAttributes } from "./interfaces";
2
2
  export declare class FeatureFlags {
3
3
  private _flags;
4
4
  private static _instances;
@@ -7,6 +7,6 @@ export declare class FeatureFlags {
7
7
  static set(featureFlags?: IFeatureFlagsAttributes, name?: string): FeatureFlags;
8
8
  static getFeatureFlags(flags: string[], name: string): boolean[];
9
9
  get flags(): IFeatureFlagsAttributes;
10
- set(featureFlags?: FronteggFeatureFlags): void;
10
+ set(featureFlags?: IFeatureFlagsAttributes): void;
11
11
  }
12
12
  export declare function loadFeatureFlags(): Promise<IFeatureFlagsAttributes>;
@@ -35,9 +35,9 @@ export class FeatureFlags {
35
35
  }
36
36
 
37
37
  set(featureFlags) {
38
- var _defaultFeatureFlags$2, _featureFlags$flags;
38
+ var _defaultFeatureFlags$2;
39
39
 
40
- this._flags = _extends({}, (_defaultFeatureFlags$2 = defaultFeatureFlags == null ? void 0 : defaultFeatureFlags.flags) != null ? _defaultFeatureFlags$2 : {}, (_featureFlags$flags = featureFlags == null ? void 0 : featureFlags.flags) != null ? _featureFlags$flags : {});
40
+ this._flags = _extends({}, (_defaultFeatureFlags$2 = defaultFeatureFlags == null ? void 0 : defaultFeatureFlags.flags) != null ? _defaultFeatureFlags$2 : {}, featureFlags != null ? featureFlags : {});
41
41
  }
42
42
 
43
43
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.91
1
+ /** @license Frontegg v3.0.92
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.
@@ -49,9 +49,9 @@ class FeatureFlags {
49
49
  }
50
50
 
51
51
  set(featureFlags) {
52
- var _defaultFeatureFlags$2, _featureFlags$flags;
52
+ var _defaultFeatureFlags$2;
53
53
 
54
- this._flags = (0, _extends2.default)({}, (_defaultFeatureFlags$2 = defaultFeatureFlags == null ? void 0 : defaultFeatureFlags.flags) != null ? _defaultFeatureFlags$2 : {}, (_featureFlags$flags = featureFlags == null ? void 0 : featureFlags.flags) != null ? _featureFlags$flags : {});
54
+ this._flags = (0, _extends2.default)({}, (_defaultFeatureFlags$2 = defaultFeatureFlags == null ? void 0 : defaultFeatureFlags.flags) != null ? _defaultFeatureFlags$2 : {}, featureFlags != null ? featureFlags : {});
55
55
  }
56
56
 
57
57
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v3.0.91
1
+ /** @license Frontegg v3.0.92
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/rest-api",
3
- "version": "3.0.91",
3
+ "version": "3.0.92",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {