diff --git a/.env.example b/.env.example deleted file mode 100644 index d0cabcb..0000000 --- a/.env.example +++ /dev/null @@ -1,5 +0,0 @@ -SYSCOIN_CORE_RPC_HOST=localhost -SYSCOIN_CORE_RPC_PORT=8370 -SYSCOIN_CORE_RPC_USERNAME=user -SYSCOIN_CORE_RPC_PASSWORD=pass - diff --git a/.github/workflows/syscoin-core-docker-image.yml b/.github/workflows/syscoin-core-docker-image.yml deleted file mode 100644 index 91ae35d..0000000 --- a/.github/workflows/syscoin-core-docker-image.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Syscoin Core Docker Image CI - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - id: commit - uses: pr-mpt/actions-commit-hash@v2 - - uses: actions/checkout@v3 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Log into registry syscointed/syscoin-core - if: github.event_name != 'pull_request' - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Build and push Docker image - uses: docker/build-push-action@v3 - with: - context: ./syscoin-core - push: ${{ github.event_name != 'pull_request' }} - tags: syscointed/syscoin-info-api-core:${{ steps.commit.outputs.short }} - cache-from: type=gha - cache-to: type=gha,mode=max diff --git a/.gitignore b/.gitignore index ddf9669..292de15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ - node_modules -.env \ No newline at end of file +.env +config/env diff --git a/Dockerfile b/Dockerfile index d1cb296..1d1f3d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:fermium +FROM node:24-bookworm-slim WORKDIR /app @@ -13,4 +13,4 @@ COPY ./config.js ./config.js EXPOSE 3000 -CMD node index.js \ No newline at end of file +CMD ["node", "index.js"] diff --git a/README.md b/README.md index 6dc42d2..430b417 100644 --- a/README.md +++ b/README.md @@ -2,49 +2,94 @@ ## Description -This is a simple NodsJS Express server to fetch information on Syscoin. +This is a simple Node.js Express server to fetch information on Syscoin. -## Endpoints +## Configuration -Host: https://info.syscoin.org/ +All runtime settings live under `config/`: -### `GET /totalsupply` +| File | Purpose | +|------|---------| +| `config/.env.example` | Template — copy to `config/env` and edit | +| `config/env` | Your local secrets and overrides (not committed) | +| `config.js` | Defaults (e.g. SyscoinVaultManager address) | -- This returns total supply calculated on both UTXO and NEVM blockchain in plaintext. - -### `GET /triggerRecordSupply` +**Setup:** -- Normally total supply is calculated and recorded when new block hash is detected. -- This endpoints acts as manual trigger in calculation. - -### `GET /health` +```bash +cp config/.env.example config/env +# Edit config/env with your RPC credentials +``` -- This is a health check endpoint. Useful for monitoring if API is running. +- **Local:** `node index.js` loads `config/env` via dotenv. +- **Docker:** `docker compose` injects the same file (`env_file: config/env` in `docker-compose.yml`). -## Syscoin Core (`/syscoin-core`) +This service expects a **Syscoin Core node already running** on the host (or elsewhere) and reachable via RPC. UTXO supply uses `gettxoutsetinfo`; NEVM components come from the public explorer API. -- Dockerized version of the Syscoin Daemon -- JSON RPC is used by the API in retrieving UTXO supply +### Environment variables -## API Environment Variables (Required\*) +**Required** (in `config/env`): -- `SYSCOIN_CORE_RPC_HOST` ex. `localhost` -- `SYSCOIN_CORE_RPC_PORT` ex. `8370` -- `SYSCOIN_CORE_RPC_PASSWORD` - password for auth to RPC -- `SYSCOIN_CORE_RPC_USERNAME` - username for auth to RPC +- `SYSCOIN_CORE_RPC_HOST` — e.g. `localhost` (local) or `host.docker.internal` (Docker on Linux) +- `SYSCOIN_CORE_RPC_PORT` — e.g. `8370` +- `SYSCOIN_CORE_RPC_USERNAME` — RPC username +- `SYSCOIN_CORE_RPC_PASSWORD` — RPC password -An `.env.example` is provided for convenience. +**Optional:** +- `SYSCOIN_VAULT_MANAGER` — override the SyscoinVaultManager contract address (default in `config.js`) +- `PORT` — HTTP listen port (default `3000`) +- `POLLING_INTERVAL_SECONDS` — how often supply is recalculated (default `30`) +- `TOTAL_SUPPLY_URL` — primary NEVM coinsupply explorer URL (default `explorer1.syscoin.org`) +- `TOTAL_SUPPLY_URL_BACKUP` — fallback coinsupply URL if primary fails (default `explorer2.syscoin.org`) -You can generate password and username: +Generate RPC credentials for `syscoin.conf`: ```bash curl -sSL https://raw.githubusercontent.com/syscoin/syscoin/master/share/rpcauth/rpcauth.py | python - ``` -For more information you can check it here: https://github.com/syscoin/docker-syscoin-core#usage +See also: https://github.com/syscoin/docker-syscoin-core#usage ## Syscoin Vault Manager -Please refer to `config.js` for the current official address of SyscoinVaultManager contract. +The official contract address is defined in `config.js` and can be overridden via `SYSCOIN_VAULT_MANAGER` in `config/env`. + +``` +total supply = UTXO supply + NEVM supply − vault contract balance +``` + +## Endpoints + +Host: https://info.syscoin.org/ + +### `GET /totalsupply` + +Returns total supply (UTXO + NEVM - minus vault balance) as plain text. + +### `GET /circulatingsupply` + +Returns circulating supply as plain text. + +### `GET /triggerRecordSupply` + +Manually triggers an immediate supply recalculation. On startup and by default every 30 seconds, supply is refreshed automatically via polling (`POLLING_INTERVAL_SECONDS` in `config/env`). + +### `GET /health` + +Simple liveness check (`OK`). + +### `GET /status` + +Detailed status including last recorded values and any fetch errors. + +## Docker + +```bash +cp config/.env.example config/env +# Edit config/env (use host.docker.internal for SYSCOIN_CORE_RPC_HOST on Linux) + +docker compose up -d --build +``` +The API is published on host port `3050` (maps to container port `3000`). diff --git a/config.js b/config.js index 63e419b..beddf7d 100644 --- a/config.js +++ b/config.js @@ -1,6 +1,7 @@ class CONFIGURATION { constructor() { - this.SyscoinVaultManager = "0x7904299b3D3dC1b03d1DdEb45E9fDF3576aCBd5f"; + this.SyscoinVaultManager = + process.env.SYSCOIN_VAULT_MANAGER || "0x7904299b3D3dC1b03d1DdEb45E9fDF3576aCBd5f"; } } diff --git a/config/.env.example b/config/.env.example new file mode 100644 index 0000000..036d0c7 --- /dev/null +++ b/config/.env.example @@ -0,0 +1,29 @@ +# Copy this file to config/env and fill in your values: +# cp config/.env.example config/env +# +# Used by: +# - Local runs: loaded via dotenv in index.js +# - Docker: injected by docker-compose (env_file: config/env) + +# Syscoin Core RPC (required) +SYSCOIN_CORE_RPC_HOST=localhost +SYSCOIN_CORE_RPC_PORT=8370 +SYSCOIN_CORE_RPC_USERNAME=user +SYSCOIN_CORE_RPC_PASSWORD=pass + +# Docker on Linux: reach syscoind on the host (uncomment and comment localhost above) +# SYSCOIN_CORE_RPC_HOST=host.docker.internal + +# Optional: override the SyscoinVaultManager contract address. +# Defaults to the official address in config.js if unset. +# SYSCOIN_VAULT_MANAGER=0x7904299b3D3dC1b03d1DdEb45E9fDF3576aCBd5f + +# Optional: HTTP listen port (default 3000) +# PORT=3000 + +# Optional: supply polling interval in seconds (default 30) +# POLLING_INTERVAL_SECONDS=30 + +# Optional: NEVM coinsupply explorer URLs (primary then backup on HTTP/parse failure) +# TOTAL_SUPPLY_URL=https://explorer1.syscoin.org/api?module=stats&action=coinsupply +# TOTAL_SUPPLY_URL_BACKUP=https://explorer2.syscoin.org/api?module=stats&action=coinsupply diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..1a740b2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,20 @@ +#version: '3.8' + +# NOTE: Use Docker's default bridge (docker0, 172.17.0.0/16) so RPC +# from the container matches syscoind rpcallowip=172.17.0.0/16 on the host. +# Reach Syscoin Core via host.docker.internal -> host gateway (172.17.0.1). + +services: + api: + container_name: supply-api + build: + context: . + dockerfile: Dockerfile + image: syscoin/sys-supply-api + restart: always + network_mode: bridge + env_file: config/env + extra_hosts: + - 'host.docker.internal:host-gateway' + ports: + - 3050:3000 diff --git a/index.js b/index.js index 6e9457b..d4af4c7 100644 --- a/index.js +++ b/index.js @@ -1,11 +1,15 @@ -require("dotenv").config(); +require("dotenv").config({ path: `${__dirname}/config/env` }); const axios = require('axios'); const express = require("express"); const app = express(); const port = process.env.PORT || 3000; const CONFIGURATION = require("./config"); -const TOTAL_SUPPLY_URL = - "https://explorer-v5.syscoin.org/api?module=stats&action=coinsupply"; +const TOTAL_SUPPLY_URLS = [ + process.env.TOTAL_SUPPLY_URL || + "https://explorer1.syscoin.org/api?module=stats&action=coinsupply", + process.env.TOTAL_SUPPLY_URL_BACKUP || + "https://explorer2.syscoin.org/api?module=stats&action=coinsupply", +]; const CONTRACT_BALANCE_URL = `https://explorer.syscoin.org/api?module=account&action=balance&address=${CONFIGURATION.SyscoinVaultManager}`; @@ -21,7 +25,6 @@ let lastRecordedCirculatingSupply = { let lastAttemptError = { totalSupply: undefined, // String description of the last error, or undefined if last attempt was successful circulatingSupply: undefined, // String description of the last error, or undefined if last attempt was successful - recordedAt: undefined, // Timestamp of the last error occurrence (or last successful attempt) }; const largeNumber = 1000000000000000000; @@ -44,6 +47,59 @@ const explorerApi = axios.create({ timeout: 8000 }); +/** + * Parse NEVM coinsupply from explorer. + * Supports: + * - bare JSON number in SYS (Blockscout < v11 / Syscoin explorers today) + * - Blockscout envelope { status, message, result } (v11.0.1+) + * where result is already in coin units (Wei.to(:ether) before render), not wei + * https://docs.blockscout.com/devs/apis/rpc/stats + */ +function parseNevmCoinSupply(data) { + if (typeof data === "number") { + if (!Number.isFinite(data) || data < 0) { + throw new Error(`Invalid nevmSupply (bare number): ${data}`); + } + return data; + } + + if (data && typeof data === "object") { + if (data.status !== "1" || typeof data.result !== "string") { + throw new Error( + `Invalid nevmSupply response structure or status: ${JSON.stringify(data)}` + ); + } + const nevmSupply = parseFloat(data.result); + if (isNaN(nevmSupply) || nevmSupply < 0 || !Number.isFinite(nevmSupply)) { + throw new Error(`Could not parse nevmSupply result: ${data.result}`); + } + return nevmSupply; + } + + throw new Error(`Unsupported nevmSupply response type: ${typeof data}`); +} + +/** + * Fetch NEVM coinsupply, trying primary then backup URL on HTTP/parse failure. + */ +async function fetchNevmCoinSupply(urls) { + let lastError; + for (const url of urls) { + try { + const response = await explorerApi.get(url); + const value = parseNevmCoinSupply(response.data); + return { value, url }; + } catch (error) { + const status = error.response ? ` status=${error.response.status}` : ""; + lastError = new Error( + `NEVM total supply remote=${url}${status} failed: ${error.message}` + ); + console.warn(lastError.message); + } + } + throw lastError || new Error("NEVM total supply: no URLs configured"); +} + /** * Calls gettxoutsetinfo on UTXO JSON-RPC */ @@ -78,28 +134,20 @@ async function getTxOutSetInfo() { const getSupply = async () => { console.log("Fetching total supply components..."); - try { - const [supplyInfo, explorerResponse, nevmAddResponse] = await Promise.all([ - getTxOutSetInfo(), - explorerApi.get(TOTAL_SUPPLY_URL).catch((error) => { - const status = error.response ? ` status=${error.response.status}` : ""; - throw new Error(`NEVM total supply remote=${TOTAL_SUPPLY_URL}${status} failed: ${error.message}`); - }), - explorerApi.get(CONTRACT_BALANCE_URL).catch((error) => { - const status = error.response ? ` status=${error.response.status}` : ""; - throw new Error(`NEVM contract balance remote=${CONTRACT_BALANCE_URL}${status} failed: ${error.message}`); - }), - ]); + const [supplyInfo, nevmSupplyResult, nevmAddResponse] = await Promise.all([ + getTxOutSetInfo(), + fetchNevmCoinSupply(TOTAL_SUPPLY_URLS), + explorerApi.get(CONTRACT_BALANCE_URL).catch((error) => { + const status = error.response ? ` status=${error.response.status}` : ""; + throw new Error(`NEVM contract balance remote=${CONTRACT_BALANCE_URL}${status} failed: ${error.message}`); + }), + ]); // Extract data and validate const utxoSupply = supplyInfo.total_amount; // Already validated in getTxOutSetInfo - const nevmSupply = explorerResponse.data; + const nevmSupply = nevmSupplyResult.value; const nevmAdd = nevmAddResponse.data; - if (typeof nevmSupply !== 'number' || nevmSupply < 0) { - throw new Error(`Invalid nevmSupply (explorer-v5): ${nevmSupply}`); - } - if (!nevmAdd || nevmAdd.status !== "1" || typeof nevmAdd.result !== 'string') { throw new Error(`Invalid nevmAdd response structure or status: ${JSON.stringify(nevmAdd)}`); } @@ -108,33 +156,17 @@ const getSupply = async () => { const nevmContract = parseFloat(nevmAddContractSupply) / largeNumber; if (isNaN(nevmContract)) throw new Error(`Could not parse nevmAddContractSupply: ${nevmAddContractSupply}`); - console.log({ utxoSupply, nevmSupply, nevmContract }); + console.log({ + utxoSupply, + nevmSupply, + nevmSupplyUrl: nevmSupplyResult.url, + nevmContract, + }); const cmcSupply = nevmSupply - nevmContract + utxoSupply; if (isNaN(cmcSupply) || cmcSupply < 0) throw new Error(`Calculated cmcSupply is invalid: ${cmcSupply}`); console.log("Total supply components fetched and calculated successfully."); // Add logging return cmcSupply; - } catch (error) { - // Log the specific error causing getSupply to fail - console.error(`Error in getSupply calculation/fetching: ${error.message}`); - // Re-throw to be caught by the recording function - throw error; - } -}; - -const getCirculatingSupply = async () => { - console.log("Fetching circulating supply components..."); - // Check dependency on successfully recorded total supply - if (lastRecordedTotalSupply.value === undefined) { - console.warn("Cannot calculate circulating supply: Total supply has never been successfully recorded."); - throw new Error("Dependency Error: Total Supply unavailable"); - } - - const treasuryBalance = 0; // Treasury is now factored into sys5 governance/utxo - const finalCirculatingSupply = lastRecordedTotalSupply.value - treasuryBalance; - - console.log("Circulating supply calculated successfully."); - return finalCirculatingSupply; }; const recordTotalSupply = async () => { @@ -146,7 +178,6 @@ const recordTotalSupply = async () => { lastRecordedTotalSupply.value = supply; lastRecordedTotalSupply.recordedAt = getUnixtimestamp(); lastAttemptError.totalSupply = undefined; // Clear error on success - lastAttemptError.recordedAt = getUnixtimestamp(); console.log(`Total supply recorded successfully: ${supply} at ${new Date(lastRecordedTotalSupply.recordedAt * 1000).toISOString()}`); } catch (error) { @@ -154,19 +185,17 @@ const recordTotalSupply = async () => { const errorMessage = `Failed to record total supply: ${error.message || "Unknown error"}`; console.error(errorMessage); lastAttemptError.totalSupply = errorMessage; // Store the error message - lastAttemptError.recordedAt = getUnixtimestamp(); // DO NOT update lastRecordedTotalSupply.value or .recordedAt } }; -const recordCirculatingSupply = async () => { +const recordCirculatingSupply = () => { console.log("Attempting to record circulating supply..."); // Check dependency: Has total supply *ever* been recorded successfully? if (lastRecordedTotalSupply.value === undefined) { const errorMessage = "Skipped: Total supply has never been recorded."; console.warn(errorMessage); lastAttemptError.circulatingSupply = errorMessage; - lastAttemptError.recordedAt = getUnixtimestamp(); return; // Don't proceed } // Check dependency: Did the *last attempt* to get total supply fail? @@ -174,29 +203,14 @@ const recordCirculatingSupply = async () => { const errorMessage = "Skipped: Last total supply fetch failed."; console.warn(errorMessage); lastAttemptError.circulatingSupply = errorMessage; - lastAttemptError.recordedAt = getUnixtimestamp(); return; // Don't proceed } - try { - const supply = await getCirculatingSupply(); // Can throw errors - - // Success Case: Update value and clear specific error - lastRecordedCirculatingSupply.value = supply; - lastRecordedCirculatingSupply.recordedAt = getUnixtimestamp(); - lastAttemptError.circulatingSupply = undefined; // Clear error on success - lastAttemptError.recordedAt = getUnixtimestamp(); - console.log(`Circulating supply recorded successfully: ${supply} at ${lastRecordedCirculatingSupply.recordedAt}`); - - } catch (error) { - // Failure Case: Log, update error state, *keep existing value* - const errorMessage = `Failed to record circulating supply: ${error.message || "Unknown error"}`; - console.error(errorMessage); - if (error.response) console.error(" -> Axios Response Error Data:", error.response.data); - lastAttemptError.circulatingSupply = errorMessage; // Store the error message - lastAttemptError.recordedAt = getUnixtimestamp(); - // DO NOT update lastRecordedCirculatingSupply.value or .recordedAt - } + const supply = lastRecordedTotalSupply.value; + lastRecordedCirculatingSupply.value = supply; + lastRecordedCirculatingSupply.recordedAt = getUnixtimestamp(); + lastAttemptError.circulatingSupply = undefined; + console.log(`Circulating supply recorded successfully: ${supply} at ${lastRecordedCirculatingSupply.recordedAt}`); }; const runRecordingCycle = async () => { @@ -232,23 +246,19 @@ app.get("/circulatingsupply", (req, res) => { app.get("/triggerRecordSupply", async (req, res) => { console.log("Manual trigger received: Recording supply..."); - await recordTotalSupply(); - await recordCirculatingSupply(); - // Send the state objects *after* the calls - res - .status(200) - .send(JSON.stringify({ - newRecordedSupply: lastRecordedTotalSupply, - newCirculatingSupply: lastRecordedCirculatingSupply - })); + await runRecordingCycle(); + res.status(200).json({ + newRecordedSupply: lastRecordedTotalSupply, + newCirculatingSupply: lastRecordedCirculatingSupply, + }); }); -app.get("/health", async (req, res) => { +app.get("/health", (req, res) => { console.log("Health check", new Date()); res.status(200).send("OK"); }); -app.get("/status", async (req, res) => { +app.get("/status", (req, res) => { if (undefined !== lastAttemptError.circulatingSupply || undefined !== lastAttemptError.totalSupply) { res.status(200).json({ status: "ERROR", @@ -276,19 +286,19 @@ const server = app.listen(port, async () => { // --- Periodic Polling --- const POLLING_INTERVAL_SECONDS = process.env.POLLING_INTERVAL_SECONDS ? parseInt(process.env.POLLING_INTERVAL_SECONDS, 10) : 30; // Default 30 seconds const POLLING_INTERVAL_MS = POLLING_INTERVAL_SECONDS * 1000; + let pollingInterval; if (POLLING_INTERVAL_MS > 0) { // Avoid interval of 0 or less console.log(`Starting supply polling every ${POLLING_INTERVAL_SECONDS} seconds.`); - const pollingInterval = setInterval(runRecordingCycle, POLLING_INTERVAL_MS); + pollingInterval = setInterval(runRecordingCycle, POLLING_INTERVAL_MS); } else { console.log("Polling interval is set to 0 or less. Polling disabled after initial fetch."); } const shutdown = (signal) => { console.log(`${signal} signal received: Shutting down server...`); - console.log('Attempting to stop polling interval (if active)...'); // Best effort log - if (pollingInterval) { // If stored locally + if (pollingInterval) { clearInterval(pollingInterval); - console.log('Polling stopped.'); + console.log("Polling stopped."); } server.close((err) => { // Close the HTTP server diff --git a/package-lock.json b/package-lock.json index 783f336..cafbd2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,67 +1,56 @@ { - "name": "syscoin-lambda-functions", + "name": "syscoin-info-api", "version": "1.0.0", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@syscoin/syscoin-js": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/@syscoin/syscoin-js/-/syscoin-js-4.2.0.tgz", - "integrity": "sha512-irdVkasNz/feUZohAJwlluBfIDg3awElQSzCJpCVRVEA7ep7EtDC1S2hxOJ7n3+DEcMMzJGRRoEC36KmCbUnhQ==", - "requires": { - "@types/node": "^12.0.1", - "axios": ">=0.18.1", - "typescript": "^3.4.5" - } - }, - "@types/axios": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@types/axios/-/axios-0.14.0.tgz", - "integrity": "sha512-KqQnQbdYE54D7oa/UmYVMZKq7CO4l8DEENzOKc4aBRwxCXSlJXGz83flFx5L7AWrOQnmuN3kVsRdt+GZPPjiVQ==", - "dev": true, - "requires": { - "axios": "*" - } - }, - "@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - }, - "accepts": { + "packages": { + "": { + "name": "syscoin-info-api", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "axios": "^1.7.4", + "dotenv": "^16.0.3", + "express": "^4.18.2" + } + }, + "node_modules/accepts": { "version": "1.3.8", "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", - "requires": { + "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" } }, - "array-flatten": { + "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" }, - "asynckit": { + "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, - "axios": { + "node_modules/axios": { "version": "1.8.4", "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.4.tgz", "integrity": "sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw==", - "requires": { + "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", "proxy-from-env": "^1.1.0" } }, - "body-parser": { + "node_modules/body-parser": { "version": "1.20.1", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.1.tgz", "integrity": "sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==", - "requires": { + "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.4", "debug": "2.6.9", @@ -74,191 +63,263 @@ "raw-body": "2.5.1", "type-is": "~1.6.18", "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, - "bytes": { + "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==" + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "engines": { + "node": ">= 0.8" + } }, - "call-bind": { + "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { + "dependencies": { "function-bind": "^1.1.1", "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "call-bind-apply-helpers": { + "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "requires": { + "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" }, - "dependencies": { - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - } + "engines": { + "node": ">= 0.4" } }, - "combined-stream": { + "node_modules/call-bind-apply-helpers/node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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==", - "requires": { + "dependencies": { "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "content-disposition": { + "node_modules/content-disposition": { "version": "0.5.4", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", - "requires": { + "dependencies": { "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" } }, - "content-type": { + "node_modules/content-type": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", - "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" + "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", + "engines": { + "node": ">= 0.6" + } }, - "cookie": { + "node_modules/cookie": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", - "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==" + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "engines": { + "node": ">= 0.6" + } }, - "cookie-signature": { + "node_modules/cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" }, - "debug": { + "node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { + "dependencies": { "ms": "2.0.0" } }, - "delayed-stream": { + "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } }, - "depd": { + "node_modules/depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "engines": { + "node": ">= 0.8" + } }, - "destroy": { + "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", - "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } }, - "dotenv": { + "node_modules/dotenv": { "version": "16.0.3", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", - "dev": true + "engines": { + "node": ">=12" + } }, - "dunder-proto": { + "node_modules/dunder-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "requires": { + "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" } }, - "ee-first": { + "node_modules/ee-first": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, - "encodeurl": { + "node_modules/encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "engines": { + "node": ">= 0.8" + } }, - "es-define-property": { + "node_modules/es-define-property": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "engines": { + "node": ">= 0.4" + } }, - "es-errors": { + "node_modules/es-errors": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } }, - "es-object-atoms": { + "node_modules/es-object-atoms": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "requires": { + "dependencies": { "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" } }, - "es-set-tostringtag": { + "node_modules/es-set-tostringtag": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "requires": { + "dependencies": { "es-errors": "^1.3.0", "get-intrinsic": "^1.2.6", "has-tostringtag": "^1.0.2", "hasown": "^2.0.2" }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag/node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-set-tostringtag/node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", "dependencies": { - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "requires": { - "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" - } - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" - } + "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" } }, - "escape-html": { + "node_modules/es-set-tostringtag/node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/escape-html": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" }, - "etag": { + "node_modules/etag": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", - "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "engines": { + "node": ">= 0.6" + } }, - "express": { + "node_modules/express": { "version": "4.18.2", "resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz", "integrity": "sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==", - "requires": { + "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "1.20.1", @@ -290,13 +351,16 @@ "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" } }, - "finalhandler": { + "node_modules/finalhandler": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", - "requires": { + "dependencies": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -304,253 +368,381 @@ "parseurl": "~1.3.3", "statuses": "2.0.1", "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "follow-redirects": { + "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==" + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } }, - "form-data": { + "node_modules/form-data": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", - "requires": { + "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" } }, - "forwarded": { + "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "engines": { + "node": ">= 0.6" + } }, - "fresh": { + "node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", - "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "engines": { + "node": ">= 0.6" + } }, - "function-bind": { + "node_modules/function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, - "get-intrinsic": { + "node_modules/get-intrinsic": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "requires": { + "dependencies": { "function-bind": "^1.1.1", "has": "^1.0.3", "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "get-proto": { + "node_modules/get-proto": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "requires": { + "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" } }, - "gopd": { + "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has": { + "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { + "dependencies": { "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" } }, - "has-symbols": { + "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "has-tostringtag": { + "node_modules/has-tostringtag": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "requires": { + "dependencies": { "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "hasown": { + "node_modules/hasown": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "requires": { + "dependencies": { "function-bind": "^1.1.2" }, - "dependencies": { - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - } + "engines": { + "node": ">= 0.4" } }, - "http-errors": { + "node_modules/hasown/node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "requires": { + "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" } }, - "iconv-lite": { + "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "requires": { + "dependencies": { "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" } }, - "inherits": { + "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "ipaddr.js": { + "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", - "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "engines": { + "node": ">= 0.10" + } }, - "math-intrinsics": { + "node_modules/math-intrinsics": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "engines": { + "node": ">= 0.4" + } }, - "media-typer": { + "node_modules/media-typer": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", - "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "engines": { + "node": ">= 0.6" + } }, - "merge-descriptors": { + "node_modules/merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" }, - "methods": { + "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "engines": { + "node": ">= 0.6" + } }, - "mime": { + "node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } }, - "mime-db": { + "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==" + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } }, - "mime-types": { + "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==", - "requires": { + "dependencies": { "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" } }, - "ms": { + "node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, - "negotiator": { + "node_modules/negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "engines": { + "node": ">= 0.6" + } }, - "object-inspect": { + "node_modules/object-inspect": { "version": "1.12.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" + "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, - "on-finished": { + "node_modules/on-finished": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", - "requires": { + "dependencies": { "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" } }, - "parseurl": { + "node_modules/parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "engines": { + "node": ">= 0.8" + } }, - "path-to-regexp": { + "node_modules/path-to-regexp": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==" }, - "proxy-addr": { + "node_modules/proxy-addr": { "version": "2.0.7", "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", - "requires": { + "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" } }, - "proxy-from-env": { + "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==" }, - "qs": { + "node_modules/qs": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "requires": { + "dependencies": { "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "range-parser": { + "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", - "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "engines": { + "node": ">= 0.6" + } }, - "raw-body": { + "node_modules/raw-body": { "version": "2.5.1", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", - "requires": { + "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" } }, - "safe-buffer": { + "node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] }, - "safer-buffer": { + "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "send": { + "node_modules/send": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", - "requires": { + "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", @@ -565,78 +757,98 @@ "range-parser": "~1.2.1", "statuses": "2.0.1" }, - "dependencies": { - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" - } + "engines": { + "node": ">= 0.8.0" } }, - "serve-static": { + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" + }, + "node_modules/serve-static": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", - "requires": { + "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" } }, - "setprototypeof": { + "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==" }, - "side-channel": { + "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "requires": { + "dependencies": { "call-bind": "^1.0.0", "get-intrinsic": "^1.0.2", "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "statuses": { + "node_modules/statuses": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==" + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "engines": { + "node": ">= 0.8" + } }, - "toidentifier": { + "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==" + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "engines": { + "node": ">=0.6" + } }, - "type-is": { + "node_modules/type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "requires": { + "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" } }, - "typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==" - }, - "unpipe": { + "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "engines": { + "node": ">= 0.8" + } }, - "utils-merge": { + "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", - "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "engines": { + "node": ">= 0.4.0" + } }, - "vary": { + "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "engines": { + "node": ">= 0.8" + } } } } diff --git a/package.json b/package.json index fa6471c..e43f1a9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "syscoin-lambda-functions", + "name": "syscoin-info-api", "version": "1.0.0", - "description": "", + "description": "Syscoin supply info API", "main": "index.js", "scripts": { "start": "node index.js" @@ -9,12 +9,8 @@ "author": "", "license": "ISC", "dependencies": { - "@syscoin/syscoin-js": "^4.2.0", - "express": "^4.18.2", - "axios": "^1.7.4" - }, - "devDependencies": { - "@types/axios": "^0.14.0", - "dotenv": "^16.0.3" + "axios": "^1.7.4", + "dotenv": "^16.0.3", + "express": "^4.18.2" } } diff --git a/syscoin-core/Dockerfile b/syscoin-core/Dockerfile deleted file mode 100644 index 55e1ac7..0000000 --- a/syscoin-core/Dockerfile +++ /dev/null @@ -1,11 +0,0 @@ -FROM blocknetdx/syscoin:v4.4.2 - -RUN apt-get update; - -RUN apt-get -y install jq; - -COPY ./custom-entry.sh /entrypoint.sh - -COPY ./health-check.sh ./health-check.sh - -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/syscoin-core/custom-entry.sh b/syscoin-core/custom-entry.sh deleted file mode 100755 index 26d5b6d..0000000 --- a/syscoin-core/custom-entry.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -## Pre execution handler -pre_execution_handler() { - ## Pre Execution - # TODO: put your pre execution steps here - echo "Start Syscoind" -} - -## Post execution handler -post_execution_handler() { - ## Post Execution - # TODO: put your post execution steps here - # syscoind stop; - echo "Stop Syscoind" - syscoin-cli stop -} - -## Sigterm Handler -sigterm_handler() { - if [ $pid -ne 0 ]; then - # the above if statement is important because it ensures - # that the application has already started. without it you - # could attempt cleanup steps if the application failed to - # start, causing errors. - kill -15 "$pid" - wait "$pid" - post_execution_handler - fi - exit 143 # 128 + 15 -- SIGTERM -} - -## Setup signal trap -# on callback execute the specified handler -trap 'sigterm_handler' INT TERM - -## Initialization -pre_execution_handler - -## Start Process -# run process in background and record PID -"$@" & -pid="$!" -# Application can log to stdout/stderr, /log/stdout.log or /log/stderr.log - -## Wait forever until app dies -wait "$pid" -return_code="$?" - -## Cleanup -post_execution_handler -# echo the return code of the application -exit $return_code diff --git a/syscoin-core/health-check.sh b/syscoin-core/health-check.sh deleted file mode 100755 index 323cb7d..0000000 --- a/syscoin-core/health-check.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh -FETCH_URI="http://$RPC_AUTH@localhost:8370" -CURRENT=$(curl --data-binary '{"jsonrpc":"1.0","method":"getblockchaininfo", "params": []}' $FETCH_URI | jq '.result.headers') -LATEST=$(curl https://blockbook.syscoin.org/api/ | jq '.backend.headers') - -test $CURRENT -eq $LATEST -exit $? diff --git a/temp-circulatingsupply.txt b/temp-circulatingsupply.txt index 35a2247..059de5e 100644 --- a/temp-circulatingsupply.txt +++ b/temp-circulatingsupply.txt @@ -1 +1 @@ -803168031 \ No newline at end of file +904367189.610828 \ No newline at end of file