@thream/socketio-jwt
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -13,3 +13,3 @@ import type { Algorithm } from 'jsonwebtoken'; | ||
} | ||
declare type SocketIOMiddleware = (socket: Socket, next: (error?: UnauthorizedError) => void) => void; | ||
type SocketIOMiddleware = (socket: Socket, next: (error?: UnauthorizedError) => void) => void; | ||
interface CompleteDecodedToken { | ||
@@ -22,3 +22,3 @@ header: { | ||
} | ||
declare type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise<string> | string; | ||
type SecretCallback = (decodedToken: CompleteDecodedToken) => Promise<string> | string; | ||
export interface AuthorizeOptions { | ||
@@ -25,0 +25,0 @@ secret: string | SecretCallback; |
{ | ||
"name": "@thream/socketio-jwt", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"type": "module", | ||
@@ -34,8 +34,9 @@ "public": true, | ||
"scripts": { | ||
"build": "rimraf ./build && swc ./src --out-dir ./build && tsc", | ||
"build": "rimraf ./build && swc ./src --out-dir ./build", | ||
"build:dev": "swc ./src --out-dir ./build --watch", | ||
"build:typescript": "tsc", | ||
"lint:commit": "commitlint", | ||
"lint:editorconfig": "editorconfig-checker", | ||
"lint:markdown": "markdownlint-cli2", | ||
"lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\"", | ||
"lint:eslint": "eslint \"**/*.{js,jsx,ts,tsx}\" --ignore-path \".gitignore\"", | ||
"lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"", | ||
@@ -53,37 +54,39 @@ "lint:staged": "lint-staged", | ||
"dependencies": { | ||
"jsonwebtoken": "8.5.1" | ||
"jsonwebtoken": "9.0.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "17.1.2", | ||
"@commitlint/config-conventional": "17.1.0", | ||
"@commitlint/cli": "17.4.1", | ||
"@commitlint/config-conventional": "17.4.0", | ||
"@swc/cli": "0.1.57", | ||
"@swc/core": "1.2.249", | ||
"@types/jsonwebtoken": "8.5.9", | ||
"@types/node": "18.7.16", | ||
"@swc/core": "1.3.25", | ||
"@tsconfig/strictest": "1.0.2", | ||
"@types/jsonwebtoken": "9.0.0", | ||
"@types/node": "18.11.18", | ||
"@types/tap": "15.0.7", | ||
"@typescript-eslint/eslint-plugin": "5.36.2", | ||
"@typescript-eslint/parser": "5.36.2", | ||
"axios": "0.27.2", | ||
"@typescript-eslint/eslint-plugin": "5.48.1", | ||
"@typescript-eslint/parser": "5.48.1", | ||
"axios": "1.2.2", | ||
"c8": "7.12.0", | ||
"editorconfig-checker": "4.0.2", | ||
"eslint": "8.23.0", | ||
"eslint-config-conventions": "4.0.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint": "8.31.0", | ||
"eslint-config-conventions": "6.0.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-plugin-import": "2.26.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": "13.0.3", | ||
"markdownlint-cli2": "0.5.1", | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-unicorn": "45.0.2", | ||
"fastify": "4.11.0", | ||
"husky": "8.0.3", | ||
"lint-staged": "13.1.0", | ||
"markdownlint-cli2": "0.6.0", | ||
"markdownlint-rule-relative-links": "1.1.1", | ||
"pinst": "3.0.0", | ||
"prettier": "2.7.1", | ||
"prettier": "2.8.2", | ||
"rimraf": "3.0.2", | ||
"semantic-release": "19.0.5", | ||
"socket.io": "4.5.2", | ||
"socket.io-client": "4.5.2", | ||
"tap": "16.3.0", | ||
"typescript": "4.8.3" | ||
"semantic-release": "20.0.2", | ||
"socket.io": "4.5.4", | ||
"socket.io-client": "4.5.4", | ||
"tap": "16.3.3", | ||
"typescript": "4.9.4" | ||
} | ||
} |
@@ -135,3 +135,3 @@ <h1 align="center">Thream/socketio-jwt</h1> | ||
import { io } from 'socket.io-client' | ||
import { isUnauthorizedError } from '@thream/socketio-jwt/UnauthorizedError.js' | ||
import { isUnauthorizedError } from '@thream/socketio-jwt/build/UnauthorizedError.js' | ||
@@ -138,0 +138,0 @@ // Require Bearer Token |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26277
33
+ Addedjsonwebtoken@9.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedsemver@7.6.3(transitive)
- Removedjsonwebtoken@8.5.1(transitive)
- Removedlodash.includes@4.3.0(transitive)
- Removedlodash.isboolean@3.0.3(transitive)
- Removedlodash.isinteger@4.0.4(transitive)
- Removedlodash.isnumber@3.0.3(transitive)
- Removedlodash.isplainobject@4.0.6(transitive)
- Removedlodash.isstring@4.0.1(transitive)
- Removedlodash.once@4.1.1(transitive)
- Removedsemver@5.7.2(transitive)
Updatedjsonwebtoken@9.0.0