@vue-mini/core 1.0.1 → 1.0.3
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/vue-mini.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vue-mini v1.0.
|
|
2
|
+
* vue-mini v1.0.3
|
|
3
3
|
* https://github.com/vue-mini/vue-mini
|
|
4
4
|
* (c) 2019-present Yang Mingshan
|
|
5
5
|
* @license MIT
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @vue/shared v3.4.
|
|
10
|
+
* @vue/shared v3.4.37
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
13
|
**/
|
|
@@ -55,7 +55,7 @@ const def = (obj, key, value, writable = false) => {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* @vue/reactivity v3.4.
|
|
58
|
+
* @vue/reactivity v3.4.37
|
|
59
59
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
60
60
|
* @license MIT
|
|
61
61
|
**/
|
|
@@ -511,7 +511,7 @@ class BaseReactiveHandler {
|
|
|
511
511
|
return isShallow2;
|
|
512
512
|
} else if (key === "__v_raw") {
|
|
513
513
|
if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
|
|
514
|
-
// this means the
|
|
514
|
+
// this means the receiver is a user proxy of the reactive proxy
|
|
515
515
|
Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
|
|
516
516
|
return target;
|
|
517
517
|
}
|
|
@@ -1712,8 +1712,8 @@ let currentComponent = null;
|
|
|
1712
1712
|
function getCurrentInstance() {
|
|
1713
1713
|
return currentPage || currentComponent;
|
|
1714
1714
|
}
|
|
1715
|
-
function setCurrentApp(
|
|
1716
|
-
currentApp =
|
|
1715
|
+
function setCurrentApp(app) {
|
|
1716
|
+
currentApp = app;
|
|
1717
1717
|
}
|
|
1718
1718
|
function unsetCurrentApp() {
|
|
1719
1719
|
currentApp = null;
|
package/dist/vue-mini.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="
|
|
1
|
+
/// <reference types="miniprogram-api-typings" />
|
|
2
2
|
import { Ref, ComputedRef, DebuggerOptions, ReactiveMarker } from '@vue/reactivity';
|
|
3
3
|
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, Reactive, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WritableComputedOptions, WritableComputedRef, computed, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vue-mini v1.0.
|
|
2
|
+
* vue-mini v1.0.3
|
|
3
3
|
* https://github.com/vue-mini/vue-mini
|
|
4
4
|
* (c) 2019-present Yang Mingshan
|
|
5
5
|
* @license MIT
|
|
@@ -426,8 +426,8 @@ let currentComponent = null;
|
|
|
426
426
|
function getCurrentInstance() {
|
|
427
427
|
return currentPage || currentComponent;
|
|
428
428
|
}
|
|
429
|
-
function setCurrentApp(
|
|
430
|
-
currentApp =
|
|
429
|
+
function setCurrentApp(app) {
|
|
430
|
+
currentApp = app;
|
|
431
431
|
}
|
|
432
432
|
function unsetCurrentApp() {
|
|
433
433
|
currentApp = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-mini/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "基于 Vue 3 的小程序框架。简单,强大,高性能。 ",
|
|
5
5
|
"main": "dist/vue-mini.cjs.js",
|
|
6
6
|
"module": "dist/vue-mini.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"小程序"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/reactivity": "3.4.
|
|
36
|
-
"
|
|
35
|
+
"@vue/reactivity": "3.4.37",
|
|
36
|
+
"miniprogram-api-typings": "^3.12.3"
|
|
37
37
|
}
|
|
38
38
|
}
|