Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix highlighting
zadama8d12f723fb9
diff --git a/package-lock.json b/package-lock.jsonindex f408c38bf4..4e7f1cb65a 100644--- a/package-lock.json+++ b/package-lock.json@@ -198,22 +198,22 @@}},"@jimp/bmp": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/bmp/-/bmp-0.12.0.tgz",- "integrity": "sha512-PjgGVaSQvPrepsD52aTQe6B8A1G/OOYIcpXt6K59AUHQE3s6oNo9lYfyUv96gInBBIMze9s8AgLhMLjU8ijw4Q==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/bmp/-/bmp-0.12.1.tgz",+ "integrity": "sha512-t16IamuBMv4GiGa1VAMzsgrVKVANxXG81wXECzbikOUkUv7pKJ2vHZDgkLBEsZQ9sAvFCneM1+yoSRpuENrfVQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",+ "@jimp/utils": "^0.12.1","bmp-js": "^0.1.0"}},"@jimp/core": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/core/-/core-0.12.0.tgz",- "integrity": "sha512-xLF8gvRyJSCu08PI01b/MFijxoBoPusJFbSOOzMnP286qVDouxdXQy6CJB3mMosnlZRgp12I+ZgUvMsdJsL8ig==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/core/-/core-0.12.1.tgz",+ "integrity": "sha512-mWfjExYEjHxBal+1gPesGChOQBSpxO7WUQkrO9KM7orboitOdQ15G5UA75ce7XVZ+5t+FQPOLmVkVZzzTQSEJA==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",+ "@jimp/utils": "^0.12.1","any-base": "^1.1.0","buffer": "^5.2.0","exif-parser": "^0.1.12",@@ -233,292 +233,292 @@}},"@jimp/custom": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/custom/-/custom-0.12.0.tgz",- "integrity": "sha512-Rf3p50Jmvy9Aeovs0kyIpd0qbt2peLqDRq6f93AlDkUpB6OZ/rQwgJO8yysNMgI877a3xQz0Tda5j5Lv8AjWgA==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/custom/-/custom-0.12.1.tgz",+ "integrity": "sha512-bVClp8FEJ/11GFTKeRTrfH7NgUWvVO5/tQzO/68aOwMIhbz9BOYQGh533K9+mSy29VjZJo8jxZ0C9ZwYHuFwfA==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/core": "^0.12.0"+ "@jimp/core": "^0.12.1"}},"@jimp/gif": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/gif/-/gif-0.12.0.tgz",- "integrity": "sha512-CMapyrH5LGXbl2jHgQA923wHUNbC0LajqMmMHfyFZE9GZFzXULqbTZdRemHXTXn++iruPSR37oVUYi67WG9qmQ==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/gif/-/gif-0.12.1.tgz",+ "integrity": "sha512-cGn/AcvMGUGcqR6ByClGSnrja4AYmTwsGVXTQ1+EmfAdTiy6ztGgZCTDpZ/tq4SpdHXwm9wDHez7damKhTrH0g==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",+ "@jimp/utils": "^0.12.1","omggif": "^1.0.9"}},"@jimp/jpeg": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/jpeg/-/jpeg-0.12.0.tgz",- "integrity": "sha512-jAC9gWPCBJ0ysTZDqDUOVUty3/tk2qStw3N5Vk9W3XZNSTNlLp5xWsiATlkAoSrwoBmdgjf6OfZwqmkFDFVMKw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/jpeg/-/jpeg-0.12.1.tgz",+ "integrity": "sha512-UoCUHbKLj2CDCETd7LrJnmK/ExDsSfJXmc1pKkfgomvepjXogdl2KTHf141wL6D+9CfSD2VBWQLC5TvjMvcr9A==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",- "jpeg-js": "^0.3.4"+ "@jimp/utils": "^0.12.1",+ "jpeg-js": "^0.4.0"}},"@jimp/plugin-blit": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-blit/-/plugin-blit-0.12.0.tgz",- "integrity": "sha512-csSxB/ZOljGLtvRne+nF1EGpcHZ/6mdGc+trcihClTTLAS5FzX+tySpQj9sHrIzzHtEcILYPMOKaf6KC4LOrfw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-blit/-/plugin-blit-0.12.1.tgz",+ "integrity": "sha512-VRBB6bx6EpQuaH0WX8ytlGNqUQcmuxXBbzL3e+cD0W6MluYibzQy089okvXcyUS72Q+qpSMmUDCVr3pDqLAsSA==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-blur": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-blur/-/plugin-blur-0.12.0.tgz",- "integrity": "sha512-HCL570HvZxhT7Yn/Qqow00sRK0J/E4j1Clwp78vMnQWQ38PONi/Ipyjqp0RLdvCj3tJ3mzrKDqlnN2bbLcKsjQ==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-blur/-/plugin-blur-0.12.1.tgz",+ "integrity": "sha512-rTFY0yrwVJFNgNsAlYGn2GYCRLVEcPQ6cqAuhNylXuR/7oH3Acul+ZWafeKtvN8D8uMlth/6VP74gruXvwffZw==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-circle": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-circle/-/plugin-circle-0.12.0.tgz",- "integrity": "sha512-d+cRlyrM4ylXKk6TuFZcoFz8xsXqLHGfZcX+BDFe9HPz+TTW7AoL5eq8I0uLpTHRD1dLdBPScMejkn3ppLKnjg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-circle/-/plugin-circle-0.12.1.tgz",+ "integrity": "sha512-+/OiBDjby7RBbQoDX8ZsqJRr1PaGPdTaaKUVGAsrE7KCNO9ODYNFAizB9lpidXkGgJ4Wx5R4mJy21i22oY/a4Q==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-color": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-color/-/plugin-color-0.12.0.tgz",- "integrity": "sha512-RmPSwryrmLLtsNluQ9hT73EovM+KcthacDmF7VN/xnJMD/r+vXfgUcDLZDx8yQsd5kdezhtPh7wKihH2+voOwg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-color/-/plugin-color-0.12.1.tgz",+ "integrity": "sha512-xlnK/msWN4uZ+Bu7+UrCs9oMzTSA9QE0jWFnF3h0aBsD8t1LGxozkckHe8nHtC/y/sxIa8BGKSfkiaW+r6FbnA==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",+ "@jimp/utils": "^0.12.1","tinycolor2": "^1.4.1"}},"@jimp/plugin-contain": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-contain/-/plugin-contain-0.12.0.tgz",- "integrity": "sha512-mA1l2GbtmY2uLdCiwzdSJa9tZSyL5uvQwT3UrKDWaPiyhT4+VrCgQVD4CBbOFztI8ToxPcGM9GG4oRuRR2cKDQ==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-contain/-/plugin-contain-0.12.1.tgz",+ "integrity": "sha512-WZ/D6G0jhnBh2bkBh610PEh/caGhAUIAxYLsQsfSSlOxPsDhbj3S6hMbFKRgnDvf0hsd5zTIA0j1B0UG4kh18A==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-cover": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-cover/-/plugin-cover-0.12.0.tgz",- "integrity": "sha512-rTrGxCBr1dn6DOVF+g8IFUCXHpfOaZCC4kvOyx/GIE3861GqKyOWzjLRcWTVBfgyiuOx+S6kBwpadmnsFO8tHg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-cover/-/plugin-cover-0.12.1.tgz",+ "integrity": "sha512-ddWwTQO40GcabJ2UwUYCeuNxnjV4rBTiLprnjGMqAJCzdz3q3Sp20FkRf+H+E22k2v2LHss8dIOFOF4i6ycr9Q==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-crop": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-crop/-/plugin-crop-0.12.0.tgz",- "integrity": "sha512-sEz1T7waD5c+nB0aJERipc8/LSaRo4IxPzemOuzWaXxvwdUVRPtM7Rk7XOZmJyc2nW8qPNet+2JkaSjg848xgQ==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-crop/-/plugin-crop-0.12.1.tgz",+ "integrity": "sha512-CKjVkrNO8FDZKYVpMireQW4SgKBSOdF+Ip/1sWssHHe77+jGEKqOjhYju+VhT3dZJ3+75rJNI9II7Kethp+rTw==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-displace": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-displace/-/plugin-displace-0.12.0.tgz",- "integrity": "sha512-VWlTF6TEDdGoN56tnOfsHVNNtsWBHCBmT77G+2k2agbXWAPD5A++bye0y4XP/icAS//sAd7UFzvNQlnT7sIAdg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-displace/-/plugin-displace-0.12.1.tgz",+ "integrity": "sha512-MQAw2iuf1/bVJ6P95WWTLA+WBjvIZ7TeGBerkvBaTK8oWdj+NSLNRIYOIoyPbZ7DTL8f1SN4Vd6KD6BZaoWrwg==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-dither": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-dither/-/plugin-dither-0.12.0.tgz",- "integrity": "sha512-EzhHugll52ngdV1RBh1wmRUjf1jgo2GfU+Zh/a05uLxKGZEDWqGcsfFlI4lZnJbiKUhHCTNwZRCkV2w9gNJ6uw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-dither/-/plugin-dither-0.12.1.tgz",+ "integrity": "sha512-mCrBHdx2ViTLJDLcrobqGLlGhZF/Mq41bURWlElQ2ArvrQ3/xR52We9DNDfC08oQ2JVb6q3v1GnCCdn0KNojGQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-fisheye": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-fisheye/-/plugin-fisheye-0.12.0.tgz",- "integrity": "sha512-Rz/gboWtY6sow6FC4tg9kG/fNBLopjGRoMmzHVcoQK1XXI2O/tH6nrliHHv3s3AvBBrQ5qPyO5VyCb1vm9xOmA==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-fisheye/-/plugin-fisheye-0.12.1.tgz",+ "integrity": "sha512-CHvYSXtHNplzkkYzB44tENPDmvfUHiYCnAETTY+Hx58kZ0w8ERZ+OiLhUmiBcvH/QHm/US1iiNjgGUAfeQX6dg==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-flip": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-flip/-/plugin-flip-0.12.0.tgz",- "integrity": "sha512-NFeIHWU95rSmIUnUdHVAYU4dYE3X10qY2peTgbMJ+q1J2qsrUO7w6Gepfd26tA9lh41zwDD5UzuAorpHQ3z27g==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-flip/-/plugin-flip-0.12.1.tgz",+ "integrity": "sha512-xi+Yayrnln8A/C9E3yQBExjxwBSeCkt/ZQg1CxLgszVyX/3Zo8+nkV8MJYpkTpj8LCZGTOKlsE05mxu/a3lbJQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-gaussian": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-gaussian/-/plugin-gaussian-0.12.0.tgz",- "integrity": "sha512-LXus5pMzUaIYGTCoWDxRiMb5AW0gJMqet3U6+mQIP7OtSnBL2Vimz9WBbzZuEfKRMCc1l6oDwD/o/fH5ehv+TQ==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-gaussian/-/plugin-gaussian-0.12.1.tgz",+ "integrity": "sha512-7O6eKlhL37hsLfV6WAX1Cvce7vOqSwL1oWbBveC1agutDlrtvcTh1s2mQ4Pde654hCJu55mq1Ur10+ote5j3qw==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-invert": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-invert/-/plugin-invert-0.12.0.tgz",- "integrity": "sha512-fkOBCFg9P3Nkc0aFgWt5WgRP41KOs9m8OOnIi4jLnvCamv/Fv8GJLMeDS3gIXuzb/XkS0W/WpMQJmvI1+Zj2xg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-invert/-/plugin-invert-0.12.1.tgz",+ "integrity": "sha512-JTAs7A1Erbxwl+7ph7tgcb2PZ4WzB+3nb2WbfiWU8iCrKj17mMDSc5soaCCycn8wfwqvgB1vhRfGpseOLWxsuQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-mask": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-mask/-/plugin-mask-0.12.0.tgz",- "integrity": "sha512-BWe0n6EB5/b5H062Vybyd2rTkC7yV/DNtNgJiVseZiqJCwmOjZDq+Gx+gKmB3959Th9ipwdEt3nzwBwmyDBVwA==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-mask/-/plugin-mask-0.12.1.tgz",+ "integrity": "sha512-bnDdY0RO/x5Mhqoy+056SN1wEj++sD4muAKqLD2CIT8Zq5M/0TA4hkdf/+lwFy3H2C0YTK39PSE9xyb4jPX3kA==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-normalize": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-normalize/-/plugin-normalize-0.12.0.tgz",- "integrity": "sha512-w66beKgxBI1Psv7BmKDxCFJOqAxzn4whVcHgsQ31627HFTelDAf9kSTUOdcIPEwWfWg0tzkKmnHGYQhfJUHYRw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-normalize/-/plugin-normalize-0.12.1.tgz",+ "integrity": "sha512-4kSaI4JLM/PNjHwbnAHgyh51V5IlPfPxYvsZyZ1US32pebWtocxSMaSuOaJUg7OGSkwSDBv81UR2h5D+Dz1b5A==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-print": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-print/-/plugin-print-0.12.0.tgz",- "integrity": "sha512-DdPAmPlTc0rNXRD7efLnCUD2VhYe9kx6h+2mCobGA3AHakrAdJ8qndkWF6UsYxlyrLXxVTftfWKhHOTGOGyA7Q==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-print/-/plugin-print-0.12.1.tgz",+ "integrity": "sha512-T0lNS3qU9SwCHOEz7AGrdp50+gqiWGZibOL3350/X/dqoFs1EvGDjKVeWncsGCyLlpfd7M/AibHZgu8Fx2bWng==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",+ "@jimp/utils": "^0.12.1","load-bmfont": "^1.4.0"}},"@jimp/plugin-resize": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-resize/-/plugin-resize-0.12.0.tgz",- "integrity": "sha512-5qqrYmMeSyfNvFb+hdL1XDdGC2Db+/1KwWH9Zw3IxaAB4pXVPmZYMfBi9cJXd1mVHafl+FQWAEy5Ii3hXA32aw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-resize/-/plugin-resize-0.12.1.tgz",+ "integrity": "sha512-sbNn4tdBGcgGlPt9XFxCuDl4ZOoxa8/Re8nAikyxYhRss2Dqz91ARbBQxOf1vlUGeicQMsjEuWbPQAogTSJRug==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-rotate": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-rotate/-/plugin-rotate-0.12.0.tgz",- "integrity": "sha512-tOgn86RoFyDm+BJOfdhPXNjaUiaotKcvMzfdR/o4kL/55y+x7xfVj7v7CJbvudnG29bDwEM+3r8HwfaQsezosg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-rotate/-/plugin-rotate-0.12.1.tgz",+ "integrity": "sha512-RYkLzwG2ervG6hHy8iepbIVeWdT1kz4Qz044eloqo6c66MK0KAqp228YI8+CAKm0joQnVDC/A0FgRIj/K8uyAw==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-scale": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.12.0.tgz",- "integrity": "sha512-FS8MWgUcCZ1nwFX4YupTK59nuTqK8seo2CXJeHXgGjl8UU6c/EPBD9SrAuqSNbngcDY9fZ65i6srUyqrQ8kk7w==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-scale/-/plugin-scale-0.12.1.tgz",+ "integrity": "sha512-zjNVI1fUj+ywfG78T1ZU33g9a5sk4rhEQkkhtny8koAscnVsDN2YaZEKoFli54kqaWh5kSS5DDL7a/9pEfXnFQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-shadow": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-shadow/-/plugin-shadow-0.12.0.tgz",- "integrity": "sha512-FzzTVccC6BkL9Y0rFxI5Di4JEZvCxKq7AyyK6qI7OwBrwxoAmtUodkxGDZTUvYfpmtMZeLWG9TUVrJ/sBQ+NWA==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-shadow/-/plugin-shadow-0.12.1.tgz",+ "integrity": "sha512-Z82IwvunXWQ2jXegd3W3TYUXpfJcEvNbHodr7Z+oVnwhM1OoQ5QC6RSRQwsj2qXIhbGffQjH8eguHgEgAV+u5w==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugin-threshold": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugin-threshold/-/plugin-threshold-0.12.0.tgz",- "integrity": "sha512-Sqf2MFDQY/kz0sAPtfjjG4BUcrF58lT09h2EJ75Rdc3hiAWrB7XizLvnI1J8rooHci8Ablbkb/E6xu+52KOGuw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugin-threshold/-/plugin-threshold-0.12.1.tgz",+ "integrity": "sha512-PFezt5fSk0q+xKvdpuv0eLggy2I7EgYotrK8TRZOT0jimuYFXPF0Z514c6szumoW5kEsRz04L1HkPT1FqI97Yg==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0"+ "@jimp/utils": "^0.12.1"}},"@jimp/plugins": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/plugins/-/plugins-0.12.0.tgz",- "integrity": "sha512-P/1vKex4P697ayzVysMSjckcHE2Ii61tyNkq9t1RSZuERgyE616llVKMcil0aVYTnoqapjOwEW36c/fWY8Zj6g==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/plugins/-/plugins-0.12.1.tgz",+ "integrity": "sha512-7+Yp29T6BbYo+Oqnc+m7A5AH+O+Oy5xnxvxlfmsp48+SuwEZ4akJp13Gu2PSmRlylENzR7MlWOxzhas5ERNlIg==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/plugin-blit": "^0.12.0",- "@jimp/plugin-blur": "^0.12.0",- "@jimp/plugin-circle": "^0.12.0",- "@jimp/plugin-color": "^0.12.0",- "@jimp/plugin-contain": "^0.12.0",- "@jimp/plugin-cover": "^0.12.0",- "@jimp/plugin-crop": "^0.12.0",- "@jimp/plugin-displace": "^0.12.0",- "@jimp/plugin-dither": "^0.12.0",- "@jimp/plugin-fisheye": "^0.12.0",- "@jimp/plugin-flip": "^0.12.0",- "@jimp/plugin-gaussian": "^0.12.0",- "@jimp/plugin-invert": "^0.12.0",- "@jimp/plugin-mask": "^0.12.0",- "@jimp/plugin-normalize": "^0.12.0",- "@jimp/plugin-print": "^0.12.0",- "@jimp/plugin-resize": "^0.12.0",- "@jimp/plugin-rotate": "^0.12.0",- "@jimp/plugin-scale": "^0.12.0",- "@jimp/plugin-shadow": "^0.12.0",- "@jimp/plugin-threshold": "^0.12.0",+ "@jimp/plugin-blit": "^0.12.1",+ "@jimp/plugin-blur": "^0.12.1",+ "@jimp/plugin-circle": "^0.12.1",+ "@jimp/plugin-color": "^0.12.1",+ "@jimp/plugin-contain": "^0.12.1",+ "@jimp/plugin-cover": "^0.12.1",+ "@jimp/plugin-crop": "^0.12.1",+ "@jimp/plugin-displace": "^0.12.1",+ "@jimp/plugin-dither": "^0.12.1",+ "@jimp/plugin-fisheye": "^0.12.1",+ "@jimp/plugin-flip": "^0.12.1",+ "@jimp/plugin-gaussian": "^0.12.1",+ "@jimp/plugin-invert": "^0.12.1",+ "@jimp/plugin-mask": "^0.12.1",+ "@jimp/plugin-normalize": "^0.12.1",+ "@jimp/plugin-print": "^0.12.1",+ "@jimp/plugin-resize": "^0.12.1",+ "@jimp/plugin-rotate": "^0.12.1",+ "@jimp/plugin-scale": "^0.12.1",+ "@jimp/plugin-shadow": "^0.12.1",+ "@jimp/plugin-threshold": "^0.12.1","timm": "^1.6.1"}},"@jimp/png": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/png/-/png-0.12.0.tgz",- "integrity": "sha512-5MgVBRhjkivIHy7cJ6QnU4CygndSde0ZMcaVkfBIyh6gd8pCcIG/XbY2TcR9lSkflgw3tUVzLrFR1xWUYr2trg==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/png/-/png-0.12.1.tgz",+ "integrity": "sha512-tOUSJMJzcMAN82F9/Q20IToquIVWzvOe/7NIpVQJn6m+Lq6TtVmd7d8gdcna9AEFm2FIza5lhq2Kta6Xj0KXhQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/utils": "^0.12.0",+ "@jimp/utils": "^0.12.1","pngjs": "^3.3.3"}},"@jimp/tiff": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.12.0.tgz",- "integrity": "sha512-h7HBCSjTA4YlnWx66qxQh9YxuzxMoBSGkTiUDEhao2BIhYa2pRmRwtMfqp1EdeRYcXkswWpn4qZAr7zY1TlIGw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/tiff/-/tiff-0.12.1.tgz",+ "integrity": "sha512-bzWDgv3202TKhaBGzV9OFF0PVQWEb4194h9kv5js348SSnbCusz/tzTE1EwKrnbDZThZPgTB1ryKs7D+Q9Mhmg==","requires": {"@babel/runtime": "^7.7.2","utif": "^2.0.1"}},"@jimp/types": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.12.0.tgz",- "integrity": "sha512-6avU1n9lY4vpAHjKSQqrLbk6L5PCNFORre+T1Rcyvv/CGQKxVIAuRj1w+RzXClob8MEmvI17OI3R2w5RCbYpQw==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/types/-/types-0.12.1.tgz",+ "integrity": "sha512-hg5OKXpWWeKGuDrfibrjWWhr7hqb7f552wqnPWSLQpVrdWgjH+hpOv6cOzdo9bsU78qGTelZJPxr0ERRoc+MhQ==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/bmp": "^0.12.0",- "@jimp/gif": "^0.12.0",- "@jimp/jpeg": "^0.12.0",- "@jimp/png": "^0.12.0",- "@jimp/tiff": "^0.12.0",+ "@jimp/bmp": "^0.12.1",+ "@jimp/gif": "^0.12.1",+ "@jimp/jpeg": "^0.12.1",+ "@jimp/png": "^0.12.1",+ "@jimp/tiff": "^0.12.1","timm": "^1.6.1"}},"@jimp/utils": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.12.0.tgz",- "integrity": "sha512-MVoR31cQ6QRXHQI+qS9po7sr1LQTOOpQHE9I2oVeakcDkVX80xrRBif3WoNPvq3BG2+BDxt09CFwwHFHHFY49Q==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/@jimp/utils/-/utils-0.12.1.tgz",+ "integrity": "sha512-EjPkDQOzV/oZfbolEUgFT6SE++PtCccVBvjuACkttyCfl0P2jnpR49SwstyVLc2u8AwBAZEHHAw9lPYaMjtbXQ==","requires": {"@babel/runtime": "^7.7.2","regenerator-runtime": "^0.13.3"@@ -588,9 +588,9 @@"integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g=="},"@types/fs-extra": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.0.tgz",- "integrity": "sha512-UoOfVEzAUpeSPmjm7h1uk5MH6KZma2z2O7a75onTGjnNvAvMVrPzPL/vBbT65iIGHWj6rokwfmYcmxmlSf2uwg==",+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-8.1.1.tgz",+ "integrity": "sha512-TcUlBem321DFQzBNuz8p0CLLKp0VvF/XH9E4KHNmgwyp4E3AfgI5cjiIVZWlbfThBop2qxFIh4+LeY6hVWWZ2w==","dev": true,"requires": {"@types/node": "*"@@ -617,9 +617,9 @@"integrity": "sha512-KPYGmfD0/b1eXurQ59fXD1GBzhSQfz6/lKBxkaHX9dKTzjXbK68Zt7yGUxUsCS1jeTy/8aL+d9JEr+S54mpkWQ=="},"@types/yargs": {- "version": "15.0.4",- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.4.tgz",- "integrity": "sha512-9T1auFmbPZoxHz0enUFlUuKRy3it01R+hlggyVUMtnCTQRunsQYifnSGb8hET4Xo8yiC0o0r1paW3ud5+rbURg==",+ "version": "15.0.5",+ "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.5.tgz",+ "integrity": "sha512-Dk/IDOPtOgubt/IaevIUbTgV7doaKkoorvOyYM2CMwuDyP89bekI7H4xLIwunNYiK9jhCkmc6pUrJk3cj2AB9w==","dev": true,"requires": {"@types/yargs-parser": "*"@@ -1161,27 +1161,27 @@"integrity": "sha512-uMgjozySS8adZZYePpaWs8cxB9/kdzmpX6SgJZ+wbz1K5eYk5QMYDVJaZKhxyIHUdnnJkfR7SVgStgH7LkGUyg=="},"app-builder-bin": {- "version": "3.5.8",- "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-3.5.8.tgz",- "integrity": "sha512-ni3q7QTfQNWHNWuyn5x3FZu6GnQZv+TFnfgk5++svqleKEhHGqS1mIaKsh7x5pBX6NFXU3/+ktk98wA/AW4EXw==",+ "version": "3.5.9",+ "resolved": "https://registry.npmjs.org/app-builder-bin/-/app-builder-bin-3.5.9.tgz",+ "integrity": "sha512-NSjtqZ3x2kYiDp3Qezsgukx/AUzKPr3Xgf9by4cYt05ILWGAptepeeu0Uv+7MO+41o6ujhLixTou8979JGg2Kg==","dev": true},"app-builder-lib": {- "version": "22.6.0",- "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-22.6.0.tgz",- "integrity": "sha512-ky2aLYy92U+Gh6dKq/e8/bNmCotp6/GMhnX8tDZPv9detLg9WuBnWWi1ktBPlpbl1DREusy+TIh+9rgvfduQoA==",+ "version": "22.6.1",+ "resolved": "https://registry.npmjs.org/app-builder-lib/-/app-builder-lib-22.6.1.tgz",+ "integrity": "sha512-ENL7r+H7IBfDb4faeLASgndsXrAT7AV7m7yJjcpbFDXYma6an7ZWGFIvR0HJrsfiC5TIB8kdLJ/aMSImrrSi/Q==","dev": true,"requires": {"7zip-bin": "~5.0.3","@develar/schema-utils": "~2.6.5","async-exit-hook": "^2.0.1","bluebird-lst": "^1.0.9",- "builder-util": "22.6.0",+ "builder-util": "22.6.1","builder-util-runtime": "8.7.0","chromium-pickle-js": "^0.2.0","debug": "^4.1.1","ejs": "^3.1.2",- "electron-publish": "22.6.0",+ "electron-publish": "22.6.1","fs-extra": "^9.0.0","hosted-git-info": "^3.0.4","is-ci": "^2.0.0",@@ -1232,7 +1232,7 @@"dependencies": {"file-type": {"version": "3.9.0",- "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz",+ "resolved": "http://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz","integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek="}}@@ -1508,7 +1508,7 @@},"uuid": {"version": "2.0.3",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz",+ "resolved": "http://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz","integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho="}}@@ -1542,7 +1542,7 @@"dependencies": {"semver": {"version": "4.3.6",- "resolved": "https://registry.npmjs.org/semver/-/semver-4.3.6.tgz",+ "resolved": "http://registry.npmjs.org/semver/-/semver-4.3.6.tgz","integrity": "sha1-MAvG4OhjdPe6YQaLWx7NV/xlMto="}}@@ -1562,7 +1562,7 @@},"bl": {"version": "1.2.2",- "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz",+ "resolved": "http://registry.npmjs.org/bl/-/bl-1.2.2.tgz","integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==","requires": {"readable-stream": "^2.3.5",@@ -1822,26 +1822,26 @@"dependencies": {"file-type": {"version": "3.9.0",- "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz",+ "resolved": "http://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz","integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek="},"uuid": {"version": "2.0.3",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz",+ "resolved": "http://registry.npmjs.org/uuid/-/uuid-2.0.3.tgz","integrity": "sha1-Z+LoY3lyFVMN/zGOW/nc6/1Hsho="}}},"builder-util": {- "version": "22.6.0",- "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-22.6.0.tgz",- "integrity": "sha512-jgdES2ExJYkuXC3DEaGAjFctKNA81C4QDy8zdoc+rqdSqheTizuDNtZg02uMFklmUES4V4fggmqds+Y7wraqng==",+ "version": "22.6.1",+ "resolved": "https://registry.npmjs.org/builder-util/-/builder-util-22.6.1.tgz",+ "integrity": "sha512-A9cF+bSHqRTSKIUHEyE92Tl0Uh12N7yZRH9bccIL3gRUwtp6ulF28LsjNIWTSQ1clZo2M895cT5PCrKzjPQFVg==","dev": true,"requires": {"7zip-bin": "~5.0.3","@types/debug": "^4.1.5","@types/fs-extra": "^8.1.0",- "app-builder-bin": "3.5.8",+ "app-builder-bin": "3.5.9","bluebird-lst": "^1.0.9","builder-util-runtime": "8.7.0","chalk": "^4.0.0",@@ -1889,16 +1889,6 @@"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==","dev": true},- "source-map-support": {- "version": "0.5.19",- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz",- "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==",- "dev": true,- "requires": {- "buffer-from": "^1.0.0",- "source-map": "^0.6.0"- }- },"stat-mode": {"version": "1.0.0","resolved": "https://registry.npmjs.org/stat-mode/-/stat-mode-1.0.0.tgz",@@ -1942,7 +1932,7 @@},"readable-stream": {"version": "1.1.14",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz","integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=","requires": {"core-util-is": "~1.0.0",@@ -2117,7 +2107,7 @@},"chalk": {"version": "1.1.3",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",+ "resolved": "http://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz","integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=","requires": {"ansi-styles": "^2.2.1",@@ -2434,7 +2424,7 @@},"commander": {"version": "2.8.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-2.8.1.tgz",+ "resolved": "http://registry.npmjs.org/commander/-/commander-2.8.1.tgz","integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=","requires": {"graceful-readlink": ">= 1.0.0"@@ -3099,7 +3089,7 @@},"readable-stream": {"version": "1.1.14",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz","integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=","requires": {"core-util-is": "~1.0.0",@@ -3124,13 +3114,13 @@}},"dmg-builder": {- "version": "22.6.0",- "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-22.6.0.tgz",- "integrity": "sha512-rJxuGhHIpcuDGBtWZMM8aLxkbZNgYO2MO5dUerDIBXebhX1K8DA23iz/uZ8ahcRNgWEv57b8GDqJbXKEfr5T0A==",+ "version": "22.6.1",+ "resolved": "https://registry.npmjs.org/dmg-builder/-/dmg-builder-22.6.1.tgz",+ "integrity": "sha512-jUTN0acP15puzevtQASj7QEPgUGpedWSuSnOwR/++JbeYRTwU2oro09h/KZnaeMcxgxjdmT3tYLJeY1XUfPbRg==","dev": true,"requires": {- "app-builder-lib": "22.6.0",- "builder-util": "22.6.0",+ "app-builder-lib": "22.6.1",+ "builder-util": "22.6.1","fs-extra": "^9.0.0","iconv-lite": "^0.5.1","js-yaml": "^3.13.1",@@ -3327,18 +3317,18 @@}},"electron-builder": {- "version": "22.6.0",- "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-22.6.0.tgz",- "integrity": "sha512-aLHlB6DTfjJ3MI4AUIFeWnwIozNgNlbOk2c2sTHxB10cAKp0dBVSPZ7xF5NK0uwDhElvRzJQubnHtJD6zKg42Q==",+ "version": "22.6.1",+ "resolved": "https://registry.npmjs.org/electron-builder/-/electron-builder-22.6.1.tgz",+ "integrity": "sha512-3/VNg9GfXKHM53TilFtfF1+bsAR8THK1XHgeqCpsiequa02J9jTPc/DhpCUKQPkrs6/EIGxP7uboop7XYoew0Q==","dev": true,"requires": {- "@types/yargs": "^15.0.4",- "app-builder-lib": "22.6.0",+ "@types/yargs": "^15.0.5",+ "app-builder-lib": "22.6.1","bluebird-lst": "^1.0.9",- "builder-util": "22.6.0",+ "builder-util": "22.6.1","builder-util-runtime": "8.7.0","chalk": "^4.0.0",- "dmg-builder": "22.6.0",+ "dmg-builder": "22.6.1","fs-extra": "^9.0.0","is-ci": "^2.0.0","lazy-val": "^1.0.4",@@ -3705,19 +3695,19 @@}},"electron-publish": {- "version": "22.6.0",- "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-22.6.0.tgz",- "integrity": "sha512-+v05SBf9qR7Os5au+fifloNHy5QxHQkUGudBj68YaTb43Pn37UkwRxSc49Lf13s4wW32ohM45g8BOVInPJEdnA==",+ "version": "22.6.1",+ "resolved": "https://registry.npmjs.org/electron-publish/-/electron-publish-22.6.1.tgz",+ "integrity": "sha512-/MkS47ospdSfAFW5Jp52OzYou14HhGJpZ51uAc3GJ5rCfACeqpimC/n1ajRLE3hcXxTWfd3t9MCuClq5jrUO5w==","dev": true,"requires": {"@types/fs-extra": "^8.1.0","bluebird-lst": "^1.0.9",- "builder-util": "22.6.0",+ "builder-util": "22.6.1","builder-util-runtime": "8.7.0","chalk": "^4.0.0","fs-extra": "^9.0.0","lazy-val": "^1.0.4",- "mime": "^2.4.4"+ "mime": "^2.4.5"},"dependencies": {"ansi-styles": {@@ -4419,9 +4409,9 @@}},"file-type": {- "version": "14.4.0",- "resolved": "https://registry.npmjs.org/file-type/-/file-type-14.4.0.tgz",- "integrity": "sha512-U5Q2lHPcERmBsg+DpS/+0r+g7PCsJmyW+aggHnGbMimCyNCpIerLv/VzHJHqtc0O91AXr4Puz4DL7LzA5hMdwA==",+ "version": "14.5.0",+ "resolved": "https://registry.npmjs.org/file-type/-/file-type-14.5.0.tgz",+ "integrity": "sha512-hIxIT/8DPClkKbC+IEoZvcQ5aBhsivh4aWzLMvmkp9Uabzey7gFNNPmTOwp8O/b2DkJ8a4FkFMkyFzkyRVsJXg==","requires": {"readable-web-to-node-stream": "^2.0.0","strtok3": "^6.0.0",@@ -4928,7 +4918,7 @@},"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="},"getpass": {@@ -5192,7 +5182,7 @@},"got": {"version": "5.7.1",- "resolved": "https://registry.npmjs.org/got/-/got-5.7.1.tgz",+ "resolved": "http://registry.npmjs.org/got/-/got-5.7.1.tgz","integrity": "sha1-X4FjWmHkplifGAVp6k44FoClHzU=","requires": {"create-error-class": "^3.0.1",@@ -5840,7 +5830,7 @@},"into-stream": {"version": "3.1.0",- "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz",+ "resolved": "http://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz","integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=","requires": {"from2": "^2.1.1",@@ -5992,7 +5982,7 @@},"is-obj": {"version": "1.0.1",- "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",+ "resolved": "http://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz","integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8="},"is-object": {@@ -6250,21 +6240,21 @@}},"jimp": {- "version": "0.12.0",- "resolved": "https://registry.npmjs.org/jimp/-/jimp-0.12.0.tgz",- "integrity": "sha512-8QD1QNk2ZpoSFLDEQn4rlQ0sDAO1z6UagIqUsH6YjopHCExcAbk3q2hJFXk6wSf+LMHHkic44PhdVTZ0drER2w==",+ "version": "0.12.1",+ "resolved": "https://registry.npmjs.org/jimp/-/jimp-0.12.1.tgz",+ "integrity": "sha512-0soPJif+yjmzmOF+4cF2hyhxUWWpXpQntsm2joJXFFoRcQiPzsG4dbLKYqYPT3Fc6PjZ8MaLtCkDqqckVSfmRw==","requires": {"@babel/runtime": "^7.7.2",- "@jimp/custom": "^0.12.0",- "@jimp/plugins": "^0.12.0",- "@jimp/types": "^0.12.0",+ "@jimp/custom": "^0.12.1",+ "@jimp/plugins": "^0.12.1",+ "@jimp/types": "^0.12.1","regenerator-runtime": "^0.13.3"}},"jpeg-js": {- "version": "0.3.7",- "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.3.7.tgz",- "integrity": "sha512-9IXdWudL61npZjvLuVe/ktHiA41iE8qFyLB+4VDTblEsWBzeg8WQTlktdUK4CdncUqtUgUg0bbOmTE2bKBKaBQ=="+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.0.tgz",+ "integrity": "sha512-960VHmtN1vTpasX/1LupLohdP5odwAT7oK/VSm6mW0M58LbrBnowLAPWAZhWGhDAGjzbMnPXZxzB/QYgBwkN0w=="},"js-yaml": {"version": "3.13.1",@@ -6626,7 +6616,7 @@},"load-json-file": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz","integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=","requires": {"graceful-fs": "^4.1.2",@@ -7135,7 +7125,7 @@},"minimist": {"version": "1.2.0",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz","integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ="},"minipass": {@@ -7235,7 +7225,7 @@},"mkdirp": {"version": "0.5.1",- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",+ "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz","integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=","requires": {"minimist": "0.0.8"@@ -7243,7 +7233,7 @@"dependencies": {"minimist": {"version": "0.0.8",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",+ "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz","integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="}}@@ -7437,7 +7427,7 @@},"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="},"got": {@@ -7473,7 +7463,7 @@},"p-cancelable": {"version": "0.4.1",- "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz",+ "resolved": "http://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz","integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ=="},"p-event": {@@ -7597,7 +7587,7 @@"dependencies": {"file-type": {"version": "3.9.0",- "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz",+ "resolved": "http://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz","integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek="}}@@ -7622,7 +7612,7 @@"dependencies": {"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="},"pify": {@@ -7679,7 +7669,7 @@},"get-stream": {"version": "2.3.1",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz","integrity": "sha1-Xzj5PzRgCWZu4BUKBUFn+Rvdld4=","requires": {"object-assign": "^4.0.1",@@ -7709,7 +7699,7 @@"dependencies": {"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="}}@@ -7749,7 +7739,7 @@},"pify": {"version": "2.3.0",- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",+ "resolved": "http://registry.npmjs.org/pify/-/pify-2.3.0.tgz","integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw="},"prepend-http": {@@ -7854,7 +7844,7 @@},"readable-stream": {"version": "1.1.14",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz","integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=","requires": {"core-util-is": "~1.0.0",@@ -7928,9 +7918,9 @@"integrity": "sha512-0L9FvHG3nfnnmaEQPjT9xhfN4ISk0A8/2j4M37Np4mcDesJjHgEUfgPhdCyZuFI954tjokaIj/A3NdpFNdEh4Q=="},"node-abi": {- "version": "2.16.0",- "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.16.0.tgz",- "integrity": "sha512-+sa0XNlWDA6T+bDLmkCUYn6W5k5W6BPRL6mqzSCs6H/xUgtl4D5x2fORKDzopKiU6wsyn/+wXlRXwXeSp+mtoA==",+ "version": "2.17.0",+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.17.0.tgz",+ "integrity": "sha512-dFRAA0ACk/aBo0TIXQMEWMLUTyWYYT8OBYIzLmEUrQTElGRjxDCvyBZIsDL0QA7QCaj9PrawhOmTEdsuLY4uOQ==","requires": {"semver": "^5.4.1"},@@ -8232,7 +8222,7 @@},"onetime": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz","integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k="},"open": {@@ -8384,7 +8374,7 @@},"p-is-promise": {"version": "1.1.0",- "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz",+ "resolved": "http://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz","integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4="},"p-limit": {@@ -8865,7 +8855,7 @@},"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="}}@@ -9149,7 +9139,7 @@"dependencies": {"file-type": {"version": "3.9.0",- "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz",+ "resolved": "http://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz","integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek="}}@@ -9174,7 +9164,7 @@"dependencies": {"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="},"pify": {@@ -9212,7 +9202,7 @@},"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="}}@@ -9264,7 +9254,7 @@},"get-stream": {"version": "2.3.1",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-2.3.1.tgz","integrity": "sha1-Xzj5PzRgCWZu4BUKBUFn+Rvdld4=","requires": {"object-assign": "^4.0.1",@@ -9294,7 +9284,7 @@"dependencies": {"get-stream": {"version": "3.0.0",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",+ "resolved": "http://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz","integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ="}}@@ -9482,7 +9472,7 @@},"query-string": {"version": "5.1.1",- "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz",+ "resolved": "http://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz","integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==","requires": {"decode-uri-component": "^0.2.0",@@ -9557,9 +9547,9 @@}},"rcedit": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/rcedit/-/rcedit-2.1.1.tgz",- "integrity": "sha512-N1JyXxHD2zpqqW4A77RNK1d/M+tyed9JkvL/lnUI5cf4igF/8B9FNLFCtDUhGrk2GWEPxC+RF0WXWWB3I8QC7w=="+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/rcedit/-/rcedit-2.2.0.tgz",+ "integrity": "sha512-dhFtYmQS+V8qQIANyX6zDK+sO50ayDePKApi46ZPK8I6QeyyTDD6LManMa7a3p3c9mLM4zi9QBP41pfhQ9p7Sg=="},"read-all-stream": {"version": "3.1.0",@@ -9621,7 +9611,7 @@},"readable-stream": {"version": "2.3.6",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz","integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==","requires": {"core-util-is": "~1.0.0",@@ -10489,7 +10479,7 @@},"strip-ansi": {"version": "3.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",+ "resolved": "http://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz","integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=","requires": {"ansi-regex": "^2.0.0"@@ -10514,7 +10504,7 @@},"strip-dirs": {"version": "1.1.1",- "resolved": "https://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz",+ "resolved": "http://registry.npmjs.org/strip-dirs/-/strip-dirs-1.1.1.tgz","integrity": "sha1-lgu9EoeETzl1pFWKoQOoJV4kVqA=","requires": {"chalk": "^1.0.0",@@ -10772,7 +10762,7 @@},"through": {"version": "2.3.8",- "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",+ "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz","integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="},"through2": {@@ -10791,7 +10781,7 @@},"readable-stream": {"version": "1.0.34",- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",+ "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz","integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=","requires": {"core-util-is": "~1.0.0",diff --git a/spec/parser.spec.js b/spec/parser.spec.jsindex 1fd9390310..05fabea011 100644--- a/spec/parser.spec.js+++ b/spec/parser.spec.js@@ -2,14 +2,22 @@ const parser = require('../src/services/search/parser');describe("Parser", () => {it("fulltext parser without content", () => {- const rootExp = parser(["hello", "hi"], [], false);+ const rootExp = parser({+ fulltextTokens: ["hello", "hi"],+ expressionTokens: [],+ includingNoteContent: false+ });expect(rootExp.constructor.name).toEqual("NoteCacheFulltextExp");expect(rootExp.tokens).toEqual(["hello", "hi"]);});it("fulltext parser with content", () => {- const rootExp = parser(["hello", "hi"], [], true);+ const rootExp = parser({+ fulltextTokens: ["hello", "hi"],+ expressionTokens: [],+ includingNoteContent: true+ });expect(rootExp.constructor.name).toEqual("OrExp");const [firstSub, secondSub] = rootExp.subExpressions;@@ -22,7 +30,11 @@ describe("Parser", () => {});it("simple label comparison", () => {- const rootExp = parser([], ["#mylabel", "=", "text"], true);+ const rootExp = parser({+ fulltextTokens: [],+ expressionTokens: ["#mylabel", "=", "text"],+ includingNoteContent: true+ });expect(rootExp.constructor.name).toEqual("FieldComparisonExp");expect(rootExp.attributeType).toEqual("label");@@ -31,7 +43,11 @@ describe("Parser", () => {});it("simple label AND", () => {- const rootExp = parser([], ["#first", "=", "text", "AND", "#second", "=", "text"], true);+ const rootExp = parser({+ fulltextTokens: [],+ expressionTokens: ["#first", "=", "text", "AND", "#second", "=", "text"],+ includingNoteContent: true+ });expect(rootExp.constructor.name).toEqual("AndExp");const [firstSub, secondSub] = rootExp.subExpressions;@@ -44,7 +60,11 @@ describe("Parser", () => {});it("simple label AND without explicit AND", () => {- const rootExp = parser([], ["#first", "=", "text", "#second", "=", "text"], true);+ const rootExp = parser({+ fulltextTokens: [],+ expressionTokens: ["#first", "=", "text", "#second", "=", "text"],+ includingNoteContent: true+ });expect(rootExp.constructor.name).toEqual("AndExp");const [firstSub, secondSub] = rootExp.subExpressions;@@ -57,7 +77,11 @@ describe("Parser", () => {});it("simple label OR", () => {- const rootExp = parser([], ["#first", "=", "text", "OR", "#second", "=", "text"], true);+ const rootExp = parser({+ fulltextTokens: [],+ expressionTokens: ["#first", "=", "text", "OR", "#second", "=", "text"],+ includingNoteContent: true+ });expect(rootExp.constructor.name).toEqual("OrExp");const [firstSub, secondSub] = rootExp.subExpressions;@@ -70,7 +94,11 @@ describe("Parser", () => {});it("fulltext and simple label", () => {- const rootExp = parser(["hello"], ["#mylabel", "=", "text"], false);+ const rootExp = parser({+ fulltextTokens: ["hello"],+ expressionTokens: ["#mylabel", "=", "text"],+ includingNoteContent: false+ });expect(rootExp.constructor.name).toEqual("AndExp");const [firstSub, secondSub] = rootExp.subExpressions;@@ -83,7 +111,11 @@ describe("Parser", () => {});it("label sub-expression", () => {- const rootExp = parser([], ["#first", "=", "text", "OR", ["#second", "=", "text", "AND", "#third", "=", "text"]], false);+ const rootExp = parser({+ fulltextTokens: [],+ expressionTokens: ["#first", "=", "text", "OR", ["#second", "=", "text", "AND", "#third", "=", "text"]],+ includingNoteContent: false+ });expect(rootExp.constructor.name).toEqual("OrExp");const [firstSub, secondSub] = rootExp.subExpressions;diff --git a/src/services/search/parser.js b/src/services/search/parser.jsindex bf82e4b21a..d63d143740 100644--- a/src/services/search/parser.js+++ b/src/services/search/parser.js@@ -7,7 +7,9 @@ const NoteCacheFulltextExp = require('./expressions/note_cache_fulltext');const NoteContentFulltextExp = require('./expressions/note_content_fulltext');const comparatorBuilder = require('./comparator_builder');-function getFulltext(tokens, includingNoteContent) {+function getFulltext(tokens, includingNoteContent, highlightedTokens) {+ highlightedTokens.push(...tokens);+if (tokens.length === 0) {return null;}@@ -26,7 +28,7 @@ function isOperator(str) {return str.match(/^[=<>*]+$/);}-function getExpression(tokens) {+function getExpression(tokens, highlightedTokens) {if (tokens.length === 0) {return null;}@@ -42,15 +44,19 @@ function getExpression(tokens) {}if (Array.isArray(token)) {- expressions.push(getExpression(token));+ expressions.push(getExpression(token, highlightedTokens));}else if (token.startsWith('#') || token.startsWith('@')) {const type = token.startsWith('#') ? 'label' : 'relation';+ highlightedTokens.push(token.substr(1));+if (i < tokens.length - 2 && isOperator(tokens[i + 1])) {const operator = tokens[i + 1];const comparedValue = tokens[i + 2];+ highlightedTokens.push(comparedValue);+const comparator = comparatorBuilder(operator, comparedValue);if (!comparator) {@@ -93,10 +99,12 @@ function getExpression(tokens) {}}-function parse(fulltextTokens, expressionTokens, includingNoteContent) {+function parse({fulltextTokens, expressionTokens, includingNoteContent, highlightedTokens}) {+ highlightedTokens = highlightedTokens || [];+return AndExp.of([- getFulltext(fulltextTokens, includingNoteContent),- getExpression(expressionTokens)+ getFulltext(fulltextTokens, includingNoteContent, highlightedTokens),+ getExpression(expressionTokens, highlightedTokens)]);}diff --git a/src/services/search/search.js b/src/services/search/search.jsindex 6a51f5abcb..a4d86802f8 100644--- a/src/services/search/search.js+++ b/src/services/search/search.js@@ -42,10 +42,16 @@ async function findNotesWithExpression(expression) {return searchResults;}-function parseQueryToExpression(query) {+function parseQueryToExpression(query, highlightedTokens) {const {fulltextTokens, expressionTokens} = lexer(query);const structuredExpressionTokens = parens(expressionTokens);- const expression = parser(fulltextTokens, structuredExpressionTokens, false);++ const expression = parser({+ fulltextTokens,+ expressionTokens: structuredExpressionTokens,+ includingNoteContent: false,+ highlightedTokens+ });return expression;}@@ -55,7 +61,9 @@ async function searchNotesForAutocomplete(query) {return [];}- const expression = parseQueryToExpression(query);+ const highlightedTokens = [];++ const expression = parseQueryToExpression(query, highlightedTokens);if (!expression) {return [];@@ -65,7 +73,7 @@ async function searchNotesForAutocomplete(query) {searchResults = searchResults.slice(0, 200);- highlightSearchResults(searchResults, query);+ highlightSearchResults(searchResults, highlightedTokens);return searchResults.map(result => {return {@@ -76,20 +84,14 @@ async function searchNotesForAutocomplete(query) {});}-function highlightSearchResults(searchResults, query) {- let tokens = query- .trim() // necessary because even with .split() trailing spaces are tokens which causes havoc- .toLowerCase()- .split(/[ -]/)- .filter(token => token !== '/');-+function highlightSearchResults(searchResults, highlightedTokens) {// we remove < signs because they can cause trouble in matching and overwriting existing highlighted chunks// which would make the resulting HTML string invalid.// { and } are used for marking <b> and </b> tag (to avoid matches on single 'b' character)- tokens = tokens.map(token => token.replace('/[<\{\}]/g', ''));+ highlightedTokens = highlightedTokens.map(token => token.replace('/[<\{\}]/g', ''));// sort by the longest so we first highlight longest matches- tokens.sort((a, b) => a.length > b.length ? -1 : 1);+ highlightedTokens.sort((a, b) => a.length > b.length ? -1 : 1);for (const result of searchResults) {const note = noteCache.notes[result.noteId];@@ -97,13 +99,13 @@ function highlightSearchResults(searchResults, query) {result.highlightedNotePathTitle = result.notePathTitle;for (const attr of note.attributes) {- if (tokens.find(token => attr.name.includes(token) || attr.value.includes(token))) {+ if (highlightedTokens.find(token => attr.name.includes(token) || attr.value.includes(token))) {result.highlightedNotePathTitle += ` <small>${formatAttribute(attr)}</small>`;}}}- for (const token of tokens) {+ for (const token of highlightedTokens) {const tokenRegex = new RegExp("(" + utils.escapeRegExp(token) + ")", "gi");for (const result of searchResults) {