@final-commerce/common 2.1.3 → 2.1.4

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
@@ -1852,20 +1852,12 @@ function conditionMetLines(config, from, to, context) {
1852
1852
  }
1853
1853
  function getAvailableTransitions(current, config, context) {
1854
1854
  const candidates = [];
1855
- for (const s of config.paymentStates) {
1856
- if (s.id === current.payment) continue;
1857
- candidates.push({ payment: s.id, fulfillment: current.fulfillment });
1858
- }
1859
1855
  for (const s of config.fulfillmentStates) {
1860
1856
  if (s.id === current.fulfillment) continue;
1861
1857
  candidates.push({ payment: current.payment, fulfillment: s.id });
1862
1858
  }
1863
1859
  const out = [];
1864
- const seen = /* @__PURE__ */ new Set();
1865
1860
  for (const to of candidates) {
1866
- const key = `${to.payment}:${to.fulfillment}`;
1867
- if (seen.has(key)) continue;
1868
- seen.add(key);
1869
1861
  const result = canTransition({
1870
1862
  from: current,
1871
1863
  to,