From 562c3770fb6f1c712f29d727edaca0ebef00582d Mon Sep 17 00:00:00 2001 From: Latte Date: Sun, 8 Mar 2026 15:05:31 +0100 Subject: [PATCH 1/2] Consolidate CI and deployment workflows Add a deploy workflow that builds and pushes the Docker image from the server working directory and runs docker compose on main. Trim CI to a focused Node build in an alpine container (apk deps, npm ci, npm run build) and remove the old docker workflow. Simplify Dockerfile to a builder+runtime flow (npm ci, npm prune, copy node_modules) and make docker-compose use the registry image and proxy network. --- .gitea/workflows/ci.yml | 271 ++------------------------------- .gitea/workflows/deploy.yml | 33 +++++ .gitea/workflows/docker.yml | 288 ------------------------------------ Dockerfile | 23 +-- docker-compose.yml | 12 +- 5 files changed, 62 insertions(+), 565 deletions(-) create mode 100644 .gitea/workflows/deploy.yml delete mode 100644 .gitea/workflows/docker.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e839adf..ad78431 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,270 +1,27 @@ -# ============================================================================= -# CI Workflow — Continuous Integration -# ============================================================================= -# Triggers on push and pull_request. -# -# Detection logic: -# 1. Python: if requirements.txt exists → install deps, lint, test. -# 2. Node/JS: if package.json exists → install deps, lint, test, build. -# 3. Neither detected → print a message and exit 0 (never fail). -# -# Controlled by .ci/config.env: -# ENABLE_CI — master switch (default: true) -# CI_STRICT — if true, lint/test failures fail the workflow -# if false, failures are warnings only -# -# See docs/CI.md for full details. -# ============================================================================= - name: CI on: push: + branches: + - dev pull_request: + branches: + - main jobs: - ci: - runs-on: ubuntu-latest + build: + runs-on: [ovh-vps-1, hiddenden] + container: + image: node:20-alpine steps: - # ----------------------------------------------------------------------- - # Step 1: Checkout the code - # ----------------------------------------------------------------------- - name: Checkout uses: actions/checkout@v4 - # ----------------------------------------------------------------------- - # Step 2: Load configuration from .ci/config.env - # ----------------------------------------------------------------------- - - name: Load config - id: config - run: | - # Source config.env to get ENABLE_CI, CI_STRICT, etc. - if [ -f .ci/config.env ]; then - # Export all non-comment, non-empty lines - set -a - source .ci/config.env - set +a - echo "Config loaded from .ci/config.env" - else - echo "WARNING: .ci/config.env not found, using defaults" - ENABLE_CI=true - CI_STRICT=true - fi + - name: Install build deps + run: apk add --no-cache python3 make g++ - # Pass values to subsequent steps via environment file - echo "ENABLE_CI=${ENABLE_CI:-true}" >> "$GITHUB_ENV" - echo "CI_STRICT=${CI_STRICT:-true}" >> "$GITHUB_ENV" + - name: Install dependencies + run: npm ci - # ----------------------------------------------------------------------- - # Step 3: Check master switch - # ----------------------------------------------------------------------- - - name: Check if CI is enabled - run: | - if [ "$ENABLE_CI" != "true" ]; then - echo "CI is disabled (ENABLE_CI=$ENABLE_CI). Exiting." - exit 0 - fi - - # ----------------------------------------------------------------------- - # Step 4: Detect project type - # ----------------------------------------------------------------------- - - name: Detect project type - id: detect - run: | - HAS_PYTHON=false - HAS_NODE=false - - if [ -f requirements.txt ] || [ -f setup.py ] || [ -f pyproject.toml ]; then - HAS_PYTHON=true - echo "Detected: Python project" - fi - - if [ -f package.json ]; then - HAS_NODE=true - echo "Detected: Node.js project" - fi - - if [ "$HAS_PYTHON" = "false" ] && [ "$HAS_NODE" = "false" ]; then - echo "No Python or Node.js project detected. CI will skip gracefully." - fi - - echo "HAS_PYTHON=${HAS_PYTHON}" >> "$GITHUB_ENV" - echo "HAS_NODE=${HAS_NODE}" >> "$GITHUB_ENV" - - # ----------------------------------------------------------------------- - # Step 5: Python — Setup & Install - # ----------------------------------------------------------------------- - - name: Set up Python - if: env.HAS_PYTHON == 'true' - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - - name: Install Python dependencies - if: env.HAS_PYTHON == 'true' - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then - pip install -r requirements.txt - fi - # Install optional dev tools (won't fail if not needed) - pip install ruff black flake8 pytest 2>/dev/null || true - - # ----------------------------------------------------------------------- - # Step 6: Python — Lint - # Runs ruff, then black --check, then flake8. Each is optional: - # only runs if the tool is installed AND relevant config exists. - # ----------------------------------------------------------------------- - - name: Python lint - if: env.HAS_PYTHON == 'true' - run: | - EXIT_CODE=0 - - # --- ruff --- - if command -v ruff >/dev/null 2>&1; then - echo ">>> ruff check ." - ruff check . || EXIT_CODE=$? - else - echo "SKIP: ruff not installed" - fi - - # --- black --- - if command -v black >/dev/null 2>&1; then - echo ">>> black --check ." - black --check . || EXIT_CODE=$? - else - echo "SKIP: black not installed" - fi - - # --- flake8 --- - if command -v flake8 >/dev/null 2>&1; then - echo ">>> flake8 ." - flake8 . || EXIT_CODE=$? - else - echo "SKIP: flake8 not installed" - fi - - if [ "$EXIT_CODE" -ne 0 ]; then - if [ "$CI_STRICT" = "true" ]; then - echo "ERROR: Lint failed (CI_STRICT=true)" - exit 1 - else - echo "WARNING: Lint issues found (CI_STRICT=false, continuing)" - fi - fi - - # ----------------------------------------------------------------------- - # Step 7: Python — Test - # Runs pytest if a tests/ directory or pytest config is detected. - # ----------------------------------------------------------------------- - - name: Python test - if: env.HAS_PYTHON == 'true' - run: | - # Check if tests exist - HAS_TESTS=false - if [ -d tests ] || [ -d test ]; then - HAS_TESTS=true - fi - # Check for pytest config in pyproject.toml or pytest.ini - if [ -f pytest.ini ] || [ -f setup.cfg ]; then - HAS_TESTS=true - fi - if [ -f pyproject.toml ] && grep -q '\[tool\.pytest' pyproject.toml 2>/dev/null; then - HAS_TESTS=true - fi - - if [ "$HAS_TESTS" = "true" ]; then - echo ">>> pytest" - if ! pytest; then - if [ "$CI_STRICT" = "true" ]; then - echo "ERROR: Tests failed (CI_STRICT=true)" - exit 1 - else - echo "WARNING: Tests failed (CI_STRICT=false, continuing)" - fi - fi - else - echo "SKIP: No tests detected (no tests/ dir or pytest config)" - fi - - # ----------------------------------------------------------------------- - # Step 8: Node.js — Setup & Install - # ----------------------------------------------------------------------- - - name: Set up Node.js - if: env.HAS_NODE == 'true' - uses: actions/setup-node@v4 - with: - # Keep CI on Node 20 to match runtime/Docker and better-sqlite3 compatibility. - node-version: "20.x" - - - name: Install Node dependencies - if: env.HAS_NODE == 'true' - run: | - # Lockfile is currently not authoritative; use install to refresh dependency tree. - npm install - - # ----------------------------------------------------------------------- - # Step 9: Node.js — Lint (only if "lint" script exists in package.json) - # ----------------------------------------------------------------------- - - name: Node lint - if: env.HAS_NODE == 'true' - run: | - if grep -q '"lint"' package.json 2>/dev/null; then - echo ">>> npm run lint" - if ! npm run lint; then - if [ "$CI_STRICT" = "true" ]; then - echo "ERROR: Lint failed (CI_STRICT=true)" - exit 1 - else - echo "WARNING: Lint issues found (CI_STRICT=false, continuing)" - fi - fi - else - echo "SKIP: no 'lint' script in package.json" - fi - - # ----------------------------------------------------------------------- - # Step 10: Node.js — Test (only if "test" script exists) - # ----------------------------------------------------------------------- - - name: Node test - if: env.HAS_NODE == 'true' - run: | - if grep -q '"test"' package.json 2>/dev/null; then - echo ">>> npm test" - if ! npm test; then - if [ "$CI_STRICT" = "true" ]; then - echo "ERROR: Tests failed (CI_STRICT=true)" - exit 1 - else - echo "WARNING: Tests failed (CI_STRICT=false, continuing)" - fi - fi - else - echo "SKIP: no 'test' script in package.json" - fi - - # ----------------------------------------------------------------------- - # Step 11: Node.js — Build (only if "build" script exists) - # ----------------------------------------------------------------------- - - name: Node build - if: env.HAS_NODE == 'true' - run: | - if grep -q '"build"' package.json 2>/dev/null; then - echo ">>> npm run build" - npm run build - else - echo "SKIP: no 'build' script in package.json" - fi - - # ----------------------------------------------------------------------- - # Step 12: Summary - # ----------------------------------------------------------------------- - - name: CI Summary - if: always() - run: | - echo "==============================" - echo " CI Complete" - echo " Python detected: $HAS_PYTHON" - echo " Node detected: $HAS_NODE" - echo " Strict mode: $CI_STRICT" - echo "==============================" + - name: Build + run: npm run build diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..69234a6 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,33 @@ +name: Deploy + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: [ovh-vps-1, deploy, hiddenden] + steps: + - name: Pull latest code + working-directory: /home/ubuntu/appdata/Cozy-Den + run: | + git fetch origin + git reset --hard origin/main + + - name: Login to Gitea registry + run: echo "${{ secrets.GITEA_TOKEN }}" | docker login git.hiddenden.cafe -u ${{ secrets.GITEA_USERNAME }} --password-stdin + + - name: Build & push image + working-directory: /home/ubuntu/appdata/Cozy-Den + run: | + docker build -t git.hiddenden.cafe/hiddenden/cozy-den:latest . + docker push git.hiddenden.cafe/hiddenden/cozy-den:latest + + - name: Deploy + working-directory: /home/ubuntu/appdata/Cozy-Den + env: + SECRET_KEY: ${{ secrets.SECRET_KEY }} + ADMIN_SECRET_TOKEN: ${{ secrets.ADMIN_SECRET_TOKEN }} + COOKIE_SECURE: "true" + run: docker compose up -d diff --git a/.gitea/workflows/docker.yml b/.gitea/workflows/docker.yml deleted file mode 100644 index d658ded..0000000 --- a/.gitea/workflows/docker.yml +++ /dev/null @@ -1,288 +0,0 @@ -# ============================================================================= -# Docker Workflow — Build & Push to Gitea Container Registry -# ============================================================================= -# -# PURPOSE: -# Build Docker images generically; optionally push to the Gitea Container -# Registry at git.hiddenden.cafe. -# -# TRIGGERS: -# - pull_request → build only (never push) -# - push to main → build; push only if ENABLE_DOCKER=true AND DOCKER_PUSH=true -# - tag v* → build; push only if DOCKER_PUSH=true AND DOCKER_PUSH_ON_TAG=true -# -# DETECTION: -# - Dockerfile exists → docker build -# - docker-compose.yml exists → docker compose build -# - Neither → exit 0 gracefully -# -# NAMING (Gitea convention): -# Image ref: ${REGISTRY_HOST}/${IMAGE_OWNER}/${IMAGE_NAME}:${TAG} -# Example: git.hiddenden.cafe/myorg/myrepo:1.2.3 -# -# AUTHENTICATION: -# Uses PAT-based secrets (recommended for Gitea Actions): -# - REGISTRY_USERNAME — your Gitea username or bot account -# - REGISTRY_TOKEN — a Personal Access Token with package:write scope -# Set these in: Repository Settings → Secrets (or Organization Secrets). -# NEVER echo secrets in logs. -# -# CONFIG: -# All settings loaded from .ci/config.env. See docs/DOCKER.md. -# -# ============================================================================= - -name: Docker - -on: - push: - branches: - - main - tags: - - "v*" - pull_request: - -jobs: - docker: - runs-on: ubuntu-latest - steps: - # ----------------------------------------------------------------------- - # Step 1: Checkout - # ----------------------------------------------------------------------- - - name: Checkout - uses: actions/checkout@v4 - - # ----------------------------------------------------------------------- - # Step 2: Load configuration - # ----------------------------------------------------------------------- - - name: Load config - run: | - if [ -f .ci/config.env ]; then - set -a - source .ci/config.env - set +a - echo "Config loaded from .ci/config.env" - else - echo "WARNING: .ci/config.env not found, using defaults" - fi - - # Export with defaults - echo "ENABLE_DOCKER=${ENABLE_DOCKER:-true}" >> "$GITHUB_ENV" - echo "DOCKER_PUSH=${DOCKER_PUSH:-false}" >> "$GITHUB_ENV" - echo "DOCKER_PUSH_ON_BRANCH=${DOCKER_PUSH_ON_BRANCH:-true}" >> "$GITHUB_ENV" - echo "DOCKER_PUSH_ON_TAG=${DOCKER_PUSH_ON_TAG:-true}" >> "$GITHUB_ENV" - echo "REGISTRY_HOST=${REGISTRY_HOST:-git.hiddenden.cafe}" >> "$GITHUB_ENV" - echo "IMAGE_OWNER_CFG=${IMAGE_OWNER:-auto}" >> "$GITHUB_ENV" - echo "IMAGE_NAME_CFG=${IMAGE_NAME:-auto}" >> "$GITHUB_ENV" - echo "DOCKER_TAG_STRATEGY=${DOCKER_TAG_STRATEGY:-semver+latest}" >> "$GITHUB_ENV" - echo "DEFAULT_BRANCH=${DEFAULT_BRANCH:-main}" >> "$GITHUB_ENV" - - # ----------------------------------------------------------------------- - # Step 3: Check if Docker is enabled - # ----------------------------------------------------------------------- - - name: Check if Docker is enabled - run: | - if [ "$ENABLE_DOCKER" != "true" ]; then - echo "Docker is disabled (ENABLE_DOCKER=$ENABLE_DOCKER). Exiting." - # We still exit 0 — graceful skip. - echo "SKIP_DOCKER=true" >> "$GITHUB_ENV" - fi - - # ----------------------------------------------------------------------- - # Step 4: Detect Dockerfile or docker-compose.yml - # ----------------------------------------------------------------------- - - name: Detect Docker files - if: env.SKIP_DOCKER != 'true' - run: | - if [ -f Dockerfile ]; then - echo "DOCKER_MODE=dockerfile" >> "$GITHUB_ENV" - echo "Detected: Dockerfile" - elif [ -f docker-compose.yml ] || [ -f docker-compose.yaml ]; then - echo "DOCKER_MODE=compose" >> "$GITHUB_ENV" - echo "Detected: docker-compose.yml" - else - echo "No Dockerfile or docker-compose.yml found. Skipping." - echo "SKIP_DOCKER=true" >> "$GITHUB_ENV" - fi - - # ----------------------------------------------------------------------- - # Step 5: Derive image owner and name dynamically - # - # Logic: - # FULL_REPO is derived from (in priority order): - # 1. $GITEA_REPOSITORY (Gitea native env var) - # 2. github.repository (Gitea Actions compatibility fallback) - # Format: "owner/repo" - # - # If IMAGE_OWNER=auto → use the owner part - # If IMAGE_NAME=auto → use the repo part - # Otherwise, use the explicit config values. - # ----------------------------------------------------------------------- - - name: Derive image naming - if: env.SKIP_DOCKER != 'true' - run: | - # Determine FULL_REPO (owner/repo) - # Gitea Actions sets GITEA_REPOSITORY natively in some versions. - # It also maps github.repository for compatibility. - FULL_REPO="${GITEA_REPOSITORY:-${{ github.repository }}}" - - if [ -z "$FULL_REPO" ]; then - echo "ERROR: Could not determine repository (GITEA_REPOSITORY and github.repository are both empty)" - exit 1 - fi - - # Split into OWNER and REPO - OWNER="$(echo "$FULL_REPO" | cut -d'/' -f1)" - REPO="$(echo "$FULL_REPO" | cut -d'/' -f2)" - - echo "Derived FULL_REPO=$FULL_REPO OWNER=$OWNER REPO=$REPO" - - # Apply config overrides - if [ "$IMAGE_OWNER_CFG" = "auto" ]; then - FINAL_OWNER="$OWNER" - else - FINAL_OWNER="$IMAGE_OWNER_CFG" - fi - - if [ "$IMAGE_NAME_CFG" = "auto" ]; then - FINAL_NAME="$REPO" - else - FINAL_NAME="$IMAGE_NAME_CFG" - fi - - # Docker requires all image references to be lowercase - FINAL_OWNER="$(echo "$FINAL_OWNER" | tr '[:upper:]' '[:lower:]')" - FINAL_NAME="$(echo "$FINAL_NAME" | tr '[:upper:]' '[:lower:]')" - - # Construct the full image reference (without tag) - IMAGE_REF="${REGISTRY_HOST}/${FINAL_OWNER}/${FINAL_NAME}" - echo "Image reference: ${IMAGE_REF}:" - - echo "IMAGE_REF=${IMAGE_REF}" >> "$GITHUB_ENV" - - # ----------------------------------------------------------------------- - # Step 6: Determine tags based on trigger and strategy - # - # Tag rules: - # - PR: build only, tag = "pr-" (local only) - # - Push to branch: tag = branch name (e.g., "main") - # - Tag v1.2.3: tag = "1.2.3"; also "latest" if strategy includes it - # ----------------------------------------------------------------------- - - name: Determine tags - if: env.SKIP_DOCKER != 'true' - run: | - TAGS="" - SHOULD_PUSH=false - REF="${GITHUB_REF:-}" - - echo "Event: ${{ github.event_name }}" - echo "Ref: ${REF}" - - # --- Pull Request: build only --- - if [ "${{ github.event_name }}" = "pull_request" ]; then - TAGS="${IMAGE_REF}:pr-${{ github.event.number }}" - SHOULD_PUSH=false - echo "PR build — will NOT push" - - # --- Tag push (v*) --- - elif echo "${REF}" | grep -qE '^refs/tags/v'; then - # Extract version: refs/tags/v1.2.3 → 1.2.3 - VERSION="$(echo "${REF}" | sed 's|refs/tags/v||')" - TAGS="${IMAGE_REF}:${VERSION}" - - # Optionally add :latest - if echo "$DOCKER_TAG_STRATEGY" | grep -qi 'latest'; then - TAGS="${TAGS},${IMAGE_REF}:latest" - fi - - if [ "$DOCKER_PUSH" = "true" ] && [ "$DOCKER_PUSH_ON_TAG" = "true" ]; then - SHOULD_PUSH=true - fi - echo "Tag push — version=${VERSION}, push=${SHOULD_PUSH}" - - # --- Branch push --- - elif echo "${REF}" | grep -q '^refs/heads/'; then - BRANCH="$(echo "${REF}" | sed 's|refs/heads/||')" - TAGS="${IMAGE_REF}:${BRANCH}" - - if [ "$DOCKER_PUSH" = "true" ] && [ "$DOCKER_PUSH_ON_BRANCH" = "true" ]; then - SHOULD_PUSH=true - fi - echo "Branch push — branch=${BRANCH}, push=${SHOULD_PUSH}" - - else - echo "Unknown ref type: ${REF}. Building with tag 'dev'." - TAGS="${IMAGE_REF}:dev" - SHOULD_PUSH=false - fi - - echo "DOCKER_TAGS=${TAGS}" >> "$GITHUB_ENV" - echo "SHOULD_PUSH=${SHOULD_PUSH}" >> "$GITHUB_ENV" - echo "Final tags: ${TAGS}" - echo "Will push: ${SHOULD_PUSH}" - - # ----------------------------------------------------------------------- - # Step 7: Build the Docker image - # ----------------------------------------------------------------------- - - name: Build Docker image - if: env.SKIP_DOCKER != 'true' - run: | - if [ "$DOCKER_MODE" = "dockerfile" ]; then - # Build with the first tag; additional tags are added after - PRIMARY_TAG="$(echo "$DOCKER_TAGS" | cut -d',' -f1)" - echo ">>> docker build -t ${PRIMARY_TAG} ." - docker build -t "${PRIMARY_TAG}" . - - # Tag additional images if present - IFS=',' read -ra TAG_ARRAY <<< "$DOCKER_TAGS" - for tag in "${TAG_ARRAY[@]:1}"; do - echo ">>> docker tag ${PRIMARY_TAG} ${tag}" - docker tag "${PRIMARY_TAG}" "${tag}" - done - - elif [ "$DOCKER_MODE" = "compose" ]; then - echo ">>> docker compose build" - docker compose build - fi - - # ----------------------------------------------------------------------- - # Step 8: Login to registry (only when pushing) - # - # Uses PAT-based auth. Requires secrets: - # REGISTRY_USERNAME — Gitea username or bot - # REGISTRY_TOKEN — PAT with package:write scope - # ----------------------------------------------------------------------- - - name: Login to container registry - if: env.SKIP_DOCKER != 'true' && env.SHOULD_PUSH == 'true' - run: | - echo "Logging in to ${REGISTRY_HOST}..." - # Use --password-stdin to avoid leaking the token in process list - echo "${{ secrets.REGISTRY_TOKEN }}" | \ - docker login "${REGISTRY_HOST}" \ - -u "${{ secrets.REGISTRY_USERNAME }}" \ - --password-stdin - - # ----------------------------------------------------------------------- - # Step 9: Push Docker image(s) - # ----------------------------------------------------------------------- - - name: Push Docker image - if: env.SKIP_DOCKER != 'true' && env.SHOULD_PUSH == 'true' - run: | - IFS=',' read -ra TAG_ARRAY <<< "$DOCKER_TAGS" - for tag in "${TAG_ARRAY[@]}"; do - echo ">>> docker push ${tag}" - docker push "${tag}" - done - - # ----------------------------------------------------------------------- - # Step 10: Summary - # ----------------------------------------------------------------------- - - name: Docker Summary - if: always() - run: | - echo "==============================" - echo " Docker Workflow Complete" - echo " Mode: ${DOCKER_MODE:-skipped}" - echo " Tags: ${DOCKER_TAGS:-none}" - echo " Pushed: ${SHOULD_PUSH:-false}" - echo "==============================" diff --git a/Dockerfile b/Dockerfile index 31407f7..e903e27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,37 +1,26 @@ -# Stage 1: Build the Astro app +# Stage 1: Build FROM node:20-alpine AS builder WORKDIR /app -# Install build dependencies for native modules (e.g. better-sqlite3) +# Native module build deps (better-sqlite3) RUN apk add --no-cache python3 make g++ COPY package*.json ./ -RUN npm install +RUN npm ci COPY . . -RUN npm run build +RUN npm run build && npm prune --omit=dev -# Stage 2: Install production dependencies only -FROM node:20-alpine AS deps - -WORKDIR /app - -RUN apk add --no-cache python3 make g++ - -COPY package*.json ./ -RUN npm install --omit=dev - -# Stage 3: Runtime image +# Stage 2: Runtime FROM node:20-alpine AS runtime WORKDIR /app -# Data directory for SQLite database RUN mkdir -p /data COPY --from=builder /app/dist ./dist -COPY --from=deps /app/node_modules ./node_modules +COPY --from=builder /app/node_modules ./node_modules COPY package*.json ./ ENV NODE_ENV=production diff --git a/docker-compose.yml b/docker-compose.yml index d20523d..53bda97 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,12 @@ services: cozy-den: - build: . + image: git.hiddenden.cafe/hiddenden/cozy-den:latest container_name: cozy-den - ports: - - "3000:3000" + # ports: + # - "3000:3000" restart: unless-stopped + networks: + - proxy environment: - NODE_ENV=production - HOST=0.0.0.0 @@ -18,3 +20,7 @@ services: volumes: guestbook_data: + +networks: + proxy: + external: true -- 2.52.0 From b0a59bc7542110dfc0627fca6aa49bf22b715044 Mon Sep 17 00:00:00 2001 From: Latte Date: Sun, 8 Mar 2026 15:22:24 +0100 Subject: [PATCH 2/2] Update package-lock with server deps and types Add @astrojs/node, better-sqlite3, and uuid to project deps and include @types/better-sqlite3 and @types/uuid as devDeps. Bump Node engine range to >=20 <24. Lockfile updated with corresponding transitive dependencies. --- package-lock.json | 664 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 662 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8192d96..474972d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,8 +8,18 @@ "name": "cozy-den", "version": "0.0.1", "dependencies": { + "@astrojs/node": "^8.3.4", "@astrojs/sitemap": "^3.2.2", - "astro": "^4.16.18" + "astro": "^4.16.18", + "better-sqlite3": "^9.4.3", + "uuid": "^9.0.1" + }, + "devDependencies": { + "@types/better-sqlite3": "^7.6.10", + "@types/uuid": "^9.0.7" + }, + "engines": { + "node": ">=20 <24" } }, "node_modules/@astrojs/compiler": { @@ -50,6 +60,19 @@ "vfile": "^6.0.3" } }, + "node_modules/@astrojs/node": { + "version": "8.3.4", + "resolved": "https://registry.npmjs.org/@astrojs/node/-/node-8.3.4.tgz", + "integrity": "sha512-xzQs39goN7xh9np9rypGmbgZj3AmmjNxEMj9ZWz5aBERlqqFF3n8A/w/uaJeZ/bkHS60l1BXVS0tgsQt9MFqBA==", + "license": "MIT", + "dependencies": { + "send": "^0.19.0", + "server-destroy": "^1.0.1" + }, + "peerDependencies": { + "astro": "^4.2.0" + } + }, "node_modules/@astrojs/prism": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@astrojs/prism/-/prism-3.1.0.tgz", @@ -1637,6 +1660,16 @@ "@babel/types": "^7.28.2" } }, + "node_modules/@types/better-sqlite3": { + "version": "7.6.13", + "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.13.tgz", + "integrity": "sha512-NMv9ASNARoKksWtsq/SHakpYAYnhBrQgGD8zkLYk/jaK8jUGn08CfEdTRgYhMypUQAfzSP8W6gNLe0q19/t4VA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/cookie": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.6.0.tgz", @@ -1715,6 +1748,13 @@ "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", "license": "MIT" }, + "node_modules/@types/uuid": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", + "dev": true, + "license": "MIT" + }, "node_modules/@ungap/structured-clone": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", @@ -1944,6 +1984,26 @@ "integrity": "sha512-kwDPIFCGx0NZHog36dj+tHiwP4QMzsZ3AgMViUBKI0+V5n4U0ufTCUMhnQ04diaRI8EX/QcPfql7zlhZ7j4zgg==", "license": "MIT" }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "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/baseline-browser-mapping": { "version": "2.9.11", "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.11.tgz", @@ -1953,6 +2013,37 @@ "baseline-browser-mapping": "dist/cli.js" } }, + "node_modules/better-sqlite3": { + "version": "9.6.0", + "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-9.6.0.tgz", + "integrity": "sha512-yR5HATnqeYNVnkaUTf4bOP2dJSnyhP4puJN/QPRyx4YkBEEUxib422n2XzPqDEHjQQqazoYoADdAm5vE15+dAQ==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "bindings": "^1.5.0", + "prebuild-install": "^7.1.1" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "license": "MIT", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, "node_modules/boxen": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/boxen/-/boxen-8.0.1.tgz", @@ -2020,6 +2111,30 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "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", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, "node_modules/camelcase": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-8.0.0.tgz", @@ -2104,6 +2219,12 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==", + "license": "ISC" + }, "node_modules/ci-info": { "version": "4.3.1", "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.3.1.tgz", @@ -2285,6 +2406,39 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "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==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/dequal": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", @@ -2294,12 +2448,21 @@ "node": ">=6" } }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", "license": "Apache-2.0", - "optional": true, "engines": { "node": ">=8" } @@ -2359,6 +2522,12 @@ "node": ">=4" } }, + "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==", + "license": "MIT" + }, "node_modules/electron-to-chromium": { "version": "1.5.267", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", @@ -2377,6 +2546,24 @@ "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==", "license": "MIT" }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, "node_modules/entities": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz", @@ -2442,6 +2629,12 @@ "node": ">=6" } }, + "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==", + "license": "MIT" + }, "node_modules/escape-string-regexp": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", @@ -2476,12 +2669,30 @@ "@types/estree": "^1.0.0" } }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, "node_modules/eventemitter3": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-5.0.1.tgz", "integrity": "sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA==", "license": "MIT" }, + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "license": "(MIT OR WTFPL)", + "engines": { + "node": ">=6" + } + }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -2525,6 +2736,12 @@ "reusify": "^1.0.4" } }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", + "license": "MIT" + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -2581,6 +2798,21 @@ "node": ">=8" } }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==", + "license": "MIT" + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -2616,6 +2848,12 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==", + "license": "MIT" + }, "node_modules/github-slugger": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/github-slugger/-/github-slugger-2.0.0.tgz", @@ -2876,6 +3114,46 @@ "integrity": "sha512-dTxcvPXqPvXBQpq5dUr6mEMJX4oIEFv6bwom3FDwKRDsuIjjJGANqhBuoAn9c1RQJIdAKav33ED65E2ys+87QQ==", "license": "BSD-2-Clause" }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "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": "BSD-3-Clause" + }, "node_modules/import-meta-resolve": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/import-meta-resolve/-/import-meta-resolve-4.2.0.tgz", @@ -2886,6 +3164,18 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", + "license": "ISC" + }, "node_modules/is-arrayish": { "version": "0.3.4", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.4.tgz", @@ -4033,6 +4323,18 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/mimic-function": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/mimic-function/-/mimic-function-5.0.1.tgz", @@ -4045,6 +4347,33 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", + "license": "MIT" + }, "node_modules/mrmime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/mrmime/-/mrmime-2.0.1.tgz", @@ -4078,6 +4407,12 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/napi-build-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz", + "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==", + "license": "MIT" + }, "node_modules/neotraverse": { "version": "0.6.18", "resolved": "https://registry.npmjs.org/neotraverse/-/neotraverse-0.6.18.tgz", @@ -4100,12 +4435,45 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/node-abi": { + "version": "3.87.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.87.0.tgz", + "integrity": "sha512-+CGM1L1CgmtheLcBuleyYOn7NWPVu0s0EJH2C4puxgEZb9h8QpR9G2dBfZJOAUhi7VQxuBPMd0hiISWcTyiYyQ==", + "license": "MIT", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/node-releases": { "version": "2.0.27", "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "license": "MIT" }, + "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==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, "node_modules/onetime": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/onetime/-/onetime-7.0.0.tgz", @@ -4340,6 +4708,33 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/prebuild-install": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz", + "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==", + "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.", + "license": "MIT", + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^2.0.0", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/preferred-pm": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/preferred-pm/-/preferred-pm-4.1.1.tgz", @@ -4395,6 +4790,16 @@ "url": "https://github.com/sponsors/wooorm" } }, + "node_modules/pump": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", + "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -4415,6 +4820,44 @@ ], "license": "MIT" }, + "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==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/regex": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/regex/-/regex-5.1.1.tgz", @@ -4733,6 +5176,26 @@ "queue-microtask": "^1.2.2" } }, + "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==", + "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/sax": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.3.tgz", @@ -4764,6 +5227,57 @@ "node": ">=10" } }, + "node_modules/send": { + "version": "0.19.2", + "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz", + "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "~0.5.2", + "http-errors": "~2.0.1", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "~2.4.1", + "range-parser": "~1.2.1", + "statuses": "~2.0.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/server-destroy": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/server-destroy/-/server-destroy-1.0.1.tgz", + "integrity": "sha512-rb+9B5YBIEzYcD6x2VKidaa+cqYBJQKnU4oe4E3ANwRRN56yk/ua1YCJT1n21NTS8w6CcOclAKNP3PhdCXKYtQ==", + "license": "ISC" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, "node_modules/sharp": { "version": "0.33.5", "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.33.5.tgz", @@ -4832,6 +5346,51 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "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/simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "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", + "dependencies": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, "node_modules/simple-swizzle": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.4.tgz", @@ -4898,6 +5457,15 @@ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "license": "BSD-3-Clause" }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, "node_modules/stdin-discarder": { "version": "0.2.2", "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz", @@ -4916,6 +5484,15 @@ "integrity": "sha512-TlnjJ1C0QrmxRNrON00JvaFFlNh5TTG00APw23j74ET7gkQpTASi6/L2fuiav8pzK715HXtUeClpBTw2NPSn6w==", "license": "MIT" }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, "node_modules/string-width": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", @@ -4980,6 +5557,43 @@ "node": ">=0.10.0" } }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tar-fs": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz", + "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==", + "license": "MIT", + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "license": "MIT", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/tinyexec": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz", @@ -4998,6 +5612,15 @@ "node": ">=8.0" } }, + "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==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, "node_modules/trim-lines": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", @@ -5045,6 +5668,18 @@ "license": "0BSD", "optional": true }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, "node_modules/type-fest": { "version": "4.41.0", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", @@ -5249,6 +5884,25 @@ "browserslist": ">= 4.21.0" } }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/uuid": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", + "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", + "funding": [ + "https://github.com/sponsors/broofa", + "https://github.com/sponsors/ctavan" + ], + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/vfile": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", @@ -5432,6 +6086,12 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, "node_modules/xxhash-wasm": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.1.0.tgz", -- 2.52.0