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