@smartsoft001/auth-shell-dtos 2.127.0 → 2.128.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.
Files changed (2) hide show
  1. package/index.js +6 -10
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -5,14 +5,13 @@ var __decorateClass = (decorators, target, key, kind) => {
5
5
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
6
6
  if (decorator = decorators[i])
7
7
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
8
- if (kind && result)
9
- __defProp(target, key, result);
8
+ if (kind && result) __defProp(target, key, result);
10
9
  return result;
11
10
  };
12
11
 
13
12
  // packages/shared/models/src/lib/symbols.ts
14
- var SYMBOL_MODEL = Symbol.for("smartsoft:model");
15
- var SYMBOL_FIELD = Symbol.for("smartsoft:field");
13
+ var SYMBOL_MODEL = /* @__PURE__ */ Symbol.for("smartsoft:model");
14
+ var SYMBOL_FIELD = /* @__PURE__ */ Symbol.for("smartsoft:field");
16
15
 
17
16
  // packages/shared/models/src/lib/interfaces.ts
18
17
  var FieldTypeDef = /* @__PURE__ */ ((FieldTypeDef2) => {
@@ -89,11 +88,9 @@ var ObjectService = class {
89
88
  * @return - new type object
90
89
  */
91
90
  static createByType(data, type) {
92
- if (!data)
93
- return data;
91
+ if (!data) return data;
94
92
  try {
95
- if (data instanceof type)
96
- return data;
93
+ if (data instanceof type) return data;
97
94
  } catch (e) {
98
95
  console.warn(e);
99
96
  }
@@ -109,8 +106,7 @@ var ObjectService = class {
109
106
  * @return - object without type
110
107
  */
111
108
  static removeTypes(obj) {
112
- if (!obj)
113
- return obj;
109
+ if (!obj) return obj;
114
110
  const result = {};
115
111
  Object.keys(obj).forEach((key) => {
116
112
  if (obj[key] && obj[key].constructor && !(obj[key] instanceof Date)) {
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@smartsoft001/auth-shell-dtos",
3
- "version": "2.127.0"
3
+ "version": "2.128.0"
4
4
  }