@tarojs/runtime 4.0.0-alpha.0 → 4.0.0-beta.1

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.
@@ -45,7 +45,8 @@ interface AddEventListenerOptions extends EventListenerOptions {
45
45
  once?: boolean;
46
46
  passive?: boolean;
47
47
  }
48
- interface EventHandler extends Function {
48
+ interface EventHandler<T = any, R = void> {
49
+ (...args: T[]): R;
49
50
  _stop?: boolean;
50
51
  }
51
52
  interface MpInstance {
@@ -1918,7 +1918,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1918
1918
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1919
1919
  PERFORMANCE OF THIS SOFTWARE.
1920
1920
  ***************************************************************************** */
1921
- /* global Reflect, Promise */
1921
+ /* global Reflect, Promise, SuppressedError, Symbol */
1922
1922
 
1923
1923
 
1924
1924
  function __classPrivateFieldGet(receiver, state, kind, f) {
@@ -1932,7 +1932,12 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
1932
1932
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
1933
1933
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
1934
1934
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
1935
- }
1935
+ }
1936
+
1937
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1938
+ var e = new Error(message);
1939
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1940
+ };
1936
1941
 
1937
1942
  var _URLSearchParams_dict;
1938
1943
  const findReg = /[!'()~]|%20|%00/g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/runtime",
3
- "version": "4.0.0-alpha.0",
3
+ "version": "4.0.0-beta.1",
4
4
  "description": "taro runtime for mini apps.",
5
5
  "main:h5": "dist/runtime.h5.js",
6
6
  "main": "dist/runtime.esm.js",
@@ -20,13 +20,13 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "lodash-es": "4.17.21",
23
- "@tarojs/shared": "4.0.0-alpha.0"
23
+ "@tarojs/shared": "4.0.0-beta.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@rollup/plugin-buble": "^1.0.3",
27
27
  "@rollup/plugin-replace": "^5.0.2",
28
28
  "@rollup/plugin-typescript": "^11.1.0",
29
- "@vue/runtime-core": "3.2.41",
29
+ "@vue/runtime-core": "3.2.47",
30
30
  "jest": "^29.3.1",
31
31
  "jest-cli": "^29.3.1",
32
32
  "jest-environment-node": "^29.5.0",