yxuse 3.0.56 → 3.0.58

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 (47) hide show
  1. package/lib/index.cjs12.js +1 -1
  2. package/lib/index.cjs12.js.gz +0 -0
  3. package/lib/index.cjs12.js.map +1 -1
  4. package/lib/index.cjs2.js +1 -1
  5. package/lib/index.cjs2.js.map +1 -1
  6. package/lib/index.cjs3.js +1 -1
  7. package/lib/index.cjs3.js.map +1 -1
  8. package/lib/index.cjs4.js +1 -1
  9. package/lib/index.cjs4.js.map +1 -1
  10. package/lib/index.cjs5.js +5 -5
  11. package/lib/index.cjs5.js.gz +0 -0
  12. package/lib/index.cjs5.js.map +1 -1
  13. package/lib/index.cjs6.js +3 -3
  14. package/lib/index.cjs6.js.gz +0 -0
  15. package/lib/index.cjs6.js.map +1 -1
  16. package/lib/index.cjs7.js +4 -4
  17. package/lib/index.cjs7.js.gz +0 -0
  18. package/lib/index.cjs7.js.map +1 -1
  19. package/lib/index.es12.js +99 -209
  20. package/lib/index.es12.js.gz +0 -0
  21. package/lib/index.es12.js.map +1 -1
  22. package/lib/index.es2.js +54 -90
  23. package/lib/index.es2.js.map +1 -1
  24. package/lib/index.es3.js +6 -26
  25. package/lib/index.es3.js.map +1 -1
  26. package/lib/index.es4.js +12 -32
  27. package/lib/index.es4.js.map +1 -1
  28. package/lib/index.es5.js +125 -169
  29. package/lib/index.es5.js.gz +0 -0
  30. package/lib/index.es5.js.map +1 -1
  31. package/lib/index.es6.js +163 -184
  32. package/lib/index.es6.js.gz +0 -0
  33. package/lib/index.es6.js.map +1 -1
  34. package/lib/index.es7.js +118 -162
  35. package/lib/index.es7.js.gz +0 -0
  36. package/lib/index.es7.js.map +1 -1
  37. package/lib/mqtt.min.cjs.js +1 -1
  38. package/lib/mqtt.min.cjs.js.gz +0 -0
  39. package/lib/mqtt.min.cjs.js.map +1 -1
  40. package/lib/mqtt.min.es.js +21 -37
  41. package/lib/mqtt.min.es.js.gz +0 -0
  42. package/lib/mqtt.min.es.js.map +1 -1
  43. package/lib/style.css +1 -1
  44. package/lib/style.css.gz +0 -0
  45. package/package.json +1 -1
  46. package/types/components/YxForm/type.d.ts +11 -1
  47. package/types/components/YxUpload/index.vue.d.ts +2 -1
@@ -1,22 +1,5 @@
1
1
  var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
21
4
  import { ElMessage, ElMessageBox } from "element-plus";
22
5
  import "./index.es12.js";
@@ -204,11 +187,12 @@ const getCownDownTime = (time) => {
204
187
  return formattedTime;
205
188
  };
206
189
  const useConfirm = (content, confrmCallback, options = {}) => {
207
- ElMessageBox.confirm(content, (options == null ? void 0 : options.title) || "提示", __spreadValues({
190
+ ElMessageBox.confirm(content, (options == null ? void 0 : options.title) || "提示", {
208
191
  confirmButtonText: "确定",
209
192
  cancelButtonText: "取消",
210
- type: "warning"
211
- }, options)).then(() => {
193
+ type: "warning",
194
+ ...options
195
+ }).then(() => {
212
196
  confrmCallback();
213
197
  }).catch(() => {
214
198
  });
@@ -495,7 +479,7 @@ var mqtt_min = { exports: {} };
495
479
  const n2 = this;
496
480
  function i2() {
497
481
  y("end :: (%s) :: finish :: calling _cleanUp with force %s", n2.options.clientId, e2), n2._cleanUp(e2, () => {
498
- y("end :: finish :: calling process.nextTick on closeStores"), b(function() {
482
+ y("end :: finish :: calling process.nextTick on closeStores"), b((function() {
499
483
  y("end :: closeStores: closing incoming and outgoing stores"), n2.disconnected = true, n2.incomingStore.close(function(e3) {
500
484
  n2.outgoingStore.close(function(t3) {
501
485
  if (y("end :: closeStores: emitting end"), n2.emit("end"), r3) {
@@ -504,7 +488,7 @@ var mqtt_min = { exports: {} };
504
488
  }
505
489
  });
506
490
  }), n2._deferredReconnect && n2._deferredReconnect();
507
- }.bind(n2));
491
+ }).bind(n2));
508
492
  }, t2);
509
493
  }
510
494
  return y("end :: (%s)", this.options.clientId), null != e2 && "boolean" == typeof e2 || (r3 = t2 || E, t2 = e2, e2 = false, "object" != typeof t2 && (r3 = t2, t2 = null, "function" != typeof r3 && (r3 = E))), "object" != typeof t2 && (r3 = t2, t2 = null), y("end :: cb? %s", !!r3), r3 = r3 || E, this.disconnecting ? (r3(), this) : (this._clearReconnect(), this.disconnecting = true, !e2 && Object.keys(this.outgoing).length > 0 ? (y("end :: (%s) :: calling finish in 10ms once outgoing is empty", n2.options.clientId), this.once("outgoingEmpty", setTimeout.bind(null, i2, 10))) : (y("end :: (%s) :: immediately calling finish", n2.options.clientId), i2()), this);
@@ -550,7 +534,7 @@ var mqtt_min = { exports: {} };
550
534
  const n3 = t3.topic.toString();
551
535
  if (e3.topicAliasSend) if (r4) {
552
536
  if (0 !== n3.length && (y("applyTopicAlias :: register topic: %s - alias: %d", n3, r4), !e3.topicAliasSend.put(n3, r4))) return y("applyTopicAlias :: error out of range. topic: %s - alias: %d", n3, r4), new Error("Sending Topic Alias out of range");
553
- } else 0 !== n3.length && (e3.options.autoAssignTopicAlias ? (r4 = e3.topicAliasSend.getAliasByTopic(n3)) ? (t3.topic = "", t3.properties = __spreadProps(__spreadValues({}, t3.properties), { topicAlias: r4 }), y("applyTopicAlias :: auto assign(use) topic: %s - alias: %d", n3, r4)) : (r4 = e3.topicAliasSend.getLruAlias(), e3.topicAliasSend.put(n3, r4), t3.properties = __spreadProps(__spreadValues({}, t3.properties), { topicAlias: r4 }), y("applyTopicAlias :: auto assign topic: %s - alias: %d", n3, r4)) : e3.options.autoUseTopicAlias && (r4 = e3.topicAliasSend.getAliasByTopic(n3)) && (t3.topic = "", t3.properties = __spreadProps(__spreadValues({}, t3.properties), { topicAlias: r4 }), y("applyTopicAlias :: auto use topic: %s - alias: %d", n3, r4)));
537
+ } else 0 !== n3.length && (e3.options.autoAssignTopicAlias ? (r4 = e3.topicAliasSend.getAliasByTopic(n3)) ? (t3.topic = "", t3.properties = { ...t3.properties, topicAlias: r4 }, y("applyTopicAlias :: auto assign(use) topic: %s - alias: %d", n3, r4)) : (r4 = e3.topicAliasSend.getLruAlias(), e3.topicAliasSend.put(n3, r4), t3.properties = { ...t3.properties, topicAlias: r4 }, y("applyTopicAlias :: auto assign topic: %s - alias: %d", n3, r4)) : e3.options.autoUseTopicAlias && (r4 = e3.topicAliasSend.getAliasByTopic(n3)) && (t3.topic = "", t3.properties = { ...t3.properties, topicAlias: r4 }, y("applyTopicAlias :: auto use topic: %s - alias: %d", n3, r4)));
554
538
  else if (r4) return y("applyTopicAlias :: error out of range. topic: %s - alias: %d", n3, r4), new Error("Sending Topic Alias out of range");
555
539
  }
556
540
  }(this, e2);
@@ -957,7 +941,7 @@ var mqtt_min = { exports: {} };
957
941
  } });
958
942
  };
959
943
  const c = l.destroy;
960
- return l.destroy = function() {
944
+ return l.destroy = (function() {
961
945
  l.destroy = c;
962
946
  const e3 = this;
963
947
  setTimeout(function() {
@@ -965,7 +949,7 @@ var mqtt_min = { exports: {} };
965
949
  e3._destroy(new Error());
966
950
  } });
967
951
  }, 0);
968
- }.bind(l), s.onOpen(function() {
952
+ }).bind(l), s.onOpen(function() {
969
953
  l.setReadable(a), l.setWritable(a), l.emit("connect");
970
954
  }), s.onMessage(function(e3) {
971
955
  let t3 = e3.data;
@@ -1269,9 +1253,9 @@ var mqtt_min = { exports: {} };
1269
1253
  if (!(this instanceof s)) return new s(e2);
1270
1254
  if ("function" == typeof e2) {
1271
1255
  this._callback = e2;
1272
- const t2 = function(e3) {
1256
+ const t2 = (function(e3) {
1273
1257
  this._callback && (this._callback(e3), this._callback = null);
1274
- }.bind(this);
1258
+ }).bind(this);
1275
1259
  this.on("pipe", function(e3) {
1276
1260
  e3.on("error", t2);
1277
1261
  }), this.on("unpipe", function(e3) {
@@ -1574,7 +1558,7 @@ var mqtt_min = { exports: {} };
1574
1558
  return this;
1575
1559
  }, s.prototype.toString = function() {
1576
1560
  var e2 = this.length;
1577
- return 0 === e2 ? "" : 0 === arguments.length ? S(this, 0, e2) : function(e3, t4, r2) {
1561
+ return 0 === e2 ? "" : 0 === arguments.length ? S(this, 0, e2) : (function(e3, t4, r2) {
1578
1562
  var n2 = false;
1579
1563
  if ((void 0 === t4 || t4 < 0) && (t4 = 0), t4 > this.length) return "";
1580
1564
  if ((void 0 === r2 || r2 > this.length) && (r2 = this.length), r2 <= 0) return "";
@@ -1601,7 +1585,7 @@ var mqtt_min = { exports: {} };
1601
1585
  if (n2) throw new TypeError("Unknown encoding: " + e3);
1602
1586
  e3 = (e3 + "").toLowerCase(), n2 = true;
1603
1587
  }
1604
- }.apply(this, arguments);
1588
+ }).apply(this, arguments);
1605
1589
  }, s.prototype.toLocaleString = s.prototype.toString, s.prototype.equals = function(e2) {
1606
1590
  if (!s.isBuffer(e2)) throw new TypeError("Argument must be a Buffer");
1607
1591
  return this === e2 || 0 === s.compare(this, e2);
@@ -2756,7 +2740,7 @@ var mqtt_min = { exports: {} };
2756
2740
  var b = c[f].size();
2757
2741
  u += b - p;
2758
2742
  } else ++u, c[f] = new o.default([{ key: e3, value: t3 }]);
2759
- u > h * a.sigma && function(e4) {
2743
+ u > h * a.sigma && (function(e4) {
2760
2744
  if (!(e4 >= a.maxSize)) {
2761
2745
  h = 2 * e4;
2762
2746
  var t4 = [];
@@ -2780,7 +2764,7 @@ var mqtt_min = { exports: {} };
2780
2764
  }
2781
2765
  }), c = t4;
2782
2766
  }
2783
- }.call(this, h);
2767
+ }).call(this, h);
2784
2768
  } else this.eraseElementByKey(e3);
2785
2769
  }, this.getElementByKey = function(e3) {
2786
2770
  var t3, n2, o2 = r2(e3) & h - 1;
@@ -2999,7 +2983,7 @@ var mqtt_min = { exports: {} };
2999
2983
  var i2 = c[t3].size();
3000
2984
  u += i2 - n2;
3001
2985
  } else c[t3] = new s.default([e3]), ++u;
3002
- u > h * a.sigma && function(e4) {
2986
+ u > h * a.sigma && (function(e4) {
3003
2987
  if (!(e4 >= a.maxSize)) {
3004
2988
  h = 2 * e4;
3005
2989
  var t4 = [];
@@ -3024,7 +3008,7 @@ var mqtt_min = { exports: {} };
3024
3008
  }
3025
3009
  }), c = t4;
3026
3010
  }
3027
- }.call(this, h);
3011
+ }).call(this, h);
3028
3012
  }, this.eraseElementByValue = function(e3) {
3029
3013
  var t3 = r2(e3) & h - 1;
3030
3014
  if (c[t3]) {
@@ -5924,7 +5908,7 @@ var mqtt_min = { exports: {} };
5924
5908
  var n = e("../errors").codes, i = n.ERR_METHOD_NOT_IMPLEMENTED, o = n.ERR_MULTIPLE_CALLBACK, s = n.ERR_TRANSFORM_ALREADY_TRANSFORMING, a = n.ERR_TRANSFORM_WITH_LENGTH_0, l = e("./_stream_duplex");
5925
5909
  function u(e2) {
5926
5910
  if (!(this instanceof u)) return new u(e2);
5927
- l.call(this, e2), this._transformState = { afterTransform: function(e3, t2) {
5911
+ l.call(this, e2), this._transformState = { afterTransform: (function(e3, t2) {
5928
5912
  var r2 = this._transformState;
5929
5913
  r2.transforming = false;
5930
5914
  var n2 = r2.writecb;
@@ -5932,7 +5916,7 @@ var mqtt_min = { exports: {} };
5932
5916
  r2.writechunk = null, r2.writecb = null, null != t2 && this.push(t2), n2(e3);
5933
5917
  var i2 = this._readableState;
5934
5918
  i2.reading = false, (i2.needReadable || i2.length < i2.highWaterMark) && this._read(i2.highWaterMark);
5935
- }.bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = true, this._readableState.sync = false, e2 && ("function" == typeof e2.transform && (this._transform = e2.transform), "function" == typeof e2.flush && (this._flush = e2.flush)), this.on("prefinish", c);
5919
+ }).bind(this), needTransform: false, transforming: false, writecb: null, writechunk: null, writeencoding: null }, this._readableState.needReadable = true, this._readableState.sync = false, e2 && ("function" == typeof e2.transform && (this._transform = e2.transform), "function" == typeof e2.flush && (this._flush = e2.flush)), this.on("prefinish", c);
5936
5920
  }
5937
5921
  function c() {
5938
5922
  var e2 = this;
@@ -6196,9 +6180,9 @@ var mqtt_min = { exports: {} };
6196
6180
  }
6197
6181
  var r3 = n2[s];
6198
6182
  null !== r3 && (n2[c] = null, n2[s] = null, n2[a] = null, r3(p(void 0, true))), n2[u] = true;
6199
- }), e2.on("readable", function(e3) {
6183
+ }), e2.on("readable", (function(e3) {
6200
6184
  r2.nextTick(d, e3);
6201
- }.bind(null, n2)), n2;
6185
+ }).bind(null, n2)), n2;
6202
6186
  };
6203
6187
  }).call(this);
6204
6188
  }).call(this, e("_process"));
Binary file