@fatehan/tsrp 1.3.37 → 1.3.39

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.
package/dist/api.js CHANGED
@@ -112,13 +112,11 @@ class ApiService {
112
112
  }
113
113
  const { IoRequest, IoResponse } = await Promise.resolve().then(() => __importStar(require("./fatehan/services/api")));
114
114
  const response = await this._call("IoIndex", request, IoRequest, IoResponse);
115
- if (response.records > 0) {
116
- if (request.deviceId != null) {
117
- (0, system_io_1.setDeviceIoCache)(request.deviceId.toString(), response.ios);
118
- }
119
- else {
120
- (0, system_io_1.setSystemIoCache)(response.ios);
121
- }
115
+ if (request.deviceId != null) {
116
+ (0, system_io_1.setDeviceIoCache)(request.deviceId.toString(), response.ios);
117
+ }
118
+ else {
119
+ (0, system_io_1.setSystemIoCache)(response.ios);
122
120
  }
123
121
  return response;
124
122
  }
@@ -1 +1 @@
1
- {"version":3,"file":"system.io.d.ts","sourceRoot":"","sources":["../src/system.io.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EAET,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD,QAAA,MAAM,YAAY,GAChB,UAAU,QAAQ,EAAE,EACpB,UAAU,QAAQ,EAAE,EACpB,MAAM,IAAI,KACT,OAAO,EAoGT,CAAC;AA6BF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"system.io.d.ts","sourceRoot":"","sources":["../src/system.io.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,QAAQ,EAET,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD,QAAA,MAAM,YAAY,GAChB,UAAU,QAAQ,EAAE,EACpB,UAAU,QAAQ,EAAE,EACpB,MAAM,IAAI,KACT,OAAO,EAsGT,CAAC;AA6BF,eAAe,YAAY,CAAC"}
package/dist/system.io.js CHANGED
@@ -45,7 +45,7 @@ const SystemIoCast = (systemIo, deviceIo, data) => {
45
45
  }
46
46
  else {
47
47
  if (newValue.toString().includes(key)) {
48
- newValue = io.unknown[key];
48
+ newValue = UnkValue;
49
49
  }
50
50
  }
51
51
  }
@@ -64,14 +64,16 @@ const SystemIoCast = (systemIo, deviceIo, data) => {
64
64
  }
65
65
  }
66
66
  });
67
- if (io.DecimalCount && io.DecimalCount > 0) {
68
- newValue = Number(newValue).toFixed(io.DecimalCount);
69
- }
70
- else if (io.DecimalCount === 0) {
71
- newValue = Math.round(newValue).toString();
72
- }
73
- if (io.SeparatorsCount && io.SeparatorsCount > 0) {
74
- newValue = Separator(String(newValue), (_a = io.SeparatorsCount) !== null && _a !== void 0 ? _a : 0);
67
+ if (Number(newValue)) {
68
+ if (io.DecimalCount && io.DecimalCount > 0) {
69
+ newValue = Number(newValue).toFixed(io.DecimalCount);
70
+ }
71
+ else if (io.DecimalCount === 0) {
72
+ newValue = Math.round(newValue).toString();
73
+ }
74
+ if (io.SeparatorsCount && io.SeparatorsCount > 0) {
75
+ newValue = Separator(String(newValue), (_a = io.SeparatorsCount) !== null && _a !== void 0 ? _a : 0);
76
+ }
75
77
  }
76
78
  if (!hidden) {
77
79
  list.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fatehan/tsrp",
3
- "version": "1.3.37",
3
+ "version": "1.3.39",
4
4
  "description": "fatehan main models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",