@mailwoman/core 5.9.0 → 5.10.1
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/data/chromium-i18n/ssl-address/AC.json +2 -2
- package/data/chromium-i18n/ssl-address/AD.json +8 -8
- package/data/chromium-i18n/ssl-address/AE.json +8 -8
- package/data/chromium-i18n/ssl-address/AF.json +2 -2
- package/data/chromium-i18n/ssl-address/AG.json +1 -1
- package/data/chromium-i18n/ssl-address/AI.json +2 -2
- package/data/chromium-i18n/ssl-address/AL.json +2 -2
- package/data/chromium-i18n/ssl-address/AM.json +8 -8
- package/data/chromium-i18n/ssl-address/AO.json +1 -1
- package/data/chromium-i18n/ssl-address/AQ.json +1 -1
- package/data/chromium-i18n/ssl-address/AR.json +8 -8
- package/data/chromium-i18n/ssl-address/AS.json +6 -6
- package/data/chromium-i18n/ssl-address/AT.json +3 -3
- package/data/chromium-i18n/ssl-address/AU.json +13 -13
- package/data/chromium-i18n/ssl-address/AW.json +1 -1
- package/data/chromium-i18n/ssl-address/AX.json +4 -4
- package/data/chromium-i18n/ssl-address/AZ.json +3 -3
- package/data/chromium-i18n/ssl-address/BA.json +2 -2
- package/data/chromium-i18n/ssl-address/BB.json +3 -3
- package/data/chromium-i18n/ssl-address/BD.json +3 -3
- package/data/chromium-i18n/ssl-address/BE.json +3 -3
- package/data/chromium-i18n/ssl-address/BF.json +1 -6
- package/data/chromium-i18n/ssl-address/BG.json +3 -3
- package/data/chromium-i18n/ssl-address/BH.json +3 -3
- package/data/chromium-i18n/ssl-address/BI.json +1 -1
- package/data/chromium-i18n/ssl-address/BJ.json +1 -1
- package/data/chromium-i18n/ssl-address/BL.json +4 -4
- package/data/chromium-i18n/ssl-address/BM.json +3 -3
- package/data/chromium-i18n/ssl-address/BN.json +3 -3
- package/data/chromium-i18n/ssl-address/BO.json +1 -1
- package/data/chromium-i18n/ssl-address/BQ.json +1 -1
- package/data/chromium-i18n/ssl-address/BR.json +13 -13
- package/data/chromium-i18n/ssl-address/BS.json +5 -5
- package/data/chromium-i18n/ssl-address/BT.json +3 -3
- package/data/chromium-i18n/ssl-address/BV.json +1 -1
- package/data/chromium-i18n/ssl-address/BW.json +1 -1
- package/data/chromium-i18n/ssl-address/BY.json +4 -4
- package/data/chromium-i18n/ssl-address/BZ.json +1 -1
- package/data/chromium-i18n/ssl-address/CA.json +9 -9
- package/data/chromium-i18n/ssl-address/CC.json +3 -3
- package/data/chromium-i18n/ssl-address/CD.json +1 -1
- package/data/chromium-i18n/ssl-address/CF.json +1 -1
- package/data/chromium-i18n/ssl-address/CG.json +1 -1
- package/data/chromium-i18n/ssl-address/CH.json +5 -5
- package/data/chromium-i18n/ssl-address/CI.json +1 -6
- package/data/chromium-i18n/ssl-address/CK.json +1 -1
- package/data/chromium-i18n/ssl-address/CL.json +9 -9
- package/data/chromium-i18n/ssl-address/CM.json +1 -1
- package/data/chromium-i18n/ssl-address/CN.json +14 -14
- package/data/chromium-i18n/ssl-address/CO.json +8 -4
- package/data/chromium-i18n/ssl-address/CR.json +3 -3
- package/data/chromium-i18n/ssl-address/CU.json +5 -5
- package/data/chromium-i18n/ssl-address/CV.json +6 -6
- package/data/chromium-i18n/ssl-address/CW.json +1 -1
- package/data/chromium-i18n/ssl-address/CX.json +3 -3
- package/data/chromium-i18n/ssl-address/CY.json +2 -2
- package/data/chromium-i18n/ssl-address/CZ.json +3 -3
- package/data/chromium-i18n/ssl-address/DE.json +3 -3
- package/data/chromium-i18n/ssl-address/DJ.json +1 -1
- package/data/chromium-i18n/ssl-address/DK.json +3 -3
- package/data/chromium-i18n/ssl-address/DM.json +1 -1
- package/data/chromium-i18n/ssl-address/DO.json +3 -3
- package/data/chromium-i18n/ssl-address/DZ.json +1 -8
- package/data/chromium-i18n/ssl-address/EC.json +4 -4
- package/data/chromium-i18n/ssl-address/EE.json +5 -4
- package/data/chromium-i18n/ssl-address/EG.json +8 -8
- package/data/chromium-i18n/ssl-address/EH.json +2 -2
- package/data/chromium-i18n/ssl-address/ER.json +1 -1
- package/data/chromium-i18n/ssl-address/ES.json +9 -9
- package/data/chromium-i18n/ssl-address/ET.json +1 -8
- package/data/chromium-i18n/ssl-address/FI.json +4 -4
- package/data/chromium-i18n/ssl-address/FJ.json +1 -1
- package/data/chromium-i18n/ssl-address/FK.json +3 -3
- package/data/chromium-i18n/ssl-address/FM.json +6 -6
- package/data/chromium-i18n/ssl-address/FO.json +4 -4
- package/data/chromium-i18n/ssl-address/FR.json +5 -5
- package/data/chromium-i18n/ssl-address/GA.json +1 -1
- package/data/chromium-i18n/ssl-address/GB.json +5 -5
- package/data/chromium-i18n/ssl-address/GD.json +1 -1
- package/data/chromium-i18n/ssl-address/GE.json +3 -3
- package/data/chromium-i18n/ssl-address/GF.json +4 -4
- package/data/chromium-i18n/ssl-address/GG.json +4 -4
- package/data/chromium-i18n/ssl-address/GH.json +1 -1
- package/data/chromium-i18n/ssl-address/GI.json +2 -2
- package/data/chromium-i18n/ssl-address/GL.json +2 -2
- package/data/chromium-i18n/ssl-address/GM.json +1 -1
- package/data/chromium-i18n/ssl-address/GN.json +1 -8
- package/data/chromium-i18n/ssl-address/GP.json +4 -4
- package/data/chromium-i18n/ssl-address/GQ.json +1 -1
- package/data/chromium-i18n/ssl-address/GR.json +3 -3
- package/data/chromium-i18n/ssl-address/GS.json +3 -3
- package/data/chromium-i18n/ssl-address/GT.json +2 -2
- package/data/chromium-i18n/ssl-address/GU.json +5 -5
- package/data/chromium-i18n/ssl-address/GW.json +2 -2
- package/data/chromium-i18n/ssl-address/GY.json +1 -1
- package/data/chromium-i18n/ssl-address/HK.json +8 -8
- package/data/chromium-i18n/ssl-address/HM.json +3 -3
- package/data/chromium-i18n/ssl-address/HN.json +3 -2
- package/data/chromium-i18n/ssl-address/HR.json +3 -3
- package/data/chromium-i18n/ssl-address/HT.json +3 -3
- package/data/chromium-i18n/ssl-address/HU.json +4 -4
- package/data/chromium-i18n/ssl-address/ID.json +7 -6
- package/data/chromium-i18n/ssl-address/IE.json +9 -9
- package/data/chromium-i18n/ssl-address/IL.json +3 -3
- package/data/chromium-i18n/ssl-address/IM.json +4 -4
- package/data/chromium-i18n/ssl-address/IN.json +11 -11
- package/data/chromium-i18n/ssl-address/IO.json +3 -3
- package/data/chromium-i18n/ssl-address/IQ.json +3 -3
- package/data/chromium-i18n/ssl-address/IR.json +7 -7
- package/data/chromium-i18n/ssl-address/IS.json +3 -3
- package/data/chromium-i18n/ssl-address/IT.json +10 -10
- package/data/chromium-i18n/ssl-address/JE.json +4 -4
- package/data/chromium-i18n/ssl-address/JM.json +6 -6
- package/data/chromium-i18n/ssl-address/JO.json +1 -8
- package/data/chromium-i18n/ssl-address/JP.json +11 -11
- package/data/chromium-i18n/ssl-address/KE.json +1 -8
- package/data/chromium-i18n/ssl-address/KG.json +1 -8
- package/data/chromium-i18n/ssl-address/KH.json +4 -3
- package/data/chromium-i18n/ssl-address/KI.json +2 -2
- package/data/chromium-i18n/ssl-address/KM.json +1 -1
- package/data/chromium-i18n/ssl-address/KN.json +5 -5
- package/data/chromium-i18n/ssl-address/KP.json +6 -6
- package/data/chromium-i18n/ssl-address/KR.json +15 -15
- package/data/chromium-i18n/ssl-address/KW.json +2 -2
- package/data/chromium-i18n/ssl-address/KY.json +7 -7
- package/data/chromium-i18n/ssl-address/KZ.json +2 -2
- package/data/chromium-i18n/ssl-address/LA.json +2 -2
- package/data/chromium-i18n/ssl-address/LB.json +2 -2
- package/data/chromium-i18n/ssl-address/LC.json +1 -1
- package/data/chromium-i18n/ssl-address/LI.json +3 -3
- package/data/chromium-i18n/ssl-address/LK.json +3 -3
- package/data/chromium-i18n/ssl-address/LR.json +1 -8
- package/data/chromium-i18n/ssl-address/LS.json +1 -8
- package/data/chromium-i18n/ssl-address/LT.json +5 -4
- package/data/chromium-i18n/ssl-address/LU.json +3 -3
- package/data/chromium-i18n/ssl-address/LV.json +5 -4
- package/data/chromium-i18n/ssl-address/LY.json +1 -1
- package/data/chromium-i18n/ssl-address/MA.json +2 -2
- package/data/chromium-i18n/ssl-address/MC.json +3 -3
- package/data/chromium-i18n/ssl-address/MD.json +3 -3
- package/data/chromium-i18n/ssl-address/ME.json +2 -2
- package/data/chromium-i18n/ssl-address/MF.json +4 -4
- package/data/chromium-i18n/ssl-address/MG.json +1 -8
- package/data/chromium-i18n/ssl-address/MH.json +6 -6
- package/data/chromium-i18n/ssl-address/MK.json +2 -2
- package/data/chromium-i18n/ssl-address/ML.json +1 -1
- package/data/chromium-i18n/ssl-address/MM.json +1 -8
- package/data/chromium-i18n/ssl-address/MN.json +3 -3
- package/data/chromium-i18n/ssl-address/MO.json +1 -8
- package/data/chromium-i18n/ssl-address/MP.json +6 -6
- package/data/chromium-i18n/ssl-address/MQ.json +4 -4
- package/data/chromium-i18n/ssl-address/MR.json +1 -1
- package/data/chromium-i18n/ssl-address/MS.json +1 -1
- package/data/chromium-i18n/ssl-address/MT.json +4 -4
- package/data/chromium-i18n/ssl-address/MU.json +3 -3
- package/data/chromium-i18n/ssl-address/MV.json +3 -3
- package/data/chromium-i18n/ssl-address/MW.json +1 -1
- package/data/chromium-i18n/ssl-address/MX.json +12 -12
- package/data/chromium-i18n/ssl-address/MY.json +12 -12
- package/data/chromium-i18n/ssl-address/MZ.json +5 -5
- package/data/chromium-i18n/ssl-address/NA.json +8 -1
- package/data/chromium-i18n/ssl-address/NC.json +4 -4
- package/data/chromium-i18n/ssl-address/NE.json +1 -8
- package/data/chromium-i18n/ssl-address/NF.json +3 -3
- package/data/chromium-i18n/ssl-address/NG.json +8 -8
- package/data/chromium-i18n/ssl-address/NI.json +8 -8
- package/data/chromium-i18n/ssl-address/NL.json +4 -4
- package/data/chromium-i18n/ssl-address/NO.json +3 -3
- package/data/chromium-i18n/ssl-address/NP.json +3 -3
- package/data/chromium-i18n/ssl-address/NR.json +5 -5
- package/data/chromium-i18n/ssl-address/NU.json +1 -1
- package/data/chromium-i18n/ssl-address/NZ.json +3 -3
- package/data/chromium-i18n/ssl-address/OM.json +2 -2
- package/data/chromium-i18n/ssl-address/PA.json +1 -7
- package/data/chromium-i18n/ssl-address/PE.json +7 -7
- package/data/chromium-i18n/ssl-address/PF.json +4 -4
- package/data/chromium-i18n/ssl-address/PG.json +2 -2
- package/data/chromium-i18n/ssl-address/PH.json +7 -7
- package/data/chromium-i18n/ssl-address/PK.json +4 -4
- package/data/chromium-i18n/ssl-address/PL.json +3 -3
- package/data/chromium-i18n/ssl-address/PM.json +3 -3
- package/data/chromium-i18n/ssl-address/PN.json +3 -3
- package/data/chromium-i18n/ssl-address/PR.json +6 -6
- package/data/chromium-i18n/ssl-address/PS.json +1 -1
- package/data/chromium-i18n/ssl-address/PT.json +3 -3
- package/data/chromium-i18n/ssl-address/PW.json +6 -6
- package/data/chromium-i18n/ssl-address/PY.json +2 -2
- package/data/chromium-i18n/ssl-address/QA.json +1 -1
- package/data/chromium-i18n/ssl-address/RE.json +4 -4
- package/data/chromium-i18n/ssl-address/RO.json +6 -5
- package/data/chromium-i18n/ssl-address/RS.json +3 -3
- package/data/chromium-i18n/ssl-address/RU.json +12 -12
- package/data/chromium-i18n/ssl-address/RW.json +1 -1
- package/data/chromium-i18n/ssl-address/SA.json +2 -2
- package/data/chromium-i18n/ssl-address/SB.json +1 -1
- package/data/chromium-i18n/ssl-address/SC.json +2 -2
- package/data/chromium-i18n/ssl-address/SD.json +3 -3
- package/data/chromium-i18n/ssl-address/SE.json +5 -5
- package/data/chromium-i18n/ssl-address/SG.json +3 -3
- package/data/chromium-i18n/ssl-address/SH.json +3 -3
- package/data/chromium-i18n/ssl-address/SI.json +3 -3
- package/data/chromium-i18n/ssl-address/SJ.json +3 -3
- package/data/chromium-i18n/ssl-address/SK.json +3 -3
- package/data/chromium-i18n/ssl-address/SL.json +1 -1
- package/data/chromium-i18n/ssl-address/SM.json +3 -3
- package/data/chromium-i18n/ssl-address/SN.json +2 -2
- package/data/chromium-i18n/ssl-address/SO.json +8 -8
- package/data/chromium-i18n/ssl-address/SR.json +4 -4
- package/data/chromium-i18n/ssl-address/SS.json +1 -1
- package/data/chromium-i18n/ssl-address/ST.json +1 -1
- package/data/chromium-i18n/ssl-address/SV.json +9 -9
- package/data/chromium-i18n/ssl-address/SX.json +1 -1
- package/data/chromium-i18n/ssl-address/SY.json +1 -6
- package/data/chromium-i18n/ssl-address/SZ.json +4 -4
- package/data/chromium-i18n/ssl-address/TA.json +2 -2
- package/data/chromium-i18n/ssl-address/TC.json +3 -3
- package/data/chromium-i18n/ssl-address/TD.json +1 -1
- package/data/chromium-i18n/ssl-address/TF.json +1 -1
- package/data/chromium-i18n/ssl-address/TG.json +1 -1
- package/data/chromium-i18n/ssl-address/TH.json +8 -8
- package/data/chromium-i18n/ssl-address/TJ.json +2 -2
- package/data/chromium-i18n/ssl-address/TK.json +1 -1
- package/data/chromium-i18n/ssl-address/TL.json +1 -1
- package/data/chromium-i18n/ssl-address/TM.json +1 -8
- package/data/chromium-i18n/ssl-address/TN.json +3 -3
- package/data/chromium-i18n/ssl-address/TO.json +1 -1
- package/data/chromium-i18n/ssl-address/TR.json +8 -8
- package/data/chromium-i18n/ssl-address/TT.json +1 -1
- package/data/chromium-i18n/ssl-address/TV.json +5 -5
- package/data/chromium-i18n/ssl-address/TW.json +13 -12
- package/data/chromium-i18n/ssl-address/TZ.json +2 -2
- package/data/chromium-i18n/ssl-address/UA.json +11 -11
- package/data/chromium-i18n/ssl-address/UG.json +1 -1
- package/data/chromium-i18n/ssl-address/UM.json +6 -6
- package/data/chromium-i18n/ssl-address/US.json +11 -11
- package/data/chromium-i18n/ssl-address/UY.json +7 -7
- package/data/chromium-i18n/ssl-address/UZ.json +4 -4
- package/data/chromium-i18n/ssl-address/VA.json +1 -8
- package/data/chromium-i18n/ssl-address/VC.json +3 -3
- package/data/chromium-i18n/ssl-address/VE.json +9 -9
- package/data/chromium-i18n/ssl-address/VG.json +2 -2
- package/data/chromium-i18n/ssl-address/VI.json +6 -6
- package/data/chromium-i18n/ssl-address/VN.json +8 -8
- package/data/chromium-i18n/ssl-address/VU.json +1 -1
- package/data/chromium-i18n/ssl-address/WF.json +3 -3
- package/data/chromium-i18n/ssl-address/WS.json +1 -1
- package/data/chromium-i18n/ssl-address/XK.json +1 -8
- package/data/chromium-i18n/ssl-address/YE.json +1 -1
- package/data/chromium-i18n/ssl-address/YT.json +3 -3
- package/data/chromium-i18n/ssl-address/ZA.json +3 -3
- package/data/chromium-i18n/ssl-address/ZM.json +1 -8
- package/data/chromium-i18n/ssl-address/ZW.json +1 -1
- package/out/api/headless.d.ts +7 -3
- package/out/api/headless.d.ts.map +1 -1
- package/out/api/headless.js +3 -4
- package/out/api/headless.js.map +1 -1
- package/out/api/index.d.ts +3 -3
- package/out/classification/Classification.d.ts +3 -3
- package/out/classification/CompositeClassifier.d.ts +3 -3
- package/out/classification/PhraseClassifier.d.ts +1 -1
- package/out/classification/SectionClassifier.d.ts +1 -1
- package/out/classification/WordClassifier.d.ts +1 -1
- package/out/classification/index.d.ts +7 -7
- package/out/classification/scheme.d.ts +1 -1
- package/out/coarse-placer/coarse-placer.d.ts +1 -1
- package/out/coarse-placer/tools/build-dataset.d.ts +18 -3
- package/out/coarse-placer/tools/build-dataset.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-dataset.js +108 -111
- package/out/coarse-placer/tools/build-dataset.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts +18 -3
- package/out/coarse-placer/tools/build-outlier-exposure.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-exposure.js +46 -52
- package/out/coarse-placer/tools/build-outlier-exposure.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts +41 -1
- package/out/coarse-placer/tools/build-outlier-latin.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-latin.js +74 -82
- package/out/coarse-placer/tools/build-outlier-latin.js.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts +49 -1
- package/out/coarse-placer/tools/build-outlier-oa.d.ts.map +1 -1
- package/out/coarse-placer/tools/build-outlier-oa.js +100 -102
- package/out/coarse-placer/tools/build-outlier-oa.js.map +1 -1
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts +30 -1
- package/out/coarse-placer/tools/eval-latin-offmap.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-latin-offmap.js +82 -83
- package/out/coarse-placer/tools/eval-latin-offmap.js.map +1 -1
- package/out/coarse-placer/tools/eval-openset.d.ts +23 -2
- package/out/coarse-placer/tools/eval-openset.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-openset.js +282 -287
- package/out/coarse-placer/tools/eval-openset.js.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.d.ts +35 -1
- package/out/coarse-placer/tools/eval-quant-compare.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval-quant-compare.js +87 -91
- package/out/coarse-placer/tools/eval-quant-compare.js.map +1 -1
- package/out/coarse-placer/tools/eval.d.ts +20 -2
- package/out/coarse-placer/tools/eval.d.ts.map +1 -1
- package/out/coarse-placer/tools/eval.js +104 -105
- package/out/coarse-placer/tools/eval.js.map +1 -1
- package/out/coarse-placer/tools/fnv-hash.d.ts +15 -0
- package/out/coarse-placer/tools/fnv-hash.d.ts.map +1 -0
- package/out/coarse-placer/tools/fnv-hash.js +22 -0
- package/out/coarse-placer/tools/fnv-hash.js.map +1 -0
- package/out/coarse-placer/tools/index.d.ts +23 -0
- package/out/coarse-placer/tools/index.d.ts.map +1 -0
- package/out/coarse-placer/tools/index.js +23 -0
- package/out/coarse-placer/tools/index.js.map +1 -0
- package/out/coarse-placer/tools/probe-frontier.d.ts +22 -3
- package/out/coarse-placer/tools/probe-frontier.d.ts.map +1 -1
- package/out/coarse-placer/tools/probe-frontier.js +92 -95
- package/out/coarse-placer/tools/probe-frontier.js.map +1 -1
- package/out/coarse-placer/tools/quantize.d.ts +34 -1
- package/out/coarse-placer/tools/quantize.d.ts.map +1 -1
- package/out/coarse-placer/tools/quantize.js +58 -60
- package/out/coarse-placer/tools/quantize.js.map +1 -1
- package/out/coarse-placer/tools/train.d.ts +25 -4
- package/out/coarse-placer/tools/train.d.ts.map +1 -1
- package/out/coarse-placer/tools/train.js +135 -137
- package/out/coarse-placer/tools/train.js.map +1 -1
- package/out/decoder/arbitrate-tree.d.ts +2 -2
- package/out/decoder/build-tree.d.ts +2 -2
- package/out/decoder/containment.d.ts +2 -2
- package/out/decoder/index.d.ts +12 -12
- package/out/decoder/proposals-to-tree.d.ts +2 -2
- package/out/decoder/resolve-proposal-overlaps.d.ts +1 -1
- package/out/decoder/serialize-json.d.ts +3 -3
- package/out/decoder/serialize-tuples.d.ts +2 -2
- package/out/decoder/serialize-xml.d.ts +1 -1
- package/out/decoder/types.d.ts +1 -1
- package/out/decoder/unknown-spans.d.ts +1 -1
- package/out/decoder/validate-tree.d.ts +2 -2
- package/out/env/index.d.ts +1 -0
- package/out/env/index.d.ts.map +1 -1
- package/out/env/schema.d.ts +1 -0
- package/out/env/schema.d.ts.map +1 -1
- package/out/env/schema.js +3 -2
- package/out/env/schema.js.map +1 -1
- package/out/errors/index.d.ts +1 -1
- package/out/filters/RelationshipFilter.d.ts.map +1 -1
- package/out/filters/RelationshipFilter.js.map +1 -1
- package/out/filters/index.d.ts +4 -4
- package/out/fs/node.d.ts +20 -0
- package/out/fs/node.d.ts.map +1 -0
- package/out/fs/node.js +33 -0
- package/out/fs/node.js.map +1 -0
- package/out/index.d.ts +11 -11
- package/out/kysley/client.d.ts +2 -2
- package/out/kysley/client.d.ts.map +1 -1
- package/out/kysley/client.js +1 -1
- package/out/kysley/client.js.map +1 -1
- package/out/kysley/dialect.d.ts +1 -1
- package/out/kysley/dialect.d.ts.map +1 -1
- package/out/kysley/dialect.js +1 -1
- package/out/kysley/dialect.js.map +1 -1
- package/out/kysley/driver.d.ts +1 -1
- package/out/kysley/driver.d.ts.map +1 -1
- package/out/lifecycle/index.d.ts +3 -3
- package/out/locale/index.d.ts +3 -3
- package/out/locale/locale.d.ts +1 -1
- package/out/locale/profiles/en-us.d.ts +1 -1
- package/out/locale/profiles/fr-fr.d.ts +1 -1
- package/out/locale/profiles/index.d.ts +3 -3
- package/out/locale/profiles/ja-jp.d.ts +1 -1
- package/out/locale/registry.d.ts +1 -1
- package/out/logging/index.d.ts +2 -2
- package/out/logging/shared.d.ts +1 -1
- package/out/logging/shared.js +1 -1
- package/out/parser/AddressParser.d.ts +1 -1
- package/out/parser/index.d.ts +3 -3
- package/out/parser/proposal-pipeline.d.ts +4 -4
- package/out/parser/solution-to-proposals.d.ts +2 -2
- package/out/pipeline/index.d.ts +8 -8
- package/out/pipeline/reconcile-lookups.d.ts +2 -2
- package/out/pipeline/reconcile.d.ts +3 -3
- package/out/pipeline/runtime-pipeline.d.ts +3 -3
- package/out/pipeline/span-logit-aggregation.d.ts +1 -1
- package/out/pipeline/types.d.ts +3 -3
- package/out/policy/defaults.d.ts +1 -1
- package/out/policy/from-config.d.ts +3 -3
- package/out/policy/index.d.ts +5 -5
- package/out/policy/input-shape-router.d.ts +1 -1
- package/out/policy/registry.d.ts +1 -1
- package/out/resolver/index.d.ts +2 -2
- package/out/resolver/types.d.ts +1 -1
- package/out/resources/LocaleIndex.d.ts +2 -2
- package/out/resources/ResourceMapCache.d.ts +1 -1
- package/out/resources/ResourceMapCache.d.ts.map +1 -1
- package/out/resources/ResourceMapCache.js +1 -1
- package/out/resources/ResourceMapCache.js.map +1 -1
- package/out/resources/git.d.ts.map +1 -1
- package/out/resources/git.js +1 -1
- package/out/resources/git.js.map +1 -1
- package/out/resources/index.d.ts +11 -12
- package/out/resources/index.d.ts.map +1 -1
- package/out/resources/index.js +0 -1
- package/out/resources/index.js.map +1 -1
- package/out/resources/languages/index.d.ts +2 -2
- package/out/resources/languages/types.gen.d.ts +1 -1
- package/out/resources/languages/types.gen.js +1 -1
- package/out/resources/libpostal.d.ts +1 -1
- package/out/resources/libpostal.d.ts.map +1 -1
- package/out/resources/libpostal.js +1 -1
- package/out/resources/libpostal.js.map +1 -1
- package/out/resources/whosonfirst/DataSourceCache.d.ts +1 -1
- package/out/resources/whosonfirst/PlacetypeDataSource.d.ts +1 -1
- package/out/resources/whosonfirst/index.d.ts +4 -4
- package/out/resources/whosonfirst/loader.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/Placetype.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/admin.d.ts +1 -1
- package/out/resources/whosonfirst/placetypes/graph.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/index.d.ts +6 -6
- package/out/resources/whosonfirst/placetypes/mermaid.d.ts +2 -2
- package/out/resources/whosonfirst/placetypes/tree.d.ts +2 -2
- package/out/scripting/index.d.ts +15 -0
- package/out/scripting/index.d.ts.map +1 -0
- package/out/scripting/index.js +34 -0
- package/out/scripting/index.js.map +1 -0
- package/out/{utils/scripting.d.ts → scripting/utils/index.d.ts} +6 -15
- package/out/scripting/utils/index.d.ts.map +1 -0
- package/out/{utils/scripting.js → scripting/utils/index.js} +15 -32
- package/out/scripting/utils/index.js.map +1 -0
- package/out/solver/HashMapSolver.d.ts +2 -2
- package/out/solver/Solution.d.ts +1 -1
- package/out/solver/SolutionMatch.d.ts +1 -1
- package/out/solver/index.d.ts +5 -5
- package/out/solver/mask.d.ts +1 -1
- package/out/solvers/index.d.ts +8 -8
- package/out/tokenization/Graph.d.ts +1 -1
- package/out/tokenization/Span.d.ts +5 -5
- package/out/tokenization/context.d.ts +1 -1
- package/out/tokenization/index.d.ts +5 -5
- package/out/tokenization/permutate.d.ts +1 -1
- package/out/tokenization/split.d.ts +1 -1
- package/out/{data/libpostal/resources-download.d.ts → tools/download-libpostal-resources.d.ts} +10 -5
- package/out/tools/download-libpostal-resources.d.ts.map +1 -0
- package/out/{data/libpostal/resources-download.js → tools/download-libpostal-resources.js} +20 -35
- package/out/tools/download-libpostal-resources.js.map +1 -0
- package/out/{data/chromium-i18n/ssl-address-download.d.ts → tools/download-ssl-address.d.ts} +17 -5
- package/out/tools/download-ssl-address.d.ts.map +1 -0
- package/out/{data/chromium-i18n/ssl-address-download.js → tools/download-ssl-address.js} +15 -29
- package/out/tools/download-ssl-address.js.map +1 -0
- package/out/tools/generate-language-types.d.ts +23 -0
- package/out/tools/generate-language-types.d.ts.map +1 -0
- package/out/tools/generate-language-types.js +137 -0
- package/out/tools/generate-language-types.js.map +1 -0
- package/out/tools/index.d.ts +13 -0
- package/out/tools/index.d.ts.map +1 -0
- package/out/tools/index.js +13 -0
- package/out/tools/index.js.map +1 -0
- package/out/types/classifier.d.ts +2 -2
- package/out/types/index.d.ts +3 -3
- package/out/types/mapping.d.ts +2 -2
- package/out/utils/hash.d.ts +13 -0
- package/out/utils/hash.d.ts.map +1 -0
- package/out/utils/hash.js +23 -0
- package/out/utils/hash.js.map +1 -0
- package/out/utils/index.d.ts +8 -6
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +5 -3
- package/out/utils/index.js.map +1 -1
- package/out/utils/jsonl.d.ts +16 -0
- package/out/utils/jsonl.d.ts.map +1 -0
- package/out/utils/jsonl.js +38 -0
- package/out/utils/jsonl.js.map +1 -0
- package/out/utils/stats.d.ts +19 -0
- package/out/utils/stats.d.ts.map +1 -0
- package/out/utils/stats.js +30 -0
- package/out/utils/stats.js.map +1 -0
- package/out/vitest.config.js +3 -3
- package/package.json +309 -42
- package/data/chromium-i18n/ssl-address-download.ts +0 -106
- package/data/libpostal/resources-download.ts +0 -118
- package/out/data/chromium-i18n/ssl-address-download.d.ts.map +0 -1
- package/out/data/chromium-i18n/ssl-address-download.js.map +0 -1
- package/out/data/libpostal/resources-download.d.ts.map +0 -1
- package/out/data/libpostal/resources-download.js.map +0 -1
- package/out/resources/fs.d.ts +0 -12
- package/out/resources/fs.d.ts.map +0 -1
- package/out/resources/fs.js +0 -13
- package/out/resources/fs.js.map +0 -1
- package/out/utils/scripting.d.ts.map +0 -1
- package/out/utils/scripting.js.map +0 -1
package/out/resources/index.d.ts
CHANGED
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./collections.
|
|
7
|
-
export * from "./debugging.
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
13
|
-
export * from "./
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./whosonfirst/index.js";
|
|
6
|
+
export * from "./collections.ts";
|
|
7
|
+
export * from "./debugging.ts";
|
|
8
|
+
export * from "./git.ts";
|
|
9
|
+
export * from "./languages/index.ts";
|
|
10
|
+
export * from "./libaddressinput.ts";
|
|
11
|
+
export * from "./libpostal.ts";
|
|
12
|
+
export * from "./locale.ts";
|
|
13
|
+
export * from "./LocaleIndex.ts";
|
|
14
|
+
export * from "./ResourceMapCache.ts";
|
|
15
|
+
export * from "./set.ts";
|
|
16
|
+
export * from "./whosonfirst/index.ts";
|
|
18
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA"}
|
package/out/resources/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../resources/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,uBAAuB,CAAA;AACrC,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./types.gen.
|
|
7
|
-
import { Alpha2LanguageCode, type Alpha3bLanguageCode } from "./types.gen.
|
|
6
|
+
export * from "./types.gen.ts";
|
|
7
|
+
import { Alpha2LanguageCode, type Alpha3bLanguageCode } from "./types.gen.ts";
|
|
8
8
|
/**
|
|
9
9
|
* Prefixed languages are those which use a street prefix instead of a suffix.
|
|
10
10
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Alpha2LanguageCode } from "@mailwoman/core/resources/languages";
|
|
7
7
|
import { type TextNormalizerInit } from "@mailwoman/core/tokenization";
|
|
8
|
-
import { LocaleIndex } from "./LocaleIndex.
|
|
8
|
+
import { LocaleIndex } from "./LocaleIndex.ts";
|
|
9
9
|
export type LibPostalLanguageCode = Alpha2LanguageCode | "all";
|
|
10
10
|
/**
|
|
11
11
|
* Languages with a libpostal dictionary directory on disk. Lazily resolved and memoized — this was a top-level `await`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libpostal.d.ts","sourceRoot":"","sources":["../../resources/libpostal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"libpostal.d.ts","sourceRoot":"","sources":["../../resources/libpostal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACxE,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOtF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAM9C,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,GAAG,KAAK,CAAA;AAI9D;;;;;GAKG;AACH,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAcxE;AAED,MAAM,WAAW,kBAAkB;IAClC,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,qBAAqB,CAAA;CACnC;AA2BD,UAAU,uBAAwB,SAAQ,kBAAkB;IAC3D,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;GAEG;AACH,wBAAsB,kBAAkB;AACvC;;GAEG;AACH,aAAa,EAAE,qBAAqB,EAAE,GAAG,SAAS,EAClD,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,uBAAuB,GAC/B,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CA0E7C;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,qBAAqB,CAAC,QAQxE"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { readdir } from "node:fs/promises";
|
|
7
7
|
import { availableParallelism } from "node:os";
|
|
8
|
+
import { tryStat } from "@mailwoman/core/fs";
|
|
8
9
|
import { Alpha2LanguageCode } from "@mailwoman/core/resources/languages";
|
|
9
10
|
import { TextNormalizer } from "@mailwoman/core/tokenization";
|
|
10
11
|
import { PathBuilder } from "path-ts";
|
|
@@ -12,7 +13,6 @@ import pluralize from "pluralize";
|
|
|
12
13
|
import { TextSpliterator } from "spliterator";
|
|
13
14
|
import { resourceDictionaryPathBuilder } from "../utils/repo.js";
|
|
14
15
|
import { takeAsync } from "./collections.js";
|
|
15
|
-
import { tryStat } from "./fs.js";
|
|
16
16
|
import { LocaleIndex } from "./LocaleIndex.js";
|
|
17
17
|
const batchSize = availableParallelism();
|
|
18
18
|
const libPostalDataDirectory = resourceDictionaryPathBuilder("libpostal");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libpostal.js","sourceRoot":"","sources":["../../resources/libpostal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACxE,OAAO,EAAE,cAAc,EAA2B,MAAM,8BAA8B,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,SAAS,MAAM,WAAW,CAAA;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"libpostal.js","sourceRoot":"","sources":["../../resources/libpostal.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;A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F,CAAA;IACF,CAAC;IAED,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACnC,MAAM,IAAI,KAAK,CACd,8BAA8B,QAAQ,OAAO,sBAAsB,kBAAkB,aAAa,EAAE,CACpG,CAAA;IACF,CAAC;IAED,IAAI,OAAO,EAAE,SAAS,EAAE,CAAC;QACxB,eAAe,CAAC,KAAK,CAAC,CAAA;IACvB,CAAC;IAED,OAAO,KAAK,CAAA;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAyC;IACxE,KAAK,MAAM,CAAC,YAAY,EAAE,KAAK,CAAC,IAAI,KAAK,EAAE,CAAC;QAC3C,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,SAAQ;QAE9B,MAAM,MAAM,GAAG,SAAS,CAAC,YAAY,CAAC,CAAA;QAEtC,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IACxB,CAAC;AACF,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { PlacetypeDataSource, type PlacetypeDataSourceOptions } from "./PlacetypeDataSource.
|
|
6
|
+
import { PlacetypeDataSource, type PlacetypeDataSourceOptions } from "./PlacetypeDataSource.ts";
|
|
7
7
|
export declare class DataSourceCache extends DisposableStack {
|
|
8
8
|
#private;
|
|
9
9
|
[Symbol.toStringTag]: string;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { type DatabaseSyncOptions } from "node:sqlite";
|
|
7
7
|
import { Alpha2LanguageCode, type Alpha3bLanguageCode } from "@mailwoman/core/resources/languages";
|
|
8
8
|
import { PathBuilder, type PathBuilderLike } from "path-ts";
|
|
9
|
-
import type { WhosOnFirstPlacetype } from "./placetypes/definition.
|
|
9
|
+
import type { WhosOnFirstPlacetype } from "./placetypes/definition.ts";
|
|
10
10
|
export interface PlacetypeDataSourceOptions<P extends WhosOnFirstPlacetype = WhosOnFirstPlacetype, L extends Alpha3bLanguageCode | Alpha2LanguageCode = Alpha3bLanguageCode> {
|
|
11
11
|
placetype: P;
|
|
12
12
|
languageCode: L;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./DataSourceCache.
|
|
7
|
-
export * from "./loader.
|
|
8
|
-
export * from "./PlacetypeDataSource.
|
|
9
|
-
export * from "./placetypes/index.
|
|
6
|
+
export * from "./DataSourceCache.ts";
|
|
7
|
+
export * from "./loader.ts";
|
|
8
|
+
export * from "./PlacetypeDataSource.ts";
|
|
9
|
+
export * from "./placetypes/index.ts";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import type { Alpha3bLanguageCode } from "@mailwoman/core/resources/languages";
|
|
7
7
|
import { TextNormalizer } from "@mailwoman/core/tokenization";
|
|
8
8
|
import { PathBuilder, type PathBuilderLike } from "path-ts";
|
|
9
|
-
import { ResourceMapCache } from "../ResourceMapCache.
|
|
10
|
-
import { DisposableSet } from "../set.
|
|
9
|
+
import { ResourceMapCache } from "../ResourceMapCache.ts";
|
|
10
|
+
import { DisposableSet } from "../set.ts";
|
|
11
11
|
/**
|
|
12
12
|
* Index mapping a specific value to originating languages.
|
|
13
13
|
*
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import { PathBuilder } from "path-ts";
|
|
7
|
-
import { type PlacetypeDefinition, type PlacetypeDefinitionInit, type PlacetypeRole } from "./definition.
|
|
7
|
+
import { type PlacetypeDefinition, type PlacetypeDefinitionInit, type PlacetypeRole } from "./definition.ts";
|
|
8
8
|
export declare const PLACETYPES_REPO_SOURCE: {
|
|
9
9
|
readonly url: "https://github.com/whosonfirst/whosonfirst-placetypes.git";
|
|
10
10
|
readonly owner: "whosonfirst";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Alpha2LanguageCode, type Alpha3bLanguageCode } from "@mailwoman/core/resources/languages";
|
|
7
7
|
import type { Feature, Geometry } from "geojson";
|
|
8
|
-
import type { WhosOnFirstPlacetype } from "./definition.
|
|
8
|
+
import type { WhosOnFirstPlacetype } from "./definition.ts";
|
|
9
9
|
export interface WOFBaseProperties {
|
|
10
10
|
"wof:id": number;
|
|
11
11
|
"wof:name": string;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import type { PlacetypeRole } from "./definition.
|
|
7
|
-
import { Placetype } from "./Placetype.
|
|
6
|
+
import type { PlacetypeRole } from "./definition.ts";
|
|
7
|
+
import { Placetype } from "./Placetype.ts";
|
|
8
8
|
/**
|
|
9
9
|
* A single node in a placetype graph. One entry per unique placetype name.
|
|
10
10
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./admin.
|
|
7
|
-
export * from "./definition.
|
|
8
|
-
export * from "./graph.
|
|
9
|
-
export * from "./mermaid.
|
|
10
|
-
export * from "./Placetype.
|
|
11
|
-
export * from "./tree.
|
|
6
|
+
export * from "./admin.ts";
|
|
7
|
+
export * from "./definition.ts";
|
|
8
|
+
export * from "./graph.ts";
|
|
9
|
+
export * from "./mermaid.ts";
|
|
10
|
+
export * from "./Placetype.ts";
|
|
11
|
+
export * from "./tree.ts";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { type PlacetypeRole } from "./definition.
|
|
7
|
-
import { Placetype } from "./Placetype.
|
|
6
|
+
import { type PlacetypeRole } from "./definition.ts";
|
|
7
|
+
import { Placetype } from "./Placetype.ts";
|
|
8
8
|
/**
|
|
9
9
|
* Hand-tuned default colors for placetype roles. Used when no `interpolator` is passed to
|
|
10
10
|
* {@linkcode generateMermaidMarkup}. Each entry pairs a fill with a darker stroke and a text color chosen for contrast
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import type { PlacetypeRole } from "./definition.
|
|
7
|
-
import { Placetype } from "./Placetype.
|
|
6
|
+
import type { PlacetypeRole } from "./definition.ts";
|
|
7
|
+
import { Placetype } from "./Placetype.ts";
|
|
8
8
|
/**
|
|
9
9
|
* A node in the nested placetype tree produced by {@linkcode generatePlacetypeTree}.
|
|
10
10
|
*
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ScriptCallback } from "./utils/index.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Given the calling module's import.meta object, runs the callback if that module is the entry script.
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* runIfScript(import.meta, async () => {...})
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* The caller's meta is required: `import.meta.main` is per-module, so checking our own would always be false. This is
|
|
10
|
+
* useful for conditionally running scripts without too much boilerplate.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function runIfScript(meta: ImportMeta, scriptCallback: ScriptCallback): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../scripting/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBjG"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Given the calling module's import.meta object, runs the callback if that module is the entry script.
|
|
3
|
+
*
|
|
4
|
+
* ```ts
|
|
5
|
+
* runIfScript(import.meta, async () => {...})
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* The caller's meta is required: `import.meta.main` is per-module, so checking our own would always be false. This is
|
|
9
|
+
* useful for conditionally running scripts without too much boilerplate.
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export async function runIfScript(meta, scriptCallback) {
|
|
14
|
+
if (typeof meta.main !== "boolean") {
|
|
15
|
+
// Vite/vitest module graphs define import.meta.env but never import.meta.main — a module
|
|
16
|
+
// imported there is not the entry script, so importing it must stay side-effect-free.
|
|
17
|
+
if (meta.env)
|
|
18
|
+
return;
|
|
19
|
+
throw new Error("Expected import.meta.main to be a boolean. Are we on Node.js 24+?");
|
|
20
|
+
}
|
|
21
|
+
if (!meta.main)
|
|
22
|
+
return;
|
|
23
|
+
const [{ $public }, { ConsoleLogger, stringifyLoggedObject }, { runScript }] = await Promise.all([
|
|
24
|
+
import("@mailwoman/core/env"),
|
|
25
|
+
import("@mailwoman/core/logging"),
|
|
26
|
+
import("@mailwoman/core/scripting/utils"),
|
|
27
|
+
]);
|
|
28
|
+
ConsoleLogger.info(stringifyLoggedObject($public, {
|
|
29
|
+
description: "Public Environment",
|
|
30
|
+
showValues: true,
|
|
31
|
+
}));
|
|
32
|
+
return runScript(scriptCallback);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../scripting/index.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,IAAgB,EAAE,cAA8B;IACjF,IAAI,OAAO,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QACpC,yFAAyF;QACzF,sFAAsF;QACtF,IAAK,IAA0B,CAAC,GAAG;YAAE,OAAM;QAE3C,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAA;IACrF,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,IAAI;QAAE,OAAM;IAEtB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,qBAAqB,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAChG,MAAM,CAAC,qBAAqB,CAAC;QAC7B,MAAM,CAAC,yBAAyB,CAAC;QACjC,MAAM,CAAC,iCAAiC,CAAC;KACzC,CAAC,CAAA;IAEF,aAAa,CAAC,IAAI,CACjB,qBAAqB,CAAC,OAAO,EAAE;QAC9B,WAAW,EAAE,oBAAoB;QACjC,UAAU,EAAE,IAAI;KAChB,CAAC,CACF,CAAA;IAED,OAAO,SAAS,CAAC,cAAc,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -11,32 +11,23 @@ export type ScriptCallback = (...args: unknown[]) => unknown | Promise<unknown>;
|
|
|
11
11
|
/**
|
|
12
12
|
* Cleans up services and exits the script cleanly.
|
|
13
13
|
*
|
|
14
|
+
* @param exitCode - Explicit exit code; when omitted, whatever `process.exitCode` the script set (default 0) stands.
|
|
14
15
|
* @internal
|
|
15
16
|
*/
|
|
16
17
|
export declare function postScriptCleanup(signal?: NodeJS.Signals, exitCode?: number): Promise<void>;
|
|
17
18
|
/**
|
|
18
|
-
* Runs a script callback and handles cleanup.
|
|
19
|
+
* Runs a script callback and handles cleanup. A callback that throws exits 1; a clean return exits with
|
|
20
|
+
* `process.exitCode` (default 0).
|
|
19
21
|
*
|
|
20
22
|
* @internal
|
|
21
23
|
*/
|
|
22
24
|
export declare function runScript(scriptCallback: ScriptCallback): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Given a module's import.meta object, resolves if the module was run as a NPM script.
|
|
25
|
-
*
|
|
26
|
-
* ```ts
|
|
27
|
-
* runIfScript(import.meta, async () => {...})
|
|
28
|
-
* ```
|
|
29
|
-
*
|
|
30
|
-
* This is useful for conditionally running scripts without too much boilerplate.
|
|
31
|
-
*
|
|
32
|
-
* @internal
|
|
33
|
-
*/
|
|
34
|
-
export declare function runIfScript(meta: ImportMeta, scriptCallback: ScriptCallback): Promise<void>;
|
|
35
25
|
/**
|
|
36
26
|
* The ONE blessed accessor for CLI arguments. Everything outside `core/env` + this module is forbidden from touching
|
|
37
27
|
* `process.argv` directly (enforced by the `sister-software/no-process-globals` oxlint rule) — prefer `node:util`
|
|
38
28
|
* `parseArgs` (which reads this same slice by default) and reach for this only where `parseArgs` cannot express the
|
|
39
|
-
* grammar (e.g.
|
|
29
|
+
* grammar (e.g. verbatim passthrough of undeclared flags to a child process — see
|
|
30
|
+
* `corpus-python/scripts/train_with_resume.ts`).
|
|
40
31
|
*/
|
|
41
32
|
export declare function cliArguments(): string[];
|
|
42
33
|
/**
|
|
@@ -47,4 +38,4 @@ export declare function cliArguments(): string[];
|
|
|
47
38
|
export declare function childEnv(overrides?: Record<string, string | undefined>): NodeJS.ProcessEnv;
|
|
48
39
|
/** The path of the executing script (`argv[1]`) — for commands that re-spawn or reference their own CLI entry. */
|
|
49
40
|
export declare function scriptEntryPath(): string;
|
|
50
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../scripting/utils/index.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAYnD;AAED;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;AAE/E;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,MAAM,CAAC,OAAmB,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoBtG;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAevE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAGvC;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAM,GAAG,MAAM,CAAC,UAAU,CAG9F;AAED,kHAAkH;AAClH,wBAAgB,eAAe,IAAI,MAAM,CAGxC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ConsoleLogger, stringifyLoggedObject } from "../logging/index.js";
|
|
1
|
+
import { ResourceError } from "../../errors/index.js";
|
|
2
|
+
import { ServiceRepository } from "../../lifecycle/index.js";
|
|
3
|
+
import { ConsoleLogger } from "../../logging/index.js";
|
|
5
4
|
/**
|
|
6
5
|
* Logs an error that occurred while running a script.
|
|
7
6
|
*/
|
|
@@ -19,9 +18,10 @@ export function logScriptError(error) {
|
|
|
19
18
|
/**
|
|
20
19
|
* Cleans up services and exits the script cleanly.
|
|
21
20
|
*
|
|
21
|
+
* @param exitCode - Explicit exit code; when omitted, whatever `process.exitCode` the script set (default 0) stands.
|
|
22
22
|
* @internal
|
|
23
23
|
*/
|
|
24
|
-
export function postScriptCleanup(signal = "SIGTERM", exitCode
|
|
24
|
+
export function postScriptCleanup(signal = "SIGTERM", exitCode) {
|
|
25
25
|
ConsoleLogger.debug(`\n[${signal}] Shutting down...`);
|
|
26
26
|
const timeout = setTimeout(() => {
|
|
27
27
|
ConsoleLogger.error("Script did not exit in a timely manner.");
|
|
@@ -34,11 +34,12 @@ export function postScriptCleanup(signal = "SIGTERM", exitCode = 0) {
|
|
|
34
34
|
.catch(logScriptError)
|
|
35
35
|
.finally(() => {
|
|
36
36
|
clearTimeout(timeout);
|
|
37
|
-
process.exit(exitCode);
|
|
37
|
+
process.exit(exitCode ?? process.exitCode ?? 0);
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* Runs a script callback and handles cleanup.
|
|
41
|
+
* Runs a script callback and handles cleanup. A callback that throws exits 1; a clean return exits with
|
|
42
|
+
* `process.exitCode` (default 0).
|
|
42
43
|
*
|
|
43
44
|
* @internal
|
|
44
45
|
*/
|
|
@@ -47,36 +48,18 @@ export function runScript(scriptCallback) {
|
|
|
47
48
|
process.on("SIGTERM", postScriptCleanup);
|
|
48
49
|
return Promise.resolve()
|
|
49
50
|
.then(() => scriptCallback())
|
|
50
|
-
.
|
|
51
|
-
|
|
51
|
+
.then(() => postScriptCleanup(), (error) => {
|
|
52
|
+
logScriptError(error);
|
|
53
|
+
return postScriptCleanup("SIGTERM", 1);
|
|
54
|
+
})
|
|
52
55
|
.catch(() => postScriptCleanup("SIGTERM", 1));
|
|
53
56
|
}
|
|
54
|
-
/**
|
|
55
|
-
* Given a module's import.meta object, resolves if the module was run as a NPM script.
|
|
56
|
-
*
|
|
57
|
-
* ```ts
|
|
58
|
-
* runIfScript(import.meta, async () => {...})
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* This is useful for conditionally running scripts without too much boilerplate.
|
|
62
|
-
*
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
export async function runIfScript(meta, scriptCallback) {
|
|
66
|
-
if (!esMain(meta))
|
|
67
|
-
return;
|
|
68
|
-
const { $public } = await import("@mailwoman/core/env");
|
|
69
|
-
ConsoleLogger.info(stringifyLoggedObject($public, {
|
|
70
|
-
description: "Public Environment",
|
|
71
|
-
showValues: true,
|
|
72
|
-
}));
|
|
73
|
-
return runScript(scriptCallback);
|
|
74
|
-
}
|
|
75
57
|
/**
|
|
76
58
|
* The ONE blessed accessor for CLI arguments. Everything outside `core/env` + this module is forbidden from touching
|
|
77
59
|
* `process.argv` directly (enforced by the `sister-software/no-process-globals` oxlint rule) — prefer `node:util`
|
|
78
60
|
* `parseArgs` (which reads this same slice by default) and reach for this only where `parseArgs` cannot express the
|
|
79
|
-
* grammar (e.g.
|
|
61
|
+
* grammar (e.g. verbatim passthrough of undeclared flags to a child process — see
|
|
62
|
+
* `corpus-python/scripts/train_with_resume.ts`).
|
|
80
63
|
*/
|
|
81
64
|
export function cliArguments() {
|
|
82
65
|
// oxlint-disable-next-line sister-software/no-process-globals
|
|
@@ -96,4 +79,4 @@ export function scriptEntryPath() {
|
|
|
96
79
|
// oxlint-disable-next-line sister-software/no-process-globals
|
|
97
80
|
return process.argv[1];
|
|
98
81
|
}
|
|
99
|
-
//# sourceMappingURL=
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../scripting/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAEtD;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc;IAC5C,aAAa,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAA;IAElE,MAAM,eAAe,GAAG,KAAK,YAAY,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAE1F,aAAa,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;IAEpC,IAAI,eAAe,CAAC,KAAK,YAAY,KAA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EAAE,iBAAiB,CAAC,CAAA;IAExC,OAAO,OAAO,CAAC,OAAO,EAAE;SACtB,IAAI,CAAC,GAAG,EAAE,CAAC,cAAc,EAAE,CAAC;SAC5B,IAAI,CACJ,GAAG,EAAE,CAAC,iBAAiB,EAAE,EACzB,CAAC,KAAK,EAAE,EAAE;QACT,cAAc,CAAC,KAAK,CAAC,CAAA;QAErB,OAAO,iBAAiB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAA;IACvC,CAAC,CACD;SACA,KAAK,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAA;AAC/C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY;IAC3B,8DAA8D;IAC9D,OAAO,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AAC7B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,YAAgD,EAAE;IAC1E,8DAA8D;IAC9D,OAAO,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;AACxC,CAAC;AAED,kHAAkH;AAClH,MAAM,UAAU,eAAe;IAC9B,8DAA8D;IAC9D,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAE,CAAA;AACxB,CAAC"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type Classification } from "@mailwoman/core/classification";
|
|
7
7
|
import { TokenContext } from "@mailwoman/core/tokenization";
|
|
8
|
-
import type { Solver } from "./BaseSolver.
|
|
9
|
-
import { Solution } from "./Solution.
|
|
8
|
+
import type { Solver } from "./BaseSolver.ts";
|
|
9
|
+
import { Solution } from "./Solution.ts";
|
|
10
10
|
export declare abstract class HashMapSolver implements Solver {
|
|
11
11
|
static MaxMatchesPerClassification: number;
|
|
12
12
|
abstract solve(context: TokenContext): void;
|
package/out/solver/Solution.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type Classification, type ClassificationRecord } from "@mailwoman/core/classification";
|
|
7
7
|
import type { TokenContext } from "@mailwoman/core/tokenization";
|
|
8
|
-
import { type SerializedSolutionMatch, SolutionMatch } from "./SolutionMatch.
|
|
8
|
+
import { type SerializedSolutionMatch, SolutionMatch } from "./SolutionMatch.ts";
|
|
9
9
|
export interface SerializedSolution {
|
|
10
10
|
score: number;
|
|
11
11
|
penalty: number;
|
|
@@ -54,7 +54,7 @@ export declare class SolutionMatch implements SerializedSolutionMatch {
|
|
|
54
54
|
/**
|
|
55
55
|
* The languages that the match was classified as.
|
|
56
56
|
*/
|
|
57
|
-
get languages(): import("../index.
|
|
57
|
+
get languages(): import("../index.ts").Displayable<ReadonlySet<import("../index.ts").LibPostalLanguageCode | import("../index.ts").Alpha3bLanguageCode>> | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* The range of the span, i.e. the number of characters covered.
|
|
60
60
|
*/
|
package/out/solver/index.d.ts
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./BaseSolver.
|
|
7
|
-
export * from "./HashMapSolver.
|
|
8
|
-
export * from "./mask.
|
|
9
|
-
export * from "./Solution.
|
|
10
|
-
export * from "./SolutionMatch.
|
|
6
|
+
export * from "./BaseSolver.ts";
|
|
7
|
+
export * from "./HashMapSolver.ts";
|
|
8
|
+
export * from "./mask.ts";
|
|
9
|
+
export * from "./Solution.ts";
|
|
10
|
+
export * from "./SolutionMatch.ts";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
package/out/solver/mask.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import { TokenContext } from "@mailwoman/core/tokenization";
|
|
7
|
-
import { SolutionMatch } from "./SolutionMatch.
|
|
7
|
+
import { SolutionMatch } from "./SolutionMatch.ts";
|
|
8
8
|
type MaskCode = "V" | "N" | "S" | "P" | "L" | "U" | "A";
|
|
9
9
|
/**
|
|
10
10
|
* Mapping of classification labels to mask codes.
|
package/out/solvers/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./ExclusiveCartesianSolver.
|
|
7
|
-
export * from "./HouseNumberPositionPenalty.
|
|
8
|
-
export * from "./LeadingAreaDeclassifier.
|
|
9
|
-
export * from "./MultiStreetSolver.
|
|
10
|
-
export * from "./OrphanedLevelTypeDeclassifier.
|
|
11
|
-
export * from "./OrphanedUnitTypeDeclassifier.
|
|
12
|
-
export * from "./PostcodePositionPenalty.
|
|
13
|
-
export * from "./VenueCaptureSolver.
|
|
6
|
+
export * from "./ExclusiveCartesianSolver.ts";
|
|
7
|
+
export * from "./HouseNumberPositionPenalty.ts";
|
|
8
|
+
export * from "./LeadingAreaDeclassifier.ts";
|
|
9
|
+
export * from "./MultiStreetSolver.ts";
|
|
10
|
+
export * from "./OrphanedLevelTypeDeclassifier.ts";
|
|
11
|
+
export * from "./OrphanedUnitTypeDeclassifier.ts";
|
|
12
|
+
export * from "./PostcodePositionPenalty.ts";
|
|
13
|
+
export * from "./VenueCaptureSolver.ts";
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { Sequence } from "../resources/set.
|
|
6
|
+
import { Sequence } from "../resources/set.ts";
|
|
7
7
|
export type GraphNodeCallback<G> = (node: G) => boolean;
|
|
8
8
|
/**
|
|
9
9
|
* A graph structure for storing relationships between nodes.
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { type Classification, type ClassificationMatch, ClassificationsMatchMap } from "../classification/Classification.
|
|
7
|
-
import type { Displayable } from "../resources/debugging.
|
|
8
|
-
import type { Alpha3bLanguageCode } from "../resources/languages/index.
|
|
9
|
-
import type { LibPostalLanguageCode } from "../resources/libpostal.
|
|
10
|
-
import { Graph } from "./Graph.
|
|
6
|
+
import { type Classification, type ClassificationMatch, ClassificationsMatchMap } from "../classification/Classification.ts";
|
|
7
|
+
import type { Displayable } from "../resources/debugging.ts";
|
|
8
|
+
import type { Alpha3bLanguageCode } from "../resources/languages/index.ts";
|
|
9
|
+
import type { LibPostalLanguageCode } from "../resources/libpostal.ts";
|
|
10
|
+
import { Graph } from "./Graph.ts";
|
|
11
11
|
export interface SpanCreationOptions {
|
|
12
12
|
start?: number;
|
|
13
13
|
classifications?: Iterable<Classification>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
6
|
import { type SerializedSolution, type Solution } from "@mailwoman/core/solver";
|
|
7
|
-
import { type SerializedSpan, Span } from "./Span.
|
|
7
|
+
import { type SerializedSpan, Span } from "./Span.ts";
|
|
8
8
|
export interface SerializedTokenContext {
|
|
9
9
|
span: SerializedSpan;
|
|
10
10
|
solutions: SerializedSolution[];
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
export * from "./context.
|
|
7
|
-
export * from "./Graph.
|
|
8
|
-
export * from "./normalizer.
|
|
9
|
-
export * from "./permutate.
|
|
10
|
-
export * from "./Span.
|
|
6
|
+
export * from "./context.ts";
|
|
7
|
+
export * from "./Graph.ts";
|
|
8
|
+
export * from "./normalizer.ts";
|
|
9
|
+
export * from "./permutate.ts";
|
|
10
|
+
export * from "./Span.ts";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*/
|
|
6
|
-
import { Span } from "./Span.
|
|
6
|
+
import { Span } from "./Span.ts";
|
|
7
7
|
type FieldMatchPredicate = (char: string) => boolean;
|
|
8
8
|
export declare function splitByField(span: Span, predicate: FieldMatchPredicate): Span[];
|
|
9
9
|
/**
|