Detalhes do pacote

@huolala-tech/page-spy-plugin-mp-eval

HuolalaTech39MIT2.2.3

Used for code evaluation in mini program.

readme (leia-me)

English | 中文

@huolala-tech/page-spy-plugin-mp-eval

SDK version SDK size

The MPEvalPlugin is used in mini program SDK of PageSpy, making it possible to run dynamic scripts in the mini program environment.

Available mini program SDKs include:

[!CAUTION] When submitting the mini program for review, be sure to delete this plugin in the code, otherwise the review will fail.

Usage

// In your entry file like "main.ts"
import PageSpy from '@huolala-tech/page-spy-wechat';
import MPEvalPlugin from '@huolala-tech/page-spy-plugin-mp-eval';

// Register plugin
PageSpy.registerPlugin(new MPEvalPlugin());
// Init PageSpy
const pageSpy = new PageSpy();

changelog (log de mudanças)

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.5.7 (2024-01-09)

Features

  • use terser instead of uglifyjs && add sourcemap (1bc6107)

1.5.6 (2024-01-09)

1.5.5 (2024-01-08)

1.5.4 (2024-01-08)

1.5.3 (2024-01-08)

1.5.2 (2024-01-08)

Features

Bug Fixes

  • 🐛 get correct url when load fails (#28) (24506f5)
  • fix the url format of copy function in toast modal (#32) (fdb9858)
  • use 'insertAdjacentElement' instead of 'append' (#31) (3ea8651)

1.5.1 (2024-01-08)

1.4.11 (2024-01-03)

Bug Fixes

  • use 'insertAdjacentElement' instead of 'append' (#31) (3ea8651)

1.4.10 (2023-12-26)

Features

  • supports console log output at the debug level (#29) (b669170)

Bug Fixes

  • 🐛 get correct url when load fails (#28) (24506f5)

1.4.9 (2023-12-20)

Features

Bug Fixes

  • use default value when 'ErrorEvent.error' not exists (#27) (6919682)

1.4.8 (2023-12-16)

Features

  • add delay timer when try to reconncet (#23) (b229dd6)

Bug Fixes

  • remove beforeunload event (6baf819)

1.4.7 (2023-12-14)

Features

  • add delay timer when try to reconncet (#23) (b229dd6)

1.4.6 (2023-12-06)

Bug Fixes

  • remove beforeunload event (6baf819)

1.4.5 (2023-12-06)

1.4.4 (2023-12-06)

Features

  • add inactive status style (b10d79f)

Bug Fixes

  • use width/height of window instead of document (7c702c5)

1.4.3 (2023-12-01)

1.4.2 (2023-11-15)

1.3.1 (2023-10-16)

1.3.0 (2023-08-15)

1.2.5 (2023-08-08)

Features

1.2.4 (2023-07-24)

Bug Fixes

  • use ArrayBuffer.isView instead of constructor (c6b61da)

1.2.3 (2023-07-20)

Features

1.2.2 (2023-07-04)

Features

  • assign onerror directly if not configurable (7799aaf)
  • plugins 'onCreate' can only be init once (06d31ba)
  • singleton mode PageSpy (ddcd2cd)
  • update log info & fix typo (a5490df)
  • update the log info (eef934c)

Bug Fixes

  • don't handle window.onerror (ae47966)
  • prevent window.onerror from being overriden (c936ca7)

1.2.0 (2023-05-31)

⚠ BREAKING CHANGES

  • The headers and getData structure have been changed to [string, string][]. The use of postData is now deprecated. Please use requestPayload instead, with a structure of [string, string][] | string.

Features

  • correct the delete last one cookie value and format the cookie (#4) (059b777)
  • reorganize the network plugin structure (#3) (aa199fb)

Bug Fixes

  • 明确设置 touchstart/touchmove 事件的 passive 配置项 (#2) (2e26cd1)

1.1.0 (2023-05-24)

Bug Fixes

1.0.5 (2023-05-11)

Features

  • show 'project' field and fix viewport size (581b65b)

1.0.4 (2023-04-27)

Features

  • add location info on PagePlugin (f2fbd58)

1.0.3 (2023-04-24)

Bug Fixes

  • 🐛 support data which no prototype (5835960)

1.0.2 (2023-04-20)

1.0.1 (2023-04-13)

Bug Fixes

  • 🐛 add reconnectable to avoid creating infinitly when err (d9fa83f)
  • 🐛 clear room info session when reconnect faield (6c7dcef)
  • 🐛 SocketStore add debugger-online event to flush cache (e07428e)
  • storage plugin (1b9eb23)