@dcloudio/uni-quickapp-webview 3.0.0-alpha-3030820220114004 → 3.0.0-alpha-3030920220121001

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.
@@ -1,4 +1,4 @@
1
- import { camelize, isPlainObject, isArray, hasOwn, isFunction, extend, isObject } from '@vue/shared';
1
+ import { isPlainObject, isArray, hasOwn, isFunction, extend, camelize, isObject } from '@vue/shared';
2
2
  import { injectHook, ref, nextTick, findComponentPropsData, toRaw, updateProps, invalidateJob, getExposeProxy, pruneComponentPropsCache } from 'vue';
3
3
 
4
4
  const ON_READY$1 = 'onReady';
@@ -88,11 +88,6 @@ const ON_REACH_BOTTOM = 'onReachBottom';
88
88
  const ON_PULL_DOWN_REFRESH = 'onPullDownRefresh';
89
89
  const ON_ADD_TO_FAVORITES = 'onAddToFavorites';
90
90
 
91
- const customizeRE = /:/g;
92
- function customizeEvent(str) {
93
- return camelize(str.replace(customizeRE, '-'));
94
- }
95
-
96
91
  const encode = encodeURIComponent;
97
92
  function stringifyQuery(obj, encodeStr = encode) {
98
93
  const res = obj
@@ -837,10 +832,14 @@ function initCreatePage(parseOptions) {
837
832
 
838
833
  const MPPage = Page;
839
834
  const MPComponent = Component;
835
+ const customizeRE = /:/g;
836
+ function customize(str) {
837
+ return camelize(str.replace(customizeRE, '-'));
838
+ }
840
839
  function initTriggerEvent(mpInstance) {
841
840
  const oldTriggerEvent = mpInstance.triggerEvent;
842
841
  mpInstance.triggerEvent = function (event, ...args) {
843
- return oldTriggerEvent.apply(mpInstance, [customizeEvent(event), ...args]);
842
+ return oldTriggerEvent.apply(mpInstance, [customize(event), ...args]);
844
843
  };
845
844
  }
846
845
  function initHook(name, options, isComponent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-quickapp-webview",
3
- "version": "3.0.0-alpha-3030820220114004",
3
+ "version": "3.0.0-alpha-3030920220121001",
4
4
  "description": "uni-app quickapp-webview",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -22,13 +22,13 @@
22
22
  },
23
23
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
24
24
  "devDependencies": {
25
- "@vue/compiler-core": "3.2.27"
25
+ "@vue/compiler-core": "3.2.26"
26
26
  },
27
27
  "dependencies": {
28
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030820220114004",
29
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030820220114004",
30
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030820220114004",
31
- "@dcloudio/uni-shared": "3.0.0-alpha-3030820220114004",
32
- "@vue/shared": "3.2.27"
28
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030920220121001",
29
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030920220121001",
30
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030920220121001",
31
+ "@dcloudio/uni-shared": "3.0.0-alpha-3030920220121001",
32
+ "@vue/shared": "3.2.26"
33
33
  }
34
34
  }