New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tuhu/mp-monitor

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tuhu/mp-monitor - npm Package Compare versions

Comparing version 0.1.8-alpha.0 to 0.1.8

12

lib/monitorPage.js

@@ -12,2 +12,6 @@ "use strict";

exports.FLAG_PAGE_START = Symbol("pagestart");
/** 页面触发过 onHide 标记
* @constant
*/
var FLAG_PAGE_HIDDEN = Symbol('PAGE_HIDDEN');
/** 小程序开始加载时间标记 */

@@ -75,2 +79,10 @@ exports.FLAG_APP_START = Symbol("appstart");

},
onShow: function () {
if (this[FLAG_PAGE_HIDDEN]) {
this[exports.FLAG_PAGE_START] = Date.now();
}
},
onHide: function () {
this[FLAG_PAGE_HIDDEN] = true;
},
onUnload: function () {

@@ -77,0 +89,0 @@ monitorPage.resolveWaitPage(this.route);

4

package.json
{
"name": "@tuhu/mp-monitor",
"version": "0.1.8-alpha.0",
"version": "0.1.8",
"main": "lib/index.js",

@@ -26,3 +26,3 @@ "types": "lib/index.d.ts",

},
"gitHead": "82f2e9b44a93737cc51c85c64f1ae115da94e469"
"gitHead": "ddc8e63e8161284130b590e9239a9e934c4e9b47"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc