@smplkit/sdk 1.2.5 → 1.2.7

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
@@ -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 {
@@ -1988,7 +1988,7 @@ var SmplClient = class {
1988
1988
  async _registerServiceContext() {
1989
1989
  try {
1990
1990
  await fetch(`${APP_BASE_URL2}/api/v1/contexts/bulk`, {
1991
- method: "PUT",
1991
+ method: "POST",
1992
1992
  headers: {
1993
1993
  Authorization: `Bearer ${this._apiKey}`,
1994
1994
  "Content-Type": "application/json"