@manyducks.co/dolla 1.0.0 → 1.1.0

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
@@ -115,7 +115,6 @@ var CrashCollector = class {
115
115
  for (const callback of this.#errorCallbacks) {
116
116
  callback(ctx);
117
117
  }
118
- throw error;
119
118
  }
120
119
  /**
121
120
  * Reports a recoverable error.
@@ -718,12 +717,12 @@ function createSignal(initialValue, options) {
718
717
  };
719
718
  }
720
719
  };
721
- function setValue(next) {
720
+ function setValue(action) {
722
721
  let value;
723
- if (typeof next === "function") {
724
- value = next(currentValue);
722
+ if (typeof action === "function") {
723
+ value = action(currentValue);
725
724
  } else {
726
- value = next;
725
+ value = action;
727
726
  }
728
727
  if (!equal(value, currentValue)) {
729
728
  currentValue = value;
@@ -1926,11 +1925,11 @@ function _assertPropTypes(props) {
1926
1925
  }
1927
1926
  }
1928
1927
  for (const key in props) {
1929
- if (key.startsWith("$$")) {
1928
+ if (key.startsWith("$$") && props[key] !== void 0) {
1930
1929
  if (!isSettableSignal(props[key])) {
1931
1930
  throw new TypeError(`Prop '${key}' is named as a SettableSignal but value is not. Got: ${props[key]}`);
1932
1931
  }
1933
- } else if (key.startsWith("$")) {
1932
+ } else if (key.startsWith("$") && props[key] !== void 0) {
1934
1933
  if (!isSignal(props[key])) {
1935
1934
  throw new TypeError(`Prop '${key}' is named as a Signal but value is not. Got: ${props[key]}`);
1936
1935
  }