@carto/api-client 0.5.1-alpha.1 → 0.5.1

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/build/worker.js CHANGED
@@ -126,6 +126,16 @@ var _InvalidColumnError = class _InvalidColumnError extends Error {
126
126
  };
127
127
  __publicField(_InvalidColumnError, "NAME", "InvalidColumnError");
128
128
  var InvalidColumnError = _InvalidColumnError;
129
+ function assignOptional(target, ...sources) {
130
+ for (const source2 of sources) {
131
+ for (const key in source2) {
132
+ if (source2[key] !== void 0) {
133
+ target[key] = source2[key];
134
+ }
135
+ }
136
+ }
137
+ return target;
138
+ }
129
139
 
130
140
  // src/utils/makeIntervalComplete.ts
131
141
  function makeIntervalComplete(intervals) {
@@ -6167,8 +6177,7 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
6167
6177
  return;
6168
6178
  }
6169
6179
  this._features = tileFeatures({
6170
- ...this.props,
6171
- ...this._tileFeatureExtractOptions,
6180
+ ...assignOptional({}, this.props, this._tileFeatureExtractOptions),
6172
6181
  tiles: this._tiles,
6173
6182
  spatialFilter
6174
6183
  });
@@ -6321,6 +6330,9 @@ var WidgetTilesetSourceImpl = class extends WidgetSource {
6321
6330
  return { rows: [], totalCount: 0 };
6322
6331
  }
6323
6332
  if (searchFilterColumn && searchFilterText) {
6333
+ console.warn(
6334
+ 'WidgetTilesetSource: "searchFilterText" is deprecated, use "filters" and FilterType.STRING_SEARCH instead.'
6335
+ );
6324
6336
  filteredFeatures = filteredFeatures.filter(
6325
6337
  (row) => row[searchFilterColumn] && String(row[searchFilterColumn]).toLowerCase().includes(String(searchFilterText).toLowerCase())
6326
6338
  );