This repository was archived by the owner on Jul 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +24
-16
lines changed Expand file tree Collapse file tree 5 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1+ const { Base64 } = require ( "js-base64" ) ;
2+
3+ module . exports = ( req , res ) => {
4+ const query = req . query . name ;
5+ const decrypted_str = Base64 . decode ( query )
6+ res . send ( `${ decrypted_str } ` ) ;
7+ } ;
Original file line number Diff line number Diff line change 1+ const { Base64 } = require ( "js-base64" ) ;
2+
3+ module . exports = ( req , res ) => {
4+ const query = req . query . name ;
5+ const encrypted_str = Base64 . encode ( query )
6+ res . send ( `${ encrypted_str } ` ) ;
7+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
2- "name" : " pinecone " ,
2+ "name" : " pinekone " ,
33 "version" : " 1.0.0" ,
44 "main" : " index.js" ,
55 "license" : " MIT" ,
66 "scripts" : {
7- "test" : " node api/index.js " ,
7+ "test" : " vercel dev " ,
88 "lint" : " eslint --fix ."
99 },
1010 "devDependencies" : {
1111 "eslint" : " ^7.32.0" ,
1212 "vercel" : " ^23.1.2"
13+ },
14+ "dependencies" : {
15+ "js-base64" : " ^3.7.2"
1316 }
1417}
Original file line number Diff line number Diff line change @@ -771,6 +771,11 @@ isexe@^2.0.0:
771771 resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
772772 integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=
773773
774+ js-base64@^3.7.2 :
775+ version "3.7.2"
776+ resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.2.tgz#816d11d81a8aff241603d19ce5761e13e41d7745"
777+ integrity sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==
778+
774779js-tokens@^4.0.0 :
775780 version "4.0.0"
776781 resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"
@@ -892,11 +897,6 @@ ms@2.1.2:
892897 resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
893898 integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==
894899
895- nanoid@^3.1.28 :
896- version "3.1.28"
897- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.28.tgz#3c01bac14cb6c5680569014cc65a2f26424c6bd4"
898- integrity sha512-gSu9VZ2HtmoKYe/lmyPFES5nknFrHa+/DT9muUFWFMi6Jh9E1I7bkvlQ8xxf1Kos9pi9o8lBnIOkatMhKX/YUw==
899-
900900natural-compare@^1.4.0 :
901901 version "1.4.0"
902902 resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz"
You can’t perform that action at this time.
0 commit comments