@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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1144,8 +1144,8 @@ var ContextRegistrationBuffer = class {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
this._seen.set(cacheKey, ctx.attributes);
|
|
1146
1146
|
this._pending.push({
|
|
1147
|
-
|
|
1148
|
-
|
|
1147
|
+
id: `${ctx.type}:${ctx.key}`,
|
|
1148
|
+
name: ctx.name ?? ctx.key,
|
|
1149
1149
|
attributes: { ...ctx.attributes }
|
|
1150
1150
|
});
|
|
1151
1151
|
}
|
|
@@ -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.
|
|
1650
|
+
await this._transport.post(`${APP_BASE_URL}/api/v1/contexts/bulk`, {
|
|
1651
1651
|
contexts: batch
|
|
1652
1652
|
});
|
|
1653
1653
|
} catch {
|