auto-point 0.0.28 → 0.0.29

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 (2) hide show
  1. package/AP/auto_point.js +1 -1
  2. package/package.json +1 -1
package/AP/auto_point.js CHANGED
@@ -217,6 +217,7 @@
217
217
  // 发送埋点数据
218
218
  async #send() {
219
219
  if (this.#POINT_LIST.length) {
220
+ this.#POINT_LAST_SEND_TIME = new Date().getTime() // 更新最后发送时间
220
221
  let point_list = this.#POINT_LIST
221
222
  for(let middleware of this.#MIDDLEWARE){
222
223
  if (this.#isFunction(middleware)) {
@@ -231,7 +232,6 @@
231
232
  console.error("Error sending data:", error)
232
233
  } finally {
233
234
  // 发送后清空埋点列表数据, 并更新最后发送时间
234
- this.#POINT_LAST_SEND_TIME = new Date().getTime() // 更新最后发送时间
235
235
  this.#POINT_LIST = new Array()
236
236
  }
237
237
  return res
package/package.json CHANGED
@@ -13,5 +13,5 @@
13
13
  "scripts": {
14
14
  "test": "echo \"Error: no test specified\" && exit 1"
15
15
  },
16
- "version": "0.0.28"
16
+ "version": "0.0.29"
17
17
  }