From 3d677ac575eac4b370e52131024fa99ee754def1 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Tue, 19 Oct 2021 14:30:04 -0500 Subject: [PATCH] script to generate license info (#614) --- .github/workflows/licensed.yml | 8 +----- .gitignore | 1 + .licenses/npm/call-bind.dep.yml | Bin 0 -> 1345 bytes .licenses/npm/function-bind.dep.yml | Bin 0 -> 1331 bytes .licenses/npm/get-intrinsic.dep.yml | Bin 0 -> 1398 bytes .licenses/npm/has-symbols.dep.yml | Bin 0 -> 1395 bytes .licenses/npm/has.dep.yml | Bin 0 -> 1339 bytes .licenses/npm/node-fetch.dep.yml | Bin 2489 -> 2796 bytes .licenses/npm/object-inspect.dep.yml | Bin 0 -> 2497 bytes .licenses/npm/qs.dep.yml | Bin 0 -> 1929 bytes .licenses/npm/side-channel.dep.yml | Bin 0 -> 1399 bytes .licenses/npm/tr46.dep.yml | Bin 0 -> 1334 bytes .../{tunnel-0.0.6.dep.yml => tunnel.dep.yml} | Bin .licenses/npm/typed-rest-client.dep.yml | Bin 79811 -> 80724 bytes .licenses/npm/underscore.dep.yml | Bin 1402 -> 1422 bytes .licenses/npm/webidl-conversions.dep.yml | Bin 0 -> 1629 bytes ...unnel-0.0.4.dep.yml => whatwg-url.dep.yml} | Bin 1488 -> 1409 bytes package.json | 4 ++- src/misc/licensed-check.sh | 8 ++++++ src/misc/licensed-download.sh | 24 ++++++++++++++++++ src/misc/licensed-generate.sh | 8 ++++++ 21 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 .licenses/npm/call-bind.dep.yml create mode 100644 .licenses/npm/function-bind.dep.yml create mode 100644 .licenses/npm/get-intrinsic.dep.yml create mode 100644 .licenses/npm/has-symbols.dep.yml create mode 100644 .licenses/npm/has.dep.yml create mode 100644 .licenses/npm/object-inspect.dep.yml create mode 100644 .licenses/npm/qs.dep.yml create mode 100644 .licenses/npm/side-channel.dep.yml create mode 100644 .licenses/npm/tr46.dep.yml rename .licenses/npm/{tunnel-0.0.6.dep.yml => tunnel.dep.yml} (100%) create mode 100644 .licenses/npm/webidl-conversions.dep.yml rename .licenses/npm/{tunnel-0.0.4.dep.yml => whatwg-url.dep.yml} (78%) create mode 100755 src/misc/licensed-check.sh create mode 100755 src/misc/licensed-download.sh create mode 100755 src/misc/licensed-generate.sh diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml index ae62613..c7c9dbe 100644 --- a/.github/workflows/licensed.yml +++ b/.github/workflows/licensed.yml @@ -11,10 +11,4 @@ jobs: steps: - uses: actions/checkout@v2 - run: npm ci - - name: Install licensed - run: | - cd $RUNNER_TEMP - curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz - sudo tar -xzf licensed.tar.gz - sudo mv licensed /usr/local/bin/licensed - - run: licensed status \ No newline at end of file + - run: npm run licensed-check \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2f909c0..8baa767 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ __test__/_temp +_temp/ lib/ node_modules/ \ No newline at end of file diff --git a/.licenses/npm/call-bind.dep.yml b/.licenses/npm/call-bind.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..9edb85b9673d52f07423fd879e22c4a6e9b651dd GIT binary patch literal 1345 zcmZ8hU2obt7{1T1c-7ssQh=Uba+iWBJ|`r|3G1rqNXv&Io{|{F&U%pc1u;)}GCBu{bH)jOD!2-J<>86hpcAko+{rqV8nS zs!H|-m`>T-!YqRs89fe_G)s#4iX|Bfh^+k2F6k$J5$$+R@q`WhV5QHOL7f^)_tgVE zJw83s-+HKvp0*G!5Yivp%b`=og(YREk%KHRbQ+4@$~vUuASLM|RWN&!Az4jDf1xw# z0YI0wP`&C;NL@kB6XLXOKxOpNz88Z8pr*nYU8w?`RO@Q&WN!=C5gk=44c*&D(p`2% z+&y@qS{AKmR6Q6a-L~l+E$Y$IAdMZA?>Z#aSM69kFSqShp~6YU!F?CT6C%ZEkj8lq zsnfMOx^L+tp2xCPrU|K5j=mf%P8v7#7ZbWX3q6pL?PL!u3K@Lv|6TfXt}k>2AJ@u^ zo4n&;{GLcnzK-M2LmDOFRIO2=SN<+5>n1M6QMavrcQGs7*UEK>*Wpv;*e*)_L;76P z)%V)Mw!Z>@Dc;O<+t)4A;Pp}|uLVLIbz|fyZ_$u;ERDsZP(@2;J$T(eBhRlswv4iL zlfOoS5zlBZ($9R&)^rzTSl@;8%JXe{$O$Jzl;m%eZYWCL=pUY}Lt3rm{@JW9zFAz=Wn4W+weSb+?!NT zMEgkOe07K;LHmQ)rx}BdHK-GwYy_0pjwSgV%9s)Rj0I)eD2|<+=Zg+VBAi!RrTaI* zU$!}I(|FA=d}eSMJ;!X4L%>xW@m)ykXcxUWmx59-O*!4s$tk^VnHxLZ2%lBX)5Jwu zrAaQZ43SvmAMjV6v5+FcGgr<=q`N7ss~9M#fC$)xO-!zSU)aYj;fO2nfC6rwXw9M+ We7LgYBkm0_52n|Hf1|Je2EPCo|Dyc> literal 0 HcmV?d00001 diff --git a/.licenses/npm/function-bind.dep.yml b/.licenses/npm/function-bind.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..54b93282574c8e26af56c9ace6b120277ab1efbc GIT binary patch literal 1331 zcmZ8h&5qkP5Wedv275|S*>2jKZ(NyP6O|={qO(~9Jx~&Dv5-hXq_Q=ThwqTG6QuA0 zUJhrzzahL@tr8;#wS~)U8n3Nc)!MYlH#IptY~j-yKZ(DM*kZ;Zaq}?9>9z$njJ+C^ z@iI(-y}y6-@xV`qyva`)~L!KxW6=q_3Ta56wsTX3YST#V5I5fbX6&M3)0+R#4Lit+DmP;xq^fSc_JWo`wpR; zz4&)IDI91)I%gX#5ffV5%s)fA=w3Pa;5!9R)qUdWV?5K!h^XLk4eywhojpv- z`ANqWrJzmI&u!51xb8J(wX7nH#}HfuL>IF|H$ig>gKhOCe5+`2oa<@<{g2MSfW7q5gN?e11a9%FIMbQpkGd$Ruz;y>R`uH&M4Mdk>%$dD_-CkXNywclRq+n zz@mgedWT~aXZLWVJUbvdd1g5iZ)pVEGf@QWeaV5qiEzQPb51y%&iqtX6lLrXx?shg zBNIK+LadP)Yd}Ba0jdMZ^FSBz$QhmRpcS(6^v2oCLBOHRcNB}y6cv)^oGx@|Fv|%$ zrm!PN@)A^XC=qG#8Cn;m@Oq%39C!)-WrCGOu#}aB;CM{YF&96^Us**{Ae>bpoINj( zi`ft{P9X~d;cP({q!51$?8la{B?NfJ03MoPM@f!&xUwQz4GoV0-1PE%@OS6y-^qW~ CJ)t@P literal 0 HcmV?d00001 diff --git a/.licenses/npm/get-intrinsic.dep.yml b/.licenses/npm/get-intrinsic.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..e9584f14675aae19a9a26f666324abc3c1d244eb GIT binary patch literal 1398 zcmZ8hO>g5i5WVYH4ARRkAjjK1`li@)%&jaLlDuh9^gv0p#f2ogB$d=ae|#S)JH-|b z;BYwezJ~B(v4}=7$Q7NXTd2_)HCoj~Z_-$$#})nhh)?9M7qpC*A+pmj2y-sA-qUj`wzNc>`^ zsB`XOSIgyDxo)Z-8$B%hADuAu@+XbI7%5r|_NtMi#oVCW{a{zof~=lQBkhV(zGhj; zJd^y}t>_>8N3`b^rSohQ3Tu728g=d*eQG|_*Dqhc&^K*bG13m?@H)30q#2a;>5#J2 zNh9kkosAfsY-2hZDM_EGf#9=@$!Vl?r3>=JfUccTqZ-d7r~zHzMYrn!W%bFu3xf<1 ztFTr#N&u5u-AscVop7G>qvS~sZ}1no*X)@FNVd$ z-p^7Sva+A$0Y$+>@cp04(C70)R?u;a%=*eZ9>>p))U4|?nGw_o30=>2#wt7hlM!cj$k$>kKwxNfl#Q7nn7hdi1V@2pF zlB{~Ad`n68O26@J6BGOWP_VM3ya*cj{*ZEpI?vYWal^A`dctg$r|GR$AwW*MdLqD%$1ghN1YxpfGt#*-Qt6>ono}m^R5i zdG;y`%7HZd^sTc}df72w_Ph!H))mh)Z)u%pRe@s+$3^uq{=!QZQ&RBKhqEp6{cP4p xj47}H2(uZRk$n6iu#YXF#Rqsq0C!EaVMz)+tStMmdmng==GTK?qd)$P{smUmw<7=m literal 0 HcmV?d00001 diff --git a/.licenses/npm/has-symbols.dep.yml b/.licenses/npm/has-symbols.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..801de4957bd509913cee240ba64345b0de0aae73 GIT binary patch literal 1395 zcmZ8hUys^25P#378122ZQh>G(ec&w%W^pehC<)zLo$kR&3~`m%k?rgjsUN;G4y^7@ zLV`?Ye*b2~VzG#{7~~o{;TG;X)TVdQtF%rTy@t=rPs=ZnzmC|T$02glFbI2H!&Z7} z2c;#bGx$!zw-Tg&Ro3W1YENiT1~hQfI2!AhP|iObxKTDS7z?fwgIh+O8RRG~B*OdA ztyimy^4(M~8#Anwrgp#h;a2~W_=lCE9c0w2MrwzXgYx$Ww~iLz%w!ws){ycI%Ssjj zc=^+>;TQe_IPeP6c{U1#jTx_2T{;gRnvd}1)90`7&Dd6G*b7?=-Og=Ca_uM_P!2k2 zWqpN<723--hO?Ct%o&o;c5{mkvHq;1A_(;^AW;YNhA{qS9d@_t)@-S(?d%mCjq$5KatA zH~rL-miy~oVT3aa!G|nd07Ms)LpP*3hQYMzOy4qC9H+Whu8W~n1Yb`cI~^6nVq)^M zqE*X&mWL<`Jp|tp?kYnc<%Le4`SGRTPx}h?dAem-d}OFFc}&?%hXyxk!VfWQ zlSA@EDhtRFY4%C2vr>58Gb$5rf}c&r^NcKQ@~kTGF-FHl^*;X0OBO>?@RGvW75QN{ zOA+G~vLF!7W^6{H_(NdtTf!C!@Pq-}HNlo8DdOSEvUj`pfn_vb5B?kd{ZI58e37<9 literal 0 HcmV?d00001 diff --git a/.licenses/npm/has.dep.yml b/.licenses/npm/has.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..64d1ef707b2841a934e63159b675a0d7f25ae567 GIT binary patch literal 1339 zcmZ8hUyqwO5P#=WjP|LO2x+fxd1JxZSVwSVNVlugJs5C;Pk@nannvn}zp=^obd@3{ z*fYO>Gi0;bM3Wfh4timu@6uSMryYDwJ|$lwcc1ZMn#ag4<0#C12dw!=wl0~CcG_Pj z*v4+t$>>=ccTZX|3}Ab0T)Via*Q1=p)uTH%+ue41Rjyx}q}Air31gN{Y(4RyS~*#) z8Z@IkP*z{uO&Ey{9SCc6s{~>~r`u(elM@a(1H?rQ(!vMVOL(dtT~8kaStrE+ zYC=Q_?^kfcxHJaoeHv+{v9KMM&TDy;z@RX@z!V@tBG$WDtc(MI*BryBJ9Y8j zGT5A#W>B_|p;I2dSsZ$|{xD1=_MW!dfR)4Wj-t>*@cy6DQ0Lh&FVyjfE%4uP3%sPz z{mU7~c3I4X)EE@@bsA#~%znZAi4WqUhe6-a=7W0bl=qLT5e{lB5sm&X!#vg{n6yLb zVH9CFLC`w&$Cd5Axj@cAi*S6Uy~xdyD@X<5Gk+e2Eu!Jo9u*XfXNCr+vg7zcVh6_n&L z&@wB|IW1q{8GB1s<7C3^t zkpKr)S literal 0 HcmV?d00001 diff --git a/.licenses/npm/node-fetch.dep.yml b/.licenses/npm/node-fetch.dep.yml index 109c6d07ba8c1f0dc04fb7b56d253090019e3cd2..938f0899582d01315ae111a7545cdf5d2cbb9553 100644 GIT binary patch delta 311 zcmZvW!43g26h*^EVk`DSNGzs}GGj(E5s9xL7M=F#G&)n-5*FeY{EArlCm(?zA-v^% zH|N|-NeJHS|G0@+l8;ucAbUo{+bqNwACy&eg| zE(s!^44GEi#7)xelQ0^OT8bv1;_;K)vTmm!o-67+yINBN<=XwGZ|z}i)Q9yIBO&l) zo8+8j&$?bhe)lL~PHy05?Drcno#9+_@aEuHiWABfU@Wp5@k47qaNisLz|O}~yLba} C7HfzA delta 17 YcmaDOx>I<95~IOJDTP z6Gzc)q(~0KbX9eAyW7Lza8M;B8R9$6!~s77>dpP$>G2I{HCrK&Cm zvMtM`c^Z*a4X?J;u)1NARVq;kkR&!emLy(LB{D`ym66IBtsAkEtQq8@WOcFyV6Idx zM~<`QDsR_zDoUqUFua$}iK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$c z0fO7@`7hSsb}Ws>QYg{VMGv0$SIhI8jxD1+-4w?tW5jdXXX#hIW@~zga-1JRI`U$h z9tuK57A3_qr5lQpXZpgEbx7>bea7;f(#+f9yM4?V?s>9`4{M%0(Ia}36#LGx^#CqX zDnNRJ;|#qU+Ocf41$y+zV_rOm9&E#l#9?pJj3U}cS;1F_ILc^$$o6T@AY%>ageRK} zOl-%JVh(295&Mb*<=ZHZ9i7LE4sen=t+Yz_&l!K(7PL*{HN)j2gTm-BW)mF@uHuOA zLRv?==*g+fC9}R?+VMvCtO}kc&eAGPiVVjPjE}0j4XMxdvBNr)Ar!s=&!$npT%#s Am;e9( literal 0 HcmV?d00001 diff --git a/.licenses/npm/tr46.dep.yml b/.licenses/npm/tr46.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..3bacc6ec4c168478637e17763157c09ed9ebe0dc GIT binary patch literal 1334 zcmZ8hUyIu~5P$cl81`Q7z)1>S`j9tmqHM%Dc94~BmvRrXt;AYv%Sdwf0{!qE$;lo) z2qYTK{Qix|VzEdD*{d~p`}igKp{&zpSi`5~r{(9wUq`$d#y)XV-%ER40~tW~W2bsG zcZS9_t^)D$ z&HZ7OYke3p>sMaJEVXOLZ&lMWx^k$l(ej1{1tiUg|*)7m!e! z@frbR00`yG*}qGxaG(L{oT+sb*qD0yFRruhl!HG*WDn(S;^D7I)F|0SL_Nev@7M5- zxtYm>RnA*ohuBllL)}eH&~m@-G-ft0CBR#KX}ybp=wfo{CTLEfH;q1rZxt<$Q`KqL zrqJjBUrio6T`0y)q`}Y1Sa7PF;lyCXg8I!|^$ zYTP1rH3lP$%x|jpp%Pr2P1l+CV6!$uql0&R4$+msYgw5eD*B3cVK5$L#})V%mlDOy z+rC}7R(2g!>J}h!W87GZkauh7cB-7mN1ONiJTY*a693;cu32Q=s3DoR%dNJZfNvW5y`fS-#0mTb4h= z6VB#^fQ;d5M_^HaK++o=qd2>R1Ld1NqLU|53(@+k)1V02$`HSSIu9 L!M~sH|0KTv1G1sq literal 0 HcmV?d00001 diff --git a/.licenses/npm/tunnel-0.0.6.dep.yml b/.licenses/npm/tunnel.dep.yml similarity index 100% rename from .licenses/npm/tunnel-0.0.6.dep.yml rename to .licenses/npm/tunnel.dep.yml diff --git a/.licenses/npm/typed-rest-client.dep.yml b/.licenses/npm/typed-rest-client.dep.yml index 7076df454148e410b1660030f96d34329b2be6bb..c90980cdb6f87d1c130bdf9a6f315ee6df1cbf29 100644 GIT binary patch delta 373 zcmX^7p5@9nmI><27J6nIwPIP_xVRL6KwnG2FFz$!H`v!nKd&Sw7c8itrI1llQc!HA zub-Y-l2MwZmzYZHEVY>&eVdCNDlj>*MR)T5gPfBUs(ARJ zVsNz|=1a0EIR-0u22Ug!1Hs za(=j;$%W<2rg{b&wPIPDB{;WBa5CB$0RVw~2l@a2 diff --git a/.licenses/npm/underscore.dep.yml b/.licenses/npm/underscore.dep.yml index 7171cc66853623814d9f1b8a556ec95311cb9dd6..0324c6671b7de3b14303947da742c3ff3fcb9b26 100644 GIT binary patch delta 69 zcmeyx)yF+SfyK~R&v2r07-R9o%0x{gLj|wYqSV|<1;^ry?9{x(VjTsq(wxl1JO%gs Zy!7;<%&Y<(g~Ys+iEkA)3o>T1000vW7byS$ delta 50 zcmeC<{>3#xf!RXOc%n+!#Og$0LsJE>)S}efN(IN_jO^6B#A2Pvtc(gQTnY*bn^hSz FSpbfu4o(07 diff --git a/.licenses/npm/webidl-conversions.dep.yml b/.licenses/npm/webidl-conversions.dep.yml new file mode 100644 index 0000000000000000000000000000000000000000..48c1f22729f913d07c1354086818933738ca6845 GIT binary patch literal 1629 zcmb`HL2u(W5QXph6@%T&29TXi+LL>tCE8{oOD;*pYZN`m5*@RUL_?&U2I!CPkajj+ zq(CpdScFKvdGo!oCX-3jSDl){i`wg^oz$j3tHEm1+vvKO!B5k#(}&2tp730M>LNRK zT{XPUfOV%Z)jpd+yJKhJURR;{@9u3gd7RX3 zHQMiQ?JSyrHRDh#JA;fRG#7N*H4%VQf4Ld_jVpl9AhCN|M+`tWlMDVpwe4XOV%Z50lZwuNxe!l0}g&Z?PSB)Dp{b%WlI4jBg;=o55* zwHMy(b&q&Gyw1k(f)D^X`llHkbf(bYlY?nn z^Wx!S4vqGgY`D}ZH@kRxn8J^?ESSTapV~AEy3so9#8v3i2VL#WS)t$?j@~%r6yu(@ z&|-sL;I-iS^o&TrmNnSja8m6mY%a#S=?u3iBPv6@{eO>^NJlB&>=o zrCb2XQ+%6C&gP{o@Wm%0@aCtmLGm5YZyQd9fPw>CZ!(5rsLn|)85J?GJju$G<;xgQ z0P;fOw6B@OW3q@t(T~@lSiqX{WQ8hZ&N3!YTaM+Z5QwR#a zt(1u*BWz96DOSgdK%ZzXL99rY{cD%r`wu%Dd=w{9>PsX$(k&wfG_`n1T#rWPS@TuauDTQNG3~3VObPu04*qg z!cT_y1+v1UUqC4+{_}|>p)g7yD%{4#=A~c(8p|c+yxd4uDyt-N;?9tEdRqEN(o8 zr|=w3sXN`g|G^L6_rDLnhWjK*7)gTyLPvxRdqd~7B?04foL;lgx3QzvFy9#?T`yp1 zD}={9f9A)tf@zHuJiJ=>%g|Iq>+DXWXUZCEWgQtRgw_krYaLWqq@^`{Ye%|Nddn#y zlhXix_`EuN-;O5mWRGQxLiW-t{c$t6JKHDVZRbk#0$#G|!y-#f#Q*~Cf`GX$kvvw= wQH61iLRc?m`R3wZ`CoU@*n%7B13EsR-Dk^Hb{XLS%?X^cbFv}+(Z1fWAJqbG1^@s6 diff --git a/package.json b/package.json index 5909be7..823ff58 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,9 @@ "format": "prettier --write '**/*.ts'", "format-check": "prettier --check '**/*.ts'", "lint": "eslint src/**/*.ts", - "test": "jest" + "test": "jest", + "licensed-check": "src/misc/licensed-check.sh", + "licensed-generate": "src/misc/licensed-generate.sh" }, "repository": { "type": "git", diff --git a/src/misc/licensed-check.sh b/src/misc/licensed-check.sh new file mode 100755 index 0000000..f5066fd --- /dev/null +++ b/src/misc/licensed-check.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +src/misc/licensed-download.sh + +echo 'Running: licensed cached' +_temp/licensed-3.3.1/licensed status \ No newline at end of file diff --git a/src/misc/licensed-download.sh b/src/misc/licensed-download.sh new file mode 100755 index 0000000..192091e --- /dev/null +++ b/src/misc/licensed-download.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +if [ ! -f _temp/licensed-3.3.1.done ]; then + echo 'Clearing temp' + rm -rf _temp/licensed-3.3.1 || true + + echo 'Downloading licensed' + mkdir -p _temp/licensed-3.3.1 + pushd _temp/licensed-3.3.1 + if [[ "$OSTYPE" == "darwin"* ]]; then + curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-darwin-x64.tar.gz + else + curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.3.1/licensed-3.3.1-linux-x64.tar.gz + fi + + echo 'Extracting licenesed' + tar -xzf licensed.tar.gz + popd + touch _temp/licensed-3.3.1.done +else + echo 'Licensed already downloaded' +fi diff --git a/src/misc/licensed-generate.sh b/src/misc/licensed-generate.sh new file mode 100755 index 0000000..e66e03b --- /dev/null +++ b/src/misc/licensed-generate.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +src/misc/licensed-download.sh + +echo 'Running: licensed cached' +_temp/licensed-3.3.1/licensed cache \ No newline at end of file