@shwfed/config 1.1.4 → 1.1.5
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/module.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { injectLocal, provideLocal } from "@vueuse/core";
|
|
2
|
-
import { defu } from "defu";
|
|
3
2
|
const CEL_CONTEXT_KEY = Symbol("cel-context");
|
|
4
3
|
export function provideCELContext(context) {
|
|
5
4
|
const parent = injectLocal(CEL_CONTEXT_KEY, {});
|
|
6
|
-
provideLocal(CEL_CONTEXT_KEY,
|
|
5
|
+
provideLocal(CEL_CONTEXT_KEY, { ...parent, ...context });
|
|
7
6
|
}
|
|
8
7
|
export function injectCELContext() {
|
|
9
8
|
return injectLocal(CEL_CONTEXT_KEY, {});
|