diff --git a/.gitignore b/.gitignore index e4ad37f..d615b46 100644 --- a/.gitignore +++ b/.gitignore @@ -40,6 +40,7 @@ yarn-error.log* # data folder /data + # random files **/*.pdf **/*.json diff --git a/package.json b/package.json index d6486dd..c935666 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "consort-frontend", - "version": "0.15.0", + "version": "0.17.0", "description": "", "engines": { "npm": ">=10", @@ -25,11 +25,13 @@ "lint:fix": "npm run lint -- --fix", "codegen": "./node_modules/.bin/openapi -i https://consort.clowderframework.org/clowder/swagger -o src/openapi/v1", "codegen:dev": "./node_modules/.bin/openapi -i {CLOWDER_REMOTE_HOSTNAME}/swagger -o src/openapi/v1", - "docs": "typedoc" + "docs": "typedoc", + "rctdb:examples": "babel-node src/utils/rctdb-client-example.js" }, "author": "NCSA", "dependencies": { "@allenai/pdf-components": "^1.0.1", + "axios": "^1.6.0", "@emotion/react": "^11.7.1", "@emotion/styled": "^11.6.0", "@material-ui/core": "^4.12.3", diff --git a/server/.templateenv b/server/.templateenv index e6a3bc9..be5c645 100644 --- a/server/.templateenv +++ b/server/.templateenv @@ -1,7 +1,18 @@ +# Database Configuration +PGSERVER='localhost' +PGPORT=5432 +PGUSER=postgres +PGPASSWORD=postgres +PGDATABASE=consort +PGSSL=false + +# Authentication Configuration CILOGON_CLIENT_ID= CILOGON_CLIENT_SECRET= CILOGON_CALLBACK_URL='' UI_URL= + +# Clowder Configuration CLOWDER_PREFIX='' CLOWDER_REMOTE_HOSTNAME= APIKEY= diff --git a/server/README.md b/server/README.md new file mode 100644 index 0000000..0910ee0 --- /dev/null +++ b/server/README.md @@ -0,0 +1,166 @@ +# CONSORT Server with Drizzle ORM + +This server uses Drizzle ORM with PostgreSQL to manage the CONSORT database schema. + +## Setup + +### 1. Environment Configuration + +Copy the template environment file and configure your database settings: + +```bash +cp .templateenv .env +``` + +Update the database configuration in `.env`: + +```env +# Database Configuration +PGSERVER='localhost' +PGPORT=5432 +PGUSER=postgres +PGPASSWORD=strong_password_here +PGDATABASE=consort +PGSSL=false +``` + +### 2. Database Setup + +Make sure you have PostgreSQL running and create the database: + +```sql +CREATE DATABASE consort; +``` + +### 3. Install Dependencies + +If you need drizzle-kit for advanced features: + +```bash +npm install drizzle-kit +``` + +### 4. Run Database Migration + +Initialize the database with the schema: + +```bash +npm run db:migrate +``` + +### 5. Test Database Connection + +```bash +npm run db:test +``` + +### 6. Check Database Health + +```bash +npm run db:health +``` + +## Usage + +### Starting the Server + +```bash +npm start +``` + +### Running Examples + +To see the database operations in action: + +```bash +npm run db:examples +``` + +### API Endpoints + +The server provides the following API endpoints: + +#### Users +- `GET /api/users` - Get all users +- `POST /api/users` - Create a new user +- `GET /api/users/:uuid` - Get user by UUID + +#### Publications +- `GET /api/publications` - Get all publications with user info +- `POST /api/publications` - Create a new publication +- `GET /api/publications/:uuid` - Get publication by UUID +- `GET /api/publications/:uuid/annotations` - Get annotations for a publication + +#### Annotations +- `POST /api/annotations` - Create a new annotation +- `PUT /api/annotations/:uuid` - Update an annotation + +#### Feedback +- `POST /api/feedback` - Create feedback for an annotation +- `GET /api/annotations/:uuid/feedback` - Get feedback for an annotation + +#### Health Check +- `GET /api/health` - Check database connection status + +## Database Schema + +The database schema includes the following tables: + +- **users** - User information +- **publication** - Research publications/papers +- **section** - Document sections +- **sentence** - Individual sentences with coordinates +- **annotation** - ML annotations for sentences +- **annotationfeedback** - User feedback on annotations +- **statement_section** - CONSORT/SPIRIT statement sections +- **statement_topic** - CONSORT/SPIRIT statement topics + +## File Structure + +``` +server/ +├── db/ +│ ├── schema.js # Drizzle ORM schema definitions +│ ├── connection.js # Database connection setup +│ ├── queries.js # Common database queries +│ ├── migrate.js # Database migration script +│ └── examples.js # Usage examples +├── routes/ +│ ├── api.js # API routes using Drizzle ORM +│ ├── auth.js # Authentication routes +│ └── index.js # Main routes +├── drizzle.config.js # Drizzle configuration +``` + +## Development + +### Query Operations + +Use the pre-built query functions from `db/queries.js`: + +```javascript +const { userQueries, publicationQueries } = require('./db/queries'); + +// Create a user +const user = await userQueries.createUser({ + name: 'John Doe', + email: 'john@example.com', + role: 'researcher' +}); + +// Get publications by user +const publications = await publicationQueries.getPublicationsByUser(userUuid); +``` + +### Direct Database Access + +For custom queries, use the database instance: + +```javascript +const { db } = require('./db/connection'); +const { users } = require('./db/schema'); +const { eq } = require('drizzle-orm'); + +const result = await db.select().from(users).where(eq(users.email, 'test@example.com')); +``` + diff --git a/server/app.js b/server/app.js index 34565d4..8aa751a 100644 --- a/server/app.js +++ b/server/app.js @@ -19,9 +19,39 @@ var SQLiteStore = require('connect-sqlite3')(session); var indexRouter = require('./routes/index'); var authRouter = require('./routes/auth'); +var rctdbRouter = require('./routes/rctdb'); + +// Import database connection and migration functions +var { rctdbTestConnection } = require('./rctdb/connection'); +var { rctdbMigrate } = require('./rctdb/migrate'); var app = express(); +// Database initialization function +async function initializeDatabase() { + try { + console.log('🔍 Testing database connection...'); + const isConnected = await rctdbTestConnection(); + + if (!isConnected) { + throw new Error('Database connection failed'); + } + + console.log('🚀 Running database migrations...'); + await rctdbMigrate(); + console.log('✅ Database initialized successfully'); + + } catch (error) { + console.error('❌ Database initialization failed:', error.message); + console.error('Application will continue but database features may not work properly'); + // Don't exit the process - let the app start even if DB fails + // This allows for graceful degradation + } +} + +// Initialize database on startup +initializeDatabase(); + // view engine setup app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); @@ -39,7 +69,13 @@ app.use(session({ saveUninitialized: false, // don't create session until something stored store: new SQLiteStore({ db: 'sessions.db', dir: './var/db' }) })); -app.use(csrf()); +// Apply CSRF protection to all routes except API routes +app.use((req, res, next) => { + if (req.path.startsWith('/api/rctdb')) { + return next(); + } + return csrf()(req, res, next); +}); app.use(passport.authenticate('session')); app.use(function(req, res, next) { var msgs = req.session.messages || []; @@ -49,6 +85,9 @@ app.use(function(req, res, next) { next(); }); app.use(function(req, res, next) { + if (req.path.startsWith('/api/rctdb')) { + return next(); + } res.locals.csrfToken = req.csrfToken(); next(); }); @@ -56,6 +95,7 @@ app.use(function(req, res, next) { //const baseUrl = process.env.BASE_URL; app.use('/', indexRouter); app.use('/', authRouter); +app.use('/api/rctdb', rctdbRouter); // redirect any other route back to home route / // app.use((req,res,next)=>{ diff --git a/server/drizzle.config.js b/server/drizzle.config.js new file mode 100644 index 0000000..cae1bc7 --- /dev/null +++ b/server/drizzle.config.js @@ -0,0 +1,19 @@ +require('dotenv').config(); + +module.exports = { + schema: './rctdb/schema.js', + out: './drizzle', + dialect: 'postgresql', + dbCredentials: { + host: process.env.PGSERVER || 'localhost', + port: process.env.PGPORT || 5432, + user: process.env.PGUSER || 'postgres', + password: process.env.PGPASSWORD, + database: process.env.PGDATABASE || 'consort', + ssl: process.env.PGSSL === 'true' ? { rejectUnauthorized: false } : false, + }, + migrations: { + table: 'drizzle_migrations', + schema: 'public' + } +}; diff --git a/server/drizzle/0000_ancient_albert_cleary.sql b/server/drizzle/0000_ancient_albert_cleary.sql new file mode 100644 index 0000000..bab4181 --- /dev/null +++ b/server/drizzle/0000_ancient_albert_cleary.sql @@ -0,0 +1,107 @@ +CREATE TABLE IF NOT EXISTS "users" ( + "useruuid" serial PRIMARY KEY NOT NULL, + "name" varchar NOT NULL, + "email" varchar NOT NULL, + "role" varchar DEFAULT 'author', + "createtime" timestamp DEFAULT now(), + "lastlogin" timestamp DEFAULT now(), + CONSTRAINT "users_name_unique" UNIQUE("name") +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "publication" ( + "publicationuuid" serial PRIMARY KEY NOT NULL, + "source" varchar DEFAULT 'clowder', + "sourcefileid" varchar NOT NULL, + "sourcefileformat" varchar NOT NULL, + "sourcefilename" varchar NOT NULL, + "sourcefileuploadtime" timestamp NOT NULL, + "datasetid" varchar NOT NULL, + "datasetname" varchar NOT NULL, + "statement" varchar DEFAULT 'consort' NOT NULL, + "pagewidth" real DEFAULT 500, + "pageheight" real DEFAULT 799, + "extractedpdffileid" varchar, + "extractedxmlfileid" varchar, + "extractedjsonfileid" varchar, + "extractedcsvfileid" varchar, + "inferencetime" timestamp, + "predictioncsvfileid" varchar, + "predictioncsvfilename" varchar, + "highlightsjsonfileid" varchar, + "highlightsjsonfilename" varchar, + "reportcsvfileid" varchar, + "reportcsvfilename" varchar, + "reportpdffileid" varchar, + "reportpdffilename" varchar, + "nummissed" integer, + "useruuid" integer NOT NULL, + "othermetadata" varchar, + CONSTRAINT "publication_datasetid_unique" UNIQUE("datasetid") +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "section" ( + "sectionuuid" serial PRIMARY KEY NOT NULL, + "publicationuuid" integer NOT NULL, + "sectionname" varchar DEFAULT '' +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "sentence" ( + "sentenceuuid" serial PRIMARY KEY NOT NULL, + "publicationuuid" integer NOT NULL, + "sectionuuid" integer NOT NULL, + "sentenceno" integer NOT NULL, + "sentencetext" varchar NOT NULL, + "coordinates" varchar, + "beginpage" integer, + "endpage" integer +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "statement_section" ( + "statementsectionuuid" serial PRIMARY KEY NOT NULL, + "publicationuuid" integer NOT NULL, + "statementsectionname" varchar, + "statementsectionnummissed" integer +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "statement_topic" ( + "statementtopicuuid" serial PRIMARY KEY NOT NULL, + "statementsectionuuid" integer NOT NULL, + "publicationuuid" integer NOT NULL, + "statementtopicname" varchar +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "annotation" ( + "annuuid" serial PRIMARY KEY NOT NULL, + "sentenceuuid" integer NOT NULL, + "publicationuuid" integer NOT NULL, + "statementtopicuuid" integer NOT NULL, + "label" varchar, + "labelscore" real DEFAULT 0, + "modelname" varchar, + "statementsectionname" varchar, + "statementtopicname" varchar +); +--> statement-breakpoint +CREATE TABLE IF NOT EXISTS "annotationfeedback" ( + "feedbackuuid" serial PRIMARY KEY NOT NULL, + "annuuid" integer NOT NULL, + "useruuid" integer NOT NULL, + "publicationuuid" integer NOT NULL, + "delete" boolean DEFAULT false, + "newlabel" varchar, + "time" timestamp +); +--> statement-breakpoint +ALTER TABLE "publication" ADD CONSTRAINT "publication_useruuid_users_useruuid_fk" FOREIGN KEY ("useruuid") REFERENCES "public"."users"("useruuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "section" ADD CONSTRAINT "section_publicationuuid_publication_publicationuuid_fk" FOREIGN KEY ("publicationuuid") REFERENCES "public"."publication"("publicationuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "sentence" ADD CONSTRAINT "sentence_publicationuuid_publication_publicationuuid_fk" FOREIGN KEY ("publicationuuid") REFERENCES "public"."publication"("publicationuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "sentence" ADD CONSTRAINT "sentence_sectionuuid_section_sectionuuid_fk" FOREIGN KEY ("sectionuuid") REFERENCES "public"."section"("sectionuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "statement_section" ADD CONSTRAINT "statement_section_publicationuuid_publication_publicationuuid_fk" FOREIGN KEY ("publicationuuid") REFERENCES "public"."publication"("publicationuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "statement_topic" ADD CONSTRAINT "statement_topic_statementsectionuuid_statement_section_statementsectionuuid_fk" FOREIGN KEY ("statementsectionuuid") REFERENCES "public"."statement_section"("statementsectionuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "statement_topic" ADD CONSTRAINT "statement_topic_publicationuuid_publication_publicationuuid_fk" FOREIGN KEY ("publicationuuid") REFERENCES "public"."publication"("publicationuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "annotation" ADD CONSTRAINT "annotation_sentenceuuid_sentence_sentenceuuid_fk" FOREIGN KEY ("sentenceuuid") REFERENCES "public"."sentence"("sentenceuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "annotation" ADD CONSTRAINT "annotation_publicationuuid_publication_publicationuuid_fk" FOREIGN KEY ("publicationuuid") REFERENCES "public"."publication"("publicationuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "annotation" ADD CONSTRAINT "annotation_statementtopicuuid_statement_topic_statementtopicuuid_fk" FOREIGN KEY ("statementtopicuuid") REFERENCES "public"."statement_topic"("statementtopicuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "annotationfeedback" ADD CONSTRAINT "annotationfeedback_annuuid_annotation_annuuid_fk" FOREIGN KEY ("annuuid") REFERENCES "public"."annotation"("annuuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "annotationfeedback" ADD CONSTRAINT "annotationfeedback_useruuid_users_useruuid_fk" FOREIGN KEY ("useruuid") REFERENCES "public"."users"("useruuid") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "annotationfeedback" ADD CONSTRAINT "annotationfeedback_publicationuuid_publication_publicationuuid_fk" FOREIGN KEY ("publicationuuid") REFERENCES "public"."publication"("publicationuuid") ON DELETE no action ON UPDATE no action; \ No newline at end of file diff --git a/server/drizzle/meta/0000_snapshot.json b/server/drizzle/meta/0000_snapshot.json new file mode 100644 index 0000000..7eab983 --- /dev/null +++ b/server/drizzle/meta/0000_snapshot.json @@ -0,0 +1,733 @@ +{ + "id": "b08fb748-16b2-4b80-86e5-3869fc05e4a0", + "prevId": "00000000-0000-0000-0000-000000000000", + "version": "7", + "dialect": "postgresql", + "tables": { + "public.users": { + "name": "users", + "schema": "", + "columns": { + "useruuid": { + "name": "useruuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "name": { + "name": "name", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "email": { + "name": "email", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "role": { + "name": "role", + "type": "varchar", + "primaryKey": false, + "notNull": false, + "default": "'author'" + }, + "createtime": { + "name": "createtime", + "type": "timestamp", + "primaryKey": false, + "notNull": false, + "default": "now()" + }, + "lastlogin": { + "name": "lastlogin", + "type": "timestamp", + "primaryKey": false, + "notNull": false, + "default": "now()" + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "users_name_unique": { + "name": "users_name_unique", + "nullsNotDistinct": false, + "columns": [ + "name" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.publication": { + "name": "publication", + "schema": "", + "columns": { + "publicationuuid": { + "name": "publicationuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "source": { + "name": "source", + "type": "varchar", + "primaryKey": false, + "notNull": false, + "default": "'clowder'" + }, + "sourcefileid": { + "name": "sourcefileid", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "sourcefileformat": { + "name": "sourcefileformat", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "sourcefilename": { + "name": "sourcefilename", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "sourcefileuploadtime": { + "name": "sourcefileuploadtime", + "type": "timestamp", + "primaryKey": false, + "notNull": true + }, + "datasetid": { + "name": "datasetid", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "datasetname": { + "name": "datasetname", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "statement": { + "name": "statement", + "type": "varchar", + "primaryKey": false, + "notNull": true, + "default": "'consort'" + }, + "pagewidth": { + "name": "pagewidth", + "type": "real", + "primaryKey": false, + "notNull": false, + "default": 500 + }, + "pageheight": { + "name": "pageheight", + "type": "real", + "primaryKey": false, + "notNull": false, + "default": 799 + }, + "extractedpdffileid": { + "name": "extractedpdffileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "extractedxmlfileid": { + "name": "extractedxmlfileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "extractedjsonfileid": { + "name": "extractedjsonfileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "extractedcsvfileid": { + "name": "extractedcsvfileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "inferencetime": { + "name": "inferencetime", + "type": "timestamp", + "primaryKey": false, + "notNull": false + }, + "predictioncsvfileid": { + "name": "predictioncsvfileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "predictioncsvfilename": { + "name": "predictioncsvfilename", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "highlightsjsonfileid": { + "name": "highlightsjsonfileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "highlightsjsonfilename": { + "name": "highlightsjsonfilename", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "reportcsvfileid": { + "name": "reportcsvfileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "reportcsvfilename": { + "name": "reportcsvfilename", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "reportpdffileid": { + "name": "reportpdffileid", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "reportpdffilename": { + "name": "reportpdffilename", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "nummissed": { + "name": "nummissed", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "useruuid": { + "name": "useruuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "othermetadata": { + "name": "othermetadata", + "type": "varchar", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "publication_useruuid_users_useruuid_fk": { + "name": "publication_useruuid_users_useruuid_fk", + "tableFrom": "publication", + "tableTo": "users", + "columnsFrom": [ + "useruuid" + ], + "columnsTo": [ + "useruuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": { + "publication_datasetid_unique": { + "name": "publication_datasetid_unique", + "nullsNotDistinct": false, + "columns": [ + "datasetid" + ] + } + }, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.section": { + "name": "section", + "schema": "", + "columns": { + "sectionuuid": { + "name": "sectionuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "publicationuuid": { + "name": "publicationuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "sectionname": { + "name": "sectionname", + "type": "varchar", + "primaryKey": false, + "notNull": false, + "default": "''" + } + }, + "indexes": {}, + "foreignKeys": { + "section_publicationuuid_publication_publicationuuid_fk": { + "name": "section_publicationuuid_publication_publicationuuid_fk", + "tableFrom": "section", + "tableTo": "publication", + "columnsFrom": [ + "publicationuuid" + ], + "columnsTo": [ + "publicationuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.sentence": { + "name": "sentence", + "schema": "", + "columns": { + "sentenceuuid": { + "name": "sentenceuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "publicationuuid": { + "name": "publicationuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "sectionuuid": { + "name": "sectionuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "sentenceno": { + "name": "sentenceno", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "sentencetext": { + "name": "sentencetext", + "type": "varchar", + "primaryKey": false, + "notNull": true + }, + "coordinates": { + "name": "coordinates", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "beginpage": { + "name": "beginpage", + "type": "integer", + "primaryKey": false, + "notNull": false + }, + "endpage": { + "name": "endpage", + "type": "integer", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "sentence_publicationuuid_publication_publicationuuid_fk": { + "name": "sentence_publicationuuid_publication_publicationuuid_fk", + "tableFrom": "sentence", + "tableTo": "publication", + "columnsFrom": [ + "publicationuuid" + ], + "columnsTo": [ + "publicationuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "sentence_sectionuuid_section_sectionuuid_fk": { + "name": "sentence_sectionuuid_section_sectionuuid_fk", + "tableFrom": "sentence", + "tableTo": "section", + "columnsFrom": [ + "sectionuuid" + ], + "columnsTo": [ + "sectionuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.statement_section": { + "name": "statement_section", + "schema": "", + "columns": { + "statementsectionuuid": { + "name": "statementsectionuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "publicationuuid": { + "name": "publicationuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "statementsectionname": { + "name": "statementsectionname", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "statementsectionnummissed": { + "name": "statementsectionnummissed", + "type": "integer", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "statement_section_publicationuuid_publication_publicationuuid_fk": { + "name": "statement_section_publicationuuid_publication_publicationuuid_fk", + "tableFrom": "statement_section", + "tableTo": "publication", + "columnsFrom": [ + "publicationuuid" + ], + "columnsTo": [ + "publicationuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.statement_topic": { + "name": "statement_topic", + "schema": "", + "columns": { + "statementtopicuuid": { + "name": "statementtopicuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "statementsectionuuid": { + "name": "statementsectionuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "publicationuuid": { + "name": "publicationuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "statementtopicname": { + "name": "statementtopicname", + "type": "varchar", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "statement_topic_statementsectionuuid_statement_section_statementsectionuuid_fk": { + "name": "statement_topic_statementsectionuuid_statement_section_statementsectionuuid_fk", + "tableFrom": "statement_topic", + "tableTo": "statement_section", + "columnsFrom": [ + "statementsectionuuid" + ], + "columnsTo": [ + "statementsectionuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "statement_topic_publicationuuid_publication_publicationuuid_fk": { + "name": "statement_topic_publicationuuid_publication_publicationuuid_fk", + "tableFrom": "statement_topic", + "tableTo": "publication", + "columnsFrom": [ + "publicationuuid" + ], + "columnsTo": [ + "publicationuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.annotation": { + "name": "annotation", + "schema": "", + "columns": { + "annuuid": { + "name": "annuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "sentenceuuid": { + "name": "sentenceuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "publicationuuid": { + "name": "publicationuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "statementtopicuuid": { + "name": "statementtopicuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "label": { + "name": "label", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "labelscore": { + "name": "labelscore", + "type": "real", + "primaryKey": false, + "notNull": false, + "default": 0 + }, + "modelname": { + "name": "modelname", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "statementsectionname": { + "name": "statementsectionname", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "statementtopicname": { + "name": "statementtopicname", + "type": "varchar", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "annotation_sentenceuuid_sentence_sentenceuuid_fk": { + "name": "annotation_sentenceuuid_sentence_sentenceuuid_fk", + "tableFrom": "annotation", + "tableTo": "sentence", + "columnsFrom": [ + "sentenceuuid" + ], + "columnsTo": [ + "sentenceuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "annotation_publicationuuid_publication_publicationuuid_fk": { + "name": "annotation_publicationuuid_publication_publicationuuid_fk", + "tableFrom": "annotation", + "tableTo": "publication", + "columnsFrom": [ + "publicationuuid" + ], + "columnsTo": [ + "publicationuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "annotation_statementtopicuuid_statement_topic_statementtopicuuid_fk": { + "name": "annotation_statementtopicuuid_statement_topic_statementtopicuuid_fk", + "tableFrom": "annotation", + "tableTo": "statement_topic", + "columnsFrom": [ + "statementtopicuuid" + ], + "columnsTo": [ + "statementtopicuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + }, + "public.annotationfeedback": { + "name": "annotationfeedback", + "schema": "", + "columns": { + "feedbackuuid": { + "name": "feedbackuuid", + "type": "serial", + "primaryKey": true, + "notNull": true + }, + "annuuid": { + "name": "annuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "useruuid": { + "name": "useruuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "publicationuuid": { + "name": "publicationuuid", + "type": "integer", + "primaryKey": false, + "notNull": true + }, + "delete": { + "name": "delete", + "type": "boolean", + "primaryKey": false, + "notNull": false, + "default": false + }, + "newlabel": { + "name": "newlabel", + "type": "varchar", + "primaryKey": false, + "notNull": false + }, + "time": { + "name": "time", + "type": "timestamp", + "primaryKey": false, + "notNull": false + } + }, + "indexes": {}, + "foreignKeys": { + "annotationfeedback_annuuid_annotation_annuuid_fk": { + "name": "annotationfeedback_annuuid_annotation_annuuid_fk", + "tableFrom": "annotationfeedback", + "tableTo": "annotation", + "columnsFrom": [ + "annuuid" + ], + "columnsTo": [ + "annuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "annotationfeedback_useruuid_users_useruuid_fk": { + "name": "annotationfeedback_useruuid_users_useruuid_fk", + "tableFrom": "annotationfeedback", + "tableTo": "users", + "columnsFrom": [ + "useruuid" + ], + "columnsTo": [ + "useruuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + }, + "annotationfeedback_publicationuuid_publication_publicationuuid_fk": { + "name": "annotationfeedback_publicationuuid_publication_publicationuuid_fk", + "tableFrom": "annotationfeedback", + "tableTo": "publication", + "columnsFrom": [ + "publicationuuid" + ], + "columnsTo": [ + "publicationuuid" + ], + "onDelete": "no action", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "policies": {}, + "checkConstraints": {}, + "isRLSEnabled": false + } + }, + "enums": {}, + "schemas": {}, + "sequences": {}, + "roles": {}, + "policies": {}, + "views": {}, + "_meta": { + "columns": {}, + "schemas": {}, + "tables": {} + } +} \ No newline at end of file diff --git a/server/drizzle/meta/_journal.json b/server/drizzle/meta/_journal.json new file mode 100644 index 0000000..284fc26 --- /dev/null +++ b/server/drizzle/meta/_journal.json @@ -0,0 +1,13 @@ +{ + "version": "7", + "dialect": "postgresql", + "entries": [ + { + "idx": 0, + "version": "7", + "when": 1756250001283, + "tag": "0000_ancient_albert_cleary", + "breakpoints": true + } + ] +} \ No newline at end of file diff --git a/server/package-lock.json b/server/package-lock.json index e38f53f..a47be1b 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -1,829 +1,230 @@ { "name": "consort-server", - "version": "0.1.0", - "lockfileVersion": 3, + "version": "0.2.1", + "lockfileVersion": 1, "requires": true, - "packages": { - "": { - "name": "consort-server", - "version": "0.1.0", - "license": "Unlicense", - "dependencies": { - "connect-ensure-login": "^0.1.1", - "connect-sqlite3": "^0.9.13", - "cookie-parser": "~1.4.4", - "csurf": "^1.11.0", - "debug": "~2.6.9", - "dotenv": "^8.6.0", - "drizzle-kit": "^0.31.4", - "drizzle-orm": "^0.44.4", - "ejs": "~3.1.10", - "express": "~4.16.1", - "express-session": "^1.17.2", - "http-errors": "~1.6.3", - "mkdirp": "^1.0.4", - "morgan": "~1.9.1", - "node-fetch": "^2.6.12", - "passport": "^0.6.0", - "passport-google-oidc": "^0.1.0", - "passport-oauth2": "^1.7.0", - "pg": "^8.16.3", - "pluralize": "^8.0.0", - "sqlite3": "^5.0.2" - } - }, - "node_modules/@drizzle-team/brocli": { + "dependencies": { + "@drizzle-team/brocli": { "version": "0.10.2", "resolved": "https://registry.npmjs.org/@drizzle-team/brocli/-/brocli-0.10.2.tgz", "integrity": "sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==" }, - "node_modules/@esbuild-kit/core-utils": { + "@esbuild-kit/core-utils": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/@esbuild-kit/core-utils/-/core-utils-3.3.2.tgz", "integrity": "sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==", - "deprecated": "Merged into tsx: https://tsx.is", - "dependencies": { + "requires": { "esbuild": "~0.18.20", "source-map-support": "^0.5.21" + }, + "dependencies": { + "esbuild": { + "version": "0.18.20", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", + "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", + "requires": { + "@esbuild/android-arm": "0.18.20", + "@esbuild/android-arm64": "0.18.20", + "@esbuild/android-x64": "0.18.20", + "@esbuild/darwin-arm64": "0.18.20", + "@esbuild/darwin-x64": "0.18.20", + "@esbuild/freebsd-arm64": "0.18.20", + "@esbuild/freebsd-x64": "0.18.20", + "@esbuild/linux-arm": "0.18.20", + "@esbuild/linux-arm64": "0.18.20", + "@esbuild/linux-ia32": "0.18.20", + "@esbuild/linux-loong64": "0.18.20", + "@esbuild/linux-mips64el": "0.18.20", + "@esbuild/linux-ppc64": "0.18.20", + "@esbuild/linux-riscv64": "0.18.20", + "@esbuild/linux-s390x": "0.18.20", + "@esbuild/linux-x64": "0.18.20", + "@esbuild/netbsd-x64": "0.18.20", + "@esbuild/openbsd-x64": "0.18.20", + "@esbuild/sunos-x64": "0.18.20", + "@esbuild/win32-arm64": "0.18.20", + "@esbuild/win32-ia32": "0.18.20", + "@esbuild/win32-x64": "0.18.20" + } + } } }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/android-arm": { + "@esbuild-kit/esm-loader": { + "version": "2.6.5", + "resolved": "https://registry.npmjs.org/@esbuild-kit/esm-loader/-/esm-loader-2.6.5.tgz", + "integrity": "sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==", + "requires": { + "@esbuild-kit/core-utils": "^3.3.2", + "get-tsconfig": "^4.7.0" + } + }, + "@esbuild/aix-ppc64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.8.tgz", + "integrity": "sha512-urAvrUedIqEiFR3FYSLTWQgLu5tb+m0qZw0NBEasUeo6wuqatkMDaRT+1uABiGXEu5vqgPd7FGE1BhsAIy9QVA==", + "optional": true + }, + "@esbuild/android-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz", "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/android-arm64": { + "@esbuild/android-arm64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz", "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/android-x64": { + "@esbuild/android-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz", "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/darwin-arm64": { + "@esbuild/darwin-arm64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz", "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/darwin-x64": { + "@esbuild/darwin-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz", "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/freebsd-arm64": { + "@esbuild/freebsd-arm64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz", "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/freebsd-x64": { + "@esbuild/freebsd-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz", "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-arm": { + "@esbuild/linux-arm": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz", "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-arm64": { + "@esbuild/linux-arm64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz", "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-ia32": { + "@esbuild/linux-ia32": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz", "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-loong64": { + "@esbuild/linux-loong64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz", "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==", - "cpu": [ - "loong64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-mips64el": { + "@esbuild/linux-mips64el": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz", "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==", - "cpu": [ - "mips64el" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-ppc64": { + "@esbuild/linux-ppc64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz", "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-riscv64": { + "@esbuild/linux-riscv64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz", "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==", - "cpu": [ - "riscv64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-s390x": { + "@esbuild/linux-s390x": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz", "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==", - "cpu": [ - "s390x" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/linux-x64": { + "@esbuild/linux-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz", "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/netbsd-x64": { + "@esbuild/netbsd-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.8.tgz", + "integrity": "sha512-d1KfruIeohqAi6SA+gENMuObDbEjn22olAR7egqnkCD9DGBG0wsEARotkLgXDu6c4ncgWTZJtN5vcgxzWRMzcw==", + "optional": true + }, + "@esbuild/netbsd-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz", "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/openbsd-x64": { + "@esbuild/openbsd-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.8.tgz", + "integrity": "sha512-j8HgrDuSJFAujkivSMSfPQSAa5Fxbvk4rgNAS5i3K+r8s1X0p1uOO2Hl2xNsGFppOeHOLAVgYwDVlmxhq5h+SQ==", + "optional": true + }, + "@esbuild/openbsd-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz", "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } + "optional": true + }, + "@esbuild/openharmony-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.8.tgz", + "integrity": "sha512-r2nVa5SIK9tSWd0kJd9HCffnDHKchTGikb//9c7HX+r+wHYCpQrSgxhlY6KWV1nFo1l4KFbsMlHk+L6fekLsUg==", + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/sunos-x64": { + "@esbuild/sunos-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz", "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/win32-arm64": { + "@esbuild/win32-arm64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz", "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/win32-ia32": { + "@esbuild/win32-ia32": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz", "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } + "optional": true }, - "node_modules/@esbuild-kit/core-utils/node_modules/@esbuild/win32-x64": { + "@esbuild/win32-x64": { "version": "0.18.20", "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz", "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild-kit/core-utils/node_modules/esbuild": { - "version": "0.18.20", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz", - "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==", - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=12" - }, - "optionalDependencies": { - "@esbuild/android-arm": "0.18.20", - "@esbuild/android-arm64": "0.18.20", - "@esbuild/android-x64": "0.18.20", - "@esbuild/darwin-arm64": "0.18.20", - "@esbuild/darwin-x64": "0.18.20", - "@esbuild/freebsd-arm64": "0.18.20", - "@esbuild/freebsd-x64": "0.18.20", - "@esbuild/linux-arm": "0.18.20", - "@esbuild/linux-arm64": "0.18.20", - "@esbuild/linux-ia32": "0.18.20", - "@esbuild/linux-loong64": "0.18.20", - "@esbuild/linux-mips64el": "0.18.20", - "@esbuild/linux-ppc64": "0.18.20", - "@esbuild/linux-riscv64": "0.18.20", - "@esbuild/linux-s390x": "0.18.20", - "@esbuild/linux-x64": "0.18.20", - "@esbuild/netbsd-x64": "0.18.20", - "@esbuild/openbsd-x64": "0.18.20", - "@esbuild/sunos-x64": "0.18.20", - "@esbuild/win32-arm64": "0.18.20", - "@esbuild/win32-ia32": "0.18.20", - "@esbuild/win32-x64": "0.18.20" - } - }, - "node_modules/@esbuild-kit/esm-loader": { - "version": "2.6.5", - "resolved": "https://registry.npmjs.org/@esbuild-kit/esm-loader/-/esm-loader-2.6.5.tgz", - "integrity": "sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==", - "deprecated": "Merged into tsx: https://tsx.is", - "dependencies": { - "@esbuild-kit/core-utils": "^3.3.2", - "get-tsconfig": "^4.7.0" - } - }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.8.tgz", - "integrity": "sha512-urAvrUedIqEiFR3FYSLTWQgLu5tb+m0qZw0NBEasUeo6wuqatkMDaRT+1uABiGXEu5vqgPd7FGE1BhsAIy9QVA==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.8.tgz", - "integrity": "sha512-RONsAvGCz5oWyePVnLdZY/HHwA++nxYWIX1atInlaW6SEkwq6XkP3+cb825EUcRs5Vss/lGh/2YxAb5xqc07Uw==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.8.tgz", - "integrity": "sha512-OD3p7LYzWpLhZEyATcTSJ67qB5D+20vbtr6vHlHWSQYhKtzUYrETuWThmzFpZtFsBIxRvhO07+UgVA9m0i/O1w==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.8.tgz", - "integrity": "sha512-yJAVPklM5+4+9dTeKwHOaA+LQkmrKFX96BM0A/2zQrbS6ENCmxc4OVoBs5dPkCCak2roAD+jKCdnmOqKszPkjA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.8.tgz", - "integrity": "sha512-Jw0mxgIaYX6R8ODrdkLLPwBqHTtYHJSmzzd+QeytSugzQ0Vg4c5rDky5VgkoowbZQahCbsv1rT1KW72MPIkevw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.8.tgz", - "integrity": "sha512-Vh2gLxxHnuoQ+GjPNvDSDRpoBCUzY4Pu0kBqMBDlK4fuWbKgGtmDIeEC081xi26PPjn+1tct+Bh8FjyLlw1Zlg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.8.tgz", - "integrity": "sha512-YPJ7hDQ9DnNe5vxOm6jaie9QsTwcKedPvizTVlqWG9GBSq+BuyWEDazlGaDTC5NGU4QJd666V0yqCBL2oWKPfA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.8.tgz", - "integrity": "sha512-MmaEXxQRdXNFsRN/KcIimLnSJrk2r5H8v+WVafRWz5xdSVmWLoITZQXcgehI2ZE6gioE6HirAEToM/RvFBeuhw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.8.tgz", - "integrity": "sha512-FuzEP9BixzZohl1kLf76KEVOsxtIBFwCaLupVuk4eFVnOZfU+Wsn+x5Ryam7nILV2pkq2TqQM9EZPsOBuMC+kg==", - "cpu": [ - "arm" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.8.tgz", - "integrity": "sha512-WIgg00ARWv/uYLU7lsuDK00d/hHSfES5BzdWAdAig1ioV5kaFNrtK8EqGcUBJhYqotlUByUKz5Qo6u8tt7iD/w==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.8.tgz", - "integrity": "sha512-A1D9YzRX1i+1AJZuFFUMP1E9fMaYY+GnSQil9Tlw05utlE86EKTUA7RjwHDkEitmLYiFsRd9HwKBPEftNdBfjg==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.8.tgz", - "integrity": "sha512-O7k1J/dwHkY1RMVvglFHl1HzutGEFFZ3kNiDMSOyUrB7WcoHGf96Sh+64nTRT26l3GMbCW01Ekh/ThKM5iI7hQ==", - "cpu": [ - "loong64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.8.tgz", - "integrity": "sha512-uv+dqfRazte3BzfMp8PAQXmdGHQt2oC/y2ovwpTteqrMx2lwaksiFZ/bdkXJC19ttTvNXBuWH53zy/aTj1FgGw==", - "cpu": [ - "mips64el" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.8.tgz", - "integrity": "sha512-GyG0KcMi1GBavP5JgAkkstMGyMholMDybAf8wF5A70CALlDM2p/f7YFE7H92eDeH/VBtFJA5MT4nRPDGg4JuzQ==", - "cpu": [ - "ppc64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.8.tgz", - "integrity": "sha512-rAqDYFv3yzMrq7GIcen3XP7TUEG/4LK86LUPMIz6RT8A6pRIDn0sDcvjudVZBiiTcZCY9y2SgYX2lgK3AF+1eg==", - "cpu": [ - "riscv64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.8.tgz", - "integrity": "sha512-Xutvh6VjlbcHpsIIbwY8GVRbwoviWT19tFhgdA7DlenLGC/mbc3lBoVb7jxj9Z+eyGqvcnSyIltYUrkKzWqSvg==", - "cpu": [ - "s390x" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.8.tgz", - "integrity": "sha512-ASFQhgY4ElXh3nDcOMTkQero4b1lgubskNlhIfJrsH5OKZXDpUAKBlNS0Kx81jwOBp+HCeZqmoJuihTv57/jvQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.8.tgz", - "integrity": "sha512-d1KfruIeohqAi6SA+gENMuObDbEjn22olAR7egqnkCD9DGBG0wsEARotkLgXDu6c4ncgWTZJtN5vcgxzWRMzcw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.8.tgz", - "integrity": "sha512-nVDCkrvx2ua+XQNyfrujIG38+YGyuy2Ru9kKVNyh5jAys6n+l44tTtToqHjino2My8VAY6Lw9H7RI73XFi66Cg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.8.tgz", - "integrity": "sha512-j8HgrDuSJFAujkivSMSfPQSAa5Fxbvk4rgNAS5i3K+r8s1X0p1uOO2Hl2xNsGFppOeHOLAVgYwDVlmxhq5h+SQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.8.tgz", - "integrity": "sha512-1h8MUAwa0VhNCDp6Af0HToI2TJFAn1uqT9Al6DJVzdIBAd21m/G0Yfc77KDM3uF3T/YaOgQq3qTJHPbTOInaIQ==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.8.tgz", - "integrity": "sha512-r2nVa5SIK9tSWd0kJd9HCffnDHKchTGikb//9c7HX+r+wHYCpQrSgxhlY6KWV1nFo1l4KFbsMlHk+L6fekLsUg==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.8.tgz", - "integrity": "sha512-zUlaP2S12YhQ2UzUfcCuMDHQFJyKABkAjvO5YSndMiIkMimPmxA+BYSBikWgsRpvyxuRnow4nS5NPnf9fpv41w==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.8.tgz", - "integrity": "sha512-YEGFFWESlPva8hGL+zvj2z/SaK+pH0SwOM0Nc/d+rVnW7GSTFlLBGzZkuSU9kFIGIo8q9X3ucpZhu8PDN5A2sQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.8.tgz", - "integrity": "sha512-hiGgGC6KZ5LZz58OL/+qVVoZiuZlUYlYHNAmczOm7bs2oE1XriPFi5ZHHrS8ACpV5EjySrnoCKmcbQMN+ojnHg==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.8", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.8.tgz", - "integrity": "sha512-cn3Yr7+OaaZq1c+2pe+8yxC8E144SReCQjN6/2ynubzYjvyqZjTXfQJpAcQpsdJq3My7XADANiYGHoFC69pLQw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } + "optional": true }, - "node_modules/@gar/promisify": { + "@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "optional": true }, - "node_modules/@mapbox/node-pre-gyp": { + "@mapbox/node-pre-gyp": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", - "dependencies": { + "requires": { "detect-libc": "^2.0.0", "https-proxy-agent": "^5.0.0", "make-dir": "^3.1.0", @@ -834,237 +235,194 @@ "semver": "^7.3.5", "tar": "^6.1.11" }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/@mapbox/node-pre-gyp/node_modules/node-fetch": { - "version": "2.6.12", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", - "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true + "node-fetch": { + "version": "2.6.12", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", + "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", + "requires": { + "whatwg-url": "^5.0.0" + } } } }, - "node_modules/@npmcli/fs": { + "@npmcli/fs": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", "optional": true, - "dependencies": { + "requires": { "@gar/promisify": "^1.0.1", "semver": "^7.3.5" } }, - "node_modules/@npmcli/move-file": { + "@npmcli/move-file": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", - "deprecated": "This functionality has been moved to @npmcli/fs", "optional": true, - "dependencies": { + "requires": { "mkdirp": "^1.0.4", "rimraf": "^3.0.2" - }, - "engines": { - "node": ">=10" } }, - "node_modules/@tootallnate/once": { + "@tootallnate/once": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "optional": true, - "engines": { - "node": ">= 6" + "optional": true + }, + "@types/node": { + "version": "24.2.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.0.tgz", + "integrity": "sha512-3xyG3pMCq3oYCNg7/ZP+E1ooTaGB4cG8JWRsqqOYQdbWNY4zbaV0Ennrd7stjiJEFZCaybcIgpTjJWHRfBSIDw==", + "dev": true, + "requires": { + "undici-types": "~7.10.0" } }, - "node_modules/abbrev": { + "@types/pg": { + "version": "8.15.5", + "resolved": "https://registry.npmjs.org/@types/pg/-/pg-8.15.5.tgz", + "integrity": "sha512-LF7lF6zWEKxuT3/OR8wAZGzkg4ENGXFNyiV/JeOt9z5B+0ZVwbql9McqX5c/WStFq1GaGso7H1AzP/qSzmlCKQ==", + "dev": true, + "requires": { + "@types/node": "*", + "pg-protocol": "*", + "pg-types": "^2.2.0" + } + }, + "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==" }, - "node_modules/accepts": { + "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==", - "dependencies": { + "requires": { "mime-types": "~2.1.34", "negotiator": "0.6.3" - }, - "engines": { - "node": ">= 0.6" } }, - "node_modules/agent-base": { + "agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dependencies": { + "requires": { "debug": "4" }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/agent-base/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } } } }, - "node_modules/agentkeepalive": { + "agentkeepalive": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.3.0.tgz", "integrity": "sha512-7Epl1Blf4Sy37j4v9f9FjICCh4+KAQOyXgHEwlyBiAQLbhKdq/i2QQU3amQalS/wPhdPzDXPL5DMR5bkn+YeWg==", "optional": true, - "dependencies": { + "requires": { "debug": "^4.1.0", "depd": "^2.0.0", "humanize-ms": "^1.2.1" }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/agentkeepalive/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "optional": true, "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "requires": { + "ms": "2.1.2" + } } } }, - "node_modules/aggregate-error": { + "aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", "optional": true, - "dependencies": { + "requires": { "clean-stack": "^2.0.0", "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/ansi-regex": { + "ansi-regex": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" }, - "node_modules/ansi-styles": { + "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "license": "MIT", - "dependencies": { + "requires": { "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/aproba": { + "aproba": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==" }, - "node_modules/are-we-there-yet": { + "are-we-there-yet": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "deprecated": "This package is no longer supported.", - "dependencies": { + "requires": { "delegates": "^1.0.0", "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10" } }, - "node_modules/array-flatten": { + "array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==" }, - "node_modules/async": { + "async": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", - "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", - "license": "MIT" + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==" }, - "node_modules/balanced-match": { + "balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, - "node_modules/base64url": { + "base64url": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/base64url/-/base64url-3.0.1.tgz", - "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==", - "engines": { - "node": ">=6.0.0" - } + "integrity": "sha512-ir1UPr3dkwexU7FdV8qBBbNDRUhMmIekYMFZfi+C/sLNnRESKPl23nB9b2pltqfOQNnGzsDdId90AEtG5tCx4A==" }, - "node_modules/basic-auth": { + "basic-auth": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", - "dependencies": { + "requires": { "safe-buffer": "5.1.2" }, - "engines": { - "node": ">= 0.8" + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } } }, - "node_modules/basic-auth/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/body-parser": { + "body-parser": { "version": "1.18.3", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", "integrity": "sha512-YQyoqQG3sO8iCmf8+hyVpgHHOv0/hCEFiS4zTGUwTA1HjAFX66wRcNQrVCeJq9pgESMRvUAOvSil5MJlmccuKQ==", - "license": "MIT", - "dependencies": { + "requires": { "bytes": "3.0.0", "content-type": "~1.0.4", "debug": "2.6.9", @@ -1076,60 +434,47 @@ "raw-body": "2.3.3", "type-is": "~1.6.16" }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/body-parser/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/body-parser/node_modules/iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", - "license": "MIT", "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } } }, - "node_modules/brace-expansion": { + "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { + "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, - "node_modules/buffer-from": { + "buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" }, - "node_modules/bytes": { + "bytes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" }, - "node_modules/cacache": { + "cacache": { "version": "15.3.0", "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", "optional": true, - "dependencies": { + "requires": { "@npmcli/fs": "^1.0.0", "@npmcli/move-file": "^1.0.1", "chownr": "^2.0.0", @@ -1149,468 +494,258 @@ "tar": "^6.0.2", "unique-filename": "^1.1.1" }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/cacache/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/chalk": { + "chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "license": "MIT", - "dependencies": { + "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/chownr": { + "chownr": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "engines": { - "node": ">=10" - } + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==" }, - "node_modules/clean-stack": { + "clean-stack": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "optional": true, - "engines": { - "node": ">=6" - } + "optional": true }, - "node_modules/color-convert": { + "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "license": "MIT", - "dependencies": { + "requires": { "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" } }, - "node_modules/color-name": { + "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "license": "MIT" + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "node_modules/color-support": { + "color-support": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "bin": { - "color-support": "bin.js" - } + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==" }, - "node_modules/concat-map": { + "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, - "node_modules/connect-ensure-login": { + "connect-ensure-login": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/connect-ensure-login/-/connect-ensure-login-0.1.1.tgz", - "integrity": "sha512-u0LGY/YXgkqdD4uVz8Gkri0adby5SBPYIFQvIa4FjBIaZUN0yuZPVHsjAA2bUiprGyjh8NlqxPUcIzzfTiXhQQ==", - "engines": { - "node": ">= 0.4.0" - } + "integrity": "sha512-u0LGY/YXgkqdD4uVz8Gkri0adby5SBPYIFQvIa4FjBIaZUN0yuZPVHsjAA2bUiprGyjh8NlqxPUcIzzfTiXhQQ==" }, - "node_modules/connect-sqlite3": { + "connect-sqlite3": { "version": "0.9.13", "resolved": "https://registry.npmjs.org/connect-sqlite3/-/connect-sqlite3-0.9.13.tgz", "integrity": "sha512-4Dif7wjNutcAsvvl85nqApIa3gViEnN6lKOcEBEtuL9JB1DIq1bREcq0pQCc1oCpSvDGpjsFs0doftzGFc4cmQ==", - "dependencies": { + "requires": { "sqlite3": "^5.0.2" - }, - "engines": { - "node": ">=0.4.x" } }, - "node_modules/console-control-strings": { + "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==" }, - "node_modules/content-disposition": { + "content-disposition": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", - "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-kRGRZw3bLlFISDBgwTSA1TMBFN6J6GWDeubmDE3AF+3+yXL8hTWv8r5rkLbqYXY4RjPk/EzHnClI3zQf1cFmHA==" }, - "node_modules/content-type": { + "content-type": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", - "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==" }, - "node_modules/cookie": { + "cookie": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-ZwrFkGJxUR3EIoXtO+yVE69Eb7KlixbaeAWfBQB9vVsNn/o+Yw69gBWSSDK825hQNdN+wF8zELf3dFNl/kxkUA==" }, - "node_modules/cookie-parser": { + "cookie-parser": { "version": "1.4.6", "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.6.tgz", "integrity": "sha512-z3IzaNjdwUC2olLIB5/ITd0/setiaFMLYiZJle7xg5Fe9KWAceil7xszYfHHBtDFYLSgJduS2Ty0P1uJdPDJeA==", - "dependencies": { + "requires": { "cookie": "0.4.1", "cookie-signature": "1.0.6" - }, - "engines": { - "node": ">= 0.8.0" } }, - "node_modules/cookie-signature": { + "cookie-signature": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" }, - "node_modules/csrf": { + "csrf": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/csrf/-/csrf-3.1.0.tgz", "integrity": "sha512-uTqEnCvWRk042asU6JtapDTcJeeailFy4ydOQS28bj1hcLnYRiqi8SsD2jS412AY1I/4qdOwWZun774iqywf9w==", - "dependencies": { + "requires": { "rndm": "1.2.0", "tsscmp": "1.0.6", "uid-safe": "2.1.5" - }, - "engines": { - "node": ">= 0.8" } }, - "node_modules/csurf": { + "csurf": { "version": "1.11.0", "resolved": "https://registry.npmjs.org/csurf/-/csurf-1.11.0.tgz", "integrity": "sha512-UCtehyEExKTxgiu8UHdGvHj4tnpE/Qctue03Giq5gPgMQ9cg/ciod5blZQ5a4uCEenNQjxyGuzygLdKUmee/bQ==", - "deprecated": "This package is archived and no longer maintained. For support, visit https://github.com/expressjs/express/discussions", - "dependencies": { + "requires": { "cookie": "0.4.0", "cookie-signature": "1.0.6", "csrf": "3.1.0", - "http-errors": "~1.7.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/csurf/node_modules/cookie": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", - "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/csurf/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/csurf/node_modules/http-errors": { - "version": "1.7.3", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", - "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", - "dependencies": { - "depd": "~1.1.2", - "inherits": "2.0.4", - "setprototypeof": "1.1.1", - "statuses": ">= 1.5.0 < 2", - "toidentifier": "1.0.0" + "http-errors": "~1.7.3" }, - "engines": { - "node": ">= 0.6" + "dependencies": { + "cookie": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", + "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "http-errors": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", + "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.1.1", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.0" + } + } } }, - "node_modules/debug": { + "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { + "requires": { "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + } } }, - "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==" - }, - "node_modules/delegates": { + "delegates": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==" }, - "node_modules/depd": { + "depd": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==" }, - "node_modules/destroy": { + "destroy": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha512-3NdhDuEXnfun/z7x9GOElY49LoqVHoGScmOKwmxhsS8N5Y+Z8KyPPDnaSzqWgYt/ji4mqwfTS34Htrk0zPIXVg==", - "license": "MIT" + "integrity": "sha512-3NdhDuEXnfun/z7x9GOElY49LoqVHoGScmOKwmxhsS8N5Y+Z8KyPPDnaSzqWgYt/ji4mqwfTS34Htrk0zPIXVg==" }, - "node_modules/detect-libc": { + "detect-libc": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", - "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==" }, - "node_modules/dotenv": { + "dotenv": { "version": "8.6.0", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.6.0.tgz", - "integrity": "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==", - "engines": { - "node": ">=10" - } + "integrity": "sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==" }, - "node_modules/drizzle-kit": { + "drizzle-kit": { "version": "0.31.4", "resolved": "https://registry.npmjs.org/drizzle-kit/-/drizzle-kit-0.31.4.tgz", "integrity": "sha512-tCPWVZWZqWVx2XUsVpJRnH9Mx0ClVOf5YUHerZ5so1OKSlqww4zy1R5ksEdGRcO3tM3zj0PYN6V48TbQCL1RfA==", - "dependencies": { + "requires": { "@drizzle-team/brocli": "^0.10.2", "@esbuild-kit/esm-loader": "^2.5.5", "esbuild": "^0.25.4", "esbuild-register": "^3.5.0" - }, - "bin": { - "drizzle-kit": "bin.cjs" } }, - "node_modules/drizzle-orm": { + "drizzle-orm": { "version": "0.44.4", "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.44.4.tgz", - "integrity": "sha512-ZyzKFpTC/Ut3fIqc2c0dPZ6nhchQXriTsqTNs4ayRgl6sZcFlMs9QZKPSHXK4bdOf41GHGWf+FrpcDDYwW+W6Q==", - "peerDependencies": { - "@aws-sdk/client-rds-data": ">=3", - "@cloudflare/workers-types": ">=4", - "@electric-sql/pglite": ">=0.2.0", - "@libsql/client": ">=0.10.0", - "@libsql/client-wasm": ">=0.10.0", - "@neondatabase/serverless": ">=0.10.0", - "@op-engineering/op-sqlite": ">=2", - "@opentelemetry/api": "^1.4.1", - "@planetscale/database": ">=1.13", - "@prisma/client": "*", - "@tidbcloud/serverless": "*", - "@types/better-sqlite3": "*", - "@types/pg": "*", - "@types/sql.js": "*", - "@upstash/redis": ">=1.34.7", - "@vercel/postgres": ">=0.8.0", - "@xata.io/client": "*", - "better-sqlite3": ">=7", - "bun-types": "*", - "expo-sqlite": ">=14.0.0", - "gel": ">=2", - "knex": "*", - "kysely": "*", - "mysql2": ">=2", - "pg": ">=8", - "postgres": ">=3", - "sql.js": ">=1", - "sqlite3": ">=5" - }, - "peerDependenciesMeta": { - "@aws-sdk/client-rds-data": { - "optional": true - }, - "@cloudflare/workers-types": { - "optional": true - }, - "@electric-sql/pglite": { - "optional": true - }, - "@libsql/client": { - "optional": true - }, - "@libsql/client-wasm": { - "optional": true - }, - "@neondatabase/serverless": { - "optional": true - }, - "@op-engineering/op-sqlite": { - "optional": true - }, - "@opentelemetry/api": { - "optional": true - }, - "@planetscale/database": { - "optional": true - }, - "@prisma/client": { - "optional": true - }, - "@tidbcloud/serverless": { - "optional": true - }, - "@types/better-sqlite3": { - "optional": true - }, - "@types/pg": { - "optional": true - }, - "@types/sql.js": { - "optional": true - }, - "@upstash/redis": { - "optional": true - }, - "@vercel/postgres": { - "optional": true - }, - "@xata.io/client": { - "optional": true - }, - "better-sqlite3": { - "optional": true - }, - "bun-types": { - "optional": true - }, - "expo-sqlite": { - "optional": true - }, - "gel": { - "optional": true - }, - "knex": { - "optional": true - }, - "kysely": { - "optional": true - }, - "mysql2": { - "optional": true - }, - "pg": { - "optional": true - }, - "postgres": { - "optional": true - }, - "prisma": { - "optional": true - }, - "sql.js": { - "optional": true - }, - "sqlite3": { - "optional": true - } - } + "integrity": "sha512-ZyzKFpTC/Ut3fIqc2c0dPZ6nhchQXriTsqTNs4ayRgl6sZcFlMs9QZKPSHXK4bdOf41GHGWf+FrpcDDYwW+W6Q==" }, - "node_modules/ee-first": { + "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==" }, - "node_modules/ejs": { + "ejs": { "version": "3.1.10", "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", - "license": "Apache-2.0", - "dependencies": { + "requires": { "jake": "^10.8.5" - }, - "bin": { - "ejs": "bin/cli.js" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/emoji-regex": { + "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, - "node_modules/encodeurl": { + "encodeurl": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", - "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==" }, - "node_modules/encoding": { + "encoding": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", "optional": true, - "dependencies": { + "requires": { "iconv-lite": "^0.6.2" } }, - "node_modules/env-paths": { + "env-paths": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "optional": true, - "engines": { - "node": ">=6" - } + "optional": true }, - "node_modules/err-code": { + "err-code": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", "optional": true }, - "node_modules/esbuild": { + "esbuild": { "version": "0.25.8", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.8.tgz", "integrity": "sha512-vVC0USHGtMi8+R4Kz8rt6JhEWLxsv9Rnu/lGYbPR8u47B+DCBksq9JarW0zOO7bs37hyOK1l2/oqtbciutL5+Q==", - "hasInstallScript": true, - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { + "requires": { "@esbuild/aix-ppc64": "0.25.8", "@esbuild/android-arm": "0.25.8", "@esbuild/android-arm64": "0.25.8", @@ -1637,61 +772,180 @@ "@esbuild/win32-arm64": "0.25.8", "@esbuild/win32-ia32": "0.25.8", "@esbuild/win32-x64": "0.25.8" + }, + "dependencies": { + "@esbuild/android-arm": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.8.tgz", + "integrity": "sha512-RONsAvGCz5oWyePVnLdZY/HHwA++nxYWIX1atInlaW6SEkwq6XkP3+cb825EUcRs5Vss/lGh/2YxAb5xqc07Uw==", + "optional": true + }, + "@esbuild/android-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.8.tgz", + "integrity": "sha512-OD3p7LYzWpLhZEyATcTSJ67qB5D+20vbtr6vHlHWSQYhKtzUYrETuWThmzFpZtFsBIxRvhO07+UgVA9m0i/O1w==", + "optional": true + }, + "@esbuild/android-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.8.tgz", + "integrity": "sha512-yJAVPklM5+4+9dTeKwHOaA+LQkmrKFX96BM0A/2zQrbS6ENCmxc4OVoBs5dPkCCak2roAD+jKCdnmOqKszPkjA==", + "optional": true + }, + "@esbuild/darwin-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.8.tgz", + "integrity": "sha512-Jw0mxgIaYX6R8ODrdkLLPwBqHTtYHJSmzzd+QeytSugzQ0Vg4c5rDky5VgkoowbZQahCbsv1rT1KW72MPIkevw==", + "optional": true + }, + "@esbuild/darwin-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.8.tgz", + "integrity": "sha512-Vh2gLxxHnuoQ+GjPNvDSDRpoBCUzY4Pu0kBqMBDlK4fuWbKgGtmDIeEC081xi26PPjn+1tct+Bh8FjyLlw1Zlg==", + "optional": true + }, + "@esbuild/freebsd-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.8.tgz", + "integrity": "sha512-YPJ7hDQ9DnNe5vxOm6jaie9QsTwcKedPvizTVlqWG9GBSq+BuyWEDazlGaDTC5NGU4QJd666V0yqCBL2oWKPfA==", + "optional": true + }, + "@esbuild/freebsd-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.8.tgz", + "integrity": "sha512-MmaEXxQRdXNFsRN/KcIimLnSJrk2r5H8v+WVafRWz5xdSVmWLoITZQXcgehI2ZE6gioE6HirAEToM/RvFBeuhw==", + "optional": true + }, + "@esbuild/linux-arm": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.8.tgz", + "integrity": "sha512-FuzEP9BixzZohl1kLf76KEVOsxtIBFwCaLupVuk4eFVnOZfU+Wsn+x5Ryam7nILV2pkq2TqQM9EZPsOBuMC+kg==", + "optional": true + }, + "@esbuild/linux-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.8.tgz", + "integrity": "sha512-WIgg00ARWv/uYLU7lsuDK00d/hHSfES5BzdWAdAig1ioV5kaFNrtK8EqGcUBJhYqotlUByUKz5Qo6u8tt7iD/w==", + "optional": true + }, + "@esbuild/linux-ia32": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.8.tgz", + "integrity": "sha512-A1D9YzRX1i+1AJZuFFUMP1E9fMaYY+GnSQil9Tlw05utlE86EKTUA7RjwHDkEitmLYiFsRd9HwKBPEftNdBfjg==", + "optional": true + }, + "@esbuild/linux-loong64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.8.tgz", + "integrity": "sha512-O7k1J/dwHkY1RMVvglFHl1HzutGEFFZ3kNiDMSOyUrB7WcoHGf96Sh+64nTRT26l3GMbCW01Ekh/ThKM5iI7hQ==", + "optional": true + }, + "@esbuild/linux-mips64el": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.8.tgz", + "integrity": "sha512-uv+dqfRazte3BzfMp8PAQXmdGHQt2oC/y2ovwpTteqrMx2lwaksiFZ/bdkXJC19ttTvNXBuWH53zy/aTj1FgGw==", + "optional": true + }, + "@esbuild/linux-ppc64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.8.tgz", + "integrity": "sha512-GyG0KcMi1GBavP5JgAkkstMGyMholMDybAf8wF5A70CALlDM2p/f7YFE7H92eDeH/VBtFJA5MT4nRPDGg4JuzQ==", + "optional": true + }, + "@esbuild/linux-riscv64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.8.tgz", + "integrity": "sha512-rAqDYFv3yzMrq7GIcen3XP7TUEG/4LK86LUPMIz6RT8A6pRIDn0sDcvjudVZBiiTcZCY9y2SgYX2lgK3AF+1eg==", + "optional": true + }, + "@esbuild/linux-s390x": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.8.tgz", + "integrity": "sha512-Xutvh6VjlbcHpsIIbwY8GVRbwoviWT19tFhgdA7DlenLGC/mbc3lBoVb7jxj9Z+eyGqvcnSyIltYUrkKzWqSvg==", + "optional": true + }, + "@esbuild/linux-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.8.tgz", + "integrity": "sha512-ASFQhgY4ElXh3nDcOMTkQero4b1lgubskNlhIfJrsH5OKZXDpUAKBlNS0Kx81jwOBp+HCeZqmoJuihTv57/jvQ==", + "optional": true + }, + "@esbuild/netbsd-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.8.tgz", + "integrity": "sha512-nVDCkrvx2ua+XQNyfrujIG38+YGyuy2Ru9kKVNyh5jAys6n+l44tTtToqHjino2My8VAY6Lw9H7RI73XFi66Cg==", + "optional": true + }, + "@esbuild/openbsd-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.8.tgz", + "integrity": "sha512-1h8MUAwa0VhNCDp6Af0HToI2TJFAn1uqT9Al6DJVzdIBAd21m/G0Yfc77KDM3uF3T/YaOgQq3qTJHPbTOInaIQ==", + "optional": true + }, + "@esbuild/sunos-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.8.tgz", + "integrity": "sha512-zUlaP2S12YhQ2UzUfcCuMDHQFJyKABkAjvO5YSndMiIkMimPmxA+BYSBikWgsRpvyxuRnow4nS5NPnf9fpv41w==", + "optional": true + }, + "@esbuild/win32-arm64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.8.tgz", + "integrity": "sha512-YEGFFWESlPva8hGL+zvj2z/SaK+pH0SwOM0Nc/d+rVnW7GSTFlLBGzZkuSU9kFIGIo8q9X3ucpZhu8PDN5A2sQ==", + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.8.tgz", + "integrity": "sha512-hiGgGC6KZ5LZz58OL/+qVVoZiuZlUYlYHNAmczOm7bs2oE1XriPFi5ZHHrS8ACpV5EjySrnoCKmcbQMN+ojnHg==", + "optional": true + }, + "@esbuild/win32-x64": { + "version": "0.25.8", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.8.tgz", + "integrity": "sha512-cn3Yr7+OaaZq1c+2pe+8yxC8E144SReCQjN6/2ynubzYjvyqZjTXfQJpAcQpsdJq3My7XADANiYGHoFC69pLQw==", + "optional": true + } } }, - "node_modules/esbuild-register": { + "esbuild-register": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/esbuild-register/-/esbuild-register-3.6.0.tgz", "integrity": "sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==", - "dependencies": { + "requires": { "debug": "^4.3.4" }, - "peerDependencies": { - "esbuild": ">=0.12 <1" - } - }, - "node_modules/esbuild-register/node_modules/debug": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", - "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true + "debug": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "requires": { + "ms": "^2.1.3" + } + }, + "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/esbuild-register/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/escape-html": { + "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" + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==" }, - "node_modules/etag": { + "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" - } + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==" }, - "node_modules/express": { + "express": { "version": "4.16.4", "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz", "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==", - "license": "MIT", - "dependencies": { + "requires": { "accepts": "~1.3.5", "array-flatten": "1.1.1", "body-parser": "1.18.3", @@ -1723,15 +977,39 @@ "utils-merge": "1.0.1", "vary": "~1.1.2" }, - "engines": { - "node": ">= 0.10.0" + "dependencies": { + "cookie": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", + "integrity": "sha512-+IJOX0OqlHCszo2mBUq+SrEbCj6w7Kpffqx60zYbPTFaO4+yYgRjHwcZNpWvaTylDHaV7PPmBHzSecZiMhtPgw==" + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + }, + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" + } } }, - "node_modules/express-session": { + "express-session": { "version": "1.17.3", "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.17.3.tgz", "integrity": "sha512-4+otWXlShYlG1Ma+2Jnn+xgKUZTMJ5QD3YvfilX3AcocOAbIkVylSWEklzALe/+Pu4qV6TYBj5GwOBFfdKqLBw==", - "dependencies": { + "requires": { "cookie": "0.4.2", "cookie-signature": "1.0.6", "debug": "2.6.9", @@ -1741,93 +1019,45 @@ "safe-buffer": "5.2.1", "uid-safe": "~2.1.5" }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/express-session/node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/cookie": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", - "integrity": "sha512-+IJOX0OqlHCszo2mBUq+SrEbCj6w7Kpffqx60zYbPTFaO4+yYgRjHwcZNpWvaTylDHaV7PPmBHzSecZiMhtPgw==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/express/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "license": "MIT" - }, - "node_modules/express/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", - "license": "ISC" - }, - "node_modules/express/node_modules/statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", - "license": "MIT", - "engines": { - "node": ">= 0.6" + "dependencies": { + "cookie": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", + "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==" + } } }, - "node_modules/filelist": { + "filelist": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", - "license": "Apache-2.0", - "dependencies": { + "requires": { "minimatch": "^5.0.1" - } - }, - "node_modules/filelist/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/filelist/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" }, - "engines": { - "node": ">=10" + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "requires": { + "brace-expansion": "^2.0.1" + } + } } }, - "node_modules/finalhandler": { + "finalhandler": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", - "license": "MIT", - "dependencies": { + "requires": { "debug": "2.6.9", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", @@ -1836,69 +1066,52 @@ "statuses": "~1.4.0", "unpipe": "~1.0.0" }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/finalhandler/node_modules/statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", - "license": "MIT", - "engines": { - "node": ">= 0.6" + "dependencies": { + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" + } } }, - "node_modules/forwarded": { + "forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", - "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==" }, - "node_modules/fresh": { + "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" - } + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==" }, - "node_modules/fs-minipass": { + "fs-minipass": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dependencies": { + "requires": { "minipass": "^3.0.0" }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/fs-minipass/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/fs.realpath": { + "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "node_modules/gauge": { + "gauge": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "deprecated": "This package is no longer supported.", - "dependencies": { + "requires": { "aproba": "^1.0.3 || ^2.0.0", "color-support": "^1.1.2", "console-control-strings": "^1.0.0", @@ -1908,310 +1121,238 @@ "string-width": "^4.2.3", "strip-ansi": "^6.0.1", "wide-align": "^1.1.2" - }, - "engines": { - "node": ">=10" } }, - "node_modules/get-tsconfig": { + "get-tsconfig": { "version": "4.10.1", "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz", "integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==", - "dependencies": { + "requires": { "resolve-pkg-maps": "^1.0.0" - }, - "funding": { - "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/glob": { + "glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dependencies": { + "requires": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", "minimatch": "^3.1.1", "once": "^1.3.0", "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/graceful-fs": { + "graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "optional": true }, - "node_modules/has-flag": { + "has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "license": "MIT", - "engines": { - "node": ">=8" - } + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "node_modules/has-unicode": { + "has-unicode": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==" }, - "node_modules/http-cache-semantics": { + "http-cache-semantics": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", "optional": true }, - "node_modules/http-errors": { + "http-errors": { "version": "1.6.3", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", - "dependencies": { + "requires": { "depd": "~1.1.2", "inherits": "2.0.3", "setprototypeof": "1.1.0", "statuses": ">= 1.4.0 < 2" }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/http-errors/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" + "dependencies": { + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" + }, + "setprototypeof": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", + "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" + } } }, - "node_modules/http-errors/node_modules/inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==" - }, - "node_modules/http-errors/node_modules/setprototypeof": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", - "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" - }, - "node_modules/http-proxy-agent": { + "http-proxy-agent": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "optional": true, - "dependencies": { + "requires": { "@tootallnate/once": "1", "agent-base": "6", "debug": "4" }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/http-proxy-agent/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "optional": true, "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "requires": { + "ms": "2.1.2" + } } } }, - "node_modules/https-proxy-agent": { + "https-proxy-agent": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dependencies": { + "requires": { "agent-base": "6", "debug": "4" }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } } } }, - "node_modules/humanize-ms": { + "humanize-ms": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", "optional": true, - "dependencies": { + "requires": { "ms": "^2.0.0" } }, - "node_modules/iconv-lite": { + "iconv-lite": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", "optional": true, - "dependencies": { + "requires": { "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/imurmurhash": { + "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "optional": true, - "engines": { - "node": ">=0.8.19" - } + "optional": true }, - "node_modules/indent-string": { + "indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "optional": true, - "engines": { - "node": ">=8" - } + "optional": true }, - "node_modules/infer-owner": { + "infer-owner": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", "optional": true }, - "node_modules/inflight": { + "inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", - "dependencies": { + "requires": { "once": "^1.3.0", "wrappy": "1" } }, - "node_modules/inherits": { + "inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "node_modules/ip": { + "ip": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz", "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==", "optional": true }, - "node_modules/ipaddr.js": { + "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==", - "engines": { - "node": ">= 0.10" - } + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" }, - "node_modules/is-fullwidth-code-point": { + "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" }, - "node_modules/is-lambda": { + "is-lambda": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", "optional": true }, - "node_modules/isexe": { + "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "optional": true }, - "node_modules/jake": { + "jake": { "version": "10.9.2", "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", - "license": "Apache-2.0", - "dependencies": { + "requires": { "async": "^3.2.3", "chalk": "^4.0.2", "filelist": "^1.0.4", "minimatch": "^3.1.2" - }, - "bin": { - "jake": "bin/cli.js" - }, - "engines": { - "node": ">=10" } }, - "node_modules/lru-cache": { + "lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { + "requires": { "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" } }, - "node_modules/make-dir": { + "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dependencies": { + "requires": { "semver": "^6.0.0" }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-dir/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "bin": { - "semver": "bin/semver.js" + "dependencies": { + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==" + } } }, - "node_modules/make-fetch-happen": { + "make-fetch-happen": { "version": "9.1.0", "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", "optional": true, - "dependencies": { + "requires": { "agentkeepalive": "^4.1.3", "cacache": "^15.2.0", "http-cache-semantics": "^4.1.0", @@ -2225,320 +1366,243 @@ "minipass-flush": "^1.0.5", "minipass-pipeline": "^1.2.4", "negotiator": "^0.6.2", - "promise-retry": "^2.0.1", - "socks-proxy-agent": "^6.0.0", - "ssri": "^8.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/make-fetch-happen/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, - "dependencies": { - "yallist": "^4.0.0" + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^6.0.0", + "ssri": "^8.0.0" }, - "engines": { - "node": ">=8" + "dependencies": { + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/media-typer": { + "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==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==" }, - "node_modules/merge-descriptors": { + "merge-descriptors": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==" }, - "node_modules/methods": { + "methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" }, - "node_modules/mime": { + "mime": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", - "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==", - "license": "MIT", - "bin": { - "mime": "cli.js" - } + "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" }, - "node_modules/mime-db": { + "mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" }, - "node_modules/mime-types": { + "mime-types": { "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { + "requires": { "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" } }, - "node_modules/minimatch": { + "minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { + "requires": { "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" } }, - "node_modules/minipass": { + "minipass": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", - "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", - "engines": { - "node": ">=8" - } + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==" }, - "node_modules/minipass-collect": { + "minipass-collect": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", "optional": true, - "dependencies": { + "requires": { "minipass": "^3.0.0" }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-collect/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/minipass-fetch": { + "minipass-fetch": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", "optional": true, - "dependencies": { + "requires": { + "encoding": "^0.1.12", "minipass": "^3.1.0", "minipass-sized": "^1.0.3", "minizlib": "^2.0.0" }, - "engines": { - "node": ">=8" - }, - "optionalDependencies": { - "encoding": "^0.1.12" - } - }, - "node_modules/minipass-fetch/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/minipass-flush": { + "minipass-flush": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", "optional": true, - "dependencies": { + "requires": { "minipass": "^3.0.0" }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minipass-flush/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/minipass-pipeline": { + "minipass-pipeline": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", "optional": true, - "dependencies": { + "requires": { "minipass": "^3.0.0" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-pipeline/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/minipass-sized": { + "minipass-sized": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", "optional": true, - "dependencies": { + "requires": { "minipass": "^3.0.0" }, - "engines": { - "node": ">=8" - } - }, - "node_modules/minipass-sized/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/minizlib": { + "minizlib": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dependencies": { + "requires": { "minipass": "^3.0.0", "yallist": "^4.0.0" }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/minizlib/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/mkdirp": { + "mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==" }, - "node_modules/morgan": { + "morgan": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==", - "dependencies": { + "requires": { "basic-auth": "~2.0.0", "debug": "2.6.9", "depd": "~1.1.2", "on-finished": "~2.3.0", "on-headers": "~1.0.1" }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/morgan/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "engines": { - "node": ">= 0.6" + "dependencies": { + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + } } }, - "node_modules/ms": { + "ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "node_modules/negotiator": { + "negotiator": { "version": "0.6.3", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", - "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", - "engines": { - "node": ">= 0.6" - } + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==" }, - "node_modules/node-addon-api": { + "node-addon-api": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-4.3.0.tgz", "integrity": "sha512-73sE9+3UaLYYFmDsFZnqCInzPyh3MqIwZO9cw58yIqAZhONrrabrYyYe3TuIqtIiOuTXVhsGau8hcrhhwSsDIQ==" }, - "node_modules/node-fetch": { + "node-fetch": { "version": "2.6.12", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.12.tgz", "integrity": "sha512-C/fGU2E8ToujUivIO0H+tpQ6HWo4eEmchoPIoXtxCrVghxdKq+QOHqEZW7tuP3KlV3bC8FRMO5nMCC7Zm1VP6g==", - "dependencies": { + "requires": { "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } } }, - "node_modules/node-gyp": { + "node-gyp": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", "optional": true, - "dependencies": { + "requires": { "env-paths": "^2.2.0", "glob": "^7.1.4", "graceful-fs": "^4.2.6", @@ -2550,547 +1614,375 @@ "tar": "^6.1.2", "which": "^2.0.2" }, - "bin": { - "node-gyp": "bin/node-gyp.js" - }, - "engines": { - "node": ">= 10.12.0" - } - }, - "node_modules/node-gyp/node_modules/are-we-there-yet": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", - "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", - "deprecated": "This package is no longer supported.", - "optional": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-gyp/node_modules/gauge": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", - "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", - "deprecated": "This package is no longer supported.", - "optional": true, - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.3", - "console-control-strings": "^1.1.0", - "has-unicode": "^2.0.1", - "signal-exit": "^3.0.7", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.5" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/node-gyp/node_modules/npmlog": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", - "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", - "deprecated": "This package is no longer supported.", - "optional": true, "dependencies": { - "are-we-there-yet": "^3.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^4.0.3", - "set-blocking": "^2.0.0" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + "are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "optional": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + } + }, + "gauge": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "optional": true, + "requires": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + } + }, + "npmlog": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "optional": true, + "requires": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + } + } } }, - "node_modules/nopt": { + "nopt": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dependencies": { + "requires": { "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" } }, - "node_modules/npmlog": { + "npmlog": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "deprecated": "This package is no longer supported.", - "dependencies": { + "requires": { "are-we-there-yet": "^2.0.0", "console-control-strings": "^1.1.0", "gauge": "^3.0.0", "set-blocking": "^2.0.0" } }, - "node_modules/oauth": { + "oauth": { "version": "0.9.15", "resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz", "integrity": "sha512-a5ERWK1kh38ExDEfoO6qUHJb32rd7aYmPHuyCu3Fta/cnICvYmgd2uhuKXvPD+PXB+gCEYYEaQdIRAjCOwAKNA==" }, - "node_modules/object-assign": { + "object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" }, - "node_modules/on-finished": { + "on-finished": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", - "dependencies": { + "requires": { "ee-first": "1.1.1" - }, - "engines": { - "node": ">= 0.8" } }, - "node_modules/on-headers": { + "on-headers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", - "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" }, - "node_modules/once": { + "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { + "requires": { "wrappy": "1" } }, - "node_modules/p-map": { + "p-map": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", "optional": true, - "dependencies": { + "requires": { "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parseurl": { + "parseurl": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", - "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" }, - "node_modules/passport": { + "passport": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/passport/-/passport-0.6.0.tgz", "integrity": "sha512-0fe+p3ZnrWRW74fe8+SvCyf4a3Pb2/h7gFkQ8yTJpAO50gDzlfjZUZTO1k5Eg9kUct22OxHLqDZoKUWRHOh9ug==", - "dependencies": { + "requires": { "passport-strategy": "1.x.x", "pause": "0.0.1", "utils-merge": "^1.0.1" - }, - "engines": { - "node": ">= 0.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" } }, - "node_modules/passport-google-oidc": { + "passport-google-oidc": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/passport-google-oidc/-/passport-google-oidc-0.1.0.tgz", "integrity": "sha512-/TtFXaWvmubm5kXNoJMyzBfxhnZ0lnBPA6w6rmQMP9klmHZf0ArE8IrIEt3yAHoiDzGx4eTO7YasKQFbPsNtVA==", - "dependencies": { + "requires": { "passport-openidconnect": "0.1.x" - }, - "engines": { - "node": ">= 0.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" } }, - "node_modules/passport-oauth2": { + "passport-oauth2": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/passport-oauth2/-/passport-oauth2-1.7.0.tgz", "integrity": "sha512-j2gf34szdTF2Onw3+76alNnaAExlUmHvkc7cL+cmaS5NzHzDP/BvFHJruueQ9XAeNOdpI+CH+PWid8RA7KCwAQ==", - "dependencies": { + "requires": { "base64url": "3.x.x", "oauth": "0.9.x", "passport-strategy": "1.x.x", "uid2": "0.0.x", "utils-merge": "1.x.x" - }, - "engines": { - "node": ">= 0.4.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" } }, - "node_modules/passport-openidconnect": { + "passport-openidconnect": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/passport-openidconnect/-/passport-openidconnect-0.1.1.tgz", "integrity": "sha512-r0QJiWEzwCg2MeCIXVP5G6YxVRqnEsZ2HpgKRthZ9AiQHJrgGUytXpsdcGF9BRwd3yMrEesb/uG/Yxb86rrY0g==", - "dependencies": { + "requires": { "oauth": "0.9.x", "passport-strategy": "1.x.x" - }, - "engines": { - "node": ">= 0.6.0" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/jaredhanson" } }, - "node_modules/passport-strategy": { + "passport-strategy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/passport-strategy/-/passport-strategy-1.0.0.tgz", - "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==", - "engines": { - "node": ">= 0.4.0" - } + "integrity": "sha512-CB97UUvDKJde2V0KDWWB3lyf6PC3FaZP7YxZ2G8OAtn9p4HI9j9JLP9qjOGZFvyl8uwNT8qM+hGnz/n16NI7oA==" }, - "node_modules/path-is-absolute": { + "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" }, - "node_modules/path-to-regexp": { + "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==" }, - "node_modules/pause": { + "pause": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/pause/-/pause-0.0.1.tgz", "integrity": "sha512-KG8UEiEVkR3wGEb4m5yZkVCzigAD+cVEJck2CzYZO37ZGJfctvVptVO192MwrtPhzONn6go8ylnOdMhKqi4nfg==" }, - "node_modules/pg": { + "pg": { "version": "8.16.3", "resolved": "https://registry.npmjs.org/pg/-/pg-8.16.3.tgz", "integrity": "sha512-enxc1h0jA/aq5oSDMvqyW3q89ra6XIIDZgCX9vkMrnz5DFTw/Ny3Li2lFQ+pt3L6MCgm/5o2o8HW9hiJji+xvw==", - "dependencies": { + "requires": { + "pg-cloudflare": "^1.2.7", "pg-connection-string": "^2.9.1", "pg-pool": "^3.10.1", "pg-protocol": "^1.10.3", "pg-types": "2.2.0", "pgpass": "1.0.5" - }, - "engines": { - "node": ">= 16.0.0" - }, - "optionalDependencies": { - "pg-cloudflare": "^1.2.7" - }, - "peerDependencies": { - "pg-native": ">=3.0.1" - }, - "peerDependenciesMeta": { - "pg-native": { - "optional": true - } } }, - "node_modules/pg-cloudflare": { + "pg-cloudflare": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.2.7.tgz", "integrity": "sha512-YgCtzMH0ptvZJslLM1ffsY4EuGaU0cx4XSdXLRFae8bPP4dS5xL1tNB3k2o/N64cHJpwU7dxKli/nZ2lUa5fLg==", "optional": true }, - "node_modules/pg-connection-string": { + "pg-connection-string": { "version": "2.9.1", "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.9.1.tgz", "integrity": "sha512-nkc6NpDcvPVpZXxrreI/FOtX3XemeLl8E0qFr6F2Lrm/I8WOnaWNhIPK2Z7OHpw7gh5XJThi6j6ppgNoaT1w4w==" }, - "node_modules/pg-int8": { + "pg-int8": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz", - "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==", - "engines": { - "node": ">=4.0.0" - } + "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==" }, - "node_modules/pg-pool": { + "pg-pool": { "version": "3.10.1", "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.10.1.tgz", - "integrity": "sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==", - "peerDependencies": { - "pg": ">=8.0" - } + "integrity": "sha512-Tu8jMlcX+9d8+QVzKIvM/uJtp07PKr82IUOYEphaWcoBhIYkoHpLXN3qO59nAI11ripznDsEzEv8nUxBVWajGg==" }, - "node_modules/pg-protocol": { + "pg-protocol": { "version": "1.10.3", "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.10.3.tgz", "integrity": "sha512-6DIBgBQaTKDJyxnXaLiLR8wBpQQcGWuAESkRBX/t6OwA8YsqP+iVSiond2EDy6Y/dsGk8rh/jtax3js5NeV7JQ==" }, - "node_modules/pg-types": { + "pg-types": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz", "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==", - "dependencies": { + "requires": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" - }, - "engines": { - "node": ">=4" } }, - "node_modules/pgpass": { + "pgpass": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz", "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==", - "dependencies": { + "requires": { "split2": "^4.1.0" } }, - "node_modules/pluralize": { + "pluralize": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", - "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==", - "engines": { - "node": ">=4" - } + "integrity": "sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==" }, - "node_modules/postgres-array": { + "postgres-array": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz", - "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==", - "engines": { - "node": ">=4" - } + "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==" }, - "node_modules/postgres-bytea": { + "postgres-bytea": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.0.tgz", - "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==", - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-xy3pmLuQqRBZBXDULy7KbaitYqLcmxigw14Q5sj8QBVLqEwXfeybIKVWiqAXTlcvdvb0+xkOtDbfQMOf4lST1w==" }, - "node_modules/postgres-date": { + "postgres-date": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz", - "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==", - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==" }, - "node_modules/postgres-interval": { + "postgres-interval": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz", "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==", - "dependencies": { + "requires": { "xtend": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" } }, - "node_modules/promise-inflight": { + "promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", "optional": true }, - "node_modules/promise-retry": { + "promise-retry": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", "optional": true, - "dependencies": { + "requires": { "err-code": "^2.0.2", "retry": "^0.12.0" - }, - "engines": { - "node": ">=10" } }, - "node_modules/proxy-addr": { + "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==", - "dependencies": { + "requires": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" - }, - "engines": { - "node": ">= 0.10" } }, - "node_modules/qs": { + "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "license": "BSD-3-Clause", - "engines": { - "node": ">=0.6" - } + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, - "node_modules/random-bytes": { + "random-bytes": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", - "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-iv7LhNVO047HzYR3InF6pUcUsPQiHTM1Qal51DcGSuZFBil1aBBWG5eHPNek7bvILMaYJ/8RU1e8w1AMdHmLQQ==" }, - "node_modules/range-parser": { + "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" - } + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" }, - "node_modules/raw-body": { + "raw-body": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", - "license": "MIT", - "dependencies": { + "requires": { "bytes": "3.0.0", "http-errors": "1.6.3", "iconv-lite": "0.4.23", "unpipe": "1.0.0" }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/raw-body/node_modules/iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", - "license": "MIT", "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } } }, - "node_modules/readable-stream": { + "readable-stream": { "version": "3.6.2", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dependencies": { + "requires": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" } }, - "node_modules/resolve-pkg-maps": { + "resolve-pkg-maps": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", - "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", - "funding": { - "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" - } + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==" }, - "node_modules/retry": { + "retry": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", - "optional": true, - "engines": { - "node": ">= 4" - } + "optional": true }, - "node_modules/rimraf": { + "rimraf": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dependencies": { + "requires": { "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rndm": { + "rndm": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz", "integrity": "sha512-fJhQQI5tLrQvYIYFpOnFinzv9dwmR7hRnUz1XqP3OJ1jIweTNOd6aTO4jwQSgcBSFUB+/KHJxuGneime+FdzOw==" }, - "node_modules/safe-buffer": { + "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" - } - ] + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" }, - "node_modules/safer-buffer": { + "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, - "node_modules/semver": { + "semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dependencies": { + "requires": { "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" } }, - "node_modules/send": { + "send": { "version": "0.16.2", "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", - "license": "MIT", - "dependencies": { + "requires": { "debug": "2.6.9", "depd": "~1.1.2", "destroy": "~1.0.4", @@ -3105,407 +1997,313 @@ "range-parser": "~1.2.0", "statuses": "~1.4.0" }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/send/node_modules/depd": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", - "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", - "license": "MIT", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/send/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/send/node_modules/statuses": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", - "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==", - "license": "MIT", - "engines": { - "node": ">= 0.6" + "dependencies": { + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==" + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" + }, + "statuses": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", + "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" + } } }, - "node_modules/serve-static": { + "serve-static": { "version": "1.13.2", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", - "license": "MIT", - "dependencies": { + "requires": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.2", "send": "0.16.2" - }, - "engines": { - "node": ">= 0.8.0" } }, - "node_modules/set-blocking": { + "set-blocking": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, - "node_modules/setprototypeof": { + "setprototypeof": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" }, - "node_modules/signal-exit": { + "signal-exit": { "version": "3.0.7", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==" }, - "node_modules/smart-buffer": { + "smart-buffer": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", - "optional": true, - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - } + "optional": true }, - "node_modules/socks": { + "socks": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.1.tgz", "integrity": "sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==", "optional": true, - "dependencies": { + "requires": { "ip": "^2.0.0", "smart-buffer": "^4.2.0" - }, - "engines": { - "node": ">= 10.13.0", - "npm": ">= 3.0.0" } }, - "node_modules/socks-proxy-agent": { + "socks-proxy-agent": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", "optional": true, - "dependencies": { + "requires": { "agent-base": "^6.0.2", "debug": "^4.3.3", "socks": "^2.6.2" }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/socks-proxy-agent/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "optional": true, "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "requires": { + "ms": "2.1.2" + } } } }, - "node_modules/source-map": { + "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "engines": { - "node": ">=0.10.0" - } + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, - "node_modules/source-map-support": { + "source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dependencies": { + "requires": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, - "node_modules/split2": { + "split2": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", - "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==", - "engines": { - "node": ">= 10.x" - } + "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==" }, - "node_modules/sqlite3": { + "sqlite3": { "version": "5.1.6", "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.6.tgz", "integrity": "sha512-olYkWoKFVNSSSQNvxVUfjiVbz3YtBwTJj+mfV5zpHmqW3sELx2Cf4QCdirMelhM5Zh+KDVaKgQHqCxrqiWHybw==", - "hasInstallScript": true, - "dependencies": { + "requires": { "@mapbox/node-pre-gyp": "^1.0.0", "node-addon-api": "^4.2.0", + "node-gyp": "8.x", "tar": "^6.1.11" - }, - "optionalDependencies": { - "node-gyp": "8.x" - }, - "peerDependencies": { - "node-gyp": "8.x" - }, - "peerDependenciesMeta": { - "node-gyp": { - "optional": true - } } }, - "node_modules/ssri": { + "ssri": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", "optional": true, - "dependencies": { + "requires": { "minipass": "^3.1.1" }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/ssri/node_modules/minipass": { - "version": "3.3.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", - "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", - "optional": true, "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "optional": true, + "requires": { + "yallist": "^4.0.0" + } + } } }, - "node_modules/statuses": { + "statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", - "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", - "engines": { - "node": ">= 0.6" - } - }, - "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==", - "dependencies": { - "safe-buffer": "~5.2.0" - } + "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==" }, - "node_modules/string-width": { + "string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dependencies": { + "requires": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" } }, - "node_modules/strip-ansi": { + "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==", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { + "requires": { "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" } }, - "node_modules/supports-color": { + "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "license": "MIT", - "dependencies": { + "requires": { "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" } }, - "node_modules/tar": { + "tar": { "version": "6.2.1", "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", - "dependencies": { + "requires": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", "minipass": "^5.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" } }, - "node_modules/toidentifier": { + "toidentifier": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", - "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", - "engines": { - "node": ">=0.6" - } + "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" }, - "node_modules/tr46": { + "tr46": { "version": "0.0.3", "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, - "node_modules/tsscmp": { + "tsscmp": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", - "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==", - "engines": { - "node": ">=0.6.x" - } + "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==" }, - "node_modules/type-is": { + "type-is": { "version": "1.6.18", "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", - "license": "MIT", - "dependencies": { + "requires": { "media-typer": "0.3.0", "mime-types": "~2.1.24" - }, - "engines": { - "node": ">= 0.6" } }, - "node_modules/uid-safe": { + "uid-safe": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.5.tgz", "integrity": "sha512-KPHm4VL5dDXKz01UuEd88Df+KzynaohSL9fBh096KWAxSKZQDI2uBrVqtvRM4rwrIrRRKsdLNML/lnaaVSRioA==", - "dependencies": { + "requires": { "random-bytes": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" } }, - "node_modules/uid2": { + "uid2": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.4.tgz", "integrity": "sha512-IevTus0SbGwQzYh3+fRsAMTVVPOoIVufzacXcHPmdlle1jUpq7BRL+mw3dgeLanvGZdwwbWhRV6XrcFNdBmjWA==" }, - "node_modules/unique-filename": { + "undici-types": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "dev": true + }, + "unique-filename": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", "optional": true, - "dependencies": { + "requires": { "unique-slug": "^2.0.0" } }, - "node_modules/unique-slug": { + "unique-slug": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", "optional": true, - "dependencies": { + "requires": { "imurmurhash": "^0.1.4" } }, - "node_modules/unpipe": { + "unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==" }, - "node_modules/util-deprecate": { + "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/utils-merge": { + "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==", - "engines": { - "node": ">= 0.4.0" - } + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==" }, - "node_modules/vary": { + "vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==" }, - "node_modules/webidl-conversions": { + "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, - "node_modules/whatwg-url": { + "whatwg-url": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { + "requires": { "tr46": "~0.0.3", "webidl-conversions": "^3.0.0" } }, - "node_modules/which": { + "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "optional": true, - "dependencies": { + "requires": { "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" } }, - "node_modules/wide-align": { + "wide-align": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "dependencies": { + "requires": { "string-width": "^1.0.2 || 2 || 3 || 4" } }, - "node_modules/wrappy": { + "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, - "node_modules/xtend": { + "xtend": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", - "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", - "engines": { - "node": ">=0.4" - } + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==" }, - "node_modules/yallist": { + "yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" diff --git a/server/package.json b/server/package.json index 4da7494..3eabb60 100644 --- a/server/package.json +++ b/server/package.json @@ -1,11 +1,20 @@ { "name": "consort-server", - "version": "0.2.1", + "version": "0.3.0", "private": true, "description": "Consort server side app", "license": "Unlicense", "scripts": { - "start": "node ./bin/www" + "start": "node ./bin/www", + "db:migrate": "node ./rctdb/migrate.js", + "db:test": "node ./rctdb/connection.js", + "db:examples": "node ./rctdb/examples.js", + "db:health": "node -e \"require('./rctdb/connection').testConnection().then(r => process.exit(r ? 0 : 1))\"", + "db:generate": "npx drizzle-kit generate", + "db:push": "drizzle-kit push", + "db:pull": "drizzle-kit pull", + "db:migrate:drizzle": "drizzle-kit migrate", + "db:studio": "drizzle-kit studio" }, "dependencies": { "connect-ensure-login": "^0.1.1", @@ -29,5 +38,9 @@ "pg": "^8.16.3", "pluralize": "^8.0.0", "sqlite3": "^5.0.2" + }, + "devDependencies": { + "@types/pg": "^8.15.5", + "drizzle-kit": "^0.31.4" } } diff --git a/server/rctdb/connection.js b/server/rctdb/connection.js new file mode 100644 index 0000000..fa79072 --- /dev/null +++ b/server/rctdb/connection.js @@ -0,0 +1,43 @@ +require('dotenv').config(); +const { drizzle } = require('drizzle-orm/node-postgres'); +const { Pool } = require('pg'); +const rctdbschema = require('./schema'); + +// Create PostgreSQL connection pool +const rctdbpool = new Pool({ + host: process.env.PGSERVER || 'localhost', + port: process.env.PGPORT || 5432, + user: process.env.PGUSER || 'postgres', + password: process.env.PGPASSWORD, + database: process.env.PGDATABASE || 'consort', + ssl: process.env.PGSSL === 'true' ? { rejectUnauthorized: false } : false, +}); + +// Create Drizzle instance +const rctdb = drizzle(rctdbpool, { rctdbschema }); + +// Test connection function +async function rctdbTestConnection() { + try { + const client = await rctdbpool.connect(); + console.log('✅ PostgreSQL connected successfully'); + client.release(); + return true; + } catch (error) { + console.error('❌ PostgreSQL connection failed:', error.message); + return false; + } +} + +// Graceful shutdown +process.on('SIGINT', async () => { + console.log('Closing database connections...'); + await rctdbpool.end(); + process.exit(0); +}); + +module.exports = { + rctdb, + rctdbpool, + rctdbTestConnection +}; \ No newline at end of file diff --git a/server/rctdb/examples.js b/server/rctdb/examples.js new file mode 100644 index 0000000..1c0cbba --- /dev/null +++ b/server/rctdb/examples.js @@ -0,0 +1,99 @@ +const { + userQueries, + publicationQueries, + annotationQueries, + feedbackQueries, + contentQueries +} = require('./queries'); +const { rctdbTestConnection } = require('./connection'); + +async function rctdbExamples() { + // Test the database connection + const isConnected = await rctdbTestConnection(); + if (!isConnected) { + console.log('Cannot run examples - database not connected'); + return; + } + + try { + console.log('\n=== RCTDB Examples ===\n'); + + // 1. Create a user + console.log('1. Creating a user...'); + const newUser = await userQueries.createUser({ + name: 'John Doe', + email: 'john.doe@example.com', + role: 'researcher', + createtime: new Date() + }); + console.log('Created user:', newUser[0]); + + // 2. Create a publication + console.log('\n2. Creating a publication...'); + const newPublication = await publicationQueries.createPublication({ + source: 'clowder', + fileid: 'file123', + datasetid: 'dataset456', + fileformat: 'pdf', + journalname: 'Example Research Paper.pdf', + statement: 'consort', + fileuploadtime: new Date(), + pagewidth: 8.5, + pageheight: 11.0, + nummissed: 0, + useruuid: newUser[0].useruuid + }); + console.log('Created publication:', newPublication[0]); + + // 3. Create a section + console.log('\n3. Creating a section...'); + const newSection = await contentQueries.createSection({ + publicationuuid: newPublication[0].publicationuuid, + sectionname: 'Introduction' + }); + console.log('Created section:', newSection[0]); + + // 4. Create a sentence + console.log('\n4. Creating a sentence...'); + const newSentence = await contentQueries.createSentence({ + publicaitonuuid: newPublication[0].publicationuuid, // Note: keeping typo from schema + sectionuuid: newSection[0].sectionuuid, + sentenceno: 1, + sentencetext: 'This is an example sentence from the research paper.', + coordinates: '{"x1": 100, "y1": 200, "x2": 300, "y2": 220}', + beginpage: 1, + endpage: 1 + }); + console.log('Created sentence:', newSentence[0]); + + // 5. Get publications by user + console.log('\n5. Getting publications by user...'); + const userPublications = await publicationQueries.getPublicationsByUser(newUser[0].useruuid); + console.log('User publications:', userPublications); + + // 6. Get all users + console.log('\n6. Getting all users...'); + const allUsers = await userQueries.getAllUsers(); + console.log('All users:', allUsers); + + console.log('\n=== Examples completed successfully! ==='); + + } catch (error) { + console.error('Example error:', error); + } +} + +// Run examples if this file is executed directly +if (require.main === module) { + rctdbExamples() + .then(() => { + console.log('\nExamples finished'); + process.exit(0); + }) + .catch((error) => { + console.error('Examples error:', error); + process.exit(1); + }); +} + +module.exports = { rctdbExamples }; \ No newline at end of file diff --git a/server/rctdb/migrate.js b/server/rctdb/migrate.js new file mode 100644 index 0000000..99cd780 --- /dev/null +++ b/server/rctdb/migrate.js @@ -0,0 +1,65 @@ +const fs = require('fs'); +const path = require('path'); +const { rctdbpool } = require('./connection'); + +async function rctdbMigrate() { + const rctdbclient = await rctdbpool.connect(); + + try { + // Read the Drizzle journal file to get the latest migration + const drizzlePath = path.join(__dirname, '../drizzle'); + const journalPath = path.join(drizzlePath, 'meta/_journal.json'); + + if (!fs.existsSync(journalPath)) { + throw new Error('Drizzle journal file not found at meta/_journal.json'); + } + + const journalContent = fs.readFileSync(journalPath, 'utf8'); + const journal = JSON.parse(journalContent); + + if (!journal.entries || journal.entries.length === 0) { + throw new Error('No migration entries found in journal file'); + } + + // Get the latest migration entry (highest idx or most recent timestamp) + const latestEntry = journal.entries.reduce((latest, current) => { + return (current.when > latest.when) ? current : latest; + }); + + const latestSqlFile = `${latestEntry.tag}.sql`; + const migrationPath = path.join(drizzlePath, latestSqlFile); + + if (!fs.existsSync(migrationPath)) { + throw new Error(`Migration file not found: ${latestSqlFile}`); + } + + console.log(`🚀 Running database migration from: ${latestSqlFile} (${latestEntry.tag})...`); + + // Read and execute the latest migration SQL + const migrationSql = fs.readFileSync(migrationPath, 'utf8'); + await rctdbclient.query(migrationSql); + + console.log('✅ Migration completed successfully!'); + + } catch (error) { + console.error('❌ Migration failed:', error.message); + throw error; + } finally { + rctdbclient.release(); + } +} + +// Run migration if this file is executed directly +if (require.main === module) { + rctdbMigrate() + .then(() => { + console.log('Migration finished'); + process.exit(0); + }) + .catch((error) => { + console.error('Migration error:', error); + process.exit(1); + }); +} + +module.exports = { rctdbMigrate }; \ No newline at end of file diff --git a/server/rctdb/queries.js b/server/rctdb/queries.js new file mode 100644 index 0000000..fa364ee --- /dev/null +++ b/server/rctdb/queries.js @@ -0,0 +1,249 @@ +const { eq, and, desc, asc, sql } = require('drizzle-orm'); +const { rctdb } = require('./connection'); +const { + users, + publication, + section, + sentence, + annotation, + annotationFeedback, + statementSection, + statementTopic +} = require('./schema'); + +// User operations +const userQueries = { + // Upsert a user + async upsertUser(userData) { + return await rctdb + .insert(users) + .values(userData) + .onConflictDoUpdate({ + target: users.name, + set: { lastlogin: sql`now()` } + }) + .returning(); + }, + + // Get user by name + async getUserByName(name) { + return await rctdb.select().from(users).where(eq(users.name, name)); + }, + + // Get user by UUID + async getUserByUuid(uuid) { + return await rctdb.select().from(users).where(eq(users.useruuid, uuid)); + }, + + // Get all users + async getAllUsers() { + return await rctdb.select().from(users).orderBy(asc(users.name)); + } +}; + +// Publication operations +const publicationQueries = { + // Create a new publication + async createPublication(publicationData) { + return await rctdb.insert(publication).values(publicationData).returning(); + }, + + // Upsert a publication - handles both create and update scenarios + async upsertPublication(publicationData) { + // Process the data to ensure timestamps are proper Date objects + const processedData = { ...publicationData }; + + // Handle timestamps + if (processedData.sourcefileuploadtime && !(processedData.sourcefileuploadtime instanceof Date)) { + processedData.sourcefileuploadtime = new Date(processedData.sourcefileuploadtime); + } + if (processedData.inferencetime && !(processedData.inferencetime instanceof Date)) { + processedData.inferencetime = new Date(processedData.inferencetime); + } + + // Check if publication already exists + const existingPublication = await rctdb.select() + .from(publication) + .where(eq(publication.datasetid, processedData.datasetid)) + .limit(1); + + if (existingPublication.length > 0) { + // Publication exists, update only the provided fields + const { datasetid, ...updateFields } = processedData; // Exclude datasetid from updates + + return await rctdb.update(publication) + .set(updateFields) + .where(eq(publication.datasetid, datasetid)) + .returning(); + } else { + // Publication doesn't exist, create new one + return await rctdb.insert(publication) + .values(processedData) + .returning(); + } + }, + + // Get publication by UUID + async getPublicationByUuid(uuid) { + return await rctdb.select().from(publication).where(eq(publication.publicationuuid, uuid)); + }, + + // Get publication by dataset ID + async getPublicationByDatasetId(datasetId) { + return await rctdb.select().from(publication).where(eq(publication.datasetid, datasetId)); + }, + + // Get publications by user + async getPublicationsByUser(userUuid) { + return await rctdb.select().from(publication) + .where(eq(publication.useruuid, userUuid)) + .orderBy(desc(publication.sourcefileuploadtime)); + }, + + // Get all publications with user info + async getAllPublicationsWithUsers() { + return await rctdb.select({ + publication: publication, + user: users + }).from(publication) + .leftJoin(users, eq(publication.useruuid, users.useruuid)) + .orderBy(desc(publication.sourcefileuploadtime)); + }, + + // Update publication + async updatePublication(uuid, updates) { + return await rctdb.update(publication) + .set(updates) + .where(eq(publication.publicationuuid, uuid)) + .returning(); + } +}; + +// Annotation operations +const annotationQueries = { + // Create annotation + async createAnnotation(annotationData) { + return await rctdb.insert(annotation).values(annotationData).returning(); + }, + + // Get annotations by publication + async getAnnotationsByPublication(publicationUuid) { + return await rctdb.select().from(annotation) + .where(eq(annotation.publicationuuid, publicationUuid)); + }, + + // Get annotations with sentences and sections + async getAnnotationsWithContext(publicationUuid) { + return await rctdb.select({ + annotation: annotation, + sentence: sentence, + section: section + }).from(annotation) + .leftJoin(sentence, and( + eq(annotation.sentenceuuid, sentence.sentenceuuid), + eq(sentence.publicationuuid, publicationUuid) + )) + .leftJoin(section, and( + eq(sentence.sectionuuid, section.sectionuuid), + eq(section.publicationuuid, publicationUuid) + )) + .where(eq(annotation.publicationuuid, publicationUuid)); + }, + + // Update annotation + async updateAnnotation(uuid, updates) { + return await rctdb.update(annotation) + .set(updates) + .where(eq(annotation.annuuid, uuid)) + .returning(); + } +}; + +// Feedback operations +const feedbackQueries = { + // Create feedback + async createFeedback(feedbackData) { + return await rctdb.insert(annotationFeedback).values(feedbackData).returning(); + }, + + // Get feedback by annotation + async getFeedbackByAnnotation(annotationUuid) { + return await rctdb.select().from(annotationFeedback) + .where(eq(annotationFeedback.annuuid, annotationUuid)) + .orderBy(desc(annotationFeedback.time)); + }, + + // Get feedback by user + async getFeedbackByUser(userUuid) { + return await rctdb.select().from(annotationFeedback) + .where(eq(annotationFeedback.useruuid, userUuid)) + .orderBy(desc(annotationFeedback.time)); + } +}; + +// Section and sentence operations +const contentQueries = { + // Create section + async createSection(sectionData) { + return await rctdb.insert(section).values(sectionData).returning(); + }, + + // Create sentence + async createSentence(sentenceData) { + return await rctdb.insert(sentence).values(sentenceData).returning(); + }, + + // Get sections by publication + async getSectionsByPublication(publicationUuid) { + return await rctdb.select().from(section) + .where(eq(section.publicationuuid, publicationUuid)); + }, + + // Get sentences by section + async getSentencesBySection(sectionUuid) { + return await rctdb.select().from(sentence) + .where(eq(sentence.sectionuuid, sectionUuid)) + .orderBy(asc(sentence.sentenceno)); + } +}; + +const statementQueries = { + // Get statement section by publication + async getStatementSectionByPublication(publicationUuid) { + return await rctdb.select().from(statementSection) + .where(eq(statementSection.publicationuuid, publicationUuid)); + }, + + // Get statement section by publication and statementsectionname + async getStatementSectionByPublicationAndName(publicationUuid, statementSectionName) { + return await rctdb.select().from(statementSection) + .where(and( + eq(statementSection.publicationuuid, publicationUuid), + eq(statementSection.statementsectionname, statementSectionName) + )); + }, + + // Get statement topic by publication + async getStatementTopicByPublication(publicationUuid) { + return await rctdb.select().from(statementTopic) + .where(eq(statementTopic.publicationuuid, publicationUuid)); + }, + + // Get statement topic by publication and statementtopicname + async getStatementTopicByPublicationAndName(publicationUuid, statementTopicName) { + return await rctdb.select().from(statementTopic) + .where(and( + eq(statementTopic.publicationuuid, publicationUuid), + eq(statementTopic.statementtopicname, statementTopicName) + )); + } +} + +module.exports = { + userQueries, + publicationQueries, + annotationQueries, + feedbackQueries, + contentQueries, + statementQueries +}; \ No newline at end of file diff --git a/server/rctdb/schema.js b/server/rctdb/schema.js new file mode 100644 index 0000000..0d40868 --- /dev/null +++ b/server/rctdb/schema.js @@ -0,0 +1,114 @@ +const { pgTable, serial, integer, varchar, timestamp, real, boolean } = require('drizzle-orm/pg-core'); +const { sql } = require('drizzle-orm'); + +// Users table +const users = pgTable('users', { + useruuid: serial('useruuid').primaryKey(), + name: varchar('name').notNull().unique(), // All anonymous users will have a name of "Anonymous" and a role of "author" and one useruuid + email: varchar('email').notNull(), + role: varchar('role').default('author'), + createtime: timestamp('createtime').default(sql`now()`), + lastlogin: timestamp('lastlogin').default(sql`now()`) +}); + +// Publication table +const publication = pgTable('publication', { + publicationuuid: serial('publicationuuid').primaryKey(), + source: varchar('source').default('clowder'), + sourcefileid: varchar('sourcefileid').notNull(), // uploaded fileID from clowder + sourcefileformat: varchar('sourcefileformat').notNull(), // uploadedfile format from clowder + sourcefilename: varchar('sourcefilename').notNull(), // uploaded file name from clowder + sourcefileuploadtime: timestamp('sourcefileuploadtime').notNull(), // time of file upload to clowder + datasetid: varchar('datasetid').notNull().unique(), // datasetID from clowder + datasetname: varchar('datasetname').notNull(), // dataset name from clowder. This is the name of the uploaded file without the extension. + + statement: varchar('statement').notNull().default('consort'), // statement type from clowder. spirit or consort + pagewidth: real('pagewidth').default(500), // page width from grobid output + pageheight: real('pageheight').default(799), // page height from grobid output + extractedpdffileid: varchar('extractedpdffileid'), // extracted pdf fileID from sOffice extractor + extractedxmlfileid: varchar('extractedxmlfileid'), // extracted xml fileID from pdf2text extractor + extractedjsonfileid: varchar('extractedjsonfileid'), // extracted json fileID from pdf2text extractor + extractedcsvfileid: varchar('extractedcsvfileid'), // extracted csv fileID from pdf2text or pymupdf extractor + inferencetime: timestamp('inferencetime'), // time of inference completion from model + predictioncsvfileid: varchar('predictioncsvfileid'), // prediction csv fileID from rct extractor + predictioncsvfilename: varchar('predictioncsvfilename'), // prediction csv file name from rct extractor + highlightsjsonfileid: varchar('highlightsjsonfileid'), // highlights json fileID from rct extractor + highlightsjsonfilename: varchar('highlightsjsonfilename'), // highlights json file name from rct extractor + reportcsvfileid: varchar('reportcsvfileid'), // report csv fileID from rct extractor + reportcsvfilename: varchar('reportcsvfilename'), // report csv file name from rct extractor + reportpdffileid: varchar('reportpdffileid'), // report pdf fileID from rct extractor + reportpdffilename: varchar('reportpdffilename'), // report pdf file name from rct extractor + nummissed: integer('nummissed'), // number of missed checklist items from model + useruuid: integer('useruuid').notNull().references(() => users.useruuid), // useruuid from users table + othermetadata: varchar('othermetadata') // other metadata from clowder +}); + +// Section table +const section = pgTable('section', { + sectionuuid: serial('sectionuuid').primaryKey(), + publicationuuid: integer('publicationuuid').notNull().references(() => publication.publicationuuid), + sectionname: varchar('sectionname').default('') +}); + +// Sentence table +const sentence = pgTable('sentence', { + sentenceuuid: serial('sentenceuuid').primaryKey(), + publicationuuid: integer('publicationuuid').notNull().references(() => publication.publicationuuid), + sectionuuid: integer('sectionuuid').notNull().references(() => section.sectionuuid), + sentenceno: integer('sentenceno').notNull(), + sentencetext: varchar('sentencetext').notNull(), + coordinates: varchar('coordinates'), + beginpage: integer('beginpage'), + endpage: integer('endpage') +}); + +// Statement section table +const statementSection = pgTable('statement_section', { + statementsectionuuid: serial('statementsectionuuid').primaryKey(), + publicationuuid: integer('publicationuuid').notNull().references(() => publication.publicationuuid), + statementsectionname: varchar('statementsectionname'), + statementsectionnummissed: integer('statementsectionnummissed') +}); + +// Statement topic table +const statementTopic = pgTable('statement_topic', { + statementtopicuuid: serial('statementtopicuuid').primaryKey(), + statementsectionuuid: integer('statementsectionuuid').notNull().references(() => statementSection.statementsectionuuid), + publicationuuid: integer('publicationuuid').notNull().references(() => publication.publicationuuid), + statementtopicname: varchar('statementtopicname'), +}); + +// Annotation table +const annotation = pgTable('annotation', { + annuuid: serial('annuuid').primaryKey(), + sentenceuuid: integer('sentenceuuid').notNull().references(() => sentence.sentenceuuid), + publicationuuid: integer('publicationuuid').notNull().references(() => publication.publicationuuid), + statementtopicuuid: integer('statementtopicuuid').notNull().references(() => statementTopic.statementtopicuuid), + label: varchar('label'), + labelscore: real('labelscore').default(0.0), + modelname: varchar('modelname'), + statementsectionname: varchar('statementsectionname'), + statementtopicname: varchar('statementtopicname') +}); + +// Annotation feedback table +const annotationFeedback = pgTable('annotationfeedback', { + feedbackuuid: serial('feedbackuuid').primaryKey(), + annuuid: integer('annuuid').notNull().references(() => annotation.annuuid), + useruuid: integer('useruuid').notNull().references(() => users.useruuid), + publicationuuid: integer('publicationuuid').notNull().references(() => publication.publicationuuid), + delete: boolean('delete').default(false), + newlabel: varchar('newlabel'), + time: timestamp('time') +}); + +module.exports = { + users, + publication, + section, + sentence, + statementSection, + statementTopic, + annotation, + annotationFeedback +}; \ No newline at end of file diff --git a/server/routes/auth.js b/server/routes/auth.js index b40c55a..9abb27d 100644 --- a/server/routes/auth.js +++ b/server/routes/auth.js @@ -3,7 +3,7 @@ const fetch = require("node-fetch"); var express = require('express'); var passport = require('passport'); const OAuth2Strategy = require('passport-oauth2').Strategy; -var db = require('../db'); +var db = require('../sessiondb'); @@ -64,6 +64,13 @@ const CIlogon_idp = [ const encodedEntityIDs = CIlogon_idp.map(item => encodeURIComponent(item.EntityID)); const concatenatedEntityIDs = encodedEntityIDs.join(','); +function lookupIdpMeta(entityId) { + if (!entityId) return { organizationName: null, idpDisplayName: null }; + const found = CIlogon_idp.find((item) => item.EntityID === entityId); + if (!found) return { organizationName: null, idpDisplayName: null }; + return { organizationName: found.OrganizationName || null, idpDisplayName: found.DisplayName || null }; +} + // authenticate use CILogon passport.use(new OAuth2Strategy({ state: true, @@ -94,6 +101,7 @@ passport.use(new OAuth2Strategy({ // and deserialized. passport.serializeUser(function(user, cb) { process.nextTick(function() { + // TODO: how to get user profile info from CILogon? like institution, email, etc. cb(null, { id: user.id, username: user.username, name: user.name }); }); }); @@ -180,11 +188,11 @@ router.get('/isAuthenticated', function(req, res) { router.get('/getUser', function(req, res) { if (req.isAuthenticated() && req.user) { res.json({ - username: req.user.name || null, + name: req.user.name || null, }); } else { res.json({ - username: "anonymous", + name: "Anonymous", }); } }); diff --git a/server/routes/index.js b/server/routes/index.js index 15ab5cb..ada746b 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -1,9 +1,4 @@ var express = require('express'); -var ensureLogIn = require('connect-ensure-login').ensureLoggedIn; -var db = require('../db'); - -var ensureLoggedIn = ensureLogIn(); - var router = express.Router(); diff --git a/server/routes/rctdb.js b/server/routes/rctdb.js new file mode 100644 index 0000000..6d9a0a4 --- /dev/null +++ b/server/routes/rctdb.js @@ -0,0 +1,228 @@ +const express = require('express'); +const router = express.Router(); +const { + userQueries, + publicationQueries, + annotationQueries, + feedbackQueries, + contentQueries, + statementQueries +} = require('../rctdb/queries'); + +// Users routes +router.get('/users', async (req, res) => { + try { + const users = await userQueries.getAllUsers(); + res.json(users); + } catch (error) { + console.error('Error fetching users:', error); + res.status(500).json({ error: 'Failed to fetch users' }); + } +}); + +router.post('/users', async (req, res) => { + try { + const userData = { + name: req.body.name, + email: req.body.email, + role: req.body.role, + lastlogin: new Date() + }; + const user = await userQueries.upsertUser(userData) + res.status(201).json(user[0]); + } catch (error) { + console.error('Error creating user:', error); + res.status(500).json({ error: 'Failed to create user', details: error.message }); + } +}); + +// TODO: need to be implemented +router.get('/users/:email', async (req, res) => { + try { + const user = await userQueries.getUserByEmail(req.params.email); + if (user.length === 0) { + return res.status(404).json({ error: 'User not found' }); + } + res.json(user[0]); + } catch (error) { + console.error('Error fetching user:', error); + res.status(500).json({ error: 'Failed to fetch user' }); + } +}); + +router.get('/users/:name', async (req, res) => { + try { + const user = await userQueries.getUserByName(req.params.name); + res.json(user[0]); + } catch (error) { + console.error('Error fetching user:', error); + res.status(500).json({ error: 'Failed to fetch user' }); + } +}); + +// Publications routes +router.get('/publications', async (req, res) => { + try { + const publications = await publicationQueries.getAllPublicationsWithUsers(); + res.json(publications); + } catch (error) { + console.error('Error fetching publications:', error); + res.status(500).json({ error: 'Failed to fetch publications' }); + } +}); + +router.post('/publications', async (req, res) => { + try { + const publication = await publicationQueries.upsertPublication({ + ...req.body + }); + res.status(201).json(publication[0]); + } catch (error) { + console.error('Error creating publication:', error); + res.status(500).json({ error: 'Failed to create publication' }); + } +}); + +router.get('/publications/:uuid', async (req, res) => { + try { + const publication = await publicationQueries.getPublicationByUuid(parseInt(req.params.uuid)); + if (publication.length === 0) { + return res.status(404).json({ error: 'Publication not found' }); + } + res.json(publication[0]); + } catch (error) { + console.error('Error fetching publication:', error); + res.status(500).json({ error: 'Failed to fetch publication' }); + } +}); + +router.get('/publications/dataset/:datasetId', async (req, res) => { + + try { + const publication = await publicationQueries.getPublicationByDatasetId(req.params.datasetId); + res.json(publication[0]); + } catch (error) { + console.error('Error fetching publication:', error); + res.status(500).json({ error: 'Failed to fetch publication' }); + } +}); + +router.get('/publications/:uuid/annotations', async (req, res) => { + try { + const annotations = await annotationQueries.getAnnotationsWithContext(parseInt(req.params.uuid)); + res.json(annotations); + } catch (error) { + console.error('Error fetching annotations:', error); + res.status(500).json({ error: 'Failed to fetch annotations' }); + } +}); + +router.get('/publications/:uuid/statementsection', async (req, res) => { + try { + const statementSection = await statementQueries.getStatementSectionByPublication(parseInt(req.params.uuid)); + res.json(statementSection); + } catch (error) { + console.error('Error fetching statement section:', error); + res.status(500).json({ error: 'Failed to fetch statement section' }); + } +}); + +router.get('/publications/:uuid/statementtopic', async (req, res) => { + try { + const statementTopic = await statementQueries.getStatementTopicByPublication(parseInt(req.params.uuid)); + res.json(statementTopic); + } catch (error) { + console.error('Error fetching statement topic:', error); + res.status(500).json({ error: 'Failed to fetch statement topic' }); + } +}); + +router.get('/publications/:uuid/statementsection/:statementsectionname', async (req, res) => { + try { + const statementSection = await statementQueries.getStatementSectionByPublicationAndName(parseInt(req.params.uuid), req.params.statementsectionname); + res.json(statementSection); + } catch (error) { + console.error('Error fetching statement section:', error); + res.status(500).json({ error: 'Failed to fetch statement section' }); + } +}); + +router.get('/publications/:uuid/statementtopic/:statementtopicname', async (req, res) => { + try { + const statementTopic = await statementQueries.getStatementTopicByPublicationAndName(parseInt(req.params.uuid), req.params.statementtopicname); + res.json(statementTopic); + } catch (error) { + console.error('Error fetching statement topic:', error); + res.status(500).json({ error: 'Failed to fetch statement topic' }); + } +}); + + +// Annotations routes +router.post('/annotations', async (req, res) => { + try { + const annotation = await annotationQueries.createAnnotation(req.body); + res.status(201).json(annotation[0]); + } catch (error) { + console.error('Error creating annotation:', error); + res.status(500).json({ error: 'Failed to create annotation' }); + } +}); + +router.put('/annotations/:uuid', async (req, res) => { + try { + const annotation = await annotationQueries.updateAnnotation(parseInt(req.params.uuid), req.body); + if (annotation.length === 0) { + return res.status(404).json({ error: 'Annotation not found' }); + } + res.json(annotation[0]); + } catch (error) { + console.error('Error updating annotation:', error); + res.status(500).json({ error: 'Failed to update annotation' }); + } +}); + +// Feedback routes +router.post('/feedback', async (req, res) => { + try { + const feedback = await feedbackQueries.createFeedback({ + ...req.body, + time: new Date() + }); + res.status(201).json(feedback[0]); + } catch (error) { + console.error('Error creating feedback:', error); + res.status(500).json({ error: 'Failed to create feedback' }); + } +}); + +router.get('/annotations/:uuid/feedback', async (req, res) => { + try { + const feedback = await feedbackQueries.getFeedbackByAnnotation(parseInt(req.params.uuid)); + res.json(feedback); + } catch (error) { + console.error('Error fetching feedback:', error); + res.status(500).json({ error: 'Failed to fetch feedback' }); + } +}); + +// Health check route +router.get('/health', async (req, res) => { + try { + const { rctdbTestConnection } = require('../rctdb/connection'); + const isHealthy = await rctdbTestConnection(); + res.json({ + status: isHealthy ? 'healthy' : 'unhealthy', + database: isHealthy ? 'connected' : 'disconnected', + timestamp: new Date().toISOString() + }); + } catch (error) { + res.status(500).json({ + status: 'unhealthy', + error: error.message, + timestamp: new Date().toISOString() + }); + } +}); + +module.exports = router; \ No newline at end of file diff --git a/server/db.js b/server/sessiondb.js similarity index 61% rename from server/db.js rename to server/sessiondb.js index 2dfe5f4..cfbb79c 100644 --- a/server/db.js +++ b/server/sessiondb.js @@ -3,10 +3,10 @@ var mkdirp = require('mkdirp'); mkdirp.sync('./var/db'); -var db = new sqlite3.Database('./var/db/sessions.db'); +var sessiondb = new sqlite3.Database('./var/db/sessions.db'); -db.serialize(function() { - db.run("CREATE TABLE IF NOT EXISTS users ( \ +sessiondb.serialize(function() { + sessiondb.run("CREATE TABLE IF NOT EXISTS users ( \ id INTEGER PRIMARY KEY, \ username TEXT UNIQUE, \ hashed_password BLOB, \ @@ -14,7 +14,7 @@ db.serialize(function() { name TEXT \ )"); - db.run("CREATE TABLE IF NOT EXISTS federated_credentials ( \ + sessiondb.run("CREATE TABLE IF NOT EXISTS federated_credentials ( \ id INTEGER PRIMARY KEY, \ user_id INTEGER NOT NULL, \ provider TEXT NOT NULL, \ @@ -24,4 +24,4 @@ db.serialize(function() { }); -module.exports = db; +module.exports = sessiondb; diff --git a/src/actions/client.js b/src/actions/client.js index e548ffa..07dcbf7 100644 --- a/src/actions/client.js +++ b/src/actions/client.js @@ -17,6 +17,7 @@ import {resetDatasetToDefault} from "./dataset"; import {resetPdfPreviewToDefault} from "./pdfpreview"; import {resetStatementToDefault} from "./dashboard"; import {resetUserCategoryToDefault} from "./dashboard"; +import {rctdbClient} from "../utils/rctdb-client"; const clientInfo = await getClientInfo(); @@ -24,10 +25,30 @@ const clientInfo = await getClientInfo(); // createUploadExtract thunk function export function createUploadExtract(file, config) { - return async function createUploadExtractThunk(dispatch) { + return async function createUploadExtractThunk(dispatch, getState) { // this function creates an empty dataset. uploads the file to the dataset and submits for extraction console.log("StatementType", config.statementType) console.log("UserCategory", config.userCategory) + // read username from redux state set by SET_USER + let usernameFromState = "Anonymous"; + try { + const state = typeof getState === "function" ? getState() : undefined; + if (state) { + if (state.user && typeof state.user.userName === "string" && state.user.userName.trim() !== "") { + usernameFromState = state.user.userName; + } + } + } catch (e) { + // keep default "Anonymous" on any unexpected error + console.warn("Could not read username from state.", e); + } + const email = usernameFromState === "Anonymous" + ? "anonymous@example.com" + : `${usernameFromState.toLowerCase().replace(/\s+/g, '.') }@example.com`; + const userData = await rctdbClient.upsertUser({ name: usernameFromState, email, role: config.userCategory }); + console.log("User upserted to RCTDB", usernameFromState); + console.log("User data updated in RCTDB", userData); + // Clowder API call to create empty dataset const file_name = file.name.replace(/\.[^/.]+$/, ""); // get filename without extension as dataset name const file_description = file.type; @@ -38,11 +59,29 @@ export function createUploadExtract(file, config) { // upload input file to dataset let file_json = await uploadFileToDatasetRequest(dataset_json.id, file, clientInfo); // return file ID. {id:xxx} OR {ids:[{id:xxx}, {id:xxx}]} if (file_json !== undefined){ + const publicationData = { + source: "Clowder", + datasetid: dataset_json.id, + datasetname: file_name, + sourcefilename: file.name, + sourcefileid: file_json.id, + sourcefileuploadtime: new Date(), + sourcefileformat: file.type, + statement: config.statementType, + useruuid: userData.useruuid + }; + try { + const publication_record = await rctdbClient.upsertPublication(publicationData); + console.log("Publication created in RCTDB", publication_record); + } catch (error) { + console.error("Error upserting publication:", error); + dispatch(setExtractionStatus("Error upserting publication")); + } file_json["filename"] = file.name; // submit uploaded file for extraction dispatch(setExtractionStatus("Analyzing file")); if (file.type == "application/vnd.openxmlformats-officedocument.wordprocessingml.document" || file.type =="application/msword"){ - const word_pipeline_status = await wordPipeline(file_json, dataset_json, config, clientInfo, dispatch); + const word_pipeline_status = await wordPipeline(file_json, dataset_json, config, clientInfo, dispatch, usernameFromState); if (word_pipeline_status) { console.log("Analysis complete"); dispatch(setExtractionStatus("Analysis complete")); @@ -55,7 +94,7 @@ export function createUploadExtract(file, config) { } else if (file.type == "application/pdf") { - const pdf_pipeline_status = await pdfPipeline(file_json, dataset_json, config, clientInfo, dispatch); + const pdf_pipeline_status = await pdfPipeline(file_json, dataset_json, config, clientInfo, dispatch, usernameFromState); if (pdf_pipeline_status) { console.log("Analysis complete."); dispatch(setExtractionStatus("Analysis complete")); diff --git a/src/actions/dashboard.js b/src/actions/dashboard.js index 663fe23..757a962 100644 --- a/src/actions/dashboard.js +++ b/src/actions/dashboard.js @@ -38,3 +38,19 @@ export function resetUserCategoryToDefault() { }; } + +export const SET_USER = "SET_USER"; +export const RESET_USER_TO_DEFAULT = "RESET_USER_TO_DEFAULT"; + +export function setUser(user) { + return { + type: SET_USER, + userName: user + }; +} + +export function resetUserToDefault() { + return { + type: RESET_USER_TO_DEFAULT + }; +} diff --git a/src/components/childComponents/CreateAndUpload.js b/src/components/childComponents/CreateAndUpload.js index 4fa3167..e1d101f 100644 --- a/src/components/childComponents/CreateAndUpload.js +++ b/src/components/childComponents/CreateAndUpload.js @@ -44,6 +44,7 @@ export default function CreateAndUpload() { const statementType = useSelector(state => state.statement.statementType); const userCategory = useSelector(state => state.userCategory.userCategory); const datasetStatus = useSelector(state => state.dataset.status); + const username = useSelector(state => state.user.userName) || 'Anonymous'; const [RCTmetadata, setRCTMetadata] = useState({}); // state for RCT metadata const [PDFmetadata, setPDFMetadata] = useState({}); // state for PDF metadata diff --git a/src/components/childComponents/FilePreview.js b/src/components/childComponents/FilePreview.js index c1c9b56..d5e5ba5 100644 --- a/src/components/childComponents/FilePreview.js +++ b/src/components/childComponents/FilePreview.js @@ -13,8 +13,9 @@ import {getPreviewResources} from "../../utils/file"; import PreviewDrawerLeft from "./PreviewDrawerLeft"; import Intro from "./Intro"; import CreateAndUpload from "./CreateAndUpload"; -import {getClientInfo} from "../../utils/common"; +import {getClientInfo, getJsonList} from "../../utils/common"; import config from "../../app.config"; +import {rctdbClient} from "../../utils/rctdb-client"; export default function FilePreview() { @@ -24,12 +25,37 @@ export default function FilePreview() { const filePreviews = useSelector((state) => state.file.previews); const [previews, setPreviews] = useState([]); // state for file previews + const datasets = useSelector((state) => state.dataset.datasets); // [{id: '68adf5f9e4b04fc9ce8e5811', status: 'csv-completed'}] + const datasetId = datasets[0].id; + const datasetMetadata = useSelector((state) => state.dataset.metadata); const [RCTmetadata, setRCTMetadata] = useState({}); // state for RCT metadata const [PDFmetadata, setPDFMetadata] = useState({}); // state for PDF metadata + const [publication, setPublication] = useState({}); // state for publication + const [annotations, setAnnotations] = useState([]); // state for annotations + const [statementSection, setStatementSection] = useState({}); // state for statement section + const [statementTopic, setStatementTopic] = useState({}); // state for statement topic // We don't want to clear states here as they're needed for preview + // get publication by datasetId + useEffect( async ()=> { + const publication = await rctdbClient.getPublicationByDatasetId(datasetId); + console.log("Publication:", publication); + setPublication(publication); + const annotations = await rctdbClient.getPublicationAnnotations(publication.publicationuuid); + console.log("Annotations:", annotations); + setAnnotations(annotations); + const statementSection = await rctdbClient.getPublicationStatementSection(publication.publicationuuid); + console.log("Statement Section:", statementSection); + setStatementSection(statementSection); + const statementTopic = await rctdbClient.getPublicationStatementTopic(publication.publicationuuid); + console.log("Statement Topic:", statementTopic); + setStatementTopic(statementTopic); + const jsonList = getJsonList(publication, annotations, statementSection, statementTopic); + console.log("jsonList:", jsonList); + }, [datasetId]); + // useEffect on filePreviews to download preview resources useEffect( async ()=> { // Reset the local previews state when filePreviews changes @@ -103,10 +129,20 @@ export default function FilePreview() { return ( {/* Drawer takes its fixed width */} - + {/* Main content area for PDF, allows it to grow and centers the PDF viewer */} - + ); diff --git a/src/components/childComponents/PreviewDrawerLeft.js b/src/components/childComponents/PreviewDrawerLeft.js index f59e24e..fe41545 100644 --- a/src/components/childComponents/PreviewDrawerLeft.js +++ b/src/components/childComponents/PreviewDrawerLeft.js @@ -31,7 +31,7 @@ export default function PreviewDrawerLeft(props) { const statementType = useSelector((state) => state.statement.statementType); const statementString = statementType.toUpperCase(); - const {fileId, fileSrc, metadata, ...other} = props; + const {fileId, fileSrc, metadata, publication, statementSection, statementTopic, annotations, ...other} = props; const [extractor, setExtractor] = useState(''); const [content, setContent] = useState({}); const [itemsMissed, setItemsMissed] = useState(''); @@ -115,9 +115,11 @@ export default function PreviewDrawerLeft(props) { let content = metadata; setContent(content); setExtractor(content["extractor"]); - setItemsMissed(content["items_missed"]); + //setItemsMissed(content["items_missed"]); + setItemsMissed(publication["nummissed"]); setChecklist(content["checklist"]); - setReportFileID(content["extracted_files"][1]["file_id"]) + //setReportFileID(content["extracted_files"][1]["file_id"]) + setReportFileID(publication["reportpdffileid"]) setReportFilename(content["extracted_files"][1]["filename"]) setItemFoundPages(get_item_found_pages(content["checklist"])) } diff --git a/src/components/childComponents/TopBar.jsx b/src/components/childComponents/TopBar.jsx index 029dedc..1cd0138 100644 --- a/src/components/childComponents/TopBar.jsx +++ b/src/components/childComponents/TopBar.jsx @@ -3,6 +3,10 @@ import {makeStyles} from '@material-ui/core/styles'; import {AppBar, Link, Toolbar, Typography, Button, Box} from '@material-ui/core'; import { Link as RouterLink } from 'react-router-dom'; import { theme } from '../../theme'; +import { useSelector, useDispatch } from 'react-redux'; +import { setUser } from '../../actions/dashboard'; +import { rctdbClient } from '../../utils/rctdb-client'; + const useStyles = makeStyles((theme) => ({ root: { @@ -56,7 +60,8 @@ const useStyles = makeStyles((theme) => ({ export default function TopBar() { const classes = useStyles(); const [isAuthenticated, setIsAuthenticated] = useState(false); - const [username, setUsername] = useState("anonymous"); + const [username, setUsername] = useState("Anonymous"); + const dispatch = useDispatch(); useEffect(() => { const checkAuthStatus = async () => { @@ -80,12 +85,13 @@ export default function TopBar() { method: 'GET', credentials: 'include', }); - const data = await response.json(); - setUsername(data.username); - console.log('Username set to:', data.username); + const data = await response.json(); + setUsername(data.name); + dispatch(setUser(data.name)); + console.log('User name set to:', data.name); } catch (error) { console.error('Error fetching username:', error); - setUsername('anonymous'); + setUsername('Anonymous'); } } getUsername(); @@ -119,7 +125,7 @@ export default function TopBar() { logo - {username !== 'anonymous' && ( + {username !== 'Anonymous' && (
new Promise((resolve) => setTimeout(resolve, ms)); -export async function submitForExtraction(file_id, extractor_name, statementType, clientInfo){ +export async function submitForExtraction(file_id, extractor_name, statementType, clientInfo, user = null){ // submits file for extraction and returns true if extraction is successful, else returns false + // user parameter contains the username from redux store let body = {} if (extractor_name === config.rct_extractor){ - body = {"extractor": extractor_name, "parameters": {"statement": statementType}}; + body = {"extractor": extractor_name, "parameters": {"statement": statementType, "user": user}}; } else{ body = {"extractor": extractor_name}; diff --git a/src/utils/pdf_pipeline.js b/src/utils/pdf_pipeline.js index 1994a88..966d177 100644 --- a/src/utils/pdf_pipeline.js +++ b/src/utils/pdf_pipeline.js @@ -4,9 +4,10 @@ import {submitForExtraction} from "../utils/file"; import {csvPipeline} from "../utils/csv_pipeline"; import {SET_EXTRACTION_STATUS, setExtractionStatus} from "../actions/file"; import {updateDatasetStatus} from "../actions/dataset"; +import {rctdbClient} from "./rctdb-client"; // pdf_pipeline function -export async function pdfPipeline(file_json, dataset_json, config, clientInfo, dispatch) { +export async function pdfPipeline(file_json, dataset_json, config, clientInfo, dispatch, user = null) { const fileid = file_json.id; const filename = file_json.filename; @@ -20,7 +21,7 @@ export async function pdfPipeline(file_json, dataset_json, config, clientInfo, d dispatch(setExtractionStatus("Extracting sentences and metadata from file")); dispatch(updateDatasetStatus(datasetid, "in progress")); - const pdf_extraction_submission = await submitForExtraction(fileid, pdf_extractor, statementType, clientInfo); + const pdf_extraction_submission = await submitForExtraction(fileid, pdf_extractor, statementType, clientInfo, user); if (pdf_extraction_submission) { const pdf_extraction_metadata = await getDatasetMetadataLoop(datasetid, pdf_extractor, clientInfo); if (pdf_extraction_metadata !== null && pdf_extraction_metadata !== undefined){ @@ -40,7 +41,9 @@ export async function pdfPipeline(file_json, dataset_json, config, clientInfo, d if (extracted_csv_file !== null && typeof extracted_csv_file.id === "string") { console.log("Extracted csv file found after pdf extraction", extracted_csv_file); - const csv_pipeline_status = await csvPipeline(extracted_csv_file, dataset_json, config, clientInfo, dispatch) + const publicationData = {datasetid: datasetid, extractedcsvfileid: extracted_csv_file.id}; + await rctdbClient.upsertPublication(publicationData); + const csv_pipeline_status = await csvPipeline(extracted_csv_file, dataset_json, config, clientInfo, dispatch, user) if (csv_pipeline_status) { dispatch(updateDatasetStatus(datasetid, "csv-completed")); } else { diff --git a/src/utils/rctdb-client-example.js b/src/utils/rctdb-client-example.js new file mode 100644 index 0000000..3ec201e --- /dev/null +++ b/src/utils/rctdb-client-example.js @@ -0,0 +1,349 @@ +/** + * RCTDB Client Usage Examples + * + * This file demonstrates how to use the RCTDB client to interact with the RCTDB API. + * Make sure to install axios first: npm install axios + */ +import React from 'react'; +import { rctdbClient, rctdbAPI, createRCTDBClient } from './rctdb-client.js'; + +// ============ BASIC USAGE EXAMPLES ============ + +/** + * Example 1: Using the default client instance + */ +export async function exampleBasicUsage() { + try { + // Test connection + const isHealthy = await rctdbClient.testConnection(); + console.log('RCTDB Connection:', isHealthy ? 'OK' : 'Failed'); + + // Get all users + const users = await rctdbClient.getAllUsers(); + console.log('Users:', users); + + // Get all publications + const publications = await rctdbClient.getAllPublications(); + console.log('Publications:', publications); + + } catch (error) { + console.error('Error in basic usage:', error); + } +} + +/** + * Example 2: Using the convenience API + */ +export async function exampleConvenienceAPI() { + try { + // Using shorthand methods + const users = await rctdbAPI.users.getAll(); + const publications = await rctdbAPI.publications.getAll(); + const healthStatus = await rctdbAPI.health.check(); + + console.log('Users:', users.length); + console.log('Publications:', publications.length); + console.log('Health:', healthStatus); + + } catch (error) { + console.error('Error in convenience API:', error); + } +} + +/** + * Example 3: Creating a custom client with configuration + */ +export async function exampleCustomClient() { + try { + // Create client with custom configuration + const customClient = createRCTDBClient({ + baseURL: 'http://localhost:3001/rctdb', + timeout: 15000, + headers: { + 'X-Custom-Header': 'MyApp/1.0' + } + }); + + // Set auth token if needed + customClient.setAuthToken('your-jwt-token-here'); + + const users = await customClient.getAllUsers(); + console.log('Custom client users:', users); + + } catch (error) { + console.error('Error in custom client:', error); + } +} + +// ============ CRUD OPERATION EXAMPLES ============ + +/** + * Example 4: User management operations + */ +export async function exampleUserOperations() { + try { + // Create a new user + const newUser = await rctdbClient.createUser({ + name: 'John Doe', + email: 'john.doe@example.com', + role: 'researcher' + }); + console.log('Created user:', newUser); + + // Get user by UUID + const user = await rctdbClient.getUserByUuid(newUser.uuid); + console.log('Retrieved user:', user); + + // Get all users + const allUsers = await rctdbClient.getAllUsers(); + console.log('Total users:', allUsers.length); + + } catch (error) { + console.error('Error in user operations:', error); + } +} + +/** + * Example 5: Publication management operations + */ +export async function examplePublicationOperations() { + try { + // Create a new publication + const newPublication = await rctdbClient.createPublication({ + title: 'My Research Paper', + abstract: 'This is an abstract of my research paper.', + authors: ['John Doe', 'Jane Smith'], + journal: 'Nature', + year: 2024, + doi: '10.1000/example.doi', + user_uuid: 1 // Assuming user with UUID 1 exists + }); + console.log('Created publication:', newPublication); + + // Get publication by UUID + const publication = await rctdbClient.getPublicationByUuid(newPublication.uuid); + console.log('Retrieved publication:', publication); + + // Get annotations for this publication + const annotations = await rctdbClient.getPublicationAnnotations(newPublication.uuid); + console.log('Publication annotations:', annotations); + + } catch (error) { + console.error('Error in publication operations:', error); + } +} + +/** + * Example 6: Annotation and feedback operations + */ +export async function exampleAnnotationOperations() { + try { + // Create an annotation + const newAnnotation = await rctdbClient.createAnnotation({ + publication_uuid: 1, // Assuming publication with UUID 1 exists + user_uuid: 1, // Assuming user with UUID 1 exists + text: 'This is an important finding', + page_number: 5, + coordinates: { x: 100, y: 200, width: 300, height: 50 }, + annotation_type: 'highlight' + }); + console.log('Created annotation:', newAnnotation); + + // Update the annotation + const updatedAnnotation = await rctdbClient.updateAnnotation(newAnnotation.uuid, { + text: 'This is a very important finding - updated' + }); + console.log('Updated annotation:', updatedAnnotation); + + // Create feedback for the annotation + const feedback = await rctdbClient.createFeedback({ + annotation_uuid: newAnnotation.uuid, + user_uuid: 2, // Different user providing feedback + feedback_type: 'agree', + comment: 'I agree with this annotation' + }); + console.log('Created feedback:', feedback); + + // Get all feedback for the annotation + const allFeedback = await rctdbClient.getAnnotationFeedback(newAnnotation.uuid); + console.log('All feedback:', allFeedback); + + } catch (error) { + console.error('Error in annotation operations:', error); + } +} + +// ============ ERROR HANDLING EXAMPLES ============ + +/** + * Example 7: Error handling and retry logic + */ +export async function exampleErrorHandling() { + try { + // Try to get a non-existent user + const user = await rctdbClient.getUserByUuid(99999); + console.log('User:', user); + } catch (error) { + if (error.message.includes('not found')) { + console.log('User not found - this is expected'); + } else { + console.error('Unexpected error:', error); + } + } + + // Example with retry logic + const maxRetries = 3; + let retries = 0; + + while (retries < maxRetries) { + try { + const health = await rctdbClient.checkHealth(); + console.log('Health check successful:', health); + break; + } catch (error) { + retries++; + console.log(`Health check failed, retry ${retries}/${maxRetries}`); + + if (retries >= maxRetries) { + console.error('Max retries reached, service unavailable'); + throw error; + } + + // Wait before retrying + await new Promise(resolve => setTimeout(resolve, 1000)); + } + } +} + +// ============ REACT HOOK EXAMPLES ============ + +/** + * Example 8: React hook for RCTDB operations + */ +export function useRCTDB() { + const [loading, setLoading] = React.useState(false); + const [error, setError] = React.useState(null); + + const executeWithErrorHandling = async (operation) => { + setLoading(true); + setError(null); + + try { + const result = await operation(); + return result; + } catch (err) { + setError(err.message); + throw err; + } finally { + setLoading(false); + } + }; + + return { + loading, + error, + // User operations + getUsers: () => executeWithErrorHandling(() => rctdbAPI.users.getAll()), + createUser: (data) => executeWithErrorHandling(() => rctdbAPI.users.create(data)), + + // Publication operations + getPublications: () => executeWithErrorHandling(() => rctdbAPI.publications.getAll()), + createPublication: (data) => executeWithErrorHandling(() => rctdbAPI.publications.create(data)), + + // Health check + checkHealth: () => executeWithErrorHandling(() => rctdbAPI.health.check()) + }; +} + +// ============ INTEGRATION EXAMPLES ============ + +/** + * Example 9: Full workflow example + */ +export async function exampleFullWorkflow() { + try { + console.log('Starting full workflow example...'); + + // 1. Check service health + const isHealthy = await rctdbClient.testConnection(); + if (!isHealthy) { + throw new Error('RCTDB service is not available'); + } + + // 2. Create a user + const user = await rctdbClient.createUser({ + name: 'Dr. Alice Research', + email: 'alice@university.edu', + role: 'principal_investigator' + }); + + // 3. Create a publication + const publication = await rctdbClient.createPublication({ + title: 'Advanced Machine Learning Techniques', + abstract: 'A comprehensive study of modern ML approaches.', + authors: ['Dr. Alice Research'], + user_uuid: user.uuid + }); + + // 4. Create annotations + const annotation1 = await rctdbClient.createAnnotation({ + publication_uuid: publication.uuid, + user_uuid: user.uuid, + text: 'Key methodology section', + page_number: 3, + annotation_type: 'note' + }); + + const annotation2 = await rctdbClient.createAnnotation({ + publication_uuid: publication.uuid, + user_uuid: user.uuid, + text: 'Important results', + page_number: 7, + annotation_type: 'highlight' + }); + + // 5. Get all annotations for the publication + const allAnnotations = await rctdbClient.getPublicationAnnotations(publication.uuid); + + console.log('Workflow completed successfully!'); + console.log('Created:', { + user: user.uuid, + publication: publication.uuid, + annotations: allAnnotations.length + }); + + } catch (error) { + console.error('Workflow failed:', error); + } +} + +// ============ EXPORT ALL EXAMPLES ============ + +export const examples = { + basicUsage: exampleBasicUsage, + convenienceAPI: exampleConvenienceAPI, + customClient: exampleCustomClient, + userOperations: exampleUserOperations, + publicationOperations: examplePublicationOperations, + annotationOperations: exampleAnnotationOperations, + errorHandling: exampleErrorHandling, + fullWorkflow: exampleFullWorkflow +}; + +// Run all examples (uncomment to test) +export async function runAllExamples() { + console.log('Running RCTDB Client Examples...'); + + for (const [name, example] of Object.entries(examples)) { + console.log(`\n--- ${name} ---`); + try { + await example(); + } catch (error) { + console.error(`Example ${name} failed:`, error); + } + break; + } +} + +// Auto-run the examples when this file is executed directly +runAllExamples().catch(console.error); \ No newline at end of file diff --git a/src/utils/rctdb-client.js b/src/utils/rctdb-client.js new file mode 100644 index 0000000..349bb4a --- /dev/null +++ b/src/utils/rctdb-client.js @@ -0,0 +1,246 @@ +import axios from 'axios'; + +// Configuration +const DEFAULT_BASE_URL = process.env.NODE_ENV === 'development' + ? 'http://localhost:3000/api/rctdb' + : '/api/rctdb'; +// const DEFAULT_TIMEOUT = 60000; // 60 seconds + +/** + * RCTDB API Client + * Provides methods to interact with all RCTDB routes + */ +class RCTDBClient { + constructor(config = {}) { + this.baseURL = config.baseURL || DEFAULT_BASE_URL; + // this.timeout = config.timeout || DEFAULT_TIMEOUT; + + // Create axios instance + this.client = axios.create({ + baseURL: this.baseURL, + // timeout: this.timeout, + headers: { + 'Content-Type': 'application/json', + ...config.headers + } + }); + + // Add request interceptor for logging + this.client.interceptors.request.use( + (config) => { + console.log(`[RCTDB] ${config.method?.toUpperCase()} ${config.url}`); + return config; + }, + (error) => { + console.error('[RCTDB] Request error:', error); + return Promise.reject(error); + } + ); + + // Add response interceptor for error handling + this.client.interceptors.response.use( + (response) => response, + (error) => { + console.error('[RCTDB] Response error:', error); + if (error.response?.data?.error) { + throw new Error(error.response.data.error); + } + throw error; + } + ); + } + + // ============ USER METHODS ============ + + /** + * Get all users + * @returns {Promise} Array of users + */ + async getAllUsers() { + const response = await this.client.get('/users'); + return response.data; + } + + /** + * Create a new user + * @param {Object} userData - User data object + * @returns {Promise} Created user object + */ + async upsertUser(userData) { + const response = await this.client.post('/users', userData); + return response.data; + } + + /** + * Get user by UUID + * @param {number} uuid - User UUID + * @returns {Promise} User object + */ + async getUserByEmail(email) { + const response = await this.client.get(`/users/${email}`); + return response.data; + } + + // ============ PUBLICATION METHODS ============ + + /** + * Get all publications with user information + * @returns {Promise} Array of publications with user data + */ + async getAllPublications() { + const response = await this.client.get('/publications'); + return response.data; + } + + /** + * Create a new publication + * @param {Object} publicationData - Publication data object + * @returns {Promise} Created publication object + */ + async upsertPublication(publicationData) { + const response = await this.client.post('/publications', publicationData); + return response.data; + } + + /** + * Get publication by UUID + * @param {number} uuid - Publication UUID + * @returns {Promise} Publication object + */ + async getPublicationByUuid(uuid) { + const response = await this.client.get(`/publications/${uuid}`); + return response.data; + } + + async getPublicationByDatasetId(datasetId) { + const response = await this.client.get(`/publications/dataset/${datasetId}`); + return response.data; + } + + /** + * Get annotations for a specific publication + * @param {number} publicationUuid - Publication UUID + * @returns {Promise} Array of annotations with context + */ + async getPublicationAnnotations(publicationUuid) { + const response = await this.client.get(`/publications/${publicationUuid}/annotations`); + return response.data; + } + + // Statement section from publicationuuid + async getPublicationStatementSection(publicationUuid) { + const response = await this.client.get(`/publications/${publicationUuid}/statementsection`); + return response.data; + } + + // Statement topic from publicationuuid + async getPublicationStatementTopic(publicationUuid) { + const response = await this.client.get(`/publications/${publicationUuid}/statementtopic`); + return response.data; + } + + + // ============ ANNOTATION METHODS ============ + + /** + * Create a new annotation + * @param {Object} annotationData - Annotation data object + * @returns {Promise} Created annotation object + */ + async createAnnotation(annotationData) { + const response = await this.client.post('/annotations', annotationData); + return response.data; + } + + /** + * Update an existing annotation + * @param {number} uuid - Annotation UUID + * @param {Object} updateData - Data to update + * @returns {Promise} Updated annotation object + */ + async updateAnnotation(uuid, updateData) { + const response = await this.client.put(`/annotations/${uuid}`, updateData); + return response.data; + } + + /** + * Get feedback for a specific annotation + * @param {number} annotationUuid - Annotation UUID + * @returns {Promise} Array of feedback objects + */ + async getAnnotationFeedback(annotationUuid) { + const response = await this.client.get(`/annotations/${annotationUuid}/feedback`); + return response.data; + } + + // ============ FEEDBACK METHODS ============ + + /** + * Create feedback for an annotation + * @param {Object} feedbackData - Feedback data object + * @returns {Promise} Created feedback object + */ + async createFeedback(feedbackData) { + const response = await this.client.post('/feedback', feedbackData); + return response.data; + } + + // ============ HEALTH CHECK ============ + + /** + * Check the health of the RCTDB service + * @returns {Promise} Health status object + */ + async checkHealth() { + const response = await this.client.get('/health'); + return response.data; + } + + // ============ UTILITY METHODS ============ + + /** + * Test connection to the RCTDB service + * @returns {Promise} True if connection is healthy + */ + async testConnection() { + try { + const health = await this.checkHealth(); + return health.status === 'healthy'; + } catch (error) { + console.error('[RCTDB] Connection test failed:', error); + return false; + } + } + + /** + * Set authorization token for authenticated requests + * @param {string} token - Authorization token + */ + setAuthToken(token) { + if (token) { + this.client.defaults.headers.common['Authorization'] = `Bearer ${token}`; + } else { + delete this.client.defaults.headers.common['Authorization']; + } + } + +} + +// ============ CONVENIENCE METHODS ============ + +/** + * Create a default RCTDB client instance + * @param {Object} config - Optional configuration + * @returns {RCTDBClient} RCTDB client instance + */ +export const createRCTDBClient = (config = {}) => { + return new RCTDBClient(config); +}; + +/** + * Default client instance + */ +export const rctdbClient = new RCTDBClient(); + + +export default RCTDBClient; \ No newline at end of file diff --git a/src/utils/word_pipeline.js b/src/utils/word_pipeline.js index 1e8ffd8..0434f24 100644 --- a/src/utils/word_pipeline.js +++ b/src/utils/word_pipeline.js @@ -4,9 +4,10 @@ import {submitForExtraction} from "../utils/file"; import {pdfPipeline} from "../utils/pdf_pipeline"; import {SET_EXTRACTION_STATUS, setExtractionStatus} from "../actions/file"; import {updateDatasetStatus} from "../actions/dataset"; +import {rctdbClient} from "./rctdb-client"; // word_pipeline function -export async function wordPipeline(file_json, dataset_json, config, clientInfo, dispatch) { +export async function wordPipeline(file_json, dataset_json, config, clientInfo, dispatch, user = null) { const fileid = file_json.id; const filename = file_json.filename; @@ -15,7 +16,7 @@ export async function wordPipeline(file_json, dataset_json, config, clientInfo, dispatch(setExtractionStatus("Extracting text from file")); dispatch(updateDatasetStatus(datasetid, "in progress")); - const soffice_extraction_submission = await submitForExtraction(fileid, config.soffice_extractor, config.statementType, clientInfo); + const soffice_extraction_submission = await submitForExtraction(fileid, config.soffice_extractor, config.statementType, clientInfo, user); if (soffice_extraction_submission) { // check for dataset metadata updation after extraction const soffice_extraction_metadata = await getDatasetMetadataLoop(datasetid, config.soffice_extractor, clientInfo); @@ -25,7 +26,9 @@ export async function wordPipeline(file_json, dataset_json, config, clientInfo, const fileNameWithoutExtension = filename.split('.').slice(0, -1).join('.'); const pdf_file_name = fileNameWithoutExtension + '.pdf'; const extracted_pdf_file = await getFileInDataset(datasetid, "application/pdf", pdf_file_name, clientInfo); - const pdf_pipeline_status = await pdfPipeline(extracted_pdf_file, dataset_json, config, clientInfo, dispatch); + const publicationData = {datasetid: datasetid, extractedpdffileid: extracted_pdf_file.id}; + await rctdbClient.upsertPublication(publicationData); + const pdf_pipeline_status = await pdfPipeline(extracted_pdf_file, dataset_json, config, clientInfo, dispatch, user); if (pdf_pipeline_status) { dispatch(updateDatasetStatus(datasetid, "pdf-completed")); } else {