@pisell/pisellos 2.2.209 → 2.2.210

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.
@@ -3549,11 +3549,11 @@ var Server = /*#__PURE__*/function () {
3549
3549
  return getAsyncIotDeviceInfo === null || getAsyncIotDeviceInfo === void 0 ? void 0 : getAsyncIotDeviceInfo();
3550
3550
  case 4:
3551
3551
  res = _context37.sent;
3552
- if (!res.short_number) {
3552
+ if (!(res !== null && res !== void 0 && res.short_number)) {
3553
3553
  _context37.next = 7;
3554
3554
  break;
3555
3555
  }
3556
- return _context37.abrupt("return", res.short_number);
3556
+ return _context37.abrupt("return", res === null || res === void 0 ? void 0 : res.short_number);
3557
3557
  case 7:
3558
3558
  return _context37.abrupt("return", this.getAppData('device_id') || 0);
3559
3559
  case 8:
@@ -250,11 +250,11 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
250
250
  return getAsyncIotDeviceInfo === null || getAsyncIotDeviceInfo === void 0 ? void 0 : getAsyncIotDeviceInfo();
251
251
  case 4:
252
252
  res = _context3.sent;
253
- if (!res.short_number) {
253
+ if (!(res !== null && res !== void 0 && res.short_number)) {
254
254
  _context3.next = 7;
255
255
  break;
256
256
  }
257
- return _context3.abrupt("return", res.short_number);
257
+ return _context3.abrupt("return", res === null || res === void 0 ? void 0 : res.short_number);
258
258
  case 7:
259
259
  return _context3.abrupt("return", this.getAppData('device_id') || 0);
260
260
  case 8:
@@ -2210,8 +2210,8 @@ var Server = class {
2210
2210
  const getAsyncIotDeviceInfo = this.getAppData("async_iot_device_info");
2211
2211
  if (getAsyncIotDeviceInfo) {
2212
2212
  const res = await (getAsyncIotDeviceInfo == null ? void 0 : getAsyncIotDeviceInfo());
2213
- if (res.short_number) {
2214
- return res.short_number;
2213
+ if (res == null ? void 0 : res.short_number) {
2214
+ return res == null ? void 0 : res.short_number;
2215
2215
  }
2216
2216
  }
2217
2217
  return this.getAppData("device_id") || 0;
@@ -164,8 +164,8 @@ var BookingTicketImpl = class extends import_BaseSales.BaseSalesImpl {
164
164
  const getAsyncIotDeviceInfo = this.getAppData("async_iot_device_info");
165
165
  if (getAsyncIotDeviceInfo) {
166
166
  const res = await (getAsyncIotDeviceInfo == null ? void 0 : getAsyncIotDeviceInfo());
167
- if (res.short_number) {
168
- return res.short_number;
167
+ if (res == null ? void 0 : res.short_number) {
168
+ return res == null ? void 0 : res.short_number;
169
169
  }
170
170
  }
171
171
  return this.getAppData("device_id") || 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.209",
4
+ "version": "2.2.210",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",