zar 0.1.1 → 0.1.2

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/zar.es.js CHANGED
@@ -4152,8 +4152,12 @@ function zar({ apiUrl, poolConfig }) {
4152
4152
  if ("search" in payload.properties) {
4153
4153
  delete payload.properties["search"];
4154
4154
  }
4155
- if (config2.poolConfig && config2.poolConfig.poolId) {
4156
- payload.properties.pool_id = getPoolId(config2.poolConfig.poolId);
4155
+ var pcfg = config2.poolConfig;
4156
+ if (pcfg && pcfg.poolId) {
4157
+ payload.properties.pool_id = getPoolId(pcfg.poolId);
4158
+ if (pcfg.contextCallback) {
4159
+ payload.properties.pool_context = pcfg.contextCallback() || {};
4160
+ }
4157
4161
  }
4158
4162
  return payload;
4159
4163
  },