refactor: ⬆️ upgrade to @ladjs/koa-views

Original koa-views is officially deprecated
This commit is contained in:
ThatOneCalculator 2023-10-08 17:26:40 -07:00
parent 5003969682
commit a9bece9b3d
No known key found for this signature in database
GPG key ID: 8703CACD01000000
2 changed files with 228 additions and 5 deletions

View file

@ -34,6 +34,7 @@
"@koa/cors": "3.4.3",
"@koa/multer": "3.0.2",
"@koa/router": "9.0.1",
"@ladjs/koa-views": "^9.0.0",
"@peertube/http-signature": "1.7.0",
"@redocly/openapi-core": "1.0.2",
"@sinonjs/fake-timers": "9.1.2",
@ -86,7 +87,6 @@
"koa-remove-trailing-slashes": "2.0.3",
"koa-send": "5.0.1",
"koa-slow": "2.1.0",
"koa-views": "7.0.2",
"megalodon": "8.1.1",
"meilisearch": "0.34.1",
"mfm-js": "0.23.3",

View file

@ -120,6 +120,9 @@ importers:
'@koa/router':
specifier: 9.0.1
version: 9.0.1
'@ladjs/koa-views':
specifier: ^9.0.0
version: 9.0.0(@babel/core@7.22.10)(@types/koa@2.13.8)(pug@3.0.2)
'@peertube/http-signature':
specifier: 1.7.0
version: 1.7.0
@ -276,11 +279,8 @@ importers:
koa-slow:
specifier: 2.1.0
version: 2.1.0
koa-views:
specifier: 7.0.2
version: 7.0.2(@types/koa@2.13.8)(ejs@3.1.9)(pug@3.0.2)
megalodon:
specifier: ^8.1.1
specifier: 8.1.1
version: 8.1.1
meilisearch:
specifier: 0.34.1
@ -2457,6 +2457,229 @@ packages:
resolution: {integrity: sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==}
dev: true
/@ladjs/consolidate@1.0.3(@babel/core@7.22.10)(pug@3.0.2):
resolution: {integrity: sha512-zyUeV5nkEFz7FH88pz+moVeMMOygTx1zL5bjXGHCVX5MMpmAtFf5piaQlBDk3nClGoUs8vjYI9TKsbXldGv0VA==}
engines: {node: '>=14'}
peerDependencies:
'@babel/core': ^7.22.5
arc-templates: ^0.5.3
atpl: '>=0.7.6'
bracket-template: ^1.1.5
coffee-script: ^1.12.7
dot: ^1.1.3
dust: ^0.3.0
dustjs-helpers: ^1.7.4
dustjs-linkedin: ^2.7.5
eco: ^1.1.0-rc-3
ect: ^0.5.9
ejs: ^3.1.5
haml-coffee: ^1.14.1
hamlet: ^0.3.3
hamljs: ^0.6.2
handlebars: ^4.7.6
hogan.js: ^3.0.2
htmling: ^0.0.8
jazz: ^0.0.18
jqtpl: ~1.1.0
just: ^0.1.8
liquid-node: ^3.0.1
liquor: ^0.0.5
lodash: ^4.17.20
mote: ^0.2.0
mustache: ^4.0.1
nunjucks: ^3.2.2
plates: ~0.4.11
pug: ^3.0.0
qejs: ^3.0.5
ractive: ^1.3.12
react: '>=16.13.1'
react-dom: '>=16.13.1'
slm: ^2.0.0
swig: ^1.4.2
swig-templates: ^2.0.3
teacup: ^2.0.0
templayed: '>=0.2.3'
then-pug: '*'
tinyliquid: ^0.2.34
toffee: ^0.3.6
twig: ^1.15.2
twing: ^5.0.2
underscore: ^1.11.0
vash: ^0.13.0
velocityjs: ^2.0.1
walrus: ^0.10.1
whiskers: ^0.4.0
peerDependenciesMeta:
'@babel/core':
optional: true
arc-templates:
optional: true
atpl:
optional: true
bracket-template:
optional: true
coffee-script:
optional: true
dot:
optional: true
dust:
optional: true
dustjs-helpers:
optional: true
dustjs-linkedin:
optional: true
eco:
optional: true
ect:
optional: true
ejs:
optional: true
haml-coffee:
optional: true
hamlet:
optional: true
hamljs:
optional: true
handlebars:
optional: true
hogan.js:
optional: true
htmling:
optional: true
jazz:
optional: true
jqtpl:
optional: true
just:
optional: true
liquid-node:
optional: true
liquor:
optional: true
lodash:
optional: true
mote:
optional: true
mustache:
optional: true
nunjucks:
optional: true
plates:
optional: true
pug:
optional: true
qejs:
optional: true
ractive:
optional: true
react:
optional: true
react-dom:
optional: true
slm:
optional: true
swig:
optional: true
swig-templates:
optional: true
teacup:
optional: true
templayed:
optional: true
then-pug:
optional: true
tinyliquid:
optional: true
toffee:
optional: true
twig:
optional: true
twing:
optional: true
underscore:
optional: true
vash:
optional: true
velocityjs:
optional: true
walrus:
optional: true
whiskers:
optional: true
dependencies:
'@babel/core': 7.22.10
pug: 3.0.2
dev: false
/@ladjs/koa-views@9.0.0(@babel/core@7.22.10)(@types/koa@2.13.8)(pug@3.0.2):
resolution: {integrity: sha512-/nzUN3HhB7SIxrE4c2MXCLARXMwgoy7xJogyX8lNJo4VBxM6dVQ47iZWjOoHxTBKGFNAv2OTQ0rWI7HYpiv8kg==}
engines: {node: '>=14'}
peerDependencies:
'@types/koa': ^2.13.1
peerDependenciesMeta:
'@types/koa':
optional: true
dependencies:
'@ladjs/consolidate': 1.0.3(@babel/core@7.22.10)(pug@3.0.2)
'@types/koa': 2.13.8
debug: 4.3.4(supports-color@8.1.1)
get-paths: 0.0.7
koa-send: 5.0.1
mz: 2.7.0
pretty: 2.0.0
resolve-path: 1.4.0
transitivePeerDependencies:
- '@babel/core'
- arc-templates
- atpl
- bracket-template
- coffee-script
- dot
- dust
- dustjs-helpers
- dustjs-linkedin
- eco
- ect
- ejs
- haml-coffee
- hamlet
- hamljs
- handlebars
- hogan.js
- htmling
- jazz
- jqtpl
- just
- liquid-node
- liquor
- lodash
- mote
- mustache
- nunjucks
- plates
- pug
- qejs
- ractive
- react
- react-dom
- slm
- supports-color
- swig
- swig-templates
- teacup
- templayed
- then-pug
- tinyliquid
- toffee
- twig
- twing
- underscore
- vash
- velocityjs
- walrus
- whiskers
dev: false
/@mapbox/node-pre-gyp@1.0.11:
resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}
hasBin: true