From e5dd78196645956214c376af6b4ccb96d26c14b6 Mon Sep 17 00:00:00 2001 From: Mohamad Fadhil Date: Tue, 8 Jul 2025 03:41:20 +0800 Subject: [PATCH] add python project and remove express projec --- express-js/.gitignore | 2 - express-js/package-lock.json | 1180 ---------------------------------- express-js/package.json | 25 - express-js/server.ts | 18 - express-js/src/index.ts | 18 - express-js/tsconfig.json | 25 - fastapi-python/.gitignore | 1 + fastapi-python/README.md | 6 + fastapi-python/main.py | 29 + hono/src/index.ts | 6 +- 10 files changed, 39 insertions(+), 1271 deletions(-) delete mode 100644 express-js/.gitignore delete mode 100644 express-js/package-lock.json delete mode 100644 express-js/package.json delete mode 100644 express-js/server.ts delete mode 100644 express-js/src/index.ts delete mode 100644 express-js/tsconfig.json create mode 100644 fastapi-python/.gitignore create mode 100644 fastapi-python/README.md create mode 100644 fastapi-python/main.py diff --git a/express-js/.gitignore b/express-js/.gitignore deleted file mode 100644 index b38db2f..0000000 --- a/express-js/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -build/ diff --git a/express-js/package-lock.json b/express-js/package-lock.json deleted file mode 100644 index a09b221..0000000 --- a/express-js/package-lock.json +++ /dev/null @@ -1,1180 +0,0 @@ -{ - "name": "money-transfer", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "money-transfer", - "version": "1.0.0", - "license": "ISC", - "dependencies": { - "cors": "^2.8.5", - "express": "^5.1.0" - }, - "devDependencies": { - "@types/cors": "^2.8.19", - "@types/express": "^5.0.3", - "@types/node": "^24.0.10", - "ts-node": "^10.9.2", - "typescript": "^5.8.3" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha1-AGKcNaaI4FqIsc2mhPudXnPwAKE=", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha1-eg7mAfYPmaIMfHxf8MgDiMEYm9Y=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.4", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.4.tgz", - "integrity": "sha1-c1gENDOy5dpWmqAsvEwSHaOvJ9c=", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha1-ZTT9WTOlO6fL86F2FeJzoNEnP/k=", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.11", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node10/-/node10-1.0.11.tgz", - "integrity": "sha1-buRkAGhfEw4ngSjHs4t+Ax/1svI=", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha1-7j3vHyfZ7WbaxuRqKVz/sBUuBY0=", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha1-5DhjFihPALmENb9A9y91oJ2r9sE=", - "dev": true, - "license": "MIT" - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha1-C5LcwMwcgfbzBqOB8o4xsaVlNuk=", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/body-parser": { - "version": "1.19.6", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/body-parser/-/body-parser-1.19.6.tgz", - "integrity": "sha1-GFm+u4/X2smRikXVTBlxq4ta9HQ=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/connect/-/connect-3.4.38.tgz", - "integrity": "sha1-W6fzvE+73q/43e2VLl/yzFP42Fg=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/cors": { - "version": "2.8.19", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/cors/-/cors-2.8.19.tgz", - "integrity": "sha1-2T6iZz/YyfaXNn9e7vwrv6lPA0I=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/express": { - "version": "5.0.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/express/-/express-5.0.3.tgz", - "integrity": "sha1-bEvGrN3C4qWHFC4di+C84gdX6VY=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^5.0.0", - "@types/serve-static": "*" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "5.0.6", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/express-serve-static-core/-/express-serve-static-core-5.0.6.tgz", - "integrity": "sha1-Qf7E6iDpx7IvAkq4ipXGuyiPUbg=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.5", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/http-errors/-/http-errors-2.0.5.tgz", - "integrity": "sha1-W3SasrFroRNCP+saZKldzTA5hHI=", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/mime": { - "version": "1.3.5", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/mime/-/mime-1.3.5.tgz", - "integrity": "sha1-HvMC4Bz30rWg+lJnkMkSO/HQZpA=", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "24.0.10", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/node/-/node-24.0.10.tgz", - "integrity": "sha1-9loWl3m/DXAgMYOhiQvnvujKLds=", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~7.8.0" - } - }, - "node_modules/@types/qs": { - "version": "6.14.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/qs/-/qs-6.14.0.tgz", - "integrity": "sha1-2LYM7PYvLbD7aOXgBgd7kXi4XeU=", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/range-parser/-/range-parser-1.2.7.tgz", - "integrity": "sha1-UK5DU+qt3AQEQnmBL1LIxlhX28s=", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/send": { - "version": "0.17.5", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/send/-/send-0.17.5.tgz", - "integrity": "sha1-2ZHU8rFvKx70lxMfAKkRQpB5HnQ=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/mime": "^1", - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "1.15.8", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/@types/serve-static/-/serve-static-1.15.8.tgz", - "integrity": "sha1-gYDD++SnDo8AufcLm6fwjzWYeHc=", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*", - "@types/send": "*" - } - }, - "node_modules/accepts": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/accepts/-/accepts-2.0.0.tgz", - "integrity": "sha1-u89LpQdUZ/PyEx6rPP/HPC9deJU=", - "license": "MIT", - "dependencies": { - "mime-types": "^3.0.0", - "negotiator": "^1.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha1-o2CJi8QV7arEbIJB9jg5dbkwuBY=", - "dev": true, - "license": "MIT", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.3.4", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/acorn-walk/-/acorn-walk-8.3.4.tgz", - "integrity": "sha1-eU3RacOXft9LpOpHWDWHxYZiNrc=", - "dev": true, - "license": "MIT", - "dependencies": { - "acorn": "^8.11.0" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/arg/-/arg-4.1.3.tgz", - "integrity": "sha1-Jp/HrVuOQstjyJbVZmAXJhwUQIk=", - "dev": true, - "license": "MIT" - }, - "node_modules/body-parser": { - "version": "2.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/body-parser/-/body-parser-2.2.0.tgz", - "integrity": "sha1-96llbeMFJJpxW1Sbe4/Rq5393Po=", - "license": "MIT", - "dependencies": { - "bytes": "^3.1.2", - "content-type": "^1.0.5", - "debug": "^4.4.0", - "http-errors": "^2.0.0", - "iconv-lite": "^0.6.3", - "on-finished": "^2.4.1", - "qs": "^6.14.0", - "raw-body": "^3.0.0", - "type-is": "^2.0.0" - }, - "engines": { - "node": ">=18" - } - }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha1-iwvuuYYFrfGxKPpDhkA8AJ4CIaU=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha1-S1QowiK+mF15w9gmV0edvgtZstY=", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha1-I43pNdKippKSjFOMfM+pEGf9Bio=", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/content-disposition": { - "version": "1.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/content-disposition/-/content-disposition-1.0.0.tgz", - "integrity": "sha1-hEQmyzmPk0yu/LsXIgASa8fOrOI=", - "license": "MIT", - "dependencies": { - "safe-buffer": "5.2.1" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/content-type": { - "version": "1.0.5", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha1-i3cxYmVtHRCGeEyPI6VM5tc9eRg=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie": { - "version": "0.7.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/cookie/-/cookie-0.7.2.tgz", - "integrity": "sha1-VWNpxHKiupEPKXmJG1JrNDYjftc=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookie-signature": { - "version": "1.2.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/cookie-signature/-/cookie-signature-1.2.2.tgz", - "integrity": "sha1-V8f8PMKTrKuf7FTXPhVpDr5KF5M=", - "license": "MIT", - "engines": { - "node": ">=6.6.0" - } - }, - "node_modules/cors": { - "version": "2.8.5", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/cors/-/cors-2.8.5.tgz", - "integrity": "sha1-6sEdpRWS3Ya58G9uesKTs9+HXSk=", - "license": "MIT", - "dependencies": { - "object-assign": "^4", - "vary": "^1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha1-wdfo8eX2z8n/ZfnNNS03NIdWwzM=", - "dev": true, - "license": "MIT" - }, - "node_modules/debug": { - "version": "4.4.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/debug/-/debug-4.4.1.tgz", - "integrity": "sha1-5ai8bLxMbNPmQwiwaTo9T6VQGJs=", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/depd/-/depd-2.0.0.tgz", - "integrity": "sha1-tpYWPMdXVg0JzyLMj60Vcbeedt8=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/diff/-/diff-4.0.2.tgz", - "integrity": "sha1-YPOuy4nV+uUgwRqhnvwruYKq3n0=", - "dev": true, - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha1-165mfh3INIL4tw/Q9u78UNow9Yo=", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/ee-first": { - "version": "1.1.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ee-first/-/ee-first-1.1.1.tgz", - "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", - "license": "MIT" - }, - "node_modules/encodeurl": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/encodeurl/-/encodeurl-2.0.0.tgz", - "integrity": "sha1-e46omAd9fkCdOsRUdOo46vCFelg=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha1-mD6y+aZyTpMD9hrd8BHHLgngsPo=", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha1-BfdaJdq5jk+x3NXhRywFRtUFfI8=", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha1-HE8sSDcydZfOadLKGQp/3RcjOME=", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escape-html": { - "version": "1.0.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/escape-html/-/escape-html-1.0.3.tgz", - "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", - "license": "MIT" - }, - "node_modules/etag": { - "version": "1.8.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/etag/-/etag-1.8.1.tgz", - "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express": { - "version": "5.1.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/express/-/express-5.1.0.tgz", - "integrity": "sha1-0xvq9xWgAW8NU/R9O016zyjHXMk=", - "license": "MIT", - "dependencies": { - "accepts": "^2.0.0", - "body-parser": "^2.2.0", - "content-disposition": "^1.0.0", - "content-type": "^1.0.5", - "cookie": "^0.7.1", - "cookie-signature": "^1.2.1", - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "finalhandler": "^2.1.0", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "merge-descriptors": "^2.0.0", - "mime-types": "^3.0.0", - "on-finished": "^2.4.1", - "once": "^1.4.0", - "parseurl": "^1.3.3", - "proxy-addr": "^2.0.7", - "qs": "^6.14.0", - "range-parser": "^1.2.1", - "router": "^2.2.0", - "send": "^1.1.0", - "serve-static": "^2.2.0", - "statuses": "^2.0.1", - "type-is": "^2.0.1", - "vary": "^1.1.2" - }, - "engines": { - "node": ">= 18" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/express" - } - }, - "node_modules/finalhandler": { - "version": "2.1.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/finalhandler/-/finalhandler-2.1.0.tgz", - "integrity": "sha1-cjBjc6qJ0FqCQu1WnthqG/98Vh8=", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "on-finished": "^2.4.1", - "parseurl": "^1.3.3", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/forwarded": { - "version": "0.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha1-ImmTZCiq1MFcfr6XeahL8LKoGBE=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/fresh": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/fresh/-/fresh-2.0.0.tgz", - "integrity": "sha1-jdffahs6Gzpc8YbAWl3SZ2ImNaQ=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha1-LALYZNl/PqbIgwxGTL0Rq26rehw=", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha1-dD8OO2lkqTpUke0b/6rgVNf5jQE=", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha1-FQs/J0OGnvPoUewMSdFbHRTQDuE=", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha1-ifVrghe9vIgCvSmd9tfxCB1+UaE=", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha1-/JxqeDoISVHQuXH+EBjegTcHozg=", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha1-AD6vkb563DcuhOxZ3DclLO24AAM=", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha1-t3dKFIbvc892Z6ya4IWMASxXudM=", - "license": "MIT", - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-errors/node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha1-VcsADM8dSHKL0jxoWgY5mM8aG2M=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha1-pS+AvzjaGVLrXGgXkHGYcaGnJQE=", - "license": "MIT", - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha1-D6LGT5MpF8NDOg3tVTY6rjdBa3w=", - "license": "ISC" - }, - "node_modules/ipaddr.js": { - "version": "1.9.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha1-v/OFQ+64mEglB5/zoqjmy9RngbM=", - "license": "MIT", - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-promise": { - "version": "4.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha1-Qv+fhCBsGZHSbev1IN1cAQQt0vM=", - "license": "MIT" - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha1-LrLjfqm2fEiR9oShOUeZr0hM96I=", - "dev": true, - "license": "ISC" - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha1-oN10voHiqlwvJ+Zc4oNgXuTit/k=", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/media-typer": { - "version": "1.1.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/media-typer/-/media-typer-1.1.0.tgz", - "integrity": "sha1-ardLjy0zIPIGSyqHo455Mf86VWE=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/merge-descriptors": { - "version": "2.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/merge-descriptors/-/merge-descriptors-2.0.0.tgz", - "integrity": "sha1-6pIvZgY1oiSe5WXgRJ+VHmtgOAg=", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mime-db": { - "version": "1.54.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/mime-db/-/mime-db-1.54.0.tgz", - "integrity": "sha1-zds+5PnGRTDf9kAjZmHULLajFPU=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "3.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/mime-types/-/mime-types-3.0.1.tgz", - "integrity": "sha1-sdlNaZepsy/WnrrtDbc96Ky1Gc4=", - "license": "MIT", - "dependencies": { - "mime-db": "^1.54.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/ms": { - "version": "2.1.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ms/-/ms-2.1.3.tgz", - "integrity": "sha1-V0yBOM4dK1hh8LRFedut1gxmFbI=", - "license": "MIT" - }, - "node_modules/negotiator": { - "version": "1.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/negotiator/-/negotiator-1.0.0.tgz", - "integrity": "sha1-tskbtHFy1p+Tz9fDV7u1KQGbX2o=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha1-g3UmXiG8IND6WCwi4bE0hdbgAhM=", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/on-finished": { - "version": "2.4.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/on-finished/-/on-finished-2.4.1.tgz", - "integrity": "sha1-WMjEQRblSEWtV/FKsQsDUzGErD8=", - "license": "MIT", - "dependencies": { - "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "license": "ISC", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/parseurl": { - "version": "1.3.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/path-to-regexp": { - "version": "8.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/path-to-regexp/-/path-to-regexp-8.2.0.tgz", - "integrity": "sha1-c5kMwp5Xo/8qDZFAlRVt9dt56LQ=", - "license": "MIT", - "engines": { - "node": ">=16" - } - }, - "node_modules/proxy-addr": { - "version": "2.0.7", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/proxy-addr/-/proxy-addr-2.0.7.tgz", - "integrity": "sha1-8Z/mnOqzEe65S0LnDowgcPm6ECU=", - "license": "MIT", - "dependencies": { - "forwarded": "0.2.0", - "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/qs/-/qs-6.14.0.tgz", - "integrity": "sha1-xj+kBoDSxclBQSoOiZyJr2DAqTA=", - "license": "BSD-3-Clause", - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/range-parser": { - "version": "1.2.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha1-PPNwI9GZ4cJNGlW4SADC8+ZGgDE=", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/raw-body": { - "version": "3.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/raw-body/-/raw-body-3.0.0.tgz", - "integrity": "sha1-JbNHbwelFgBhna4/6C3cKKNuXg8=", - "license": "MIT", - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.6.3", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/router": { - "version": "2.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/router/-/router-2.2.0.tgz", - "integrity": "sha1-AZvmILcRyHZBFnzHm5kJDwCxRu8=", - "license": "MIT", - "dependencies": { - "debug": "^4.4.0", - "depd": "^2.0.0", - "is-promise": "^4.0.0", - "parseurl": "^1.3.3", - "path-to-regexp": "^8.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha1-Hq+fqb2x/dTsdfWPnNtOa3gn7sY=", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha1-RPoWGwGHuVSd2Eu5GAL5vYOFzWo=", - "license": "MIT" - }, - "node_modules/send": { - "version": "1.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/send/-/send-1.2.0.tgz", - "integrity": "sha1-MqdVT7d3uDHfqCg3D3c6OAjTchI=", - "license": "MIT", - "dependencies": { - "debug": "^4.3.5", - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "etag": "^1.8.1", - "fresh": "^2.0.0", - "http-errors": "^2.0.0", - "mime-types": "^3.0.1", - "ms": "^2.1.3", - "on-finished": "^2.4.1", - "range-parser": "^1.2.1", - "statuses": "^2.0.1" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/serve-static": { - "version": "2.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/serve-static/-/serve-static-2.2.0.tgz", - "integrity": "sha1-nAJWTuJZvdIlG4LWWaLn4ZONZvk=", - "license": "MIT", - "dependencies": { - "encodeurl": "^2.0.0", - "escape-html": "^1.0.3", - "parseurl": "^1.3.3", - "send": "^1.2.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha1-ZsmiSnP5/CjL5msJ/tPTPcrxtCQ=", - "license": "ISC" - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha1-w/z/nE2pMnhIczNeyXZfqU/2a8k=", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha1-EMtZhCYxFdO3oOM2WR4pCoMK+K0=", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha1-1rtrN5Asb+9RdOX1M/q0xzKib0I=", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha1-Ed2hnVNo5Azp7CvcH7DsvAeQ7Oo=", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/statuses": { - "version": "2.0.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/statuses/-/statuses-2.0.2.tgz", - "integrity": "sha1-j3XuzvdlteHPzcCA2llAntQk44I=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha1-O+NDIaiKgg7RvYDfqjPkefu43TU=", - "license": "MIT", - "engines": { - "node": ">=0.6" - } - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha1-cPAhyeGFvM3Kgg4m3EE4BcEBxx8=", - "dev": true, - "license": "MIT", - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/type-is": { - "version": "2.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/type-is/-/type-is-2.0.1.tgz", - "integrity": "sha1-ZPbPA/kvzkAVwrIkeT9r3UsGjJc=", - "license": "MIT", - "dependencies": { - "content-type": "^1.0.5", - "media-typer": "^1.1.0", - "mime-types": "^3.0.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/typescript": { - "version": "5.8.3", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/typescript/-/typescript-5.8.3.tgz", - "integrity": "sha1-kvij5ePPSXNW9BeMNM1lp/XoRA4=", - "dev": true, - "license": "Apache-2.0", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/undici-types": { - "version": "7.8.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/undici-types/-/undici-types-7.8.0.tgz", - "integrity": "sha1-3gC4W3EMVBIuRPv9kR+NcBdM0pQ=", - "dev": true, - "license": "MIT" - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha1-Yzbo1xllyz01obu3hoRFp8BSZL8=", - "dev": true, - "license": "MIT" - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/vary/-/vary-1.1.2.tgz", - "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "license": "ISC" - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://pkgs.dev.azure.com/ipidtech/_packaging/ipidtech/npm/registry/yn/-/yn-3.1.1.tgz", - "integrity": "sha1-HodAGgnXZ8HV6rJqbkwYUYLS61A=", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - } - } -} diff --git a/express-js/package.json b/express-js/package.json deleted file mode 100644 index cf092bf..0000000 --- a/express-js/package.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "name": "money-transfer", - "version": "1.0.0", - "main": "server.ts", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "build": "tsc", - "dev": "node ./build/server.js", - "start": "tsc && npm run dev" - }, - "author": "", - "license": "ISC", - "description": "", - "devDependencies": { - "@types/cors": "^2.8.19", - "@types/express": "^5.0.3", - "@types/node": "^24.0.10", - "ts-node": "^10.9.2", - "typescript": "^5.8.3" - }, - "dependencies": { - "cors": "^2.8.5", - "express": "^5.1.0" - } -} diff --git a/express-js/server.ts b/express-js/server.ts deleted file mode 100644 index 3575d50..0000000 --- a/express-js/server.ts +++ /dev/null @@ -1,18 +0,0 @@ -import express, { Application } from "express"; -import Server from "./src/index"; - -const app: Application = express(); -const server: Server = new Server(app); -const PORT: number = process.env.PORT ? parseInt(process.env.PORT, 10) : 8080; - -app - .listen(PORT, "localhost", function () { - console.log(`Server is running on port ${PORT}.`); - }) - .on("error", (err: any) => { - if (err.code === "EADDRINUSE") { - console.log("Error: address already in use"); - } else { - console.log(err); - } - }); diff --git a/express-js/src/index.ts b/express-js/src/index.ts deleted file mode 100644 index af14a42..0000000 --- a/express-js/src/index.ts +++ /dev/null @@ -1,18 +0,0 @@ -import express, { Application } from "express"; -import cors, { CorsOptions } from "cors"; - -export default class Server { - constructor(app: Application) { - this.config(app); - } - - private config(app: Application): void { - const corsOptions: CorsOptions = { - origin: "http://localhost:8081" - }; - - app.use(cors(corsOptions)); - app.use(express.json()); - app.use(express.urlencoded({ extended: true })); - } -} diff --git a/express-js/tsconfig.json b/express-js/tsconfig.json deleted file mode 100644 index 75cd3c6..0000000 --- a/express-js/tsconfig.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "compilerOptions": { - /* Language and Environment */ - "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ - "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ - - /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ - "resolveJsonModule": true, /* Enable importing .json files. */ - - /* Emit */ - "outDir": "./build", /* Specify an output folder for all emitted files. */ - - /* Interop Constraints */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - - /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ - - /* Completeness */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } -} diff --git a/fastapi-python/.gitignore b/fastapi-python/.gitignore new file mode 100644 index 0000000..ba0430d --- /dev/null +++ b/fastapi-python/.gitignore @@ -0,0 +1 @@ +__pycache__/ \ No newline at end of file diff --git a/fastapi-python/README.md b/fastapi-python/README.md new file mode 100644 index 0000000..ebc630e --- /dev/null +++ b/fastapi-python/README.md @@ -0,0 +1,6 @@ +# Get started + +```sh + +fastapi dev main.py +``` diff --git a/fastapi-python/main.py b/fastapi-python/main.py new file mode 100644 index 0000000..d4648d3 --- /dev/null +++ b/fastapi-python/main.py @@ -0,0 +1,29 @@ +from typing import Union + +from fastapi import FastAPI +from pydantic import BaseModel + +class Transfer(BaseModel): + amount: int + sender: int + receiver: int + +app = FastAPI() + +accounts = { + '1': {'amount': 1000}, + '2': {'amount': 1000}, +} + +@app.post("/transfer") +def transfer(transfer: Transfer): + amount = transfer.amount + sender = transfer.sender + receiver = transfer.receive + + if amount <= 0: + return {"error": "Amount must be greater than 0"} + + print(f"transfer {amount} from {sender} to {receiver}") + + return {"amount": amount, "sender": sender, "receiver": receiver} diff --git a/hono/src/index.ts b/hono/src/index.ts index 08cfdc6..c03f3dc 100644 --- a/hono/src/index.ts +++ b/hono/src/index.ts @@ -10,7 +10,7 @@ const accounts = { app.post('/transfer', async (c) => { const body = await c.req.json(); - const { amount, from, to } = body; + const { amount, sender, receiver } = body; if (amount <= 0) { return c.json({ error: 'Amount must be greater than 0' }, 40); @@ -18,8 +18,8 @@ app.post('/transfer', async (c) => { const transfer = { amount, - from, - to + sender, + receiver } console.log('transfer', transfe);