update packages

This commit is contained in:
keyan 2023-08-15 19:52:55 -05:00
parent 7c426aa420
commit 7e4a874068
3 changed files with 520 additions and 539 deletions

View File

@ -4,8 +4,9 @@ import { Server } from '@synonymdev/slashtags-auth'
const HOUR = 1000 * 60 * 60 const HOUR = 1000 * 60 * 60
async function createProfile (slashtag) { async function createProfile (sdk, slashtag) {
const publicDrive = slashtag.drivestore.get() const publicDrive = slashtag.drivestore.get()
await sdk.swarm.flush()
await publicDrive.ready() await publicDrive.ready()
const exists = await publicDrive.get('/profile.json') const exists = await publicDrive.get('/profile.json')
if (!exists) { if (!exists) {
@ -17,7 +18,7 @@ async function createProfile (slashtag) {
} }
} }
const slashtags = global.slashtags || (() => { const slashtags = global.slashtags || await (async () => {
console.log('initing slashtags') console.log('initing slashtags')
const sdk = new SDK({ const sdk = new SDK({
primaryKey: process.env.SLASHTAGS_SECRET ? Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') : undefined, primaryKey: process.env.SLASHTAGS_SECRET ? Buffer.from(process.env.SLASHTAGS_SECRET, 'hex') : undefined,
@ -27,7 +28,7 @@ const slashtags = global.slashtags || (() => {
// Get the default slashtag // Get the default slashtag
const slashtag = sdk.slashtag() const slashtag = sdk.slashtag()
createProfile(slashtag) await createProfile(sdk, slashtag)
const server = new Server(slashtag, { const server = new Server(slashtag, {
onauthz: async (token, remote) => { onauthz: async (token, remote) => {

1014
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,20 +10,20 @@
"lint": "standard" "lint": "standard"
}, },
"dependencies": { "dependencies": {
"@apollo/client": "^3.7.17", "@apollo/client": "^3.8.1",
"@apollo/server": "^4.9.0", "@apollo/server": "^4.9.1",
"@as-integrations/next": "^2.0.1", "@as-integrations/next": "^2.0.1",
"@auth/prisma-adapter": "^1.0.1", "@auth/prisma-adapter": "^1.0.1",
"@graphql-tools/schema": "^10.0.0", "@graphql-tools/schema": "^10.0.0",
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@opensearch-project/opensearch": "^2.3.1", "@opensearch-project/opensearch": "^2.3.1",
"@prisma/client": "^5.0.0", "@prisma/client": "^5.1.1",
"@synonymdev/slashtags-auth": "^1.0.0-alpha.5", "@synonymdev/slashtags-auth": "^1.0.0-alpha.5",
"@synonymdev/slashtags-sdk": "^1.0.0-alpha.36", "@synonymdev/slashtags-sdk": "^1.0.0-alpha.36",
"acorn": "^8.10.0", "acorn": "^8.10.0",
"ajv": "^8.12.0", "ajv": "^8.12.0",
"async-retry": "^1.3.1", "async-retry": "^1.3.1",
"aws-sdk": "^2.1425.0", "aws-sdk": "^2.1437.0",
"babel-plugin-inline-react-svg": "^2.0.2", "babel-plugin-inline-react-svg": "^2.0.2",
"bech32": "^2.0.0", "bech32": "^2.0.0",
"bolt11": "^1.4.1", "bolt11": "^1.4.1",
@ -32,21 +32,21 @@
"clipboard-copy": "^4.0.1", "clipboard-copy": "^4.0.1",
"cross-fetch": "^4.0.0", "cross-fetch": "^4.0.0",
"domino": "^2.1.6", "domino": "^2.1.6",
"formik": "^2.4.2", "formik": "^2.4.3",
"github-slugger": "^2.0.0", "github-slugger": "^2.0.0",
"graphql": "^16.7.1", "graphql": "^16.8.0",
"graphql-tag": "^2.12.6", "graphql-tag": "^2.12.6",
"graphql-type-json": "^0.3.2", "graphql-type-json": "^0.3.2",
"jose1": "npm:jose@^1.27.2", "jose1": "npm:jose@^1.27.2",
"ln-service": "^56.9.0", "ln-service": "^56.11.0",
"mathjs": "^11.9.1", "mathjs": "^11.9.1",
"mdast-util-find-and-replace": "^3.0.0", "mdast-util-find-and-replace": "^3.0.0",
"mdast-util-from-markdown": "^2.0.0", "mdast-util-from-markdown": "^2.0.0",
"mdast-util-gfm": "^3.0.0", "mdast-util-gfm": "^3.0.0",
"mdast-util-to-string": "^4.0.0", "mdast-util-to-string": "^4.0.0",
"micromark-extension-gfm": "^3.0.0", "micromark-extension-gfm": "^3.0.0",
"next": "^13.4.13-canary.12", "next": "^13.4.16",
"next-auth": "^4.22.3", "next-auth": "^4.23.0",
"next-plausible": "^3.10.1", "next-plausible": "^3.10.1",
"next-seo": "^6.1.0", "next-seo": "^6.1.0",
"node-s3-url-encode": "^0.0.4", "node-s3-url-encode": "^0.0.4",
@ -57,7 +57,7 @@
"page-metadata-parser": "^1.1.4", "page-metadata-parser": "^1.1.4",
"pageres": "^7.1.0", "pageres": "^7.1.0",
"pg-boss": "^9.0.3", "pg-boss": "^9.0.3",
"prisma": "^5.0.0", "prisma": "^5.1.1",
"qrcode.react": "^3.1.0", "qrcode.react": "^3.1.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-avatar-editor": "^13.0.0", "react-avatar-editor": "^13.0.0",
@ -71,13 +71,13 @@
"react-textarea-autosize": "^8.5.2", "react-textarea-autosize": "^8.5.2",
"react-twitter-embed": "^4.0.4", "react-twitter-embed": "^4.0.4",
"react-youtube": "^10.1.0", "react-youtube": "^10.1.0",
"recharts": "^2.7.2", "recharts": "^2.7.3",
"remark-directive": "^2.0.1", "remark-directive": "^2.0.1",
"remark-gfm": "^3.0.1", "remark-gfm": "^3.0.1",
"remove-markdown": "^0.5.0", "remove-markdown": "^0.5.0",
"sass": "^1.64.1", "sass": "^1.65.1",
"tldts": "^6.0.13",
"serviceworker-storage": "^0.1.0", "serviceworker-storage": "^0.1.0",
"tldts": "^6.0.14",
"typescript": "^5.1.6", "typescript": "^5.1.6",
"unist-util-visit": "^5.0.0", "unist-util-visit": "^5.0.0",
"url-unshort": "^6.1.0", "url-unshort": "^6.1.0",
@ -104,13 +104,15 @@
"extends": [ "extends": [
"next" "next"
], ],
"ignore": ["**/spawn"] "ignore": [
"**/spawn"
]
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.22.9", "@babel/core": "^7.22.10",
"@babel/eslint-parser": "^7.22.9", "@babel/eslint-parser": "^7.22.10",
"@next/eslint-plugin-next": "^13.4.12", "@next/eslint-plugin-next": "^13.4.16",
"eslint": "^8.46.0", "eslint": "^8.47.0",
"standard": "^17.1.0" "standard": "^17.1.0"
} }
} }