@pie-element/shared-feedback 0.1.3-next.20261006160832 → 0.1.3-next.20261019151920

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -46,11 +46,7 @@ function r(e, t = {}) {
46
46
  }
47
47
  function i(e, t) {
48
48
  return new Promise((n) => {
49
- if (!e || e.type === "none") {
50
- n(void 0);
51
- return;
52
- }
53
- n(e[e.type] || t);
49
+ !e || e.type === "none" ? n(void 0) : n(e[e.type] || t);
54
50
  });
55
51
  }
56
52
  function a(e, t = {}) {
@@ -58,7 +54,7 @@ function a(e, t = {}) {
58
54
  return o(r, i);
59
55
  }
60
56
  function o(e, t) {
61
- if (!(!e || e.type === "none")) return e[e.type] || t;
57
+ if (e && e.type !== "none") return e[e.type] || t;
62
58
  }
63
59
  //#endregion
64
60
  export { e as defaultFeedback, o as getActualFeedback, a as getActualFeedbackForCorrectness, i as getFeedback, r as getFeedbackForCorrectness, t as normalizeCorrectness };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/shared-feedback",
3
- "version": "0.1.3-next.20261006160832",
3
+ "version": "0.1.3-next.20261019151920",
4
4
  "description": "Feedback utilities for PIE elements",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",