@glissandoo/lib 1.1.8 → 1.1.9

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.
@@ -3,7 +3,7 @@ import { LanguagesTypes } from '../../../lang';
3
3
  import PlayerBasic from '../../Player/basic';
4
4
  import { CommunicationCommentData } from './types';
5
5
  export default class CommunicationCommment extends PlayerBasic<CommunicationCommentData> {
6
- constructor(doc: firestore.DocumentSnapshot, lang: LanguagesTypes);
6
+ constructor(doc: firestore.DocumentSnapshot, lang?: LanguagesTypes);
7
7
  get communicationId(): string;
8
8
  get text(): string;
9
9
  private get createdBy();
@@ -4,9 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const get_1 = __importDefault(require("lodash/get"));
7
+ const lang_1 = require("../../../lang");
7
8
  const basic_1 = __importDefault(require("../../Player/basic"));
8
9
  class CommunicationCommment extends basic_1.default {
9
- constructor(doc, lang) {
10
+ constructor(doc, lang = lang_1.defaultLocale) {
10
11
  super(doc, lang);
11
12
  }
12
13
  get communicationId() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",