@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 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
- return Array.isArray(value) && value.every((d) => options.map((o) => o.id).includes(d));
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
- return Array.isArray(value) && value.every((d) => options.map((o) => o.id).includes(d));
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/bespoke",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Content management system for creating automated data reports",
5
5
  "exports": {
6
6
  ".": {