@configdirector/nuxt-sdk 1.6.1 → 1.7.0
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
|
@@ -7143,9 +7143,8 @@ var ConfigEvaluator = class {
|
|
|
7143
7143
|
}
|
|
7144
7144
|
}
|
|
7145
7145
|
explainPercentage(percentages, config, context, explanation) {
|
|
7146
|
-
const
|
|
7147
|
-
const
|
|
7148
|
-
const assignedPercentage = assignPercentage({
|
|
7146
|
+
const identifier = context?.context?.id ?? void 0;
|
|
7147
|
+
const assignedPercentage = identifier === void 0 ? 0 : assignPercentage({
|
|
7149
7148
|
configId: config.id,
|
|
7150
7149
|
contextIdentifier: identifier
|
|
7151
7150
|
});
|
|
@@ -7165,7 +7164,7 @@ var ConfigEvaluator = class {
|
|
|
7165
7164
|
}
|
|
7166
7165
|
explanation.bucket = {
|
|
7167
7166
|
identifier,
|
|
7168
|
-
|
|
7167
|
+
defaultedToPredefinedBucket: identifier === void 0,
|
|
7169
7168
|
assignedPercentage,
|
|
7170
7169
|
shares,
|
|
7171
7170
|
selectedPercentageId: selected?.id
|
|
@@ -8081,7 +8080,7 @@ var plugin_default = defineNitroPlugin((nitroApp) => {
|
|
|
8081
8080
|
const { serverSdkKey, baseUrl, connection } = runtimeConfig.configdirector;
|
|
8082
8081
|
const client = new DefaultConfigDirectorClient(serverSdkKey, {
|
|
8083
8082
|
sdkName: "nuxt-sdk",
|
|
8084
|
-
sdkVersion: "1.
|
|
8083
|
+
sdkVersion: "1.7.0"
|
|
8085
8084
|
}, {
|
|
8086
8085
|
logger,
|
|
8087
8086
|
connection: {
|
|
@@ -1482,7 +1482,7 @@ var plugin_client_default = defineNuxtPlugin((nuxtApp) => {
|
|
|
1482
1482
|
const { clientSdkKey, appName, appVersion, baseUrl } = runtimeConfig.public.configdirector;
|
|
1483
1483
|
const client = createBrowserClient(clientSdkKey, {
|
|
1484
1484
|
sdkName: "nuxt-sdk",
|
|
1485
|
-
sdkVersion: "1.
|
|
1485
|
+
sdkVersion: "1.7.0"
|
|
1486
1486
|
}, {
|
|
1487
1487
|
metadata: {
|
|
1488
1488
|
appName,
|
package/package.json
CHANGED