@escapenavigator/utils 1.6.65 → 1.6.66

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
- export declare const getFullName: ({ id, name, surname, }: {
1
+ export declare const getFullName: (row: {
2
2
  id: number;
3
3
  name: string;
4
4
  surname: string;
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFullName = void 0;
4
- const getFullName = ({ id, name, surname, }) => {
4
+ const getFullName = (row) => {
5
+ if (!row)
6
+ return 'Deleted';
7
+ const { name, surname, id } = row;
5
8
  if (name || surname)
6
9
  return `${name || ''} ${surname || ''}`.trim();
7
10
  return `Client №${id}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/utils",
3
- "version": "1.6.65",
3
+ "version": "1.6.66",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -55,5 +55,5 @@
55
55
  "node_modules"
56
56
  ]
57
57
  },
58
- "gitHead": "610da81c65199357cc299ff6fc6df1770e750bd3"
58
+ "gitHead": "b9dfe483fe1c4ac8c07303071ace3e36a28d6dbb"
59
59
  }