@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.js CHANGED
@@ -1647,7 +1647,7 @@ var FlagsClient = class {
1647
1647
  const batch = this._contextBuffer.drain();
1648
1648
  if (batch.length === 0) return;
1649
1649
  try {
1650
- await this._transport.put(`${APP_BASE_URL}/api/v1/contexts/bulk`, {
1650
+ await this._transport.post(`${APP_BASE_URL}/api/v1/contexts/bulk`, {
1651
1651
  contexts: batch
1652
1652
  });
1653
1653
  } catch {
@@ -1931,7 +1931,7 @@ var SmplClient = class {
1931
1931
  async _registerServiceContext() {
1932
1932
  try {
1933
1933
  await fetch(`${APP_BASE_URL2}/api/v1/contexts/bulk`, {
1934
- method: "PUT",
1934
+ method: "POST",
1935
1935
  headers: {
1936
1936
  Authorization: `Bearer ${this._apiKey}`,
1937
1937
  "Content-Type": "application/json"