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