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