@unleash/proxy-client-vue 0.0.6 → 0.0.7-beta.1
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/env.d.ts +1 -1
- package/dist/index.es.js +10 -2
- package/dist/plugin.d.ts +1 -1
- package/dist/useFlag.d.ts +1 -1
- package/dist/useUnleashProvide.d.ts +2 -2
- package/package.json +13 -3
package/dist/env.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="vite/client" />
|
|
2
2
|
|
|
3
3
|
declare module '*.vue' {
|
|
4
|
-
import type { DefineComponent } from 'vue'
|
|
4
|
+
import type { DefineComponent } from 'vue-demi'
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
6
6
|
const component: DefineComponent<{}, {}, any>
|
|
7
7
|
export default component
|
package/dist/index.es.js
CHANGED
|
@@ -1561,7 +1561,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1561
1561
|
unleashClient,
|
|
1562
1562
|
startClient = true
|
|
1563
1563
|
} = __props;
|
|
1564
|
-
const { context, start, update } = useUnleashProvide({
|
|
1564
|
+
const { context, start, update } = useUnleashProvide({
|
|
1565
|
+
config,
|
|
1566
|
+
unleashClient,
|
|
1567
|
+
startClient
|
|
1568
|
+
});
|
|
1565
1569
|
provide(ContextStateSymbol, context);
|
|
1566
1570
|
provide(ContextUpdateSymbol, update);
|
|
1567
1571
|
onMounted(() => {
|
|
@@ -1626,7 +1630,11 @@ const useUnleashClient = () => {
|
|
|
1626
1630
|
};
|
|
1627
1631
|
const plugin = {
|
|
1628
1632
|
install(app, { config, unleashClient, startClient }) {
|
|
1629
|
-
const { context, update, start } = useUnleashProvide({
|
|
1633
|
+
const { context, update, start } = useUnleashProvide({
|
|
1634
|
+
config,
|
|
1635
|
+
unleashClient,
|
|
1636
|
+
startClient
|
|
1637
|
+
});
|
|
1630
1638
|
app.provide(ContextStateSymbol, context);
|
|
1631
1639
|
app.provide(ContextUpdateSymbol, update);
|
|
1632
1640
|
start();
|
package/dist/plugin.d.ts
CHANGED
package/dist/useFlag.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const useFlag: (name: string) => import("vue").Ref<boolean>;
|
|
1
|
+
declare const useFlag: (name: string) => import("vue-demi").Ref<boolean>;
|
|
2
2
|
export default useFlag;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { UnleashClient, IConfig } from
|
|
1
|
+
import { UnleashClient, IConfig } from 'unleash-proxy-client';
|
|
2
2
|
export interface IProvideOptions {
|
|
3
3
|
config?: IConfig;
|
|
4
4
|
unleashClient?: UnleashClient;
|
|
5
5
|
startClient?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare function useUnleashProvide({ config, unleashClient, startClient }: IProvideOptions): {
|
|
8
|
-
context: import("vue").ToRefs<{
|
|
8
|
+
context: import("vue-demi").ToRefs<{
|
|
9
9
|
[key: string]: any;
|
|
10
10
|
}>;
|
|
11
11
|
update: (property: string, value: any) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unleash/proxy-client-vue",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7-beta.1",
|
|
4
4
|
"description": "Vue interface for working with Unleash",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -28,7 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"unleash-proxy-client": "^2.1.0",
|
|
31
|
-
"vue": "^
|
|
31
|
+
"vue-demi": "^0.13.11"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@vue/composition-api": "^1.0.0-rc.1",
|
|
35
|
+
"vue": "^2.0.0 || >=3.0.0"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"@vue/composition-api": {
|
|
39
|
+
"optional": true
|
|
40
|
+
}
|
|
32
41
|
},
|
|
33
42
|
"devDependencies": {
|
|
34
43
|
"@types/node": "^17.0.24",
|
|
@@ -36,6 +45,7 @@
|
|
|
36
45
|
"typescript": "^4.5.4",
|
|
37
46
|
"vite": "^2.9.2",
|
|
38
47
|
"vite-plugin-dts": "^1.6.4",
|
|
39
|
-
"vue-tsc": "^0.29.8"
|
|
48
|
+
"vue-tsc": "^0.29.8",
|
|
49
|
+
"vue": "^3.2.25"
|
|
40
50
|
}
|
|
41
51
|
}
|