@datawheel/bespoke 0.3.15 → 0.3.16
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 +2 -1
- package/dist/server.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -908,7 +908,8 @@ var init_valueInOptions = __esm({
|
|
|
908
908
|
if (type === SELECTOR_TYPES.SINGLE) {
|
|
909
909
|
return options.find((obj) => obj.id === value);
|
|
910
910
|
}
|
|
911
|
-
|
|
911
|
+
const multiValue = Array.isArray(value) ? value : value.split(",");
|
|
912
|
+
return Array.isArray(multiValue) && multiValue.every((d) => options.map((o) => o.id).includes(d));
|
|
912
913
|
};
|
|
913
914
|
}
|
|
914
915
|
});
|
package/dist/server.js
CHANGED
|
@@ -4222,7 +4222,8 @@ var valueInOptions_default = (type, value, options) => {
|
|
|
4222
4222
|
if (type === SELECTOR_TYPES.SINGLE) {
|
|
4223
4223
|
return options.find((obj) => obj.id === value);
|
|
4224
4224
|
}
|
|
4225
|
-
|
|
4225
|
+
const multiValue = Array.isArray(value) ? value : value.split(",");
|
|
4226
|
+
return Array.isArray(multiValue) && multiValue.every((d) => options.map((o) => o.id).includes(d));
|
|
4226
4227
|
};
|
|
4227
4228
|
|
|
4228
4229
|
// libs/selectors/runSelector.js
|