@glissandoo/lib 1.88.0 → 1.88.1

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.
@@ -63,5 +63,5 @@ export default class User extends UserBasic<UserData> {
63
63
  get devicesList(): (import("./types").UserDeviceInfo & {
64
64
  id: string;
65
65
  })[];
66
- get analyticsEnabled(): true;
66
+ get analyticsEnabled(): boolean;
67
67
  }
@@ -167,7 +167,7 @@ class User extends basic_1.default {
167
167
  return (0, objects_1.mapToArray)(this.devices);
168
168
  }
169
169
  get analyticsEnabled() {
170
- return this.data.analyticsEnabled || true;
170
+ return (0, lodash_1.isBoolean)(this.data.analyticsEnabled) ? this.data.analyticsEnabled : true;
171
171
  }
172
172
  }
173
173
  exports.default = User;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.88.0",
3
+ "version": "1.88.1",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",