From 04c601e41f9222c42ceb2c45b15dfc0fe81af56f Mon Sep 17 00:00:00 2001 From: phil Date: Fri, 11 Jul 2025 23:07:29 -0400 Subject: [PATCH] oops fix the server --- lexicons/package.json | 3 ++- server/index.js | 2 ++ server/package-lock.json | 30 ++++++++++++++++++++++++++++++ server/package.json | 2 ++ 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/lexicons/package.json b/lexicons/package.json index f1e3769..f76353e 100644 --- a/lexicons/package.json +++ b/lexicons/package.json @@ -4,5 +4,6 @@ "description": "info about atproto apps", "main": "index.js", "scripts": {}, - "author": "" + "author": "", + "type": "module" } diff --git a/server/index.js b/server/index.js index 70c190d..d21619a 100755 --- a/server/index.js +++ b/server/index.js @@ -7,6 +7,8 @@ import http from 'http'; import * as jose from 'jose'; import cookie from 'cookie'; import cookieSig from 'cookie-signature'; +import lexicons from 'lexicons'; +import psl from 'psl'; import webpush from 'web-push'; import WebSocket from 'ws'; import { v4 as uuidv4 } from 'uuid'; diff --git a/server/package-lock.json b/server/package-lock.json index 3f0c87e..60a2461 100644 --- a/server/package-lock.json +++ b/server/package-lock.json @@ -9,11 +9,16 @@ "cookie": "^1.0.2", "cookie-signature": "^1.2.2", "jose": "^6.0.11", + "lexicons": "file:../lexicons", + "psl": "^1.15.0", "uuid": "^11.1.0", "web-push": "^3.6.7", "ws": "^8.18.3" } }, + "../lexicons": { + "version": "0.0.1" + }, "node_modules/agent-base": { "version": "7.1.3", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz", @@ -328,6 +333,10 @@ "safe-buffer": "^5.0.1" } }, + "node_modules/lexicons": { + "resolved": "../lexicons", + "link": true + }, "node_modules/mimic-response": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", @@ -420,6 +429,18 @@ "node": ">=10" } }, + "node_modules/psl": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.15.0.tgz", + "integrity": "sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==", + "license": "MIT", + "dependencies": { + "punycode": "^2.3.1" + }, + "funding": { + "url": "https://github.com/sponsors/lupomontero" + } + }, "node_modules/pump": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.3.tgz", @@ -430,6 +451,15 @@ "once": "^1.3.1" } }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/rc": { "version": "1.2.8", "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", diff --git a/server/package.json b/server/package.json index 558bee0..521aef6 100644 --- a/server/package.json +++ b/server/package.json @@ -4,6 +4,8 @@ "cookie": "^1.0.2", "cookie-signature": "^1.2.2", "jose": "^6.0.11", + "lexicons": "file:../lexicons", + "psl": "^1.15.0", "uuid": "^11.1.0", "web-push": "^3.6.7", "ws": "^8.18.3" -- 2.51.2