@resolveio/server-lib 22.3.226 → 22.3.227
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/package.json
CHANGED
|
@@ -1738,8 +1738,10 @@ function buildResolveIORunnerQaLiveDataSeederScript() {
|
|
|
1738
1738
|
' const start = Math.max(0, match.index - 120);',
|
|
1739
1739
|
' const end = Math.min(text.length, match.index + 144);',
|
|
1740
1740
|
' const around = text.slice(start, end);',
|
|
1741
|
-
'
|
|
1742
|
-
'
|
|
1741
|
+
' const before = text.slice(Math.max(0, match.index - 48), match.index);',
|
|
1742
|
+
' const after = text.slice(match.index, Math.min(text.length, match.index + 72));',
|
|
1743
|
+
' if (/\\b(id_yard|yard\\s*id)\\b/i.test(before)) { yardIds.add(String(match[0]).toLowerCase()); continue; }',
|
|
1744
|
+
' if (/\\b(id_part|part\\s*id|affected\\s+part)\\b/i.test(before + after)) partIds.add(String(match[0]).toLowerCase());',
|
|
1743
1745
|
' }',
|
|
1744
1746
|
' }',
|
|
1745
1747
|
' return { partIds: Array.from(partIds).slice(0, 16), yardIds: Array.from(yardIds).slice(0, 16), dayKeys: Array.from(dayKeys).slice(0, 12) };',
|
|
@@ -1840,7 +1842,10 @@ function buildResolveIORunnerQaLiveDataSeederScript() {
|
|
|
1840
1842
|
' if (/^(true|1|yes|on)$/i.test(explicit)) return true;',
|
|
1841
1843
|
' if (/^(false|0|no|off)$/i.test(explicit)) return false;',
|
|
1842
1844
|
' const text = readSeedHintText();',
|
|
1843
|
-
'
|
|
1845
|
+
' const billingSurface = /\\b(invoice|invoicing|billing|billable|tax|taxes|surcharge|checkout|check\\s*out|pick\\s*ticket)\\b/i.test(text);',
|
|
1846
|
+
' if (billingSurface) return true;',
|
|
1847
|
+
' if (shouldSeedPartInventorySnapshotContext()) return false;',
|
|
1848
|
+
' return /\\binventory\\b/i.test(text);',
|
|
1844
1849
|
'}',
|
|
1845
1850
|
'',
|
|
1846
1851
|
'function shouldSeedPricingImportFixtures() {',
|