mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
build(deps): update latest
This commit is contained in:
parent
7977c42c20
commit
c7c152a554
@ -2,5 +2,5 @@
|
||||
"*": ["editorconfig-checker"],
|
||||
"*.{js,jsx,ts,tsx}": ["prettier --write", "eslint --fix"],
|
||||
"*.{json,jsonc,yml,yaml}": ["prettier --write"],
|
||||
"*.{md}": ["prettier --write", "markdownlint --dot --fix"]
|
||||
"*.{md,mdx}": ["prettier --write", "markdownlint-cli2 --fix"]
|
||||
}
|
||||
|
10
.markdownlint-cli2.jsonc
Normal file
10
.markdownlint-cli2.jsonc
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"config": {
|
||||
"default": true,
|
||||
"MD013": false,
|
||||
"MD033": false,
|
||||
"MD041": false
|
||||
},
|
||||
"globs": ["**/*.{md,mdx}"],
|
||||
"ignores": ["**/node_modules"]
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"default": true,
|
||||
"MD013": false,
|
||||
"MD024": false,
|
||||
"MD033": false,
|
||||
"MD041": false
|
||||
}
|
14
.swcrc
14
.swcrc
@ -2,21 +2,11 @@
|
||||
"jsc": {
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"decorators": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"transform": {
|
||||
"legacyDecorator": true,
|
||||
"decoratorMetadata": true
|
||||
},
|
||||
"target": "es2022",
|
||||
"loose": true
|
||||
"target": "es2022"
|
||||
},
|
||||
"module": {
|
||||
"type": "es6",
|
||||
"strict": false,
|
||||
"strictMode": true,
|
||||
"lazy": false,
|
||||
"noInterop": false
|
||||
"type": "es6"
|
||||
}
|
||||
}
|
||||
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -6,5 +6,6 @@
|
||||
"editor.formatOnSave": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll": true
|
||||
}
|
||||
},
|
||||
"eslint.options": { "ignorePath": ".gitignore" }
|
||||
}
|
||||
|
5684
package-lock.json
generated
5684
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
46
package.json
46
package.json
@ -35,7 +35,7 @@
|
||||
"build:dev": "swc ./src --out-dir ./build --watch",
|
||||
"lint:commit": "commitlint",
|
||||
"lint:editorconfig": "editorconfig-checker",
|
||||
"lint:markdown": "markdownlint \"**/*.md\" --dot --ignore-path \".gitignore\"",
|
||||
"lint:markdown": "markdownlint-cli2",
|
||||
"lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\"",
|
||||
"lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"",
|
||||
"lint:staged": "lint-staged",
|
||||
@ -52,36 +52,36 @@
|
||||
"jsonwebtoken": "8.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "16.2.4",
|
||||
"@commitlint/config-conventional": "16.2.4",
|
||||
"@commitlint/cli": "17.1.2",
|
||||
"@commitlint/config-conventional": "17.1.0",
|
||||
"@swc/cli": "0.1.57",
|
||||
"@swc/core": "1.2.182",
|
||||
"@types/jsonwebtoken": "8.5.8",
|
||||
"@types/node": "17.0.32",
|
||||
"@swc/core": "1.2.249",
|
||||
"@types/jsonwebtoken": "8.5.9",
|
||||
"@types/node": "18.7.16",
|
||||
"@types/tap": "15.0.7",
|
||||
"@typescript-eslint/eslint-plugin": "5.23.0",
|
||||
"@typescript-eslint/parser": "5.23.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.36.2",
|
||||
"@typescript-eslint/parser": "5.36.2",
|
||||
"axios": "0.27.2",
|
||||
"c8": "7.11.2",
|
||||
"c8": "7.12.0",
|
||||
"editorconfig-checker": "4.0.2",
|
||||
"eslint": "8.15.0",
|
||||
"eslint-config-conventions": "2.0.0",
|
||||
"eslint": "8.23.0",
|
||||
"eslint-config-conventions": "4.0.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-prettier": "4.0.0",
|
||||
"eslint-plugin-promise": "6.0.0",
|
||||
"eslint-plugin-unicorn": "42.0.0",
|
||||
"fastify": "3.29.0",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-promise": "6.0.1",
|
||||
"eslint-plugin-unicorn": "43.0.2",
|
||||
"fastify": "4.5.3",
|
||||
"husky": "8.0.1",
|
||||
"lint-staged": "12.4.1",
|
||||
"markdownlint-cli": "0.31.1",
|
||||
"lint-staged": "13.0.3",
|
||||
"markdownlint-cli2": "0.5.1",
|
||||
"pinst": "3.0.0",
|
||||
"prettier": "2.6.2",
|
||||
"prettier": "2.7.1",
|
||||
"rimraf": "3.0.2",
|
||||
"semantic-release": "19.0.3",
|
||||
"socket.io": "4.5.0",
|
||||
"socket.io-client": "4.5.0",
|
||||
"tap": "16.2.0",
|
||||
"typescript": "4.6.4"
|
||||
"semantic-release": "19.0.5",
|
||||
"socket.io": "4.5.2",
|
||||
"socket.io-client": "4.5.2",
|
||||
"tap": "16.3.0",
|
||||
"typescript": "4.8.3"
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +1,16 @@
|
||||
import tap from 'tap'
|
||||
import axios from 'axios'
|
||||
import { io, Socket } from 'socket.io-client'
|
||||
import type { Socket } from 'socket.io-client'
|
||||
import { io } from 'socket.io-client'
|
||||
|
||||
import { isUnauthorizedError } from '../UnauthorizedError.js'
|
||||
import type { Profile } from './fixture/index.js'
|
||||
import {
|
||||
API_URL,
|
||||
fixtureStart,
|
||||
fixtureStop,
|
||||
getSocket,
|
||||
basicProfile,
|
||||
Profile
|
||||
basicProfile
|
||||
} from './fixture/index.js'
|
||||
|
||||
export const api = axios.create({
|
||||
|
@ -1,8 +1,10 @@
|
||||
import jwt from 'jsonwebtoken'
|
||||
import { Server as SocketIoServer } from 'socket.io'
|
||||
import fastify, { FastifyInstance } from 'fastify'
|
||||
import type { FastifyInstance } from 'fastify'
|
||||
import fastify from 'fastify'
|
||||
|
||||
import { authorize, AuthorizeOptions } from '../../index.js'
|
||||
import type { AuthorizeOptions } from '../../index.js'
|
||||
import { authorize } from '../../index.js'
|
||||
|
||||
interface FastifyIo {
|
||||
instance: SocketIoServer
|
||||
@ -67,7 +69,9 @@ export const fixtureStart = async (
|
||||
application.addHook('onClose', (fastify) => {
|
||||
fastify.io.instance.close()
|
||||
})
|
||||
await application.listen(PORT)
|
||||
await application.listen({
|
||||
port: PORT
|
||||
})
|
||||
}
|
||||
|
||||
export const fixtureStop = async (): Promise<void> => {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import jwt, { Algorithm } from 'jsonwebtoken'
|
||||
import { Socket } from 'socket.io'
|
||||
import type { Algorithm } from 'jsonwebtoken'
|
||||
import jwt from 'jsonwebtoken'
|
||||
import type { Socket } from 'socket.io'
|
||||
|
||||
import { UnauthorizedError } from './UnauthorizedError.js'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user