@dcloudio/uni-quickapp-webview 3.0.0-alpha-3030820220114009 → 3.0.0-alpha-3031120220221001

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/dist/uni.mp.esm.js +15 -15
  2. package/package.json +7 -7
@@ -93,6 +93,20 @@ function customizeEvent(str) {
93
93
  return camelize(str.replace(customizeRE, '-'));
94
94
  }
95
95
 
96
+ function hasLeadingSlash(str) {
97
+ return str.indexOf('/') === 0;
98
+ }
99
+ function addLeadingSlash(str) {
100
+ return hasLeadingSlash(str) ? str : '/' + str;
101
+ }
102
+ const invokeArrayFns = (fns, arg) => {
103
+ let ret;
104
+ for (let i = 0; i < fns.length; i++) {
105
+ ret = fns[i](arg);
106
+ }
107
+ return ret;
108
+ };
109
+
96
110
  const encode = encodeURIComponent;
97
111
  function stringifyQuery(obj, encodeStr = encode) {
98
112
  const res = obj
@@ -113,20 +127,6 @@ function stringifyQuery(obj, encodeStr = encode) {
113
127
  return res ? `?${res}` : '';
114
128
  }
115
129
 
116
- function hasLeadingSlash(str) {
117
- return str.indexOf('/') === 0;
118
- }
119
- function addLeadingSlash(str) {
120
- return hasLeadingSlash(str) ? str : '/' + str;
121
- }
122
- const invokeArrayFns = (fns, arg) => {
123
- let ret;
124
- for (let i = 0; i < fns.length; i++) {
125
- ret = fns[i](arg);
126
- }
127
- return ret;
128
- };
129
-
130
130
  class EventChannel {
131
131
  constructor(id, events) {
132
132
  this.id = id;
@@ -1040,7 +1040,7 @@ function initLifetimes(lifetimesOptions) {
1040
1040
 
1041
1041
  const mocks = ['nodeId', 'componentName', '_componentId', 'uniquePrefix'];
1042
1042
  function isPage(mpInstance) {
1043
- return !hasOwn(mpInstance, 'ownerId');
1043
+ return !!mpInstance.methods.onLoad;
1044
1044
  }
1045
1045
 
1046
1046
  function initRelation(mpInstance) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-quickapp-webview",
3
- "version": "3.0.0-alpha-3030820220114009",
3
+ "version": "3.0.0-alpha-3031120220221001",
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.30"
25
+ "@vue/compiler-core": "3.2.31"
26
26
  },
27
27
  "dependencies": {
28
- "@dcloudio/uni-cli-shared": "3.0.0-alpha-3030820220114009",
29
- "@dcloudio/uni-mp-vite": "3.0.0-alpha-3030820220114009",
30
- "@dcloudio/uni-mp-vue": "3.0.0-alpha-3030820220114009",
31
- "@dcloudio/uni-shared": "3.0.0-alpha-3030820220114009",
32
- "@vue/shared": "3.2.30"
28
+ "@dcloudio/uni-cli-shared": "3.0.0-alpha-3031120220221001",
29
+ "@dcloudio/uni-mp-vite": "3.0.0-alpha-3031120220221001",
30
+ "@dcloudio/uni-mp-vue": "3.0.0-alpha-3031120220221001",
31
+ "@dcloudio/uni-shared": "3.0.0-alpha-3031120220221001",
32
+ "@vue/shared": "3.2.31"
33
33
  }
34
34
  }