chore: update dependencies

vega
NGPixel 7 months ago
parent d9523fe393
commit 7008ec8dcc
No known key found for this signature in database
GPG Key ID: B755FB6870B30F63

@ -2,7 +2,7 @@ import { DynamicThreadPool } from 'poolifier'
import os from 'node:os' import os from 'node:os'
import fs from 'node:fs/promises' import fs from 'node:fs/promises'
import path from 'node:path' import path from 'node:path'
import cronparser from 'cron-parser' import { CronExpressionParser } from 'cron-parser'
import { DateTime } from 'luxon' import { DateTime } from 'luxon'
import { v4 as uuid } from 'uuid' import { v4 as uuid } from 'uuid'
import { createDeferred } from '../helpers/common.mjs' import { createDeferred } from '../helpers/common.mjs'
@ -129,7 +129,7 @@ export default {
} }
}, },
async processJob () { async processJob () {
let jobIds = [] const jobIds = []
try { try {
const availableWorkers = this.maxWorkers - this.activeWorkers const availableWorkers = this.maxWorkers - this.activeWorkers
if (availableWorkers < 1) { if (availableWorkers < 1) {
@ -249,7 +249,7 @@ export default {
lastCheckedAt: DateTime.utc().toISO() lastCheckedAt: DateTime.utc().toISO()
}) })
if (jobLock > 0) { if (jobLock > 0) {
WIKI.logger.info(`Scheduling future planned jobs...`) WIKI.logger.info('Scheduling future planned jobs...')
const scheduledJobs = await WIKI.db.knex('jobSchedule') const scheduledJobs = await WIKI.db.knex('jobSchedule')
if (scheduledJobs?.length > 0) { if (scheduledJobs?.length > 0) {
// -> Get existing scheduled jobs // -> Get existing scheduled jobs
@ -257,10 +257,9 @@ export default {
let totalAdded = 0 let totalAdded = 0
for (const job of scheduledJobs) { for (const job of scheduledJobs) {
// -> Get next planned iterations // -> Get next planned iterations
const plannedIterations = cronparser.parseExpression(job.cron, { const plannedIterations = CronExpressionParser.parse(job.cron, {
startDate: DateTime.utc().toJSDate(), startDate: DateTime.utc().toJSDate(),
endDate: DateTime.utc().plus({ days: 1, minutes: 5 }).toJSDate(), endDate: DateTime.utc().plus({ days: 1, minutes: 5 }).toJSDate(),
iterator: true,
tz: 'UTC' tz: 'UTC'
}) })
// -> Add a maximum of 10 future iterations for a single task // -> Add a maximum of 10 future iterations for a single task
@ -291,7 +290,7 @@ export default {
if (totalAdded > 0) { if (totalAdded > 0) {
WIKI.logger.info(`Scheduled ${totalAdded} new future planned jobs: [ OK ]`) WIKI.logger.info(`Scheduled ${totalAdded} new future planned jobs: [ OK ]`)
} else { } else {
WIKI.logger.info(`No new future planned jobs to schedule: [ OK ]`) WIKI.logger.info('No new future planned jobs to schedule: [ OK ]')
} }
} }
} }

@ -36,65 +36,65 @@
"node": ">=18.0" "node": ">=18.0"
}, },
"dependencies": { "dependencies": {
"@apollo/server": "4.11.2", "@apollo/server": "4.11.3",
"@azure/storage-blob": "12.26.0", "@azure/storage-blob": "12.26.0",
"@exlinc/keycloak-passport": "1.0.2", "@exlinc/keycloak-passport": "1.0.2",
"@graphql-tools/schema": "10.0.7", "@graphql-tools/schema": "10.0.20",
"@graphql-tools/utils": "10.5.5", "@graphql-tools/utils": "10.8.3",
"@hexagon/base64": "2.0.4", "@hexagon/base64": "2.0.4",
"@joplin/turndown-plugin-gfm": "1.0.56", "@joplin/turndown-plugin-gfm": "1.0.61",
"@node-saml/passport-saml": "5.0.0", "@node-saml/passport-saml": "5.0.0",
"@root/csr": "0.8.1", "@root/csr": "0.8.1",
"@root/keypairs": "0.10.3", "@root/keypairs": "0.10.3",
"@root/pem": "1.0.4", "@root/pem": "1.0.4",
"@simplewebauthn/server": "11.0.0", "@simplewebauthn/server": "13.1.1",
"@vue-email/compiler": "0.8.14", "@vue-email/compiler": "0.8.14",
"acme": "3.0.3", "acme": "3.0.3",
"akismet-api": "6.0.0", "akismet-api": "6.0.0",
"aws-sdk": "2.1692.0", "aws-sdk": "2.1692.0",
"bcryptjs": "2.4.3", "bcryptjs": "3.0.2",
"chalk": "5.3.0", "chalk": "5.4.1",
"cheerio": "1.0.0", "cheerio": "1.0.0",
"chokidar": "4.0.1", "chokidar": "4.0.3",
"chromium-pickle-js": "0.2.0", "chromium-pickle-js": "0.2.0",
"clean-css": "5.3.3", "clean-css": "5.3.3",
"command-exists": "1.2.9", "command-exists": "1.2.9",
"compression": "1.7.5", "compression": "1.8.0",
"connect-session-knex": "5.0.0", "connect-session-knex": "5.0.0",
"cookie-parser": "1.4.7", "cookie-parser": "1.4.7",
"cors": "2.8.5", "cors": "2.8.5",
"cron-parser": "4.9.0", "cron-parser": "5.0.4",
"cuint": "0.2.2", "cuint": "0.2.2",
"custom-error-instance": "2.1.2", "custom-error-instance": "2.1.2",
"dependency-graph": "1.0.0", "dependency-graph": "1.0.0",
"diff": "7.0.0", "diff": "7.0.0",
"diff2html": "3.4.48", "diff2html": "3.4.51",
"dompurify": "3.2.2", "dompurify": "3.2.4",
"dotize": "0.3.0", "dotize": "0.3.0",
"emoji-regex": "10.4.0", "emoji-regex": "10.4.0",
"eventemitter2": "6.4.9", "eventemitter2": "6.4.9",
"express": "4.21.2", "express": "4.21.2",
"express-brute": "1.0.1", "express-brute": "1.0.1",
"express-session": "1.18.1", "express-session": "1.18.1",
"file-type": "19.6.0", "file-type": "20.4.0",
"filesize": "10.1.6", "filesize": "10.1.6",
"fs-extra": "11.2.0", "fs-extra": "11.3.0",
"getos": "3.2.1", "getos": "3.2.1",
"graphql": "16.9.0", "graphql": "16.10.0",
"graphql-list-fields": "2.0.4", "graphql-list-fields": "2.0.4",
"graphql-rate-limit-directive": "2.0.6", "graphql-rate-limit-directive": "2.0.6",
"graphql-tools": "9.0.2", "graphql-tools": "9.0.15",
"graphql-upload": "17.0.0", "graphql-upload": "17.0.0",
"gray-matter": "4.0.3", "gray-matter": "4.0.3",
"he": "1.2.0", "he": "1.2.0",
"highlight.js": "11.10.0", "highlight.js": "11.11.1",
"image-size": "1.1.1", "image-size": "2.0.0",
"js-base64": "3.7.7", "js-base64": "3.7.7",
"js-binary": "1.2.0", "js-binary": "1.2.0",
"js-yaml": "4.1.0", "js-yaml": "4.1.0",
"jsdom": "25.0.1", "jsdom": "26.0.0",
"jsonwebtoken": "9.0.2", "jsonwebtoken": "9.0.2",
"katex": "0.16.11", "katex": "0.16.21",
"klaw": "4.1.0", "klaw": "4.1.0",
"knex": "3.1.0", "knex": "3.1.0",
"lodash": "4.17.21", "lodash": "4.17.21",
@ -102,7 +102,7 @@
"luxon": "3.5.0", "luxon": "3.5.0",
"markdown-it": "14.1.0", "markdown-it": "14.1.0",
"markdown-it-abbr": "2.0.0", "markdown-it-abbr": "2.0.0",
"markdown-it-attrs": "4.3.0", "markdown-it-attrs": "4.3.1",
"markdown-it-decorate": "1.2.2", "markdown-it-decorate": "1.2.2",
"markdown-it-emoji": "3.0.0", "markdown-it-emoji": "3.0.0",
"markdown-it-expand-tabs": "1.0.13", "markdown-it-expand-tabs": "1.0.13",
@ -118,12 +118,12 @@
"mime-types": "2.1.35", "mime-types": "2.1.35",
"ms": "2.1.3", "ms": "2.1.3",
"multer": "1.4.5-lts.1", "multer": "1.4.5-lts.1",
"nanoid": "5.0.9", "nanoid": "5.1.2",
"node-2fa": "2.0.3", "node-2fa": "2.0.3",
"node-cache": "5.1.2", "node-cache": "5.1.2",
"nodemailer": "6.9.16", "nodemailer": "6.10.0",
"objection": "3.1.5", "objection": "3.1.5",
"octokit": "4.0.2", "octokit": "4.1.2",
"passport": "0.7.0", "passport": "0.7.0",
"passport-auth0": "1.4.4", "passport-auth0": "1.4.4",
"passport-azure-ad": "4.3.5", "passport-azure-ad": "4.3.5",
@ -144,44 +144,44 @@
"passport-slack-oauth2": "1.2.0", "passport-slack-oauth2": "1.2.0",
"passport-twitch-strategy": "2.2.0", "passport-twitch-strategy": "2.2.0",
"pem-jwk": "2.0.0", "pem-jwk": "2.0.0",
"pg": "8.13.1", "pg": "8.13.3",
"pg-hstore": "2.3.4", "pg-hstore": "2.3.4",
"pg-pubsub": "0.8.1", "pg-pubsub": "0.8.1",
"pg-query-stream": "4.7.1", "pg-query-stream": "4.7.3",
"pg-tsquery": "8.4.2", "pg-tsquery": "8.4.2",
"poolifier": "4.4.5", "poolifier": "4.4.5",
"prom-client": "15.1.3", "prom-client": "15.1.3",
"punycode": "2.3.1", "punycode": "2.3.1",
"puppeteer-core": "23.10.1", "puppeteer-core": "24.3.0",
"qr-image": "3.2.0", "qr-image": "3.2.0",
"remove-markdown": "0.5.5", "remove-markdown": "0.6.0",
"safe-regex": "2.1.1", "safe-regex": "2.1.1",
"sanitize-filename": "1.6.3", "sanitize-filename": "1.6.3",
"scim-query-filter-parser": "2.0.4", "scim-query-filter-parser": "2.0.4",
"semver": "7.6.3", "semver": "7.7.1",
"serve-favicon": "2.5.0", "serve-favicon": "2.5.0",
"sharp": "0.33.5", "sharp": "0.33.5",
"simple-git": "3.27.0", "simple-git": "3.27.0",
"socket.io": "4.8.1", "socket.io": "4.8.1",
"striptags": "3.2.0", "striptags": "3.2.0",
"tar-fs": "3.0.6", "tar-fs": "3.0.8",
"turndown": "7.2.0", "turndown": "7.2.0",
"twemoji": "14.0.2", "twemoji": "14.0.2",
"ufo": "1.5.4", "ufo": "1.5.4",
"uslug": "1.0.4", "uslug": "1.0.4",
"uuid": "11.0.3", "uuid": "11.1.0",
"validate.js": "0.13.1", "validate.js": "0.13.1",
"vue": "3.5.13", "vue": "3.5.13",
"xss": "1.0.15", "xss": "1.0.15",
"yargs": "17.7.2" "yargs": "17.7.2"
}, },
"devDependencies": { "devDependencies": {
"eslint": "9.16.0", "eslint": "9.21.0",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.31.0",
"eslint-plugin-node": "11.1.0", "eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "7.2.1", "eslint-plugin-promise": "7.2.1",
"neostandard": "0.11.9", "neostandard": "0.12.1",
"nodemon": "3.1.7" "nodemon": "3.1.9"
}, },
"overrides": { "overrides": {
"@graphql-tools/utils": "10.5.5" "@graphql-tools/utils": "10.5.5"

File diff suppressed because it is too large Load Diff

@ -11,36 +11,36 @@
"build": "NODE_OPTIONS=--max-old-space-size=8192 vite build --emptyOutDir" "build": "NODE_OPTIONS=--max-old-space-size=8192 vite build --emptyOutDir"
}, },
"dependencies": { "dependencies": {
"@apollo/client": "3.11.8", "@apollo/client": "3.13.1",
"@lezer/common": "1.2.3", "@lezer/common": "1.2.3",
"@mdi/font": "7.4.47", "@mdi/font": "7.4.47",
"@quasar/extras": "1.16.12", "@quasar/extras": "1.16.17",
"@simplewebauthn/browser": "11.0.0", "@simplewebauthn/browser": "13.1.0",
"@tiptap/core": "2.8.0", "@tiptap/core": "2.11.5",
"@tiptap/extension-code-block": "2.8.0", "@tiptap/extension-code-block": "2.11.5",
"@tiptap/extension-code-block-lowlight": "2.8.0", "@tiptap/extension-code-block-lowlight": "2.11.5",
"@tiptap/extension-color": "2.8.0", "@tiptap/extension-color": "2.11.5",
"@tiptap/extension-dropcursor": "2.8.0", "@tiptap/extension-dropcursor": "2.11.5",
"@tiptap/extension-font-family": "2.8.0", "@tiptap/extension-font-family": "2.11.5",
"@tiptap/extension-gapcursor": "2.8.0", "@tiptap/extension-gapcursor": "2.11.5",
"@tiptap/extension-hard-break": "2.8.0", "@tiptap/extension-hard-break": "2.11.5",
"@tiptap/extension-highlight": "2.8.0", "@tiptap/extension-highlight": "2.11.5",
"@tiptap/extension-history": "2.8.0", "@tiptap/extension-history": "2.11.5",
"@tiptap/extension-image": "2.8.0", "@tiptap/extension-image": "2.11.5",
"@tiptap/extension-mention": "2.8.0", "@tiptap/extension-mention": "2.11.5",
"@tiptap/extension-placeholder": "2.8.0", "@tiptap/extension-placeholder": "2.11.5",
"@tiptap/extension-table": "2.8.0", "@tiptap/extension-table": "2.11.5",
"@tiptap/extension-table-cell": "2.8.0", "@tiptap/extension-table-cell": "2.11.5",
"@tiptap/extension-table-header": "2.8.0", "@tiptap/extension-table-header": "2.11.5",
"@tiptap/extension-table-row": "2.8.0", "@tiptap/extension-table-row": "2.11.5",
"@tiptap/extension-task-item": "2.8.0", "@tiptap/extension-task-item": "2.11.5",
"@tiptap/extension-task-list": "2.8.0", "@tiptap/extension-task-list": "2.11.5",
"@tiptap/extension-text-align": "2.8.0", "@tiptap/extension-text-align": "2.11.5",
"@tiptap/extension-text-style": "2.8.0", "@tiptap/extension-text-style": "2.11.5",
"@tiptap/extension-typography": "2.8.0", "@tiptap/extension-typography": "2.11.5",
"@tiptap/pm": "2.8.0", "@tiptap/pm": "2.11.5",
"@tiptap/starter-kit": "2.8.0", "@tiptap/starter-kit": "2.11.5",
"@tiptap/vue-3": "2.8.0", "@tiptap/vue-3": "2.11.5",
"@vue/repl": "3.4.0", "@vue/repl": "3.4.0",
"@xterm/xterm": "5.5.0", "@xterm/xterm": "5.5.0",
"apollo-upload-client": "18.0.1", "apollo-upload-client": "18.0.1",
@ -51,19 +51,19 @@
"dependency-graph": "1.0.0", "dependency-graph": "1.0.0",
"filesize": "10.1.6", "filesize": "10.1.6",
"filesize-parser": "1.5.1", "filesize-parser": "1.5.1",
"fuse.js": "7.0.0", "fuse.js": "7.1.0",
"graphql": "16.9.0", "graphql": "16.10.0",
"graphql-tag": "2.12.6", "graphql-tag": "2.12.6",
"highlight.js": "11.10.0", "highlight.js": "11.11.1",
"js-cookie": "3.0.5", "js-cookie": "3.0.5",
"jwt-decode": "4.0.0", "jwt-decode": "4.0.0",
"katex": "0.16.11", "katex": "0.16.21",
"lodash-es": "4.17.21", "lodash-es": "4.17.21",
"lowlight": "3.1.0", "lowlight": "3.3.0",
"luxon": "3.5.0", "luxon": "3.5.0",
"markdown-it": "14.1.0", "markdown-it": "14.1.0",
"markdown-it-abbr": "2.0.0", "markdown-it-abbr": "2.0.0",
"markdown-it-attrs": "4.2.0", "markdown-it-attrs": "4.3.1",
"markdown-it-decorate": "1.2.2", "markdown-it-decorate": "1.2.2",
"markdown-it-emoji": "3.0.0", "markdown-it-emoji": "3.0.0",
"markdown-it-expand-tabs": "1.0.13", "markdown-it-expand-tabs": "1.0.13",
@ -76,58 +76,61 @@
"markdown-it-sup": "2.0.0", "markdown-it-sup": "2.0.0",
"markdown-it-task-lists": "2.1.1", "markdown-it-task-lists": "2.1.1",
"mitt": "3.0.1", "mitt": "3.0.1",
"monaco-editor": "0.52.0", "monaco-editor": "0.52.2",
"pako": "2.1.0", "pako": "2.1.0",
"pinia": "2.2.4", "pinia": "3.0.1",
"prosemirror-commands": "1.6.1", "prosemirror-commands": "1.7.0",
"prosemirror-history": "1.4.1", "prosemirror-history": "1.4.1",
"prosemirror-keymap": "1.2.2", "prosemirror-keymap": "1.2.2",
"prosemirror-model": "1.23.0", "prosemirror-model": "1.24.1",
"prosemirror-schema-list": "1.4.1", "prosemirror-schema-list": "1.5.0",
"prosemirror-state": "1.4.3", "prosemirror-state": "1.4.3",
"prosemirror-transform": "1.10.2", "prosemirror-transform": "1.10.2",
"prosemirror-view": "1.34.3", "prosemirror-view": "1.38.0",
"pug": "3.0.3", "pug": "3.0.3",
"quasar": "2.17.1", "quasar": "2.18.0",
"slugify": "1.6.6", "slugify": "1.6.6",
"socket.io-client": "4.8.0", "socket.io-client": "4.8.1",
"sortablejs": "1.15.3", "sortablejs": "1.15.6",
"sortablejs-vue3": "1.2.11", "sortablejs-vue3": "1.2.11",
"tabulator-tables": "6.3.0", "tabulator-tables": "6.3.1",
"tippy.js": "6.3.7", "tippy.js": "6.3.7",
"twemoji": "14.0.2", "twemoji": "14.0.2",
"typescript": "5.6.3", "typescript": "5.8.2",
"uuid": "10.0.0", "uuid": "11.1.0",
"v-network-graph": "0.9.17", "v-network-graph": "0.9.20",
"vue": "3.5.12", "vue": "3.5.13",
"vue-i18n": "10.0.4", "vue-i18n": "11.1.1",
"vue-router": "4.4.5", "vue-router": "4.5.0",
"vue3-otp-input": "0.5.21", "vue3-otp-input": "0.5.21",
"vuedraggable": "4.1.0", "vuedraggable": "4.1.0",
"zxcvbn": "4.4.2" "zxcvbn": "4.4.2"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "9.13.0", "@eslint/js": "9.21.0",
"@intlify/unplugin-vue-i18n": "5.2.0", "@intlify/unplugin-vue-i18n": "6.0.3",
"@quasar/app-vite": "2.0.0-beta.24", "@quasar/app-vite": "2.1.1",
"@quasar/vite-plugin": "1.8.0", "@quasar/vite-plugin": "1.9.0",
"@types/lodash": "4.17.12", "@types/lodash": "4.17.16",
"@vue/devtools": "7.5.2", "@vue/devtools": "7.7.2",
"@vue/language-plugin-pug": "2.1.6", "@vue/language-plugin-pug": "2.2.6",
"autoprefixer": "10.4.20", "autoprefixer": "10.4.20",
"browserlist": "latest", "browserlist": "latest",
"eslint": "9.13.0", "eslint": "9.21.0",
"eslint-plugin-import": "2.31.0", "eslint-plugin-import": "2.31.0",
"eslint-plugin-n": "17.11.1", "eslint-plugin-n": "17.15.1",
"eslint-plugin-promise": "7.1.0", "eslint-plugin-promise": "7.2.1",
"eslint-plugin-vue": "9.29.0", "eslint-plugin-vue": "9.32.0",
"eslint-plugin-vue-pug": "0.6.2", "eslint-plugin-vue-pug": "0.6.2",
"neostandard": "0.11.6", "neostandard": "0.12.1",
"sass": "1.80.3" "sass": "1.85.1"
}, },
"engines": { "engines": {
"node": ">= 18.0", "node": ">= 18.0",
"npm": ">= 6.13.4" "npm": ">= 6.13.4"
}, },
"overrides": {
"typescript": "5.8.2"
},
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228" "packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
} }

File diff suppressed because it is too large Load Diff

@ -65,6 +65,7 @@ export default defineConfig(({ mode }) => {
server: { server: {
// https: true // https: true
open: false, // opens browser window automatically open: false, // opens browser window automatically
allowedHosts: true,
port: userConfig.dev?.port, port: userConfig.dev?.port,
proxy: ['_graphql', '_blocks', '_site', '_thumb', '_user'].reduce((result, key) => { proxy: ['_graphql', '_blocks', '_site', '_thumb', '_user'].reduce((result, key) => {
result[`/${key}`] = { result[`/${key}`] = {

Loading…
Cancel
Save