@carto/api-client 0.5.1-alpha.1 → 0.5.1-alpha.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/build/api-client.cjs +11 -2
- package/build/api-client.cjs.map +1 -1
- package/build/api-client.d.cts +2 -0
- package/build/api-client.d.ts +2 -0
- package/build/api-client.js +11 -2
- package/build/api-client.js.map +1 -1
- package/build/worker.js +11 -2
- package/build/worker.js.map +1 -1
- package/package.json +1 -1
- package/src/filters/tileFeatures.ts +2 -0
- package/src/utils.ts +27 -0
- package/src/widget-sources/widget-tileset-source-impl.ts +7 -3
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
|
});
|