From 44212cc7522ddfb8fac6bcc4d75edff6a6493c70 Mon Sep 17 00:00:00 2001 From: Siham Ben Daia Date: Mon, 10 Feb 2025 14:47:29 +0100 Subject: [PATCH] refactor: migrate jimp to v1 --- package.json | 2 +- pnpm-lock.yaml | 773 ++++++++++++++----------------------- src/create-banner-badge.ts | 45 +-- src/create-ribbon-badge.ts | 39 +- src/index.ts | 4 +- src/load-overlay.ts | 10 +- 6 files changed, 335 insertions(+), 538 deletions(-) diff --git a/package.json b/package.json index 1b3dfac..ead81b9 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "color-convert": "^2.0.1", "commander": "^11.0.0", "delta-e": "^0.0.8", - "jimp": "^0.22.7" + "jimp": "^1.6.0" }, "devDependencies": { "@commitlint/cli": "^19.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7bb98ce..06b152d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^0.0.8 version: 0.0.8 jimp: - specifier: ^0.22.7 - version: 0.22.12 + specifier: ^1.6.0 + version: 1.6.0 devDependencies: '@commitlint/cli': specifier: ^19.5.0 @@ -332,170 +332,117 @@ packages: resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} - '@jimp/bmp@0.22.12': - resolution: {integrity: sha512-aeI64HD0npropd+AR76MCcvvRaa+Qck6loCOS03CkkxGHN5/r336qTM5HPUdHKMDOGzqknuVPA8+kK1t03z12g==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - - '@jimp/core@0.22.12': - resolution: {integrity: sha512-l0RR0dOPyzMKfjUW1uebzueFEDtCOj9fN6pyTYWWOM/VS4BciXQ1VVrJs8pO3kycGYZxncRKhCoygbNr8eEZQA==} - - '@jimp/custom@0.22.12': - resolution: {integrity: sha512-xcmww1O/JFP2MrlGUMd3Q78S3Qu6W3mYTXYuIqFq33EorgYHV/HqymHfXy9GjiCJ7OI+7lWx6nYFOzU7M4rd1Q==} - - '@jimp/gif@0.22.12': - resolution: {integrity: sha512-y6BFTJgch9mbor2H234VSjd9iwAhaNf/t3US5qpYIs0TSbAvM02Fbc28IaDETj9+4YB4676sz4RcN/zwhfu1pg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/core@1.6.0': + resolution: {integrity: sha512-EQQlKU3s9QfdJqiSrZWNTxBs3rKXgO2W+GxNXDtwchF3a4IqxDheFX1ti+Env9hdJXDiYLp2jTRjlxhPthsk8w==} + engines: {node: '>=18'} - '@jimp/jpeg@0.22.12': - resolution: {integrity: sha512-Rq26XC/uQWaQKyb/5lksCTCxXhtY01NJeBN+dQv5yNYedN0i7iYu+fXEoRsfaJ8xZzjoANH8sns7rVP4GE7d/Q==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/diff@1.6.0': + resolution: {integrity: sha512-+yUAQ5gvRC5D1WHYxjBHZI7JBRusGGSLf8AmPRPCenTzh4PA+wZ1xv2+cYqQwTfQHU5tXYOhA0xDytfHUf1Zyw==} + engines: {node: '>=18'} - '@jimp/plugin-blit@0.22.12': - resolution: {integrity: sha512-xslz2ZoFZOPLY8EZ4dC29m168BtDx95D6K80TzgUi8gqT7LY6CsajWO0FAxDwHz6h0eomHMfyGX0stspBrTKnQ==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/file-ops@1.6.0': + resolution: {integrity: sha512-Dx/bVDmgnRe1AlniRpCKrGRm5YvGmUwbDzt+MAkgmLGf+jvBT75hmMEZ003n9HQI/aPnm/YKnXjg/hOpzNCpHQ==} + engines: {node: '>=18'} - '@jimp/plugin-blur@0.22.12': - resolution: {integrity: sha512-S0vJADTuh1Q9F+cXAwFPlrKWzDj2F9t/9JAbUvaaDuivpyWuImEKXVz5PUZw2NbpuSHjwssbTpOZ8F13iJX4uw==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/js-bmp@1.6.0': + resolution: {integrity: sha512-FU6Q5PC/e3yzLyBDXupR3SnL3htU7S3KEs4e6rjDP6gNEOXRFsWs6YD3hXuXd50jd8ummy+q2WSwuGkr8wi+Gw==} + engines: {node: '>=18'} - '@jimp/plugin-circle@0.22.12': - resolution: {integrity: sha512-SWVXx1yiuj5jZtMijqUfvVOJBwOifFn0918ou4ftoHgegc5aHWW5dZbYPjvC9fLpvz7oSlptNl2Sxr1zwofjTg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/js-gif@1.6.0': + resolution: {integrity: sha512-N9CZPHOrJTsAUoWkWZstLPpwT5AwJ0wge+47+ix3++SdSL/H2QzyMqxbcDYNFe4MoI5MIhATfb0/dl/wmX221g==} + engines: {node: '>=18'} - '@jimp/plugin-color@0.22.12': - resolution: {integrity: sha512-xImhTE5BpS8xa+mAN6j4sMRWaUgUDLoaGHhJhpC+r7SKKErYDR0WQV4yCE4gP+N0gozD0F3Ka1LUSaMXrn7ZIA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/js-jpeg@1.6.0': + resolution: {integrity: sha512-6vgFDqeusblf5Pok6B2DUiMXplH8RhIKAryj1yn+007SIAQ0khM1Uptxmpku/0MfbClx2r7pnJv9gWpAEJdMVA==} + engines: {node: '>=18'} - '@jimp/plugin-contain@0.22.12': - resolution: {integrity: sha512-Eo3DmfixJw3N79lWk8q/0SDYbqmKt1xSTJ69yy8XLYQj9svoBbyRpSnHR+n9hOw5pKXytHwUW6nU4u1wegHNoQ==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-blit': '>=0.3.5' - '@jimp/plugin-resize': '>=0.3.5' - '@jimp/plugin-scale': '>=0.3.5' + '@jimp/js-png@1.6.0': + resolution: {integrity: sha512-AbQHScy3hDDgMRNfG0tPjL88AV6qKAILGReIa3ATpW5QFjBKpisvUaOqhzJ7Reic1oawx3Riyv152gaPfqsBVg==} + engines: {node: '>=18'} - '@jimp/plugin-cover@0.22.12': - resolution: {integrity: sha512-z0w/1xH/v/knZkpTNx+E8a7fnasQ2wHG5ze6y5oL2dhH1UufNua8gLQXlv8/W56+4nJ1brhSd233HBJCo01BXA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-crop': '>=0.3.5' - '@jimp/plugin-resize': '>=0.3.5' - '@jimp/plugin-scale': '>=0.3.5' + '@jimp/js-tiff@1.6.0': + resolution: {integrity: sha512-zhReR8/7KO+adijj3h0ZQUOiun3mXUv79zYEAKvE0O+rP7EhgtKvWJOZfRzdZSNv0Pu1rKtgM72qgtwe2tFvyw==} + engines: {node: '>=18'} - '@jimp/plugin-crop@0.22.12': - resolution: {integrity: sha512-FNuUN0OVzRCozx8XSgP9MyLGMxNHHJMFt+LJuFjn1mu3k0VQxrzqbN06yIl46TVejhyAhcq5gLzqmSCHvlcBVw==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-blit@1.6.0': + resolution: {integrity: sha512-M+uRWl1csi7qilnSK8uxK4RJMSuVeBiO1AY0+7APnfUbQNZm6hCe0CCFv1Iyw1D/Dhb8ph8fQgm5mwM0eSxgVA==} + engines: {node: '>=18'} - '@jimp/plugin-displace@0.22.12': - resolution: {integrity: sha512-qpRM8JRicxfK6aPPqKZA6+GzBwUIitiHaZw0QrJ64Ygd3+AsTc7BXr+37k2x7QcyCvmKXY4haUrSIsBug4S3CA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-blur@1.6.0': + resolution: {integrity: sha512-zrM7iic1OTwUCb0g/rN5y+UnmdEsT3IfuCXCJJNs8SZzP0MkZ1eTvuwK9ZidCuMo4+J3xkzCidRwYXB5CyGZTw==} + engines: {node: '>=18'} - '@jimp/plugin-dither@0.22.12': - resolution: {integrity: sha512-jYgGdSdSKl1UUEanX8A85v4+QUm+PE8vHFwlamaKk89s+PXQe7eVE3eNeSZX4inCq63EHL7cX580dMqkoC3ZLw==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-circle@1.6.0': + resolution: {integrity: sha512-xt1Gp+LtdMKAXfDp3HNaG30SPZW6AQ7dtAtTnoRKorRi+5yCJjKqXRgkewS5bvj8DEh87Ko1ydJfzqS3P2tdWw==} + engines: {node: '>=18'} - '@jimp/plugin-fisheye@0.22.12': - resolution: {integrity: sha512-LGuUTsFg+fOp6KBKrmLkX4LfyCy8IIsROwoUvsUPKzutSqMJnsm3JGDW2eOmWIS/jJpPaeaishjlxvczjgII+Q==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-color@1.6.0': + resolution: {integrity: sha512-J5q8IVCpkBsxIXM+45XOXTrsyfblyMZg3a9eAo0P7VPH4+CrvyNQwaYatbAIamSIN1YzxmO3DkIZXzRjFSz1SA==} + engines: {node: '>=18'} - '@jimp/plugin-flip@0.22.12': - resolution: {integrity: sha512-m251Rop7GN8W0Yo/rF9LWk6kNclngyjIJs/VXHToGQ6EGveOSTSQaX2Isi9f9lCDLxt+inBIb7nlaLLxnvHX8Q==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-rotate': '>=0.3.5' + '@jimp/plugin-contain@1.6.0': + resolution: {integrity: sha512-oN/n+Vdq/Qg9bB4yOBOxtY9IPAtEfES8J1n9Ddx+XhGBYT1/QTU/JYkGaAkIGoPnyYvmLEDqMz2SGihqlpqfzQ==} + engines: {node: '>=18'} - '@jimp/plugin-gaussian@0.22.12': - resolution: {integrity: sha512-sBfbzoOmJ6FczfG2PquiK84NtVGeScw97JsCC3rpQv1PHVWyW+uqWFF53+n3c8Y0P2HWlUjflEla2h/vWShvhg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-cover@1.6.0': + resolution: {integrity: sha512-Iow0h6yqSC269YUJ8HC3Q/MpCi2V55sMlbkkTTx4zPvd8mWZlC0ykrNDeAy9IJegrQ7v5E99rJwmQu25lygKLA==} + engines: {node: '>=18'} - '@jimp/plugin-invert@0.22.12': - resolution: {integrity: sha512-N+6rwxdB+7OCR6PYijaA/iizXXodpxOGvT/smd/lxeXsZ/empHmFFFJ/FaXcYh19Tm04dGDaXcNF/dN5nm6+xQ==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-crop@1.6.0': + resolution: {integrity: sha512-KqZkEhvs+21USdySCUDI+GFa393eDIzbi1smBqkUPTE+pRwSWMAf01D5OC3ZWB+xZsNla93BDS9iCkLHA8wang==} + engines: {node: '>=18'} - '@jimp/plugin-mask@0.22.12': - resolution: {integrity: sha512-4AWZg+DomtpUA099jRV8IEZUfn1wLv6+nem4NRJC7L/82vxzLCgXKTxvNvBcNmJjT9yS1LAAmiJGdWKXG63/NA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-displace@1.6.0': + resolution: {integrity: sha512-4Y10X9qwr5F+Bo5ME356XSACEF55485j5nGdiyJ9hYzjQP9nGgxNJaZ4SAOqpd+k5sFaIeD7SQ0Occ26uIng5Q==} + engines: {node: '>=18'} - '@jimp/plugin-normalize@0.22.12': - resolution: {integrity: sha512-0So0rexQivnWgnhacX4cfkM2223YdExnJTTy6d06WbkfZk5alHUx8MM3yEzwoCN0ErO7oyqEWRnEkGC+As1FtA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-dither@1.6.0': + resolution: {integrity: sha512-600d1RxY0pKwgyU0tgMahLNKsqEcxGdbgXadCiVCoGd6V6glyCvkNrnnwC0n5aJ56Htkj88PToSdF88tNVZEEQ==} + engines: {node: '>=18'} - '@jimp/plugin-print@0.22.12': - resolution: {integrity: sha512-c7TnhHlxm87DJeSnwr/XOLjJU/whoiKYY7r21SbuJ5nuH+7a78EW1teOaj5gEr2wYEd7QtkFqGlmyGXY/YclyQ==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-blit': '>=0.3.5' + '@jimp/plugin-fisheye@1.6.0': + resolution: {integrity: sha512-E5QHKWSCBFtpgZarlmN3Q6+rTQxjirFqo44ohoTjzYVrDI6B6beXNnPIThJgPr0Y9GwfzgyarKvQuQuqCnnfbA==} + engines: {node: '>=18'} - '@jimp/plugin-resize@0.22.12': - resolution: {integrity: sha512-3NyTPlPbTnGKDIbaBgQ3HbE6wXbAlFfxHVERmrbqAi8R3r6fQPxpCauA8UVDnieg5eo04D0T8nnnNIX//i/sXg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-flip@1.6.0': + resolution: {integrity: sha512-/+rJVDuBIVOgwoyVkBjUFHtP+wmW0r+r5OQ2GpatQofToPVbJw1DdYWXlwviSx7hvixTWLKVgRWQ5Dw862emDg==} + engines: {node: '>=18'} - '@jimp/plugin-rotate@0.22.12': - resolution: {integrity: sha512-9YNEt7BPAFfTls2FGfKBVgwwLUuKqy+E8bDGGEsOqHtbuhbshVGxN2WMZaD4gh5IDWvR+emmmPPWGgaYNYt1gA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-blit': '>=0.3.5' - '@jimp/plugin-crop': '>=0.3.5' - '@jimp/plugin-resize': '>=0.3.5' + '@jimp/plugin-hash@1.6.0': + resolution: {integrity: sha512-wWzl0kTpDJgYVbZdajTf+4NBSKvmI3bRI8q6EH9CVeIHps9VWVsUvEyb7rpbcwVLWYuzDtP2R0lTT6WeBNQH9Q==} + engines: {node: '>=18'} - '@jimp/plugin-scale@0.22.12': - resolution: {integrity: sha512-dghs92qM6MhHj0HrV2qAwKPMklQtjNpoYgAB94ysYpsXslhRTiPisueSIELRwZGEr0J0VUxpUY7HgJwlSIgGZw==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-resize': '>=0.3.5' + '@jimp/plugin-mask@1.6.0': + resolution: {integrity: sha512-Cwy7ExSJMZszvkad8NV8o/Z92X2kFUFM8mcDAhNVxU0Q6tA0op2UKRJY51eoK8r6eds/qak3FQkXakvNabdLnA==} + engines: {node: '>=18'} - '@jimp/plugin-shadow@0.22.12': - resolution: {integrity: sha512-FX8mTJuCt7/3zXVoeD/qHlm4YH2bVqBuWQHXSuBK054e7wFRnRnbSLPUqAwSeYP3lWqpuQzJtgiiBxV3+WWwTg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-blur': '>=0.3.5' - '@jimp/plugin-resize': '>=0.3.5' + '@jimp/plugin-print@1.6.0': + resolution: {integrity: sha512-zarTIJi8fjoGMSI/M3Xh5yY9T65p03XJmPsuNet19K/Q7mwRU6EV2pfj+28++2PV2NJ+htDF5uecAlnGyxFN2A==} + engines: {node: '>=18'} - '@jimp/plugin-threshold@0.22.12': - resolution: {integrity: sha512-4x5GrQr1a/9L0paBC/MZZJjjgjxLYrqSmWd+e+QfAEPvmRxdRoQ5uKEuNgXnm9/weHQBTnQBQsOY2iFja+XGAw==} - peerDependencies: - '@jimp/custom': '>=0.3.5' - '@jimp/plugin-color': '>=0.8.0' - '@jimp/plugin-resize': '>=0.8.0' + '@jimp/plugin-quantize@1.6.0': + resolution: {integrity: sha512-EmzZ/s9StYQwbpG6rUGBCisc3f64JIhSH+ncTJd+iFGtGo0YvSeMdAd+zqgiHpfZoOL54dNavZNjF4otK+mvlg==} + engines: {node: '>=18'} - '@jimp/plugins@0.22.12': - resolution: {integrity: sha512-yBJ8vQrDkBbTgQZLty9k4+KtUQdRjsIDJSPjuI21YdVeqZxYywifHl4/XWILoTZsjTUASQcGoH0TuC0N7xm3ww==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-resize@1.6.0': + resolution: {integrity: sha512-uSUD1mqXN9i1SGSz5ov3keRZ7S9L32/mAQG08wUwZiEi5FpbV0K8A8l1zkazAIZi9IJzLlTauRNU41Mi8IF9fA==} + engines: {node: '>=18'} - '@jimp/png@0.22.12': - resolution: {integrity: sha512-Mrp6dr3UTn+aLK8ty/dSKELz+Otdz1v4aAXzV5q53UDD2rbB5joKVJ/ChY310B+eRzNxIovbUF1KVrUsYdE8Hg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-rotate@1.6.0': + resolution: {integrity: sha512-JagdjBLnUZGSG4xjCLkIpQOZZ3Mjbg8aGCCi4G69qR+OjNpOeGI7N2EQlfK/WE8BEHOW5vdjSyglNqcYbQBWRw==} + engines: {node: '>=18'} - '@jimp/tiff@0.22.12': - resolution: {integrity: sha512-E1LtMh4RyJsoCAfAkBRVSYyZDTtLq9p9LUiiYP0vPtXyxX4BiYBUYihTLSBlCQg5nF2e4OpQg7SPrLdJ66u7jg==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/plugin-threshold@1.6.0': + resolution: {integrity: sha512-M59m5dzLoHOVWdM41O8z9SyySzcDn43xHseOH0HavjsfQsT56GGCC4QzU1banJidbUrePhzoEdS42uFE8Fei8w==} + engines: {node: '>=18'} - '@jimp/types@0.22.12': - resolution: {integrity: sha512-wwKYzRdElE1MBXFREvCto5s699izFHNVvALUv79GXNbsOVqlwlOxlWJ8DuyOGIXoLP4JW/m30YyuTtfUJgMRMA==} - peerDependencies: - '@jimp/custom': '>=0.3.5' + '@jimp/types@1.6.0': + resolution: {integrity: sha512-7UfRsiKo5GZTAATxm2qQ7jqmUXP0DxTArztllTcYdyw6Xi5oT4RaoXynVtCD4UyLK5gJgkZJcwonoijrhYFKfg==} + engines: {node: '>=18'} - '@jimp/utils@0.22.12': - resolution: {integrity: sha512-yJ5cWUknGnilBq97ZXOyOS0HhsHOyAyjHwYfHxGbSyMTohgQI6sVyE8KPgDwH8HHW/nMKXk8TrSwAE71zt716Q==} + '@jimp/utils@1.6.0': + resolution: {integrity: sha512-gqFTGEosKbOkYF/WFj26jMHOI5OH2jeP1MmC/zbK6BF6VJBf8rIC5898dPfSzZEbSA0wbbV5slbntWVc5PKLFA==} + engines: {node: '>=18'} '@jridgewell/gen-mapping@0.3.5': resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} @@ -781,6 +728,10 @@ packages: atomically@2.0.3: resolution: {integrity: sha512-kU6FmrwZ3Lx7/7y3hPS5QnbJfaohcIul5fGqf7ok+4KklIEk9tJ0C2IQPdacSbVUWv6zVHXEBWoWd6NrVMT7Cw==} + await-to-js@3.0.0: + resolution: {integrity: sha512-zJAaP9zxTcvTHRlejau3ZOY4V7SRpiByf3/dxx2uyKxxor19tpmpV2QRsTKikckwhaPmr2dVpxxMr7jOCYVp5g==} + engines: {node: '>=6.0.0'} + balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} @@ -798,8 +749,8 @@ packages: bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} - bmp-js@0.1.0: - resolution: {integrity: sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==} + bmp-ts@1.0.9: + resolution: {integrity: sha512-cTEHk2jLrPyi+12M3dhpEbnnPOsaZuq7C45ylbbQIiWgDFZq4UVYPEY5mlqjvsj/6gJv9qX5sa+ebDzLXT28Vw==} boxen@8.0.1: resolution: {integrity: sha512-F3PH5k5juxom4xktynS7MoFY+NUWH5LC4CnH11YB8NPew+HLpmBLCybSAEyb2F+4pRXhuhWqFesoQd6DAyc2hw==} @@ -822,10 +773,6 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} - buffer-equal@0.0.1: - resolution: {integrity: sha512-RgSV6InVQ9ODPdLWJ5UAqBqJBOg370Nz6ZQtRzpt6nUjc8v0St97uJ4PYC6NztqIScrAXafKM3mZPMygSe1ggA==} - engines: {node: '>=0.4.0'} - buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} @@ -851,9 +798,6 @@ packages: resolution: {integrity: sha512-8WB3Jcas3swSvjIeA2yvCJ+Miyz5l1ZmB6HFb9R1317dt9LCQoswg/BGrmAmkWVEszSrrg4RwmO46qIm2OEnSA==} engines: {node: '>=16'} - centra@2.7.0: - resolution: {integrity: sha512-PbFMgMSrmgx6uxCdm57RUos9Tc3fclMvhLSATYN39XsDV29B89zZ3KA89jmY0vwSGazyU+uerqwa6t+KaodPcg==} - chalk-template@1.1.0: resolution: {integrity: sha512-T2VJbcDuZQ0Tb2EWwSotMPJjgpy1/tGee1BTpUNsGZ/qgNjV2t7Mvu+d4600U564nbLesN1x2dPL+xii174Ekg==} engines: {node: '>=14.16'} @@ -1071,9 +1015,6 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} - dom-walk@0.1.2: - resolution: {integrity: sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==} - dot-prop@5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} engines: {node: '>=8'} @@ -1202,15 +1143,6 @@ packages: resolution: {integrity: sha512-YyZM99iHrqLKjmt4LJDj58KI+fYyufRLBSYcqycxf//KpBk9FoewoGX0450m9nB44qrZnovzC2oeP5hUibxc/g==} engines: {node: '>=18'} - follow-redirects@1.15.6: - resolution: {integrity: sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==} - engines: {node: '>=4.0'} - peerDependencies: - debug: '*' - peerDependenciesMeta: - debug: - optional: true - foreground-child@3.3.0: resolution: {integrity: sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==} engines: {node: '>=14'} @@ -1274,9 +1206,6 @@ packages: resolution: {integrity: sha512-wHTUcDUoZ1H5/0iVqEudYW4/kAlN5cZ3j/bXn0Dpbizl9iaUVeWSHqiOjsgk6OW2bkLclbBjzewBz6weQ1zA2Q==} engines: {node: '>=18'} - global@4.4.0: - resolution: {integrity: sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==} - globby@13.2.2: resolution: {integrity: sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -1422,9 +1351,6 @@ packages: resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} engines: {node: '>=8'} - is-function@1.0.2: - resolution: {integrity: sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -1517,9 +1443,6 @@ packages: isexe@2.0.0: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} - isomorphic-fetch@3.0.0: - resolution: {integrity: sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==} - issue-regex@4.3.0: resolution: {integrity: sha512-7731a/t2llyrk8Hdwl1x3LkhIFGzxHQGpJA7Ur9cIRViakQF2y25Lwhx8Ziy1B068+kBYUmYPBzw5uo3DdWrdQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -1527,8 +1450,9 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - jimp@0.22.12: - resolution: {integrity: sha512-R5jZaYDnfkxKJy1dwLpj/7cvyjxiclxU3F4TrI/J4j2rS0niq6YDUMoPn5hs8GDpO+OZGo7Ky057CRtWesyhfg==} + jimp@1.6.0: + resolution: {integrity: sha512-YcwCHw1kiqEeI5xRpDlPPBGL2EOpBKLwO4yIBJcXWHPj5PnA5urGq0jbyhM5KoNpypQ6VboSoxc9D8HyfvngSg==} + engines: {node: '>=18'} jiti@1.21.6: resolution: {integrity: sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==} @@ -1604,9 +1528,6 @@ packages: resolution: {integrity: sha512-RmAl7su35BFd/xoMamRjpIE4j3v+L28o8CT5YhAXQJm1fD+1l9ngXY8JAQRJ+tFK2i5njvi0iRUKV09vPwA0iA==} engines: {node: '>=6'} - load-bmfont@1.4.2: - resolution: {integrity: sha512-qElWkmjW9Oq1F9EI5Gt7aD9zcdHb9spJCW1L/dmPf7KzCCEJxq8nhHz5eCgI9aMf7vrG/wyaCqdsI+Iy9ZTlog==} - load-tsconfig@0.2.5: resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -1700,9 +1621,9 @@ packages: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} engines: {node: '>=8.6'} - mime@1.6.0: - resolution: {integrity: sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==} - engines: {node: '>=4'} + mime@3.0.0: + resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} + engines: {node: '>=10.0.0'} hasBin: true mimic-fn@1.2.0: @@ -1721,9 +1642,6 @@ packages: resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} engines: {node: '>=18'} - min-document@2.19.0: - resolution: {integrity: sha512-9Wy1B3m3f66bPPmU5hdA4DR4PB2OfDU/+GS3yAB7IQozE3tqXaVv2zOjgla7MEGSRv95+ILmOuvhLkOK6wJtCQ==} - minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} @@ -1761,15 +1679,6 @@ packages: resolution: {integrity: sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - node-fetch@2.7.0: - resolution: {integrity: sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==} - engines: {node: 4.x || >=6.0.0} - peerDependencies: - encoding: ^0.1.0 - peerDependenciesMeta: - encoding: - optional: true - nodemon@3.1.7: resolution: {integrity: sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ==} engines: {node: '>=10'} @@ -1917,9 +1826,6 @@ packages: parse-bmfont-xml@1.1.6: resolution: {integrity: sha512-0cEliVMZEhrFDwMh4SxIyVJpqYoOWDJ9P895tFuS+XuNzI5UBmBk5U5O4KuJdTnZpSBI4LFA2+ZiJaiwfSwlMA==} - parse-headers@2.0.5: - resolution: {integrity: sha512-ft3iAoLOB/MlwbNXgzy43SWGP6sQki2jQvAyBg/zDFAgr9bfNWZIUj42Kw2eJIl8kEi4PbgE6U1Zau/HwI75HA==} - parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -1960,10 +1866,6 @@ packages: resolution: {integrity: sha512-ZI3LnwUv5nOGbQzD9c2iDG6toheuXSZP5esSHBjopsXH4dg19soufvpUGA3uohi5anFtGb2lhAVdHzH6R/Evvg==} engines: {node: '>=8'} - phin@3.7.1: - resolution: {integrity: sha512-GEazpTWwTZaEQ9RhL7Nyz0WwqilbqgLahDM3D0hxWwmVDI52nXEybHqiN6/elwpkJBhcuj+WbBu+QfT0uhPGfQ==} - engines: {node: '>= 8'} - picocolors@1.1.0: resolution: {integrity: sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==} @@ -1982,8 +1884,8 @@ packages: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'} - pixelmatch@4.0.2: - resolution: {integrity: sha512-J8B6xqiO37sU/gkcMglv6h5Jbd9xNER7aHzpfRdNmV4IbQBzBpe4l9XmbG+xPF/znacgu2jfEw+wHffaq/YkXA==} + pixelmatch@5.3.0: + resolution: {integrity: sha512-o8mkY4E/+LNUf6LzX96ht6k6CEDi65k9G2rjMtBe9Oo+VPKSvl+0GKHuH/AlG+GA5LPG/i5hrekkxUc3s2HU+Q==} hasBin: true pkg-dir@4.2.0: @@ -1998,14 +1900,14 @@ packages: resolution: {integrity: sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==} engines: {node: '>=10.4.0'} - pngjs@3.4.0: - resolution: {integrity: sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w==} - engines: {node: '>=4.0.0'} - pngjs@6.0.0: resolution: {integrity: sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==} engines: {node: '>=12.13.0'} + pngjs@7.0.0: + resolution: {integrity: sha512-LKWqWJRhstyYo9pGvgor/ivk2w94eSjE3RGVuzLGlr3NmD8bf7RcYGze1mNdEHRP6TRP6rMuDHk5t44hnTRyow==} + engines: {node: '>=14.19.0'} + postcss-load-config@6.0.1: resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} engines: {node: '>= 18'} @@ -2029,10 +1931,6 @@ packages: engines: {node: '>=14'} hasBin: true - process@0.11.10: - resolution: {integrity: sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==} - engines: {node: '>= 0.6.0'} - proto-list@1.2.4: resolution: {integrity: sha512-vtK/94akxsTMhe0/cbfpR+syPuszcuwhqVjJq26CuNDgFGj682oRBXOP5MJpv2r7JtE8MsiepGIqvvOTBwn2vA==} @@ -2074,9 +1972,6 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - regenerator-runtime@0.13.11: - resolution: {integrity: sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==} - registry-auth-token@5.0.2: resolution: {integrity: sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==} engines: {node: '>=14'} @@ -2189,6 +2084,10 @@ packages: resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} engines: {node: '>=10'} + simple-xml-to-json@1.2.3: + resolution: {integrity: sha512-kWJDCr9EWtZ+/EYYM5MareWj2cRnZGF93YDNpH4jQiHB+hBIZnfPFSQiVMzZOdk+zXWqTZ/9fTeQNu2DqeiudA==} + engines: {node: '>=20.12.2'} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -2338,9 +2237,6 @@ packages: through@2.3.8: resolution: {integrity: sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==} - timm@1.7.1: - resolution: {integrity: sha512-IjZc9KIotudix8bMaBW6QvMuq64BrJWFs1+4V0lXwWGQZwH+LnX87doAYhem4caOEusRP9/g6jVDQmZ8XOk1nw==} - tinycolor2@1.6.0: resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==} @@ -2367,9 +2263,6 @@ packages: resolution: {integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==} hasBin: true - tr46@0.0.3: - resolution: {integrity: sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==} - tr46@1.0.1: resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} @@ -2481,18 +2374,9 @@ packages: wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} - webidl-conversions@3.0.1: - resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} - webidl-conversions@4.0.2: resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} - whatwg-fetch@3.6.20: - resolution: {integrity: sha512-EqhiFU6daOA8kpjOWTL0olhVOF3i7OrFzSYiGsEMB8GcXS+RrzauAERX65xMeNWVqxA6HXH2m69Z9LaKKdisfg==} - - whatwg-url@5.0.0: - resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==} - whatwg-url@7.1.0: resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} @@ -2542,9 +2426,6 @@ packages: resolution: {integrity: sha512-GCPAHLvrIH13+c0SuacwvRYj2SxJXQ4kaVTT5xgL3kPrz56XxkF21IGhjSE1+W0aw7gpBWRGXLCPnPby6lSpmQ==} engines: {node: '>=12'} - xhr@2.6.0: - resolution: {integrity: sha512-/eCGLb5rxjx5e3mF1A7s+pLlR6CGyqWN91fv1JgER5mVWg1MZmlhBvy9kjcsOdRk8RrIujotWyJamfyrp+WIcA==} - xml-parse-from-string@1.0.1: resolution: {integrity: sha512-ErcKwJTF54uRzzNMXq2X5sMIy88zJvfN2DmdoQvy7PAFJ+tPRU6ydWuOKNMyfmOjdyBQTFREi60s0Y0SyI0G0g==} @@ -2568,10 +2449,6 @@ packages: resolution: {integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==} engines: {node: '>=8.0'} - xtend@4.0.2: - resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} - engines: {node: '>=0.4'} - y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'} @@ -2871,221 +2748,194 @@ snapshots: wrap-ansi: 8.1.0 wrap-ansi-cjs: wrap-ansi@7.0.0 - '@jimp/bmp@0.22.12(@jimp/custom@0.22.12)': + '@jimp/core@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 - bmp-js: 0.1.0 - - '@jimp/core@0.22.12': - dependencies: - '@jimp/utils': 0.22.12 - any-base: 1.1.0 - buffer: 5.7.1 + '@jimp/file-ops': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + await-to-js: 3.0.0 exif-parser: 0.1.12 file-type: 16.5.4 - isomorphic-fetch: 3.0.0 - pixelmatch: 4.0.2 - tinycolor2: 1.6.0 - transitivePeerDependencies: - - encoding + mime: 3.0.0 - '@jimp/custom@0.22.12': + '@jimp/diff@1.6.0': dependencies: - '@jimp/core': 0.22.12 - transitivePeerDependencies: - - encoding + '@jimp/plugin-resize': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + pixelmatch: 5.3.0 + + '@jimp/file-ops@1.6.0': {} + + '@jimp/js-bmp@1.6.0': + dependencies: + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + bmp-ts: 1.0.9 - '@jimp/gif@0.22.12(@jimp/custom@0.22.12)': + '@jimp/js-gif@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 gifwrap: 0.10.1 omggif: 1.0.10 - '@jimp/jpeg@0.22.12(@jimp/custom@0.22.12)': + '@jimp/js-jpeg@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 jpeg-js: 0.4.4 - '@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12)': + '@jimp/js-png@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 + pngjs: 7.0.0 - '@jimp/plugin-blur@0.22.12(@jimp/custom@0.22.12)': + '@jimp/js-tiff@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 + utif2: 4.1.0 - '@jimp/plugin-circle@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-blit@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-color@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-blur@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 - tinycolor2: 1.6.0 + '@jimp/core': 1.6.0 + '@jimp/utils': 1.6.0 - '@jimp/plugin-contain@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-scale@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)))': + '@jimp/plugin-circle@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-blit': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-scale': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 + zod: 3.23.8 + + '@jimp/plugin-color@1.6.0': + dependencies: + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + tinycolor2: 1.6.0 + zod: 3.23.8 - '@jimp/plugin-cover@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-scale@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)))': + '@jimp/plugin-contain@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-crop': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-scale': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/plugin-blit': 1.6.0 + '@jimp/plugin-resize': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-cover@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/plugin-crop': 1.6.0 + '@jimp/plugin-resize': 1.6.0 + '@jimp/types': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-displace@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-crop@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-dither@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-displace@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-fisheye@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-dither@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 - '@jimp/plugin-flip@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-rotate@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)))': + '@jimp/plugin-fisheye@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-rotate': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-gaussian@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-flip@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 + zod: 3.23.8 + + '@jimp/plugin-hash@1.6.0': + dependencies: + '@jimp/core': 1.6.0 + '@jimp/js-bmp': 1.6.0 + '@jimp/js-jpeg': 1.6.0 + '@jimp/js-png': 1.6.0 + '@jimp/js-tiff': 1.6.0 + '@jimp/plugin-color': 1.6.0 + '@jimp/plugin-resize': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + any-base: 1.1.0 - '@jimp/plugin-invert@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-mask@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/types': 1.6.0 + zod: 3.23.8 - '@jimp/plugin-mask@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-print@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + '@jimp/core': 1.6.0 + '@jimp/js-jpeg': 1.6.0 + '@jimp/js-png': 1.6.0 + '@jimp/plugin-blit': 1.6.0 + '@jimp/types': 1.6.0 + parse-bmfont-ascii: 1.0.6 + parse-bmfont-binary: 1.0.6 + parse-bmfont-xml: 1.1.6 + simple-xml-to-json: 1.2.3 + zod: 3.23.8 - '@jimp/plugin-normalize@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-quantize@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 + image-q: 4.0.0 + zod: 3.23.8 - '@jimp/plugin-print@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))': + '@jimp/plugin-resize@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-blit': 0.22.12(@jimp/custom@0.22.12) - '@jimp/utils': 0.22.12 - load-bmfont: 1.4.2 - transitivePeerDependencies: - - debug - - '@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)': - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 - - '@jimp/plugin-rotate@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))': - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-blit': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-crop': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/utils': 0.22.12 - - '@jimp/plugin-scale@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))': - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/utils': 0.22.12 - - '@jimp/plugin-shadow@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blur@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))': - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-blur': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/utils': 0.22.12 - - '@jimp/plugin-threshold@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-color@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))': - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-color': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/utils': 0.22.12 - - '@jimp/plugins@0.22.12(@jimp/custom@0.22.12)': - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugin-blit': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-blur': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-circle': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-color': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-contain': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-scale@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))) - '@jimp/plugin-cover': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-scale@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))) - '@jimp/plugin-crop': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-displace': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-dither': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-fisheye': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-flip': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-rotate@0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12))) - '@jimp/plugin-gaussian': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-invert': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-mask': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-normalize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-print': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12)) - '@jimp/plugin-resize': 0.22.12(@jimp/custom@0.22.12) - '@jimp/plugin-rotate': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blit@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-crop@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - '@jimp/plugin-scale': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - '@jimp/plugin-shadow': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-blur@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - '@jimp/plugin-threshold': 0.22.12(@jimp/custom@0.22.12)(@jimp/plugin-color@0.22.12(@jimp/custom@0.22.12))(@jimp/plugin-resize@0.22.12(@jimp/custom@0.22.12)) - timm: 1.7.1 - transitivePeerDependencies: - - debug + '@jimp/core': 1.6.0 + '@jimp/types': 1.6.0 + zod: 3.23.8 - '@jimp/png@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-rotate@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - '@jimp/utils': 0.22.12 - pngjs: 6.0.0 + '@jimp/core': 1.6.0 + '@jimp/plugin-crop': 1.6.0 + '@jimp/plugin-resize': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/tiff@0.22.12(@jimp/custom@0.22.12)': + '@jimp/plugin-threshold@1.6.0': dependencies: - '@jimp/custom': 0.22.12 - utif2: 4.1.0 + '@jimp/core': 1.6.0 + '@jimp/plugin-color': 1.6.0 + '@jimp/plugin-hash': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 + zod: 3.23.8 - '@jimp/types@0.22.12(@jimp/custom@0.22.12)': + '@jimp/types@1.6.0': dependencies: - '@jimp/bmp': 0.22.12(@jimp/custom@0.22.12) - '@jimp/custom': 0.22.12 - '@jimp/gif': 0.22.12(@jimp/custom@0.22.12) - '@jimp/jpeg': 0.22.12(@jimp/custom@0.22.12) - '@jimp/png': 0.22.12(@jimp/custom@0.22.12) - '@jimp/tiff': 0.22.12(@jimp/custom@0.22.12) - timm: 1.7.1 + zod: 3.23.8 - '@jimp/utils@0.22.12': + '@jimp/utils@1.6.0': dependencies: - regenerator-runtime: 0.13.11 + '@jimp/types': 1.6.0 + tinycolor2: 1.6.0 '@jridgewell/gen-mapping@0.3.5': dependencies: @@ -3303,6 +3153,8 @@ snapshots: stubborn-fs: 1.2.5 when-exit: 2.1.3 + await-to-js@3.0.0: {} + balanced-match@1.0.2: {} base64-js@1.5.1: {} @@ -3317,7 +3169,7 @@ snapshots: inherits: 2.0.4 readable-stream: 3.6.2 - bmp-js@0.1.0: {} + bmp-ts@1.0.9: {} boxen@8.0.1: dependencies: @@ -3351,8 +3203,6 @@ snapshots: dependencies: fill-range: 7.1.1 - buffer-equal@0.0.1: {} - buffer@5.7.1: dependencies: base64-js: 1.5.1 @@ -3373,12 +3223,6 @@ snapshots: camelcase@8.0.0: {} - centra@2.7.0: - dependencies: - follow-redirects: 1.15.6 - transitivePeerDependencies: - - debug - chalk-template@1.1.0: dependencies: chalk: 5.3.0 @@ -3588,8 +3432,6 @@ snapshots: dependencies: path-type: 4.0.0 - dom-walk@0.1.2: {} - dot-prop@5.3.0: dependencies: is-obj: 2.0.0 @@ -3744,8 +3586,6 @@ snapshots: path-exists: 5.0.0 unicorn-magic: 0.1.0 - follow-redirects@1.15.6: {} - foreground-child@3.3.0: dependencies: cross-spawn: 7.0.3 @@ -3814,11 +3654,6 @@ snapshots: dependencies: ini: 4.1.1 - global@4.4.0: - dependencies: - min-document: 2.19.0 - process: 0.11.10 - globby@13.2.2: dependencies: dir-glob: 3.0.1 @@ -3969,8 +3804,6 @@ snapshots: is-fullwidth-code-point@3.0.0: {} - is-function@1.0.2: {} - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -4032,13 +3865,6 @@ snapshots: isexe@2.0.0: {} - isomorphic-fetch@3.0.0: - dependencies: - node-fetch: 2.7.0 - whatwg-fetch: 3.6.20 - transitivePeerDependencies: - - encoding - issue-regex@4.3.0: {} jackspeak@3.4.3: @@ -4047,15 +3873,35 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 - jimp@0.22.12: - dependencies: - '@jimp/custom': 0.22.12 - '@jimp/plugins': 0.22.12(@jimp/custom@0.22.12) - '@jimp/types': 0.22.12(@jimp/custom@0.22.12) - regenerator-runtime: 0.13.11 - transitivePeerDependencies: - - debug - - encoding + jimp@1.6.0: + dependencies: + '@jimp/core': 1.6.0 + '@jimp/diff': 1.6.0 + '@jimp/js-bmp': 1.6.0 + '@jimp/js-gif': 1.6.0 + '@jimp/js-jpeg': 1.6.0 + '@jimp/js-png': 1.6.0 + '@jimp/js-tiff': 1.6.0 + '@jimp/plugin-blit': 1.6.0 + '@jimp/plugin-blur': 1.6.0 + '@jimp/plugin-circle': 1.6.0 + '@jimp/plugin-color': 1.6.0 + '@jimp/plugin-contain': 1.6.0 + '@jimp/plugin-cover': 1.6.0 + '@jimp/plugin-crop': 1.6.0 + '@jimp/plugin-displace': 1.6.0 + '@jimp/plugin-dither': 1.6.0 + '@jimp/plugin-fisheye': 1.6.0 + '@jimp/plugin-flip': 1.6.0 + '@jimp/plugin-hash': 1.6.0 + '@jimp/plugin-mask': 1.6.0 + '@jimp/plugin-print': 1.6.0 + '@jimp/plugin-quantize': 1.6.0 + '@jimp/plugin-resize': 1.6.0 + '@jimp/plugin-rotate': 1.6.0 + '@jimp/plugin-threshold': 1.6.0 + '@jimp/types': 1.6.0 + '@jimp/utils': 1.6.0 jiti@1.21.6: {} @@ -4133,19 +3979,6 @@ snapshots: - zen-observable - zenObservable - load-bmfont@1.4.2: - dependencies: - buffer-equal: 0.0.1 - mime: 1.6.0 - parse-bmfont-ascii: 1.0.6 - parse-bmfont-binary: 1.0.6 - parse-bmfont-xml: 1.1.6 - phin: 3.7.1 - xhr: 2.6.0 - xtend: 4.0.2 - transitivePeerDependencies: - - debug - load-tsconfig@0.2.5: {} locate-path@5.0.0: @@ -4221,7 +4054,7 @@ snapshots: braces: 3.0.3 picomatch: 2.3.1 - mime@1.6.0: {} + mime@3.0.0: {} mimic-fn@1.2.0: {} @@ -4231,10 +4064,6 @@ snapshots: mimic-function@5.0.1: {} - min-document@2.19.0: - dependencies: - dom-walk: 0.1.2 - minimatch@3.1.2: dependencies: brace-expansion: 1.1.11 @@ -4267,10 +4096,6 @@ snapshots: dependencies: type-fest: 2.19.0 - node-fetch@2.7.0: - dependencies: - whatwg-url: 5.0.0 - nodemon@3.1.7: dependencies: chokidar: 3.6.0 @@ -4469,8 +4294,6 @@ snapshots: xml-parse-from-string: 1.0.1 xml2js: 0.5.0 - parse-headers@2.0.5: {} - parse-json@5.2.0: dependencies: '@babel/code-frame': 7.25.7 @@ -4503,12 +4326,6 @@ snapshots: peek-readable@4.1.0: {} - phin@3.7.1: - dependencies: - centra: 2.7.0 - transitivePeerDependencies: - - debug - picocolors@1.1.0: {} picocolors@1.1.1: {} @@ -4519,9 +4336,9 @@ snapshots: pirates@4.0.6: {} - pixelmatch@4.0.2: + pixelmatch@5.3.0: dependencies: - pngjs: 3.4.0 + pngjs: 6.0.0 pkg-dir@4.2.0: dependencies: @@ -4537,10 +4354,10 @@ snapshots: base64-js: 1.5.1 xmlbuilder: 15.1.1 - pngjs@3.4.0: {} - pngjs@6.0.0: {} + pngjs@7.0.0: {} + postcss-load-config@6.0.1(jiti@2.3.3): dependencies: lilconfig: 3.1.2 @@ -4549,8 +4366,6 @@ snapshots: prettier@3.3.3: {} - process@0.11.10: {} - proto-list@1.2.4: {} pstree.remy@1.1.8: {} @@ -4598,8 +4413,6 @@ snapshots: dependencies: picomatch: 2.3.1 - regenerator-runtime@0.13.11: {} - registry-auth-token@5.0.2: dependencies: '@pnpm/npm-conf': 2.3.1 @@ -4706,6 +4519,8 @@ snapshots: dependencies: semver: 7.6.3 + simple-xml-to-json@1.2.3: {} + slash@3.0.0: {} slash@4.0.0: {} @@ -4848,8 +4663,6 @@ snapshots: through@2.3.8: {} - timm@1.7.1: {} - tinycolor2@1.6.0: {} tinyexec@0.3.1: {} @@ -4874,8 +4687,6 @@ snapshots: touch@3.1.1: {} - tr46@0.0.3: {} - tr46@1.0.1: dependencies: punycode: 2.3.1 @@ -4984,17 +4795,8 @@ snapshots: dependencies: defaults: 1.0.4 - webidl-conversions@3.0.1: {} - webidl-conversions@4.0.2: {} - whatwg-fetch@3.6.20: {} - - whatwg-url@5.0.0: - dependencies: - tr46: 0.0.3 - webidl-conversions: 3.0.1 - whatwg-url@7.1.0: dependencies: lodash.sortby: 4.7.0 @@ -5055,13 +4857,6 @@ snapshots: xdg-basedir@5.1.0: {} - xhr@2.6.0: - dependencies: - global: 4.4.0 - is-function: 1.0.2 - parse-headers: 2.0.5 - xtend: 4.0.2 - xml-parse-from-string@1.0.1: {} xml2js@0.5.0: @@ -5080,8 +4875,6 @@ snapshots: xmlbuilder@15.1.1: {} - xtend@4.0.2: {} - y18n@5.0.8: {} yargs-parser@21.1.1: {} diff --git a/src/create-banner-badge.ts b/src/create-banner-badge.ts index 91e78e8..c561d1d 100644 --- a/src/create-banner-badge.ts +++ b/src/create-banner-badge.ts @@ -1,4 +1,5 @@ -import Jimp from 'jimp'; +import { Jimp, loadFont, HorizontalAlign, VerticalAlign } from "jimp"; +import type { JimpInstance } from "jimp"; import path from 'path'; import { Banner } from '../types'; import { loadOverlay } from './load-overlay'; @@ -7,14 +8,14 @@ import { getFont } from './utils'; export async function createBannerBadge( { text, position = 'bottom', color = 'white', background }: Banner, isAdaptiveIcon: Boolean = false -): Promise { +): Promise { const IS_POSITION_TOP = position === 'top'; const BANNER_HEIGHT = isAdaptiveIcon ? 310 : 180; // magic number from banners overlay images const OVERLAY_PATH = isAdaptiveIcon ? 'assets/banner-overlay-adaptive.png' : 'assets/banner-overlay.png'; - const font = await Jimp.loadFont(getFont(isAdaptiveIcon, color === 'black')); + const font = await loadFont(getFont(isAdaptiveIcon, color === 'black')); const bannerOverlay = await loadOverlay({ path: path.resolve(__dirname, OVERLAY_PATH), background, @@ -24,34 +25,34 @@ export async function createBannerBadge( const BANNER_OVERLAY_HEIGHT = bannerOverlay.bitmap.height; // create text container image - const textContainer = new Jimp( - BANNER_OVERLAY_WIDTH, - BANNER_HEIGHT, - 'transparent' - ); - textContainer.print( + const textContainer = new Jimp({ + width: BANNER_OVERLAY_WIDTH, + height: BANNER_HEIGHT, + color: 0x00000000, + }); + textContainer.print({ font, - 0, - 0, - { - text: text.toUpperCase(), - alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER, - alignmentY: isAdaptiveIcon // in adaptive icon mode, the text should be aligned to the opposite side + x: 0, + y: 0, + text: {text: text.toUpperCase(), + alignmentX: HorizontalAlign.CENTER, + alignmentY: isAdaptiveIcon // in adaptive icon mode, the text should be aligned to the opposite side ? IS_POSITION_TOP - ? Jimp.VERTICAL_ALIGN_BOTTOM - : Jimp.VERTICAL_ALIGN_TOP - : Jimp.VERTICAL_ALIGN_MIDDLE, + ? VerticalAlign.BOTTOM + : VerticalAlign.TOP + : VerticalAlign.MIDDLE, + }, - BANNER_OVERLAY_WIDTH, - BANNER_HEIGHT - ); + maxWidth: BANNER_OVERLAY_WIDTH, + maxHeight: BANNER_HEIGHT, + }); // compose the text container image with the banner overlay image const textContainerY = IS_POSITION_TOP ? 0 : BANNER_OVERLAY_HEIGHT - BANNER_HEIGHT; const bannerBadge = bannerOverlay - .flip(false, IS_POSITION_TOP) + .flip({horizontal: false, vertical: IS_POSITION_TOP}) .composite(textContainer, 0, textContainerY); return bannerBadge; } diff --git a/src/create-ribbon-badge.ts b/src/create-ribbon-badge.ts index 1b57c89..52f0d72 100644 --- a/src/create-ribbon-badge.ts +++ b/src/create-ribbon-badge.ts @@ -1,4 +1,5 @@ -import Jimp from 'jimp'; +import { Jimp, loadFont, HorizontalAlign, VerticalAlign} from "jimp"; +import type { JimpInstance } from "jimp"; import path from 'path'; import { Ribbon } from '../types'; import { loadOverlay } from './load-overlay'; @@ -10,7 +11,7 @@ const RIBBON_ROTATION_LEFT = 45; export async function createRibbonBadge( { position = 'right', text, color = 'white', background }: Ribbon, isAdaptiveIcon: Boolean = false -): Promise { +): Promise { const IS_FONT_BLACK = color === 'black'; const IS_POSITION_LEFT = position === 'left'; const RIBBON_HEIGHT = isAdaptiveIcon ? 100 : 180; // magic number from banners overlay images @@ -19,7 +20,7 @@ export async function createRibbonBadge( ? 'assets/ribbon-overlay-adaptive.png' : 'assets/ribbon-overlay.png'; - const font = await Jimp.loadFont(getFont(isAdaptiveIcon, IS_FONT_BLACK)); + const font = await loadFont(getFont(isAdaptiveIcon, IS_FONT_BLACK)); const ribbonOverlay = await loadOverlay({ path: path.resolve(__dirname, OVERLAY_PATH), @@ -28,23 +29,23 @@ export async function createRibbonBadge( const RIBBON_OVERLAY_WIDTH = ribbonOverlay.bitmap.width; // we need a helper image as container for the text as we are going to rotate it later - const textContainer = new Jimp( - RIBBON_OVERLAY_WIDTH, - RIBBON_HEIGHT, - 'transparent' - ); + const textContainer = new Jimp({ + width: RIBBON_OVERLAY_WIDTH, + height: RIBBON_HEIGHT, + color: 0x00000000, + }); textContainer.print( - font, - 0, - 0, - { - text: text, - color: 'red', - alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER, - alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE, + {font, + text: {text, + alignmentX: HorizontalAlign.CENTER, + alignmentY: VerticalAlign.MIDDLE, + }, + x: 0, + y: 0, + + maxWidth: RIBBON_OVERLAY_WIDTH, + maxHeight: RIBBON_HEIGHT, }, - RIBBON_OVERLAY_WIDTH, - RIBBON_HEIGHT ); textContainer.rotate( IS_POSITION_LEFT ? RIBBON_ROTATION_LEFT : RIBBON_ROTATION_RIGHT @@ -59,7 +60,7 @@ export async function createRibbonBadge( // compose the text container image with the ribbon overlay image const ribbonBadge = ribbonOverlay - .flip(FLIP_HORIZONTAL, false) + .flip({horizontal: FLIP_HORIZONTAL, vertical: false}) .composite(textContainer, TEXT_CONTAINER_X, TEXT_CONTAINER_Y); return ribbonBadge; } diff --git a/src/index.ts b/src/index.ts index 50f2bdc..c0e74bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import Jimp from 'jimp'; +import { Jimp } from "jimp"; import { createBannerBadge } from './create-banner-badge'; import { createRibbonBadge } from './create-ribbon-badge'; import { getResultPath } from './get-result-path'; @@ -29,6 +29,6 @@ export async function addBadge({ : getResultPath({ icon: icon, }); - resultImage.writeAsync(resultFilename); + resultImage.write(resultFilename as `${string}.${string}`); return resultFilename; } diff --git a/src/load-overlay.ts b/src/load-overlay.ts index ee602bf..4c83662 100644 --- a/src/load-overlay.ts +++ b/src/load-overlay.ts @@ -1,4 +1,5 @@ -import Jimp from 'jimp'; +import { Jimp} from "jimp"; +import type { JimpInstance, } from "jimp"; import convert from 'color-convert'; import deltaE from 'delta-e'; @@ -8,9 +9,10 @@ type Params = { }; const HEX_COLOR_REGEX = /^#[0-9a-fA-F]{6}$/; - -export async function loadOverlay({ path, background }: Params): Promise { +type ReadResult = Awaited>; +export async function loadOverlay({ path, background }: Params) { const bannerOverlay = await Jimp.read(path); + console.log(bannerOverlay); if (background !== undefined && !HEX_COLOR_REGEX.test(background)) { console.warn( @@ -31,7 +33,7 @@ export async function loadOverlay({ path, background }: Params): Promise { } type ParamsRC = { - image: Jimp; + image: ReadResult; from: string; to: string; };