Skip to content

Commit ddb14b3

Browse files
Anton LillebyAnton Lilleby
authored andcommitted
feat: make label optional
1 parent af1e2a0 commit ddb14b3

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const featureFlagsManager = inject(FeatureFlagsManagerKey);
4343

4444
onMounted(async () => {
4545
if (featureFlagsManager) {
46-
isFeatureEnabled.value = await featureFlagsManager.getFeaturedFlag('your-feature-flag-name');
46+
isFeatureEnabled.value = await featureFlagsManager.getFeatureFlag('your-feature-flag-name');
4747
}
4848
});
4949
</script>

dist/index.d.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { InjectionKey, App } from 'vue';
22

33
interface FeatureFlagsManager {
4-
getFeaturedFlag(name: string, label?: string): Promise<boolean>;
4+
getFeatureFlag(name: string, label?: string): Promise<boolean>;
55
}
66
declare const FeatureFlagsManagerKey: InjectionKey<FeatureFlagsManager>;
77
declare function AppConfigurationPlugin(app: App, connectionString?: string): void;

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { InjectionKey, App } from 'vue';
22

33
interface FeatureFlagsManager {
4-
getFeaturedFlag(name: string, label?: string): Promise<boolean>;
4+
getFeatureFlag(name: string, label?: string): Promise<boolean>;
55
}
66
declare const FeatureFlagsManagerKey: InjectionKey<FeatureFlagsManager>;
77
declare function AppConfigurationPlugin(app: App, connectionString?: string): void;

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var featureFlagsManager = (connectionString) => {
3232
client = new AppConfigurationClient(connectionString);
3333
}
3434
return {
35-
getFeaturedFlag(name, label = "default") {
35+
getFeatureFlag(name, label) {
3636
return __async(this, null, function* () {
3737
if (!client) {
3838
console.warn(

dist/index.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-app-configuration",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "A Vue 3 plugin for integrating Azure App Configuration, including feature flags management.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "@azure/app-configuration";
88

99
interface FeatureFlagsManager {
10-
getFeaturedFlag(name: string, label?: string): Promise<boolean>;
10+
getFeatureFlag(name: string, label?: string): Promise<boolean>;
1111
}
1212

1313
const featureFlagsManager = (
@@ -20,7 +20,7 @@ const featureFlagsManager = (
2020
}
2121

2222
return {
23-
async getFeaturedFlag(name: string, label = "default") {
23+
async getFeatureFlag(name: string, label?: string) {
2424
if (!client) {
2525
console.warn(
2626
"[App Configuration Plugin] AppConfigurationClient is not initialized."

0 commit comments

Comments
 (0)