Compare commits

...

2 Commits

Author SHA1 Message Date
8db9058eb7 refactor: Use new release process 2024-06-24 10:20:55 -04:00
025cd8a289 Moving out functions 2024-06-18 22:29:44 -04:00
10 changed files with 3 additions and 575 deletions

View File

@@ -1,130 +0,0 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

View File

@@ -1,6 +0,0 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}

View File

@@ -1,46 +0,0 @@
# getusername
## 🧰 Usage
### GET /
- Returns a "Hello, World!" message.
**Response**
Sample `200` Response:
```text
Hello, World!
```
### POST, PUT, PATCH, DELETE /
- Returns a "Learn More" JSON response.
**Response**
Sample `200` Response:
```json
{
"motto": "Build like a team of hundreds_",
"learn": "https://appwrite.io/docs",
"connect": "https://appwrite.io/discord",
"getInspired": "https://builtwith.appwrite.io"
}
```
## ⚙️ Configuration
| Setting | Value |
| ----------------- | ------------- |
| Runtime | Node (16.0) |
| Entrypoint | `src/main.js` |
| Build Commands | `npm install` |
| Permissions | `any` |
| Timeout (Seconds) | 15 |
## 🔒 Environment Variables
No environment variables required.

View File

@@ -1,4 +0,0 @@
{
"projectId": "bab",
"projectName": "BAB"
}

View File

@@ -1,164 +0,0 @@
{
"version": "3",
"remote": {
"https://deno.land/std@0.122.0/_util/assert.ts": "2f868145a042a11d5ad0a3c748dcf580add8a0dbc0e876eaa0026303a5488f58",
"https://deno.land/std@0.122.0/_util/os.ts": "dfb186cc4e968c770ab6cc3288bd65f4871be03b93beecae57d657232ecffcac",
"https://deno.land/std@0.122.0/path/_constants.ts": "1247fee4a79b70c89f23499691ef169b41b6ccf01887a0abd131009c5581b853",
"https://deno.land/std@0.122.0/path/_interface.ts": "1fa73b02aaa24867e481a48492b44f2598cd9dfa513c7b34001437007d3642e4",
"https://deno.land/std@0.122.0/path/_util.ts": "2e06a3b9e79beaf62687196bd4b60a4c391d862cfa007a20fc3a39f778ba073b",
"https://deno.land/std@0.122.0/path/common.ts": "f41a38a0719a1e85aa11c6ba3bea5e37c15dd009d705bd8873f94c833568cbc4",
"https://deno.land/std@0.122.0/path/glob.ts": "7bf2349e818e332a830f3d8874c3f45dd7580b6c742ed50dbf6282d84ab18405",
"https://deno.land/std@0.122.0/path/mod.ts": "4465dc494f271b02569edbb4a18d727063b5dbd6ed84283ff906260970a15d12",
"https://deno.land/std@0.122.0/path/posix.ts": "34349174b9cd121625a2810837a82dd8b986bbaaad5ade690d1de75bbb4555b2",
"https://deno.land/std@0.122.0/path/separator.ts": "8fdcf289b1b76fd726a508f57d3370ca029ae6976fcde5044007f062e643ff1c",
"https://deno.land/std@0.122.0/path/win32.ts": "11549e8c6df8307a8efcfa47ad7b2a75da743eac7d4c89c9723a944661c8bd2e",
"https://deno.land/x/appwrite@11.0.0/mod.ts": "9352d1a6bb370d82f6c73e53a0ee055bdd3686632c9f2d2c1a66e5c2cf0080fd",
"https://deno.land/x/appwrite@11.0.0/src/client.ts": "f235f47ca9797db2233fd44c1c1d4580502c228cc50532d1c8bc6758fc6f542d",
"https://deno.land/x/appwrite@11.0.0/src/enums/authentication-factor.ts": "29e807119efb8b21ca8601d1dc271a3c9150e31554351d37e527c44cfd2dec7d",
"https://deno.land/x/appwrite@11.0.0/src/enums/authenticator-type.ts": "7aeb0cde9a751325a9d832e9fe7121e2c1047f3491cfb7dc5d98dcb570d5d20f",
"https://deno.land/x/appwrite@11.0.0/src/enums/browser.ts": "8203be677b378978fe68aed4bf017c2fa026909142136871d1abcf06706b3c3a",
"https://deno.land/x/appwrite@11.0.0/src/enums/compression.ts": "1d47a07ead40d9eba8e4147c4b081255644d6682ac7e7baf6cf38c4b7357488b",
"https://deno.land/x/appwrite@11.0.0/src/enums/credit-card.ts": "ef5b5fa1797d930859e81d890dca89036e4a70dceb8b2fdd194ee847d5848678",
"https://deno.land/x/appwrite@11.0.0/src/enums/execution-method.ts": "19b2ada306921d8fcb63b22fc62cb8e9ab0688a85bcf592e4ffa30aeb4c13147",
"https://deno.land/x/appwrite@11.0.0/src/enums/flag.ts": "caca8522be16bdb623c4f82c4e2c7aa27f8f1b16ee1b02a29b5ba455a0a319af",
"https://deno.land/x/appwrite@11.0.0/src/enums/image-format.ts": "4b619abe69b9c00f103de42034574af8710a147546c2c558d55024fa723e077b",
"https://deno.land/x/appwrite@11.0.0/src/enums/image-gravity.ts": "59321342115ca14998959c816ece2653199758d90352ef2af178df6a8b4ebbde",
"https://deno.land/x/appwrite@11.0.0/src/enums/index-type.ts": "ce3cc6e834a22c4237bfe22fa05acc6d0f1fb3c326581104fd15ed07c13126bc",
"https://deno.land/x/appwrite@11.0.0/src/enums/messaging-provider-type.ts": "c9b2e535c6f9d042f6e1ed22deeefc064487a4898b43451d79100913dd04ac38",
"https://deno.land/x/appwrite@11.0.0/src/enums/name.ts": "8ff2121317c7e6c58ad23b9b39df0dd1901974a8ab54dac353d651645bd97815",
"https://deno.land/x/appwrite@11.0.0/src/enums/o-auth-provider.ts": "7cda0e215248b640c5e49169eb16be6e4057abfa2876bf5969f4b7805cf9e088",
"https://deno.land/x/appwrite@11.0.0/src/enums/password-hash.ts": "5d15e8adcc6e618e87d6b3a99d9089a8c2b4861f86ad0693b6ef3cc63dacff48",
"https://deno.land/x/appwrite@11.0.0/src/enums/relation-mutate.ts": "d7ce3e2945278544ba21c2efdab65678c578db10cd764ca3c874d840d4065ddd",
"https://deno.land/x/appwrite@11.0.0/src/enums/relationship-type.ts": "9b985dfef86b595759bbccfc5520142d2671e2b6f4b6d498d94ff36c52a1122f",
"https://deno.land/x/appwrite@11.0.0/src/enums/runtime.ts": "bed6d1310e5d4da303d90f071d3582fd5a15b5baad75a6ac9b4d2403a1078615",
"https://deno.land/x/appwrite@11.0.0/src/enums/smtp-encryption.ts": "54730a29af7a7e43fe9b1d9d85c3f7283599eaa26ed4ed6470b629d69d2b2825",
"https://deno.land/x/appwrite@11.0.0/src/exception.ts": "ff67ae43c8a4e4bc449294ba3a2cb4c1c593cf8ebbbca8917467c906486495b8",
"https://deno.land/x/appwrite@11.0.0/src/id.ts": "e11d66ce1456f74146cff9cd18b35c4ee04a00336b6a60a5e687f8779fab307a",
"https://deno.land/x/appwrite@11.0.0/src/inputFile.ts": "8f9e9bac6130b854a6c28c1b1bb00d31a512e175459f595db350506fa2740bfe",
"https://deno.land/x/appwrite@11.0.0/src/permission.ts": "3aeba3d58059ae762ebfd75bf82c7b8bf1e75a28f105f6cfd6d650d300c2308d",
"https://deno.land/x/appwrite@11.0.0/src/query.ts": "7671bd9aacb219f1c54b37bf03a56a54e993ba9c232c479e41f0b9e9c310a49e",
"https://deno.land/x/appwrite@11.0.0/src/role.ts": "72ad85e15bd681f701c7fb9df6221a65965455596b06622a4ad11d87dce44358",
"https://deno.land/x/appwrite@11.0.0/src/service.ts": "4a8227462b0e6af12956a0f9573c6360582a38cc3eb215bd480e50e398ff69d3",
"https://deno.land/x/appwrite@11.0.0/src/services/account.ts": "27fe499f11e10545394dfe02ba0fb934e49a037d6e9367c1241088600bffd49a",
"https://deno.land/x/appwrite@11.0.0/src/services/avatars.ts": "cfd69184f97923e3eb245620bc4aa32cfa83eaf2cf992095790c0a7cbf4639a4",
"https://deno.land/x/appwrite@11.0.0/src/services/databases.ts": "6bb109d79aec412c63b14081873d24c90345c7d24e0069bca56fd8967cdcdb99",
"https://deno.land/x/appwrite@11.0.0/src/services/functions.ts": "9dfd04bbba9575d26befe908ba788a8b80cc8cbcdb6a611305ccee076df27b57",
"https://deno.land/x/appwrite@11.0.0/src/services/graphql.ts": "c94133899996e59f987706e0258e6247de265bce45f0c2d30437a498ecdfabd8",
"https://deno.land/x/appwrite@11.0.0/src/services/health.ts": "3f0568606a29c6c825b6c3ad1e254d73c12de8cc7673b731375e89252558bda9",
"https://deno.land/x/appwrite@11.0.0/src/services/locale.ts": "916a602ae1d1b66901ba719081c1d751b2a1e2e741bd80302635b37c4aec4046",
"https://deno.land/x/appwrite@11.0.0/src/services/messaging.ts": "643209b31850eda7bc6da3932435764cb08040b77885b774c6ed65dfb37f7a27",
"https://deno.land/x/appwrite@11.0.0/src/services/storage.ts": "d327fc3a962ca03771502315345b11cf1fa7517f9b719b17c3a6ceca46999b0a",
"https://deno.land/x/appwrite@11.0.0/src/services/teams.ts": "760a4bd5d335e533b05741b1c4cb1f5fde66955e9a9828a5882419d99709834f",
"https://deno.land/x/appwrite@11.0.0/src/services/users.ts": "3f183dd062a01cbede711749489607dc1ac5f27e6b89ebf80d69713300671359",
"https://deno.land/x/deno_validator@v0.0.5/lib/alpha.ts": "a483f81a54cde15c1b6a2cf096de3d048cd9727b768cf8c21e34ee751ac552c7",
"https://deno.land/x/deno_validator@v0.0.5/lib/blacklist.ts": "cce590bbed4fd6440e089ee546f8c546dc0597759f415bb9cfc7d4554bdd6ebe",
"https://deno.land/x/deno_validator@v0.0.5/lib/contains.ts": "bbb8348e1a64cfc0bd7c5bd162194cfa8ce3fa20e99284395ec12656aff977e1",
"https://deno.land/x/deno_validator@v0.0.5/lib/equals.ts": "5f68b35da71e61d579c8fa7916882c89510181ae602addfc3ccf24b33e795f90",
"https://deno.land/x/deno_validator@v0.0.5/lib/escape.ts": "e1bc2d2028747d7435779aa6c4d84677035b32dc620ac87794ae959efb9c4649",
"https://deno.land/x/deno_validator@v0.0.5/lib/isAfter.ts": "bd2312eea2e126726488668eee20847941a166b56108ffba458fbc8988b72acb",
"https://deno.land/x/deno_validator@v0.0.5/lib/isAlpha.ts": "fcc21627e5566fa3352a769009a31216d759f789906a16c2343d06e4bb8fb7a5",
"https://deno.land/x/deno_validator@v0.0.5/lib/isAlphanumeric.ts": "1cda619d4e043b6cfead1259dfad63531eb19bff01170e8018f2a4423c627c27",
"https://deno.land/x/deno_validator@v0.0.5/lib/isAscii.ts": "a7b0d1876bcd1326aa7c9d86b262407802178a007e6408005456c63ab3de13e6",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBIC.ts": "a7615244c93dd4fbd1a96f4d4b0806d182e8c07d6cc911ceee910fcbe1bc0151",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBase32.ts": "84712bc4de13190e2c3f7a3af401f859765c5096d92ee84ea22e870c9bd27b1d",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBase58.ts": "fe400e80fc86b68b5046b690fd13e6c3c0e47cef08d5622e91a2cc27db883ea1",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBase64.ts": "f83efaccad11ee9035110b742403b99ac23c3d59e661f9904d48544904a5e73c",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBefore.ts": "526f0896d310e690e5e503437792abfe17c469ab4967f5d5daa751afe13ad3f5",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBoolean.ts": "a6122d55420776e6f06120aaa1ad75057c7efaefc9457465db8b911843d0ce19",
"https://deno.land/x/deno_validator@v0.0.5/lib/isBtcAddress.ts": "496f6f2a01fac00206698f988932df9007c59924705fd4e1ad3e473be69a9f66",
"https://deno.land/x/deno_validator@v0.0.5/lib/isByteLength.ts": "8e9dd0e6603bc0dd8249a2c02a007fd87b4005675d433d71a7b7061d588a5f63",
"https://deno.land/x/deno_validator@v0.0.5/lib/isCreditCard.ts": "10be8b2184d603070e67c8b427d4c8b2c2f8516bc9d023ee92a114900abaf54e",
"https://deno.land/x/deno_validator@v0.0.5/lib/isCurrency.ts": "b48caec2e5b6f7b90564609da264a350ce0dc44291f4633576b25227a00cc13b",
"https://deno.land/x/deno_validator@v0.0.5/lib/isDataURI.ts": "b95e4153ad9021f0786d13ac3f87757a6630b3b8374fa9fb4c11004f0d65e242",
"https://deno.land/x/deno_validator@v0.0.5/lib/isDate.ts": "a40557b905c88189c9ed3bff85b2692523149317363ce97bc119a951d6910bc6",
"https://deno.land/x/deno_validator@v0.0.5/lib/isDecimal.ts": "3dd3cdc5b5964150304c7f30d9632908160e2efb7ffa94aa46cd14f98be8bc59",
"https://deno.land/x/deno_validator@v0.0.5/lib/isDivisibleBy.ts": "0e9d78ce0db5626ed7368ba301fc000351fe17a825f7f295149462aea9bcecdb",
"https://deno.land/x/deno_validator@v0.0.5/lib/isEAN.ts": "ff19c61ee0a7910959a82ccb8d2dd087070e73e8eaf3a31c975ace545fbfb677",
"https://deno.land/x/deno_validator@v0.0.5/lib/isEmail.ts": "ee7cd2ffa25483d226eb0486458ce375610d6a6a83bdcf8e2e3683f9de08de62",
"https://deno.land/x/deno_validator@v0.0.5/lib/isEmpty.ts": "639e5bcf7158ae1cce08e40eeaeb9095d0855f5e53cac53ca800614f69cfb816",
"https://deno.land/x/deno_validator@v0.0.5/lib/isEthereumAddress.ts": "d0e6a29d340312cd92c74a6f9dd9a86dec4b40025404b6c4cbca3e9621aca9ba",
"https://deno.land/x/deno_validator@v0.0.5/lib/isFQDN.ts": "0d2ef39cad476a7417203333007944569d30e0caab97e89954d6aa447cecb955",
"https://deno.land/x/deno_validator@v0.0.5/lib/isFloat.ts": "b40e918ecfee3420c8ba0b0c5cf733956386127db66e4aeffdc9b7d0a5b59b5f",
"https://deno.land/x/deno_validator@v0.0.5/lib/isFullWidth.ts": "89e24bfb48cedc59ed2d3abd727acdde711666049a1a9f4d8a6e0d1f238462f7",
"https://deno.land/x/deno_validator@v0.0.5/lib/isHSL.ts": "9ec15c062cff09adca1d32869f48073612f1ab521474c3004db968576fe850fa",
"https://deno.land/x/deno_validator@v0.0.5/lib/isHalfWidth.ts": "8fc30fce28e3e8f6f73c604371a2349162bd05e8632b2040529fae8ec030205c",
"https://deno.land/x/deno_validator@v0.0.5/lib/isHash.ts": "78f829f59c26a8172ea9c944b351c444fa658ee45705a19a33502d84b9137c22",
"https://deno.land/x/deno_validator@v0.0.5/lib/isHexColor.ts": "f9fb512bb94265190d799b6caa97375c550c4c43bcc47fbc980f37889645743a",
"https://deno.land/x/deno_validator@v0.0.5/lib/isHexadecimal.ts": "399d7d395a709e127746343368d8ecb4f5886bf7f3089a6876058f78ee3d25b6",
"https://deno.land/x/deno_validator@v0.0.5/lib/isIBAN.ts": "b218ac0e1c989b2dfcb32d04023a05a44383a270aac79fc7d9867c5b198ccc92",
"https://deno.land/x/deno_validator@v0.0.5/lib/isIMEI.ts": "c44d58e819c97c1c47c5a6458d8f7d4f877caf3cb65cae900151bbef19cd630b",
"https://deno.land/x/deno_validator@v0.0.5/lib/isIP.ts": "f4ae050be3765dba47ae8c157c9308c3f1fc43d46ba2fe2b3b3b61d0351fa425",
"https://deno.land/x/deno_validator@v0.0.5/lib/isIPRange.ts": "8b8277ceea00475794d33bbcda97d11a5ec7827372774dc442e60de6474e4fff",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISBN.ts": "9b2f85e41aca70e27bd0e419ed794e6c033039cb5d18a02a2c36a0222e7a5ab7",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISIN.ts": "2498e76d36937e23abf30e00733dbf4880aebf8e6499ec10e6b5747593f9ba99",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISO31661Alpha2.ts": "0b004a1eb7b22af353e016609002521d0cd1216774c0944645ff6aa1d9f77104",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISO31661Alpha3.ts": "199f4ecff60e68490e06432e2105bb7dd95be437665c3d323046ab2189ae7654",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISO8601.ts": "c3a97766296a0ce0ea33f2df485d0d8d429b3130ba8121029811958dd1e6fe52",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISRC.ts": "7750a076cc70b365047a78c0b5f4e19f60d7599464679e3263f99c17505dd425",
"https://deno.land/x/deno_validator@v0.0.5/lib/isISSN.ts": "d6a243eb2561acc52c33e10670e137b6111e05130fd944c16be59f821ac93955",
"https://deno.land/x/deno_validator@v0.0.5/lib/isIdentityCard.ts": "32b522ef8cbd1bf2ff224da8a3382fd12162d0ff5011149490672c2b7ed7abcd",
"https://deno.land/x/deno_validator@v0.0.5/lib/isIn.ts": "9e4574641892f2b68c7397f54fadfed071a412449471f53723ff309cbca935c5",
"https://deno.land/x/deno_validator@v0.0.5/lib/isInt.ts": "e82fc8a1015fb2e3bfd11907840d2a4f483a091fe5777039aabf24a3464f957e",
"https://deno.land/x/deno_validator@v0.0.5/lib/isJSON.ts": "402b878120112d88279244654f52deaa67fa5fd7b69b379f37c10858c07ec240",
"https://deno.land/x/deno_validator@v0.0.5/lib/isJWT.ts": "08d9b7721e8af6a41f26a8bb730a9795f8c0b2d97e71b79a17e43ba526b693c7",
"https://deno.land/x/deno_validator@v0.0.5/lib/isLatLong.ts": "725544a1044fe67834fab5b93f8e58c641ded42731e532330bc9802f9bb7bb99",
"https://deno.land/x/deno_validator@v0.0.5/lib/isLength.ts": "d70e36c3ba6fe4dcdaca621ebdde4ebfdf9ec94b7cc29e60fc5c3b3c1d81baf5",
"https://deno.land/x/deno_validator@v0.0.5/lib/isLicensePlate.ts": "744e7b0c7b03e0ea3644771b6ee37dd9cd39ebedad2d5d66415273bdc16b852b",
"https://deno.land/x/deno_validator@v0.0.5/lib/isLocale.ts": "1180ef954a5696e0495983f663053e4b2b797bbb32194833702fd976f01f5c42",
"https://deno.land/x/deno_validator@v0.0.5/lib/isLowercase.ts": "dde842901930d99a0714ce9dc343a77fde64c0a15f93c32000483bed2db6c54d",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMACAddress.ts": "83258726e09ff8518315f8a470482ddb298a57bd6c5c89fcd0303b9e06ed77cc",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMD5.ts": "ab31abc95baae3be16f68bb2883907834d50178d8f1a25849ff81fe3e5baed40",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMagnetURI.ts": "d9ca77177128f1196217be98f20012f0b886b8c07c01aeaf5cd2e95a1058fe0e",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMimeType.ts": "cc869d7c255c0dc68ae0430af7222a8fa42e2dfbb81c99a143c59e145752e5c2",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMobilePhone.ts": "b32c598f74058de350ae5545e145af3e8a0b4f263f8054064803242cf7c59ef7",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMongoId.ts": "6cd94c171c9e4db461946f620cc628c03479c02c17d84cf32d45a32b296ad215",
"https://deno.land/x/deno_validator@v0.0.5/lib/isMultibyte.ts": "23bcc0afc69b2aa1ee04346a4160c9f34f7d84cd4f5404b75d7e21fb2f740e39",
"https://deno.land/x/deno_validator@v0.0.5/lib/isNumeric.ts": "27c9f08d0c0c7b3151b8ff8f73dec73c1e2defc6a3850ab4c02ccfd27402d447",
"https://deno.land/x/deno_validator@v0.0.5/lib/isOctal.ts": "e605fb75e0eac6762b2d3cffe73fa74ebd6d1a02462eec7aef1342c9d3d67098",
"https://deno.land/x/deno_validator@v0.0.5/lib/isPassportNumber.ts": "6e1bba649b62be8774968401b64558c595cf7d40eeba0058e1f7c26c023fe959",
"https://deno.land/x/deno_validator@v0.0.5/lib/isPort.ts": "9442a45ea815432ac2c23f3a564fdd2dfb5c217b5e413c3f121fc58174b5dbf4",
"https://deno.land/x/deno_validator@v0.0.5/lib/isPostalCode.ts": "6176b50f804bc8d614222d529884f5c2486fcbb8a4a7667497657c2d98e71721",
"https://deno.land/x/deno_validator@v0.0.5/lib/isRFC3339.ts": "77cb221aa4f243cf7e0b2350b772061ec3fcfcb2ac02ca5ffcfac9bf9ea935ec",
"https://deno.land/x/deno_validator@v0.0.5/lib/isRgbColor.ts": "2284af7ebc9d912a69ca3b3e4a1496a033f35632c5c8ffe342d858538a3c9f8b",
"https://deno.land/x/deno_validator@v0.0.5/lib/isSemVer.ts": "c7d6a52b538bdcec0bb492437e9d26696950ea7c69cc4831244aa8edb6713939",
"https://deno.land/x/deno_validator@v0.0.5/lib/isSlug.ts": "3baf592840c8ffa0bd780eb98f636d44167132320f559fb0ae4adfea661b36a5",
"https://deno.land/x/deno_validator@v0.0.5/lib/isStrongPassword.ts": "8906da6c98ea6de6fc1ab3f9db6a87186b5e7eab3b2c46706b5d21d447bf655c",
"https://deno.land/x/deno_validator@v0.0.5/lib/isSurrogatePair.ts": "1f64ecdfe377bedf3aa581c173cab30fda68e864587f2a39a2fbf852558ae68c",
"https://deno.land/x/deno_validator@v0.0.5/lib/isTaxID.ts": "9d5dbe4b016d7d0534b2157ac723d36b0a1fd56b1a55a5437c3f98246f257251",
"https://deno.land/x/deno_validator@v0.0.5/lib/isURL.ts": "df82bf9a9bd4d5855cfb1f99f2003d8299b1f4b8993e28c4c711f8793598d408",
"https://deno.land/x/deno_validator@v0.0.5/lib/isUUID.ts": "8afd7e6f387e5e98de110ba462d5159835df4846a5445dab3b3d1ceda1765f04",
"https://deno.land/x/deno_validator@v0.0.5/lib/isUppercase.ts": "c7d85a8bee130268711135829cce84a648367496498bded78b71359ddc9a0148",
"https://deno.land/x/deno_validator@v0.0.5/lib/isVAT.ts": "a4d958b22328396e9f49e538074fe0f48f858afac577ff7c9f0a7913728b84a8",
"https://deno.land/x/deno_validator@v0.0.5/lib/isVariableWidth.ts": "1d97d43b26287a05927be60811bde0bfc59898ef11f788754528393315ac3707",
"https://deno.land/x/deno_validator@v0.0.5/lib/isWhitelisted.ts": "5d0b7e6798ef5b53f887a7a16edf200feb870067f6a569bef4ab82f16f5a84ef",
"https://deno.land/x/deno_validator@v0.0.5/lib/ltrim.ts": "47d5bc73e201649587306b293ac3b3185831f8165622a6d75958febec4e58e78",
"https://deno.land/x/deno_validator@v0.0.5/lib/matches.ts": "2bb064140038cf3fa8d9ba4fe8ec6c945eed8eac239542dbb063af47ab9cc053",
"https://deno.land/x/deno_validator@v0.0.5/lib/normalizeEmail.ts": "6aac16c7aafcb8e862fc835faf8a9cbc2296f25d579f647cda3848bcfdcbe576",
"https://deno.land/x/deno_validator@v0.0.5/lib/rtrim.ts": "70f15d945370267704275e1dd8672fe13721a8e11327b9682acee8cf35ae02e4",
"https://deno.land/x/deno_validator@v0.0.5/lib/stripLow.ts": "3c4101b3d1c8d263d3bde486515d1d0f192e945df39dddd891e51df0a8943718",
"https://deno.land/x/deno_validator@v0.0.5/lib/toBoolean.ts": "c5afbd2e6639715c47f6d82f2e9472e84a6b317af42e6bf1c9aaa0ab309ff1ff",
"https://deno.land/x/deno_validator@v0.0.5/lib/toDate.ts": "4e7f4af8a8721771fc90e0f90cfeae101895a5cb936f8908173afa8b5ac6d1a0",
"https://deno.land/x/deno_validator@v0.0.5/lib/toFloat.ts": "187248350b4f0c10744e3fbb092258b745e4239c37fe430728a9cb6657cbcc95",
"https://deno.land/x/deno_validator@v0.0.5/lib/toInt.ts": "a6da3c2fa3e0608b13588f1a7731f180212408cc33bc287524ca7874cdd29871",
"https://deno.land/x/deno_validator@v0.0.5/lib/trim.ts": "d6e07cf36dc2d042e3848e317274775edfdcf206837aac9ee32f488a61b50e7b",
"https://deno.land/x/deno_validator@v0.0.5/lib/unescape.ts": "5988cfca0cdaef152acab93626e501d1fee5f9bcb758d3d6aa8d7f2b473ff469",
"https://deno.land/x/deno_validator@v0.0.5/lib/util/algorithms.ts": "4f2ca31bb15be4f1b0cabb4e4694be4e26a75123440dddbb2d26ebb1c05da3e5",
"https://deno.land/x/deno_validator@v0.0.5/lib/util/assertString.ts": "9c3f58faa05bc3a2126207d53a33f4847d4da131a83827e2ff09429cfb8177c9",
"https://deno.land/x/deno_validator@v0.0.5/lib/util/includes.ts": "c1ee01659a50e350e187f12d32b4f61acb38b0e745d6b888378ccd1bb8c73fa6",
"https://deno.land/x/deno_validator@v0.0.5/lib/util/merge.ts": "d365c8fca7a9a096c8a9cf36b2d3dcf788bb62dd982734cd9aefadeb77e63783",
"https://deno.land/x/deno_validator@v0.0.5/lib/util/multilineRegex.ts": "576a32538e4baa9fae006bda93313599a02da00e0ec452a500769e1ccfee7ab6",
"https://deno.land/x/deno_validator@v0.0.5/lib/util/toString.ts": "d1521f4f537b6c7a3e84c6798f5cbe8f412470d9abb8ece43cbed17493ca2c7c",
"https://deno.land/x/deno_validator@v0.0.5/lib/whitelist.ts": "6a93eebaf03491c61cbb07c6357f9aa263bc5436d098f230c729d8158f2b578d",
"https://deno.land/x/deno_validator@v0.0.5/mod.ts": "bfaaca0fd0f2e7e5f1b3f5aac25e4fac4371d1684c3c09b724649cde3f6294f6"
},
"workspace": {
"packageJson": {
"dependencies": [
"npm:node-appwrite@^9.0.0",
"npm:prettier@^3.0.0",
"npm:validator@^13.12.0",
"npm:validatorjs@^3.22.1"
]
}
}
}

View File

@@ -1,147 +0,0 @@
{
"name": "starter-template",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "starter-template",
"version": "1.0.0",
"dependencies": {
"node-appwrite": "^9.0.0",
"validator": "^13.12.0",
"validatorjs": "^3.22.1"
},
"devDependencies": {
"prettier": "^3.0.0"
}
},
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
},
"node_modules/axios": {
"version": "1.6.8",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz",
"integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==",
"dependencies": {
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
"proxy-from-env": "^1.1.0"
}
},
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"dependencies": {
"delayed-stream": "~1.0.0"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/follow-redirects": {
"version": "1.15.6",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz",
"integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/form-data": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
"integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"dependencies": {
"mime-db": "1.52.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/node-appwrite": {
"version": "9.0.0",
"resolved": "https://registry.npmjs.org/node-appwrite/-/node-appwrite-9.0.0.tgz",
"integrity": "sha512-iTcHbuaJfr6bP/HFkRVV+FcaumKkbINqZyypQdl+tYxv6Dx0bkB/YKUXGYfTkgP18TLPWQQB++OGQhi98dlo2w==",
"dependencies": {
"axios": "^1.3.6",
"form-data": "^4.0.0"
}
},
"node_modules/prettier": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.0.tgz",
"integrity": "sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==",
"dev": true,
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
},
"node_modules/validator": {
"version": "13.12.0",
"resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz",
"integrity": "sha512-c1Q0mCiPlgdTVVVIJIrBuxNicYE+t/7oKeI9MWLj3fh/uq2Pxh/3eeWbVZ4OcGW1TUf53At0njHw5SMdA3tmMg==",
"engines": {
"node": ">= 0.10"
}
},
"node_modules/validatorjs": {
"version": "3.22.1",
"resolved": "https://registry.npmjs.org/validatorjs/-/validatorjs-3.22.1.tgz",
"integrity": "sha512-451KiCt/3E8qV/8fOUdO0YkA8zUdQBNVxubg9jvgEB+JAg9IlRKrClzwq2ir2ndj7TWmPYQ7bXFb4BxcyX2iWw=="
}
}
}

View File

@@ -1,18 +0,0 @@
{
"name": "userinfo",
"version": "1.0.0",
"description": "",
"main": "src/main.js",
"type": "module",
"scripts": {
"format": "prettier --write ."
},
"dependencies": {
"node-appwrite": "^9.0.0",
"validator": "^13.12.0",
"validatorjs": "^3.22.1"
},
"devDependencies": {
"prettier": "^3.0.0"
}
}

View File

@@ -1,48 +0,0 @@
// Required until appwrite has better typescript support
// deno-lint-ignore-file no-explicit-any
import {Client, Users, } from "https://deno.land/x/appwrite@11.0.0/mod.ts";
import * as validator from "https://deno.land/x/deno_validator@v0.0.5/mod.ts";
type Context = {
req: any;
res: any;
log: (msg: any) => void;
error: (msg: any) => void;
};
export default async function ({req, res, error}: Context){
const PROJECT_ID = Deno.env.get("APPWRITE_FUNCTION_PROJECT_ID")
const API_KEY = Deno.env.get("APPWRITE_API_KEY")
const API_ENDPOINT = Deno.env.get("APPWRITE_API_ENDPOINT")
if ( !PROJECT_ID || !API_KEY || !API_ENDPOINT) {
error('Environment not set');
return res.send('Internal Error: Environment not set', 500);
}
const client = new Client()
.setEndpoint(API_ENDPOINT)
.setProject(PROJECT_ID)
.setKey(API_KEY)
if (req.headers['x-appwrite-user-jwt']) {
const [_, path, userId] = req.path.split('/');
if (
req.method === 'GET' &&
path === 'userinfo' &&
validator.isByteLength(userId, { min: 1, max: 32 })
) {
const users = new Users(client);
const user = await users.get(userId);
return res.json({ name: user.name });
} else {
error('Query Error');
return res.send('Query Error', 404);
}
} else {
return res.send('Unauthorized', 403);
}
};

View File

@@ -9,24 +9,15 @@
suffix: .deploy
register: tempdir
- name: Download zip file from url
- name: Download tar.gz file from url
ansible.builtin.get_url:
url: "{{ artifact_url }}"
dest: /{{ tempdir.path }}/BABFrontend.zip
dest: "/{{ tempdir.path }}/bab-release.tar.gz"
mode: '0644'
# Temporary until this drops: https://github.com/ansible/ansible/issues/81092
- name: Unzip downloaded file
ansible.builtin.unarchive:
src: "{{ tempdir.path }}/BABFrontend.zip"
dest: "{{ tempdir.path }}"
list_files: true
remote_src: true
register: unzip_result
- name: Extract tar into /usr/share/nginx/html/
ansible.builtin.unarchive:
src: "{{ unzip_result.dest }}/{{ unzip_result.files[0] }}" # We expect exactly one tar file to be in the artifact.
src: "/{{ tempdir.path }}/bab-release.tar.gz"
dest: /usr/share/nginx/html/
remote_src: true