wevu 6.11.4 → 6.11.6
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.
- package/dist/{defineProperty-JH0tR899.mjs → defineProperty-CbyrzcbA.mjs} +4 -4
- package/dist/fetch.mjs +1 -1
- package/dist/index.mjs +6 -9
- package/dist/{ref-BjmD-qct.mjs → ref-dcoErj--.mjs} +1 -1
- package/dist/{router-PqZEeqhd.mjs → router-BryV82qU.mjs} +1 -1
- package/dist/router.mjs +2 -2
- package/dist/{store-Ct-o7qtH.mjs → store-9E-bMfXJ.mjs} +1 -1
- package/dist/store.mjs +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -8,7 +8,7 @@ function _typeof(o) {
|
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/toPrimitive.js
|
|
12
12
|
function toPrimitive(t, r) {
|
|
13
13
|
if ("object" != _typeof(t) || !t) return t;
|
|
14
14
|
var e = t[Symbol.toPrimitive];
|
|
@@ -20,13 +20,13 @@ function toPrimitive(t, r) {
|
|
|
20
20
|
return ("string" === r ? String : Number)(t);
|
|
21
21
|
}
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region \0@oxc-project+runtime@0.
|
|
23
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/toPropertyKey.js
|
|
24
24
|
function toPropertyKey(t) {
|
|
25
25
|
var i = toPrimitive(t, "string");
|
|
26
26
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
-
//#region \0@oxc-project+runtime@0.
|
|
29
|
+
//#region \0@oxc-project+runtime@0.122.0/helpers/defineProperty.js
|
|
30
30
|
function _defineProperty(e, r, t) {
|
|
31
31
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
32
32
|
value: t,
|
package/dist/fetch.mjs
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as track, C as effect, D as onScopeDispose, E as getCurrentScope, M as triggerEffects, N as nextTick, O as startBatch, P as queueJob, S as batch, T as endBatch, _ as ReactiveFlags, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, j as trigger, k as stop, l as isReactive, m as clearPatchIndices, n as isRef, o as unref, p as shallowReactive, r as markAsRef, s as getReactiveVersion, t as customRef, u as markRaw, v as isObject$1, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-
|
|
2
|
-
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-
|
|
3
|
-
import { A as onUnhandledRejection, B as getMiniProgramGlobalObject, C as onRouteDone, D as onShow, E as onShareTimeline, F as getCurrentInstance, H as readonly, I as getCurrentSetupContext, L as pushHook, M as assertInSetup, N as callHookList, O as onTabItemTap, P as callHookReturn, R as setCurrentInstance, S as onResize, T as onShareAppMessage, U as shallowReadonly, V as getScopedSlotHostGlobalObject, _ as onPageNotFound, a as injectGlobal, b as onReachBottom, c as onAddToFavorites, d as onError, f as onHide, g as onMoved, h as onMemoryWarning, i as inject, j as onUnload, k as onThemeChange, l as onAttached, m as onLoad, n as useNativeRouter, o as provide, p as onLaunch, r as hasInjectionContext, s as provideGlobal, t as useNativePageRouter, u as onDetached, v as onPageScroll, w as onSaveExitState, x as onReady, y as onPullDownRefresh, z as setCurrentSetupContext } from "./router-
|
|
1
|
+
import { A as track, C as effect, D as onScopeDispose, E as getCurrentScope, M as triggerEffects, N as nextTick, O as startBatch, P as queueJob, S as batch, T as endBatch, _ as ReactiveFlags, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, j as trigger, k as stop, l as isReactive, m as clearPatchIndices, n as isRef, o as unref, p as shallowReactive, r as markAsRef, s as getReactiveVersion, t as customRef, u as markRaw, v as isObject$1, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-dcoErj--.mjs";
|
|
2
|
+
import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-9E-bMfXJ.mjs";
|
|
3
|
+
import { A as onUnhandledRejection, B as getMiniProgramGlobalObject, C as onRouteDone, D as onShow, E as onShareTimeline, F as getCurrentInstance, H as readonly, I as getCurrentSetupContext, L as pushHook, M as assertInSetup, N as callHookList, O as onTabItemTap, P as callHookReturn, R as setCurrentInstance, S as onResize, T as onShareAppMessage, U as shallowReadonly, V as getScopedSlotHostGlobalObject, _ as onPageNotFound, a as injectGlobal, b as onReachBottom, c as onAddToFavorites, d as onError, f as onHide, g as onMoved, h as onMemoryWarning, i as inject, j as onUnload, k as onThemeChange, l as onAttached, m as onLoad, n as useNativeRouter, o as provide, p as onLaunch, r as hasInjectionContext, s as provideGlobal, t as useNativePageRouter, u as onDetached, v as onPageScroll, w as onSaveExitState, x as onReady, y as onPullDownRefresh, z as setCurrentSetupContext } from "./router-BryV82qU.mjs";
|
|
4
4
|
//#region src/reactivity/shallowRef.ts
|
|
5
5
|
/**
|
|
6
6
|
* 创建一个“浅层” ref:它只在 .value 被整体替换时触发依赖,不会对内部对象做深层响应式处理。
|
|
@@ -3913,8 +3913,7 @@ function resolveDeclaredLayoutHostFromRefs(binding, context) {
|
|
|
3913
3913
|
}
|
|
3914
3914
|
function createDeclaredLayoutHostBridge(bindings, context) {
|
|
3915
3915
|
const nativeContext = resolveNativeLayoutContext(context);
|
|
3916
|
-
|
|
3917
|
-
return Object.assign(bridgeBase, { selectComponent(key) {
|
|
3916
|
+
return Object.assign(nativeContext && typeof nativeContext === "object" ? Object.create(nativeContext) : {}, { selectComponent(key) {
|
|
3918
3917
|
const binding = findLayoutHostBinding(bindings, key);
|
|
3919
3918
|
if (!binding) return null;
|
|
3920
3919
|
if (binding.kind === "component" || !binding.kind) {
|
|
@@ -4012,8 +4011,7 @@ function useLayoutBridge(selectors, options = {}) {
|
|
|
4012
4011
|
const normalizedSelectors = normalizeSelectors(selectors);
|
|
4013
4012
|
const resolveComponent = options.resolveComponent;
|
|
4014
4013
|
const nativeContext = resolveNativeLayoutContext(context);
|
|
4015
|
-
const
|
|
4016
|
-
const bridge = Object.assign(bridgeBase, { selectComponent(selector) {
|
|
4014
|
+
const bridge = Object.assign(nativeContext && typeof nativeContext === "object" ? Object.create(nativeContext) : {}, { selectComponent(selector) {
|
|
4017
4015
|
var _nativeContext$select, _currentPage$selectCo, _currentPage$selectCo2;
|
|
4018
4016
|
if (!normalizedSelectors.includes(selector)) return null;
|
|
4019
4017
|
const resolvedComponent = resolveComponent === null || resolveComponent === void 0 ? void 0 : resolveComponent(selector);
|
|
@@ -4961,8 +4959,7 @@ function usePageScrollThrottle(handler, options = {}) {
|
|
|
4961
4959
|
};
|
|
4962
4960
|
const scheduleTrailing = (now) => {
|
|
4963
4961
|
if (!trailing || trailingTimer) return;
|
|
4964
|
-
const
|
|
4965
|
-
const remaining = Math.max(0, interval - (now - base));
|
|
4962
|
+
const remaining = Math.max(0, interval - (now - (lastInvokeTime === 0 ? now : lastInvokeTime)));
|
|
4966
4963
|
trailingTimer = setTimeout(flushTrailing, remaining);
|
|
4967
4964
|
};
|
|
4968
4965
|
const scheduleMaxWait = (now) => {
|
package/dist/router.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as reactive } from "./ref-
|
|
2
|
-
import { C as onRouteDone, D as onShow, H as readonly, I as getCurrentSetupContext, a as injectGlobal, m as onLoad, n as useNativeRouter$1, s as provideGlobal, t as useNativePageRouter$1 } from "./router-
|
|
1
|
+
import { d as reactive } from "./ref-dcoErj--.mjs";
|
|
2
|
+
import { C as onRouteDone, D as onShow, H as readonly, I as getCurrentSetupContext, a as injectGlobal, m as onLoad, n as useNativeRouter$1, s as provideGlobal, t as useNativePageRouter$1 } from "./router-BryV82qU.mjs";
|
|
3
3
|
//#region src/routerInternal/path.ts
|
|
4
4
|
function normalizePathSegments(path) {
|
|
5
5
|
const segments = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as track, C as effect, d as reactive, g as touchReactive, j as trigger, l as isReactive, n as isRef, r as markAsRef, y as toRaw } from "./ref-
|
|
1
|
+
import { A as track, C as effect, d as reactive, g as touchReactive, j as trigger, l as isReactive, n as isRef, r as markAsRef, y as toRaw } from "./ref-dcoErj--.mjs";
|
|
2
2
|
//#region src/reactivity/computed.ts
|
|
3
3
|
function computed(getterOrOptions) {
|
|
4
4
|
let getter;
|
package/dist/store.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-
|
|
1
|
+
import { n as defineStore, r as createStore, t as storeToRefs } from "./store-9E-bMfXJ.mjs";
|
|
2
2
|
export { createStore, defineStore, storeToRefs };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wevu",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.11.
|
|
4
|
+
"version": "6.11.6",
|
|
5
5
|
"description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
"miniprogram-api-typings": "^5.0.0"
|
|
95
95
|
},
|
|
96
96
|
"dependencies": {
|
|
97
|
-
"vue": "^3.5.
|
|
97
|
+
"vue": "^3.5.31",
|
|
98
98
|
"@wevu/api": "0.2.2",
|
|
99
|
-
"@wevu/compiler": "6.11.
|
|
99
|
+
"@wevu/compiler": "6.11.6"
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
102
|
"dev": "tsdown -w",
|