@manyducks.co/dolla 0.69.0 → 0.69.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/lib/index.js CHANGED
@@ -715,9 +715,9 @@ function computed(...args) {
715
715
  if (typeof compute !== "function") {
716
716
  throw new TypeError(`Final argument must be a function. Got ${typeOf(compute)}: ${compute}`);
717
717
  }
718
- args = args.flat();
718
+ args = args.flat().map(readable);
719
719
  if (args.length < 1) {
720
- throw new Error(`Must pass at least one state before the callback function.`);
720
+ throw new Error(`Must pass at least one value before the callback function.`);
721
721
  }
722
722
  const readables = args;
723
723
  if (readables.length === 1) {
@@ -1318,7 +1318,7 @@ var HTML = class {
1318
1318
  } else if (isString(value)) {
1319
1319
  setProperty(key, value);
1320
1320
  } else if (isNumber(value)) {
1321
- setProperty(key, value + "px");
1321
+ setProperty(key, String(value));
1322
1322
  } else {
1323
1323
  throw new TypeError(`Style properties should be strings, $states or numbers. Got (${key}: ${value})`);
1324
1324
  }