@smplkit/sdk 1.2.5 → 1.2.6

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.cjs CHANGED
@@ -1201,8 +1201,8 @@ var ContextRegistrationBuffer = class {
1201
1201
  }
1202
1202
  this._seen.set(cacheKey, ctx.attributes);
1203
1203
  this._pending.push({
1204
- type: ctx.type,
1205
- key: ctx.key,
1204
+ id: `${ctx.type}:${ctx.key}`,
1205
+ name: ctx.name ?? ctx.key,
1206
1206
  attributes: { ...ctx.attributes }
1207
1207
  });
1208
1208
  }
@@ -1704,7 +1704,7 @@ var FlagsClient = class {
1704
1704
  const batch = this._contextBuffer.drain();
1705
1705
  if (batch.length === 0) return;
1706
1706
  try {
1707
- await this._transport.put(`${APP_BASE_URL}/api/v1/contexts/bulk`, {
1707
+ await this._transport.post(`${APP_BASE_URL}/api/v1/contexts/bulk`, {
1708
1708
  contexts: batch
1709
1709
  });
1710
1710
  } catch {