@configdirector/nuxt-sdk 0.9.2 → 0.9.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 +1 -1
- package/dist/runtime/nitro/plugin.mjs +6362 -108
- package/dist/runtime/plugin.client.mjs +9 -6
- package/package.json +1 -1
|
@@ -753,12 +753,15 @@ var PollingTransport = class extends AbstractPollingTransport {
|
|
|
753
753
|
}
|
|
754
754
|
async connect(context, timeout) {
|
|
755
755
|
this.clearPollingInterval();
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
756
|
+
try {
|
|
757
|
+
await this.fetchConfigs(context, timeout);
|
|
758
|
+
} finally {
|
|
759
|
+
if (!this.fatalError) this.schedulePollingInterval(() => {
|
|
760
|
+
this.fetchConfigs(context, timeout).catch((error) => {
|
|
761
|
+
this.logger.error("[PollingTransport] Error during polling:", error);
|
|
762
|
+
});
|
|
760
763
|
});
|
|
761
|
-
}
|
|
764
|
+
}
|
|
762
765
|
return this;
|
|
763
766
|
}
|
|
764
767
|
async fetchConfigs(context, timeout) {
|
|
@@ -1308,7 +1311,7 @@ var plugin_client_default = defineNuxtPlugin((nuxtApp) => {
|
|
|
1308
1311
|
const { clientSdkKey, appName, appVersion, baseUrl } = runtimeConfig.public.configdirector;
|
|
1309
1312
|
const client = createBrowserClient(clientSdkKey, {
|
|
1310
1313
|
sdkName: "nuxt-sdk",
|
|
1311
|
-
sdkVersion: "0.9.
|
|
1314
|
+
sdkVersion: "0.9.5"
|
|
1312
1315
|
}, {
|
|
1313
1316
|
metadata: {
|
|
1314
1317
|
appName,
|
package/package.json
CHANGED