@scalemule/nextjs 0.1.20 → 0.1.21

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.
@@ -1945,7 +1945,7 @@ var require_server = __commonJS({
1945
1945
  var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1946
1946
  var server_exports = {};
1947
1947
  __export(server_exports, {
1948
- FlagClient: () => FlagClient2,
1948
+ FlagClient: () => FlagClient,
1949
1949
  allConditionsMatch: () => allConditionsMatch,
1950
1950
  evaluateFlag: () => evaluateFlag,
1951
1951
  hashToBucket: () => hashToBucket
@@ -2197,7 +2197,7 @@ var require_server = __commonJS({
2197
2197
  bucket: null
2198
2198
  };
2199
2199
  }
2200
- var FlagClient2 = class {
2200
+ var FlagClient = class {
2201
2201
  constructor(options) {
2202
2202
  this.config = null;
2203
2203
  this.flagIndex = /* @__PURE__ */ new Map();
@@ -5197,9 +5197,6 @@ function createWebhookHandler(config = {}) {
5197
5197
  }
5198
5198
  };
5199
5199
  }
5200
-
5201
- // src/server/bootstrap-flags.ts
5202
- var import_server2 = __toESM(require_server());
5203
5200
  var _clients = /* @__PURE__ */ new Map();
5204
5201
  var _initPromises = /* @__PURE__ */ new Map();
5205
5202
  var _serverClient = null;
@@ -5227,7 +5224,8 @@ async function getFlagClient(environment) {
5227
5224
  const pending = _initPromises.get(key);
5228
5225
  if (pending) return pending;
5229
5226
  const promise = (async () => {
5230
- const client = new import_server2.FlagClient({ apiKey, environment, gatewayUrl });
5227
+ const { FlagClient } = await Promise.resolve().then(() => __toESM(require_server()));
5228
+ const client = new FlagClient({ apiKey, environment, gatewayUrl });
5231
5229
  await Promise.race([
5232
5230
  client.init(),
5233
5231
  new Promise(
@@ -1943,7 +1943,7 @@ var require_server = __commonJS({
1943
1943
  var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
1944
1944
  var server_exports = {};
1945
1945
  __export(server_exports, {
1946
- FlagClient: () => FlagClient2,
1946
+ FlagClient: () => FlagClient,
1947
1947
  allConditionsMatch: () => allConditionsMatch,
1948
1948
  evaluateFlag: () => evaluateFlag,
1949
1949
  hashToBucket: () => hashToBucket
@@ -2195,7 +2195,7 @@ var require_server = __commonJS({
2195
2195
  bucket: null
2196
2196
  };
2197
2197
  }
2198
- var FlagClient2 = class {
2198
+ var FlagClient = class {
2199
2199
  constructor(options) {
2200
2200
  this.config = null;
2201
2201
  this.flagIndex = /* @__PURE__ */ new Map();
@@ -5195,9 +5195,6 @@ function createWebhookHandler(config = {}) {
5195
5195
  }
5196
5196
  };
5197
5197
  }
5198
-
5199
- // src/server/bootstrap-flags.ts
5200
- var import_server2 = __toESM(require_server());
5201
5198
  var _clients = /* @__PURE__ */ new Map();
5202
5199
  var _initPromises = /* @__PURE__ */ new Map();
5203
5200
  var _serverClient = null;
@@ -5225,7 +5222,8 @@ async function getFlagClient(environment) {
5225
5222
  const pending = _initPromises.get(key);
5226
5223
  if (pending) return pending;
5227
5224
  const promise = (async () => {
5228
- const client = new import_server2.FlagClient({ apiKey, environment, gatewayUrl });
5225
+ const { FlagClient } = await Promise.resolve().then(() => __toESM(require_server()));
5226
+ const client = new FlagClient({ apiKey, environment, gatewayUrl });
5229
5227
  await Promise.race([
5230
5228
  client.init(),
5231
5229
  new Promise(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scalemule/nextjs",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "ScaleMule SDK for Next.js applications - authentication, storage, and user management",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",