@whitesev/utils 2.1.1 → 2.1.2

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.
@@ -2636,8 +2636,6 @@ var Utils = (function () {
2636
2636
  let request = idbStore.put(inData);
2637
2637
  request.onsuccess = function (event) {
2638
2638
  /* 保存成功有success 字段 */
2639
- // @ts-ignore
2640
- event.target;
2641
2639
  resolve({
2642
2640
  success: true,
2643
2641
  code: that.#errorCode.success.code,
@@ -2646,8 +2644,6 @@ var Utils = (function () {
2646
2644
  });
2647
2645
  };
2648
2646
  request.onerror = function (event) {
2649
- // @ts-ignore
2650
- event.target;
2651
2647
  resolve({
2652
2648
  success: false,
2653
2649
  code: that.#errorCode.save.code,
@@ -2666,8 +2662,8 @@ var Utils = (function () {
2666
2662
  async get(key) {
2667
2663
  let that = this;
2668
2664
  return new Promise((resolve) => {
2669
- let dbName = that.#dbName;
2670
- that.open(function (idbStore, success) {
2665
+ let dbName = this.#dbName;
2666
+ this.open(function (idbStore, success) {
2671
2667
  /* 判断返回的数据中是否有error字段 */
2672
2668
  if (!success) {
2673
2669
  resolve({