From 1195f93bedb8c6c2c3778e97407f5b4bc23e66d0 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Tue, 7 Nov 2023 09:53:10 +0100 Subject: [PATCH] :sparkles: Add compressing and gzip files --- bs/build.js | 21 ++- dist/dde-with-signals.gzip.js | Bin 0 -> 4173 bytes dist/dde.gzip.js | Bin 0 -> 2722 bytes dist/esm-with-signals.gzip.js | Bin 0 -> 4107 bytes dist/esm.gzip.js | Bin 0 -> 2654 bytes package-lock.json | 296 +++++++++++++++++++++++++++++++++- package.json | 1 + 7 files changed, 310 insertions(+), 8 deletions(-) create mode 100644 dist/dde-with-signals.gzip.js create mode 100644 dist/dde.gzip.js create mode 100644 dist/esm-with-signals.gzip.js create mode 100644 dist/esm.gzip.js diff --git a/bs/build.js b/bs/build.js index d19b167..40ba1c9 100755 --- a/bs/build.js +++ b/bs/build.js @@ -1,11 +1,12 @@ #!/usr/bin/env -S npx nodejsscript import { bundle as bundleDTS } from "dts-bundler"; +import compressing from "compressing"; const files= [ "index", "index-with-signals" ]; const filesOut= (file, mark= "esm")=> "dist/"+file.replace("index", mark); $.api("", true) .option("--minify", "Level of minification [ full (default), partial ]") -.action(function main({ minify= "full" }){ +.action(async function main({ minify= "full" }){ for(const file_root of files){ const file= file_root+".js"; const out= filesOut(file); @@ -22,17 +23,23 @@ $.api("", true) f=> f.replace(/^ +/gm, m=> "\t".repeat(m.length/2)), f=> s.echo(f).to(out) )(s.cat(out)); + + const file_gzip_out= filesOut(file_root+".gzip.js"); + echo(` ${file_gzip_out}`) + await compressing.gzip.compressFile(out, file_gzip_out); + const file_dts= file_root+".d.ts"; const file_dts_out= filesOut(file_dts); echo(` ${file_dts_out}`) s.echo(bundleDTS(file_dts)).to(file_dts_out); - echo("⚡ Done"); - toDDE(out, filesOut(file, "dde")); + + await toDDE(out, file_root); } $.exit(0); - function toDDE(file, out){ + async function toDDE(file, file_root){ const name= "dde"; + const out= filesOut(file_root+".js", name); echo(` ${out} (${file} → globalThis.${name})`); let content= s.cat(file).toString().split(/export ?{/); @@ -44,8 +51,10 @@ $.api("", true) content.join(""), "})();" ].join("\n")).to(out); - - echo("⚡ Done"); + + const out_gzip= filesOut(file_root+".gzip.js", name); + echo(` ${out_gzip}`); + await compressing.gzip.compressFile(out, out_gzip); } }) .parse(); diff --git a/dist/dde-with-signals.gzip.js b/dist/dde-with-signals.gzip.js new file mode 100644 index 0000000000000000000000000000000000000000..dd146c5ac60acac44581dd669a73e618555e3153 GIT binary patch literal 4173 zcmV-T5VG$diwFP!000001I;?ycH1_#@BRvkC(9uln6^9fQnIwhb=+%ijnj6fT3Rth zLK0&NP(jF!O7Y*%-T(-KvYlj|bspv+u?TE#?E4KoJ}&4@c2w}y5v{zcoQX_qy|VVQ z+pMgzSw+3uGV>M{pJkQDvK6h@Sx&v{qM+9YK@g^AUUP7p3GXg#%KEBYu&fGX*a#{& zf{jjFvKBn2b^VrRxh!w#xs;-uZ6pmOp@b39!FsH1llg`L6ldNIZl|LYyGzHfXCG)T zqpYssl;DoYFb>RGP30TGC70VZeLaU)??TvaEwOrbj5G!W3X+D+J2HYAoJ%G*jE~je{pp8i&m|o`YoMT zMnh(mj7IMR77lg`g$T5=rb2EN%VfamkMCZ-xUA?3Xaa3T3o3g%q9KUa->`ztOGXR7 zXIXRNLMG0k3r*4^Z|@WC`-b&xI%(=0D2)rAZ;+yB#)~bn&Jp`dxvG4!c0^tkMS9 z@bZlifFZCJyPa&Kin4`V9-U5Gf-p!<4wlDIVVXG_v#>osLX5JeHQ zl&%~QuuLN`5dG^)irY z)An-ePd_{i_C(b`g(2BS>g{3tYg*z;nl#pmAm+*tWzE-)K}71&4Y5mY*jgkgO_4&J z1e_shdSm8ox*~acLTXYZ^<63RWnf4Fe}XticRLZ;&=2$iH#BV|{U|RulSmS6!RsNE z=UGi{Fa-WmVFwL;q%p1 zz`^o{NJjM+y&I_aT4SumZU@2vJ7m$Ei^~j5E=$icP+d*%KpYRG)6;Lh`Q})?;D^d& zeJ6C;*MB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eVt@IXMt>rfM7Vy)i74Ho>;BfLSIS_P#5)vlCln8r64)n)1 X-s+%D4i2E;3X}f@G*O7V6e<7!L)ZE5 literal 0 HcmV?d00001 diff --git a/dist/dde.gzip.js b/dist/dde.gzip.js new file mode 100644 index 0000000000000000000000000000000000000000..cfaf269563853277d5e2691920cf9bd9ddbd58fb GIT binary patch literal 2722 zcmV;T3SIRdiwFP!000001I<}mZ`(K)e)q4CwM8JJjN){jDvx4hlXkj;H0d;%EwF}> z(h_B>ktLU+oVc?7`yO6IQBKkn`?L>1Z1V8%T)uOokB(w`M-Jm+bx1QOOXrNRt&^4x z*^o3N^Nc#1lsJp5n3K%O$%>Y15>e-C9Mi7@&qLvfQx7(TIrFei%jdgeRRTxn2(}x;?Oi95GxyW7M~n^*_%ICT6CTXFBMa+@ zpez!HpSYFVQQQgUwFDUO^Oi>tyZk5M0Npl*z zoytlRn{sSjx=BYgqoe!#d;k77zhH}_H>1($NNffiKZG@? z;Y1Z`KEsvB%u8rKFzkPbN#wl3BdAbk1N&VGMNTq}zRV@4rl zFkp#r-C>zE;RCM15l%1}m-i`;mY$Xb!U-}O-R&aZBxMj6l%ZkG=>tD2axNsI4Fo+T z*@%?Xq&Wb1D~TJ_Rd|dal$tuYxQd@;c(R;$m2!$-<>fL>xVJ>X(j#D*B8{C93JBbg zgdovwr7oP~QXJ}XwzvtNIQ(i5x*yOZ*UZd9z+MGjl8#C+(!s+Er# zR|b|?h$pTvpBuPqB3z>LmD{*SCtuMx5pb4p$qH)M=LSi5 z??)udq(ktYls77kSh#vlNo-F?awO3g1v%27**~Nqt zJpyc3&MIzIx*#pBER!J!NMC&5Ft6f@aHLHfxOBx%%^mQG*@B2 z$JE+`ktg>L-Pg*2@`Th|^l0YH`_9q1iKoA1n=@&32$V%T=zTIh=Bd9VB>)o{tjZ=y zWz#6^cc0h){zHfF&u|4(AOljXgVMckLS^=NDil7j+Xgc%qF zGDxdE0A{hssMr8>93D?p4G4xqhI%pfm(`}6GDfz3!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v9)OD zP$E4OW`+tLMOlQNMIS`E@v1HZ+uRozgf(n$%jQi1QFt|MBgdvaHBneV%hSQ)z$nU1 z$#sg!+7n-nao6F*dd+y~^Ug!19mAo2vg+Qx`hmN!$A@=e4%OLX%u5fv7Jhf!y?3TZ zz@NQ-8jJ2iRbQ9*SHn5pLe^IT#hiUqm*u=F`4VqE<(MqpaCpq)Y=Lu0P(;?J#XmF& z^iTW)5t?DEqVumXy7|5TWF~p@1>eaa=Wo1up|KQ^=6E~6XioZrITd&?{4rAuKD_$< zbC`CWm?elAe8OHOdPL*Tlep`y&C z8?)ORJNsm8QYQmKn_7ttdU>|Yy3ba9qZ*K+(?E z)d5hUxH4hPp{4{VX>^58p9qh_+%z`&CO_B4by!~ES2y0MdqW$Y0uuX&(XJHat}c=0 z%YdA^XqwnsliII%^z+M>G7cd|X7dU<>QlOtrRsizrWWOLYxi)-g_lT}AX2npoLE2b zZJDlehgY|`_hHS4=?Cx2o4$kB7f*VY0tmcF@A&kXX-yR@Q$*Z}OhWad2RFLJ#*85$ z2XwW%-oZ=s{>W1Kw>$^O+Dh9Lo+EyAWXo1?$-d0&));*tsR^t}{WJgQyPf{L0DpT3 zkW~LlS$Qz4%?It115q literal 0 HcmV?d00001 diff --git a/dist/esm.gzip.js b/dist/esm.gzip.js new file mode 100644 index 0000000000000000000000000000000000000000..fe5fd6fc052a9c16714a558cfb243b15aba5b730 GIT binary patch literal 2654 zcmV-k3ZeBMiwFP!000001I<}qZ`(K$f4@&*>xw``8O7;7RbIu&CGGVVY0_=Fx4;=j zR+cDRjV!4YWyh8E-EW4ZDB4My;-2myuuTq!^Y=G1%sS+QdC;WQZMw+A%oU{JOw>Fd zp0>2)MZ~J=GYcb;uGzT|Je}8qxq>p9)2O2zKv$weDD#sgW<^RvdPW-D~p5| zRu$ah&Z!{2tJf+fKJh{nVq3DC1dh%LY`2EnyI!Qh+)JxHVsdmOhCwi&2!GxmSy)Gq zvPcHv%&DE8;toY5O`5nvvD*z@F-Y@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WGpq{A7h z%}R%QNyaM^kr3bIvps;UEPZi?j$mcAJ9aen41-bsBSv5A5HBHL@P8BC6qoiYE`O}z zo_b4A&ov6-yO7q&+(}+mX|LtLap+LUu@SPJT5t8VpAqTdd(+I!5F$8}uO8|()n~1m zAJh;uw!Z84*1k8`d(M^H*;c)|Kog3eSQXeqS#Z&824OW&?==18" } }, + "node_modules/@eggjs/yauzl": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@eggjs/yauzl/-/yauzl-2.11.0.tgz", + "integrity": "sha512-Jq+k2fCZJ3i3HShb0nxLUiAgq5pwo8JTT1TrH22JoehZQ0Nm2dvByGIja1NYfNyuE4Tx5/Dns5nVsBN/mlC8yg==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer2": "^1.2.0" + } + }, "node_modules/@esbuild/android-arm": { "version": "0.19.5", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz", @@ -1028,6 +1039,52 @@ "node": ">=8" } }, + "node_modules/bl": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.3.tgz", + "integrity": "sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww==", + "dev": true, + "dependencies": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/bl/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/bl/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/bl/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1050,6 +1107,37 @@ "node": ">=8" } }, + "node_modules/buffer-alloc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", + "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", + "dev": true, + "dependencies": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "node_modules/buffer-alloc-unsafe": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", + "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", + "dev": true + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "dev": true, + "engines": { + "node": "*" + } + }, + "node_modules/buffer-fill": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", + "dev": true + }, "node_modules/bytes-iec": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/bytes-iec/-/bytes-iec-3.1.1.tgz", @@ -1129,6 +1217,38 @@ "node": ">= 0.8" } }, + "node_modules/compressing": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/compressing/-/compressing-1.10.0.tgz", + "integrity": "sha512-k2vpbZLaJoHe9euyUZjYYE8vOrbR19aU3HcWIYw5EBXiUs34ygfDVnXU+ubI41JXMriHutnoiu0ZFdwCkH6jPA==", + "dev": true, + "dependencies": { + "@eggjs/yauzl": "^2.11.0", + "flushwritable": "^1.0.0", + "get-ready": "^1.0.0", + "iconv-lite": "^0.5.0", + "mkdirp": "^0.5.1", + "pump": "^3.0.0", + "streamifier": "^0.1.1", + "tar-stream": "^1.5.2", + "yazl": "^2.4.2" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/compressing/node_modules/iconv-lite": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.5.2.tgz", + "integrity": "sha512-kERHXvpSaB4aU3eANwidg79K8FlrN77m8G9V+0vOR3HYaRifrlwMEpT7ZBJqLSEIHnEgJTHcWK82wwLwwKwtag==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -1327,6 +1447,15 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dev": true, + "dependencies": { + "once": "^1.4.0" + } + }, "node_modules/entities": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", @@ -1413,6 +1542,15 @@ "reusify": "^1.0.4" } }, + "node_modules/fd-slicer2": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/fd-slicer2/-/fd-slicer2-1.2.0.tgz", + "integrity": "sha512-3lBUNUckhMZduCc4g+Pw4Ve16LD9vpX9b8qUkkKq2mgDRLYWzblszZH2luADnJqjJe+cypngjCuKRm/IW12rRw==", + "dev": true, + "dependencies": { + "pend": "^1.2.0" + } + }, "node_modules/fetch-blob": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", @@ -1448,6 +1586,12 @@ "node": ">=8" } }, + "node_modules/flushwritable": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/flushwritable/-/flushwritable-1.0.0.tgz", + "integrity": "sha512-3VELfuWCLVzt5d2Gblk8qcqFro6nuwvxwMzHaENVDHI7rxcBRtMCwTk/E9FXcgh+82DSpavPNDueA9+RxXJoFg==", + "dev": true + }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -1474,6 +1618,12 @@ "node": ">=12.20.0" } }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "dev": true + }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -1494,6 +1644,12 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/get-ready": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/get-ready/-/get-ready-1.0.0.tgz", + "integrity": "sha512-mFXCZPJIlcYcth+N8267+mghfYN9h3EhsDa6JSnbA3Wrhh/XFpuowviFcsDeYZtKspQyWyJqfs4O6P8CHeTwzw==", + "dev": true + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -1921,6 +2077,27 @@ "node": "*" } }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "dev": true, + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, "node_modules/mri": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", @@ -2108,6 +2285,12 @@ "node": ">=8" } }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "dev": true + }, "node_modules/picocolors": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", @@ -2126,12 +2309,28 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true + }, "node_modules/psl": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", "dev": true }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dev": true, + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "node_modules/punycode": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz", @@ -2385,6 +2584,15 @@ "node": ">=8" } }, + "node_modules/streamifier": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", + "integrity": "sha512-zDgl+muIlWzXNsXeyUfOk9dChMjlpkq0DRsxujtYPgyJ676yQ8jEm6zzaaWHFDg5BNcLuif0eD2MTyJdZqXpdg==", + "dev": true, + "engines": { + "node": ">=0.10" + } + }, "node_modules/string_decoder": { "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", @@ -2447,6 +2655,66 @@ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "dev": true }, + "node_modules/tar-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", + "dev": true, + "dependencies": { + "bl": "^1.0.0", + "buffer-alloc": "^1.2.0", + "end-of-stream": "^1.0.0", + "fs-constants": "^1.0.0", + "readable-stream": "^2.3.0", + "to-buffer": "^1.1.1", + "xtend": "^4.0.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/tar-stream/node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", + "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/tar-stream/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "node_modules/tar-stream/node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/to-buffer": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", + "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==", + "dev": true + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -2543,6 +2811,12 @@ "requires-port": "^1.0.0" } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true + }, "node_modules/w3c-xmlserializer": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", @@ -2666,11 +2940,29 @@ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", "dev": true }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true + }, + "node_modules/yazl": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz", + "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==", + "dev": true, + "dependencies": { + "buffer-crc32": "~0.2.3" + } } } } diff --git a/package.json b/package.json index 4445d9a..8d11ea7 100644 --- a/package.json +++ b/package.json @@ -91,6 +91,7 @@ ], "devDependencies": { "@size-limit/preset-small-lib": "^8.2.6", + "compressing": "^1.10.0", "dts-bundler": "^0.1.0", "esbuild": "^0.19.2", "jsdom": "^22.1.0",