@configdirector/nuxt-sdk 1.13.1 → 1.13.2
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.d.mts
CHANGED
|
@@ -188,11 +188,12 @@ interface ConfigDirectorPublicRuntimeConfig {
|
|
|
188
188
|
*/
|
|
189
189
|
clientSdkKey?: string;
|
|
190
190
|
/**
|
|
191
|
-
* Your app's name.
|
|
191
|
+
* Your app's name. Both the browser and the server send it, so ConfigDirector targeting rules can use it.
|
|
192
192
|
*/
|
|
193
193
|
appName?: string;
|
|
194
194
|
/**
|
|
195
|
-
* Your app's version.
|
|
195
|
+
* Your app's version. Both the browser and the server send it, so ConfigDirector targeting rules can
|
|
196
|
+
* use it.
|
|
196
197
|
*
|
|
197
198
|
* This can be a semver value or an arbitrary string (like a commit hash).
|
|
198
199
|
*/
|
package/dist/module.json
CHANGED
|
@@ -8467,6 +8467,7 @@ var plugin_default = defineNitroPlugin((nitroApp) => {
|
|
|
8467
8467
|
const runtimeConfig = useRuntimeConfig();
|
|
8468
8468
|
const logger = createDefaultLogger(runtimeConfig.configdirector?.logLevel);
|
|
8469
8469
|
const { serverSdkKey, baseUrl, connection } = runtimeConfig.configdirector;
|
|
8470
|
+
const { appName, appVersion } = runtimeConfig.public.configdirector;
|
|
8470
8471
|
const connectionMode = connection?.mode || "streaming";
|
|
8471
8472
|
if (connectionMode !== "offline" && !serverSdkKey) {
|
|
8472
8473
|
const message = "The ConfigDirector serverSdkKey must be configured for the plugin to initialize. You can provide it in nuxt.config.ts under 'runtimeConfig.configdirector.serverSdkKey' or as a runtime environment variable named NUXT_CONFIGDIRECTOR_SERVER_SDK_KEY";
|
|
@@ -8476,9 +8477,13 @@ var plugin_default = defineNitroPlugin((nitroApp) => {
|
|
|
8476
8477
|
logger.debug("Initializing ConfigDirector Nitro plugin");
|
|
8477
8478
|
const client = new DefaultConfigDirectorClient(serverSdkKey || void 0, {
|
|
8478
8479
|
sdkName: "nuxt-sdk",
|
|
8479
|
-
sdkVersion: "1.13.
|
|
8480
|
+
sdkVersion: "1.13.2"
|
|
8480
8481
|
}, {
|
|
8481
8482
|
logger,
|
|
8483
|
+
metadata: {
|
|
8484
|
+
appName,
|
|
8485
|
+
appVersion
|
|
8486
|
+
},
|
|
8482
8487
|
connection: {
|
|
8483
8488
|
url: baseUrl || void 0,
|
|
8484
8489
|
mode: connectionMode,
|
|
@@ -2386,7 +2386,7 @@ const buildClient = async (configdirector, logger) => {
|
|
|
2386
2386
|
return {
|
|
2387
2387
|
client: createBrowserClient(configdirector?.clientSdkKey || void 0, {
|
|
2388
2388
|
sdkName: "nuxt-sdk",
|
|
2389
|
-
sdkVersion: "1.13.
|
|
2389
|
+
sdkVersion: "1.13.2"
|
|
2390
2390
|
}, {
|
|
2391
2391
|
metadata: {
|
|
2392
2392
|
appName: configdirector?.appName,
|
package/dist/testing.mjs
CHANGED
package/package.json
CHANGED