@rpcbase/client 0.296.0 → 0.297.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/index.js +2 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -744,7 +744,6 @@ function requireSnakeCase() {
|
|
|
744
744
|
}
|
|
745
745
|
var snakeCaseExports = requireSnakeCase();
|
|
746
746
|
const _snakeCase = /* @__PURE__ */ getDefaultExportFromCjs(snakeCaseExports);
|
|
747
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
748
747
|
const getFeatureFlag = async (flag) => {
|
|
749
748
|
const envKey = `RB_PUBLIC_FLAG_${_snakeCase(flag).toUpperCase()}`;
|
|
750
749
|
if (env.SSR) {
|
|
@@ -776,8 +775,8 @@ const getFeatureFlag = async (flag) => {
|
|
|
776
775
|
}
|
|
777
776
|
});
|
|
778
777
|
};
|
|
779
|
-
if (
|
|
780
|
-
return
|
|
778
|
+
if (globalThis.__rb_env__[envKey] !== void 0) {
|
|
779
|
+
return globalThis.__rb_env__[envKey];
|
|
781
780
|
}
|
|
782
781
|
const startTime = performance.now();
|
|
783
782
|
const { posthog: posthog2 } = await import("posthog-js");
|