From e5b485cb13d1ab0f808e9b3d21b13b6b46cbb931 Mon Sep 17 00:00:00 2001 From: Sudharaka Date: Sat, 9 Dec 2023 17:24:47 -0800 Subject: [PATCH] fix: add prettier and split files --- .gitattributes | 2 +- .github/dependabot.yml | 6 +++--- .github/workflows/booking.yml | 2 +- .prettierrc | 5 +++++ add-to-cart.mjs | Bin 5047 -> 4036 bytes helpers/captcha-solve.mjs | Bin 0 -> 1187 bytes helpers/login.mjs | Bin 0 -> 574 bytes login.mjs | Bin 594 -> 0 bytes package-lock.json | 20 +++++++++++++++++++- package.json | 7 +++++++ 10 files changed, 36 insertions(+), 6 deletions(-) create mode 100644 .prettierrc create mode 100644 helpers/captcha-solve.mjs create mode 100644 helpers/login.mjs delete mode 100644 login.mjs diff --git a/.gitattributes b/.gitattributes index 0306e87..cfaad23 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,2 @@ add-to-cart.mjs filter=git-crypt diff=git-crypt -login.mjs filter=git-crypt diff=git-crypt +helpers/** filter=git-crypt diff=git-crypt diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 54c2e6a..552daec 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,7 @@ version: 2 updates: - package-ecosystem: npm - directory: "/" + directory: '/' schedule: - interval: "weekly" - open-pull-requests-limit: 10 + interval: 'weekly' + open-pull-requests-limit: 10 diff --git a/.github/workflows/booking.yml b/.github/workflows/booking.yml index b9c3a9f..39fb0c6 100644 --- a/.github/workflows/booking.yml +++ b/.github/workflows/booking.yml @@ -14,7 +14,7 @@ on: # Triggers the workflow through a webhook event repository_dispatch: - types: [ booking ] + types: [booking] # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..65261d6 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "singleQuote": true +} diff --git a/add-to-cart.mjs b/add-to-cart.mjs index 8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gtZYxIQ z?Z1|=$L-q-F;g|RBmz-+Mib{M(R|v-R$!H{EfMoC0lbW^d6miwaW=!(C;=TkPe6RY zVN3e^)r5~DqiBQnk|R&lYlfNRR)A6gJp}SGH4k8hlg@9?psovnEa^>4jj}p;vaW0< zGwIO0ll(32(YHw{60^qP8nVghDy8cFAQ7Nf3+#jfwF#May2l;=f#5Mwn`_J^Tn2l< zE9&$eJMGLsPqfoU1(gn)RIVookN7t{2(4kUP+8*Q%V;v+D@|UNy!5JO1#V4 z)lDw+djl(J#h7x`Uh;yJ(Oc`~5zqYukR48AI|-LBv~-P?5f>;ByuX$iU*l9KaPE~V5$47D}QCt->o|f6B&XpGG;>fHJi<`pReqXc$ z6f!fnn*{shNNJr0G)(8(5=~$uxx`wGq!dPRiqQ=tV4<1Fp=yl9E5$GQ=9AJ3cSIlS>BMI{iWjRd4hA+b2;tqwF6btlSha<#sBy@{|hZj-koo<_mn0_U)IG%8|cE+1ZC6a@moZW(OZSs2=%>PF5@GFa+s1exK z# diff --git a/helpers/captcha-solve.mjs b/helpers/captcha-solve.mjs new file mode 100644 index 0000000000000000000000000000000000000000..e2f31ea6a1ee1e7df4fc426a4673d28c022abe89 GIT binary patch literal 1187 zcmV;U1YG+7M@dveQdv+`0GAeKksSQ0q>C72tOdqu1@x;~L~we6gb0Ad2f?)8pZXbi zr==+*TqIpIX2?D=OVZ#6nAJa71pTyABn(a@%8dpP|4ouS*>7qe6KiE|RJu(NhV;0A z?N*p+6*LjZWw}6@#_u~igBGpTrFQb6$&&9w_A25z{>L+ACQWGMpEEp|1QSq%IH)57 zNBDo=!#zS9TKnx^4d8<1_-VI=x3C=5yD^@N3ggLAd;%2j$>NYY&@_A3o6j_oZ8-n} zIHk0wC#Y?iY)QGgOa(7Wq3wXT3WiI?1tiVsE30So!}Hv9ei0@6&)8@tNc9ZyL}$7a zC7FZ8BKmdc9)y0{2YM`^+a1M#Rj->b`1csVall_ohb?UAwMXXV*7l+5nv{+}t@RlR zmER{vOp2-yDYrb?YVkV5X{;Xb5_h~qluYINegiH=LQq7Mh?JO%!Zv_C1(ex`^mX59 zDG4q0@y}soQQM|bx{Z=&G3mlkQ23Fm;{iNl+t6v>fNF+;m0jBxFD|Na1?Z1A5{|u!lT_VVR zlPyX-PEN%^rzukGQ39 zGqMuoc>T`q2{>f2x_t-^2s~#-t%z=?c31S5yMZ=@bYuTjzV-5$jAX%gc!4&=9XqIN zlB2)$REXDUlEo$%AWPYU^;^g#;M>uH#6#<;&g$S9X;s6hpC-_6&~=>b3+J0=j~~h< z23=nTx*$&DMjxwJepxu7G7Drt1eVH50Y*ur(pvd1-hj&yaaBwM z403GF);9XFJRG%vf21^h&V*hI+U-3|{QpQ5f7 zI8Gp`pl?+YKyJgHVPm~QvxP&osPVWjs|FlZGQ;We;ofjZPR2S)Pr`DCW4xNHqV;aY zn3lk^)sLn#P}H4MbH=9{*t7^OM-F4Pw@EudI=z+KWba%YLdUukKa!VVGLpvn`S_^ literal 0 HcmV?d00001 diff --git a/helpers/login.mjs b/helpers/login.mjs new file mode 100644 index 0000000000000000000000000000000000000000..4231d04e2ba83c0b03bee6c4de00ee086c060a96 GIT binary patch literal 574 zcmV-E0>S+NM@dveQdv+`0PMU|Ozxw6pW6G_4t1W00Ll}&?`5D!VU(H9bOhMea|I-I z$1+l4i+ALB7-J6le!|t8{-zG0onrZ}hBAI|K7KVESG4BltsXwWk$hFWVG306NDF2g z3|t+&G^n}Tg_1yn&9pU$2GzJv5P zEckk|JzN-RurUz>Ac|dD_`J;X_;abMV<05YH#2-+u%@n~KOP+nVzQsOl33k!W;_kMvI-0z|Om;u5kW6b9xrP=wzH0AR zRg@C_mX!|{>s9mVQ6;6*ZY zY|U;MeB@Gc1bTUT$qj8a6>>f{yJveMe-TBgs>iv|q+C6g&LsA#jJMhOj9gJRvU5>dBTR*ahl M5Be6cBbQx4S!&$a;d)iLx(?4N)+22~so$X6QwMp>`7?2^a zHxtu!(Tf6aekXzR3k?up&2_{!O4CKbvCP_?wgCEMto+V#FIr3=cgpmw)jsk>NA()5aRnqE*<>(uxa9TMStU{^F3(M zs4JoNloGKnRbL36qHI{#$63=u;z|_C}m(}X1Z31vcJet>XFF1Lj zt3>nqcZK63+2nR<1G6R>pVwsQ`iItmDv8ENeKO>l%=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/progress": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", diff --git a/package.json b/package.json index 5209883..39a66f9 100644 --- a/package.json +++ b/package.json @@ -12,5 +12,12 @@ "engines": { "node": "18.x", "npm": "9.x" + }, + "devDependencies": { + "prettier": "3.1.0" + }, + "scripts": { + "start": "node add-to-cart.mjs", + "prettier:write": "prettier --write ." } }