hapi-auth-jwt2
Advanced tools
Comparing version 10.7.0 to 11.0.0
{ | ||
"name": "hapi-auth-jwt2", | ||
"version": "10.7.0", | ||
"version": "11.0.0", | ||
"description": "Hapi.js Authentication Plugin/Scheme using JSON Web Tokens (JWT)", | ||
"main": "lib/index.js", | ||
"main": "lib/index.cjs", | ||
"types": "lib/index.d.ts", | ||
"type": "module", | ||
"repository": { | ||
@@ -64,2 +65,3 @@ "type": "git", | ||
"devDependencies": { | ||
"@eslint/js": "^9.19.0", | ||
"@hapi/basic": "^7.0.0", | ||
@@ -69,4 +71,5 @@ "@hapi/hapi": "^21.1.0", | ||
"aguid": "^2.0.0", | ||
"eslint": "^8.31.0", | ||
"eslint": "^9.19.0", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"globals": "^15.14.0", | ||
"nyc": "^17.0.0", | ||
@@ -76,3 +79,4 @@ "pre-commit": "^1.2.2", | ||
"tap-nyc": "^1.0.3", | ||
"tape": "^4.13.0" | ||
"tape": "^4.13.0", | ||
"typescript-eslint": "^8.22.0" | ||
}, | ||
@@ -103,8 +107,8 @@ "engines": { | ||
"scripts": { | ||
"quick": "./node_modules/tape/bin/tape ./test/*.test.js | tap-nyc", | ||
"test": "nyc tape ./test/*.test.js | tap-nyc", | ||
"coverage": "nyc tape ./test/*.test.js && nyc check-coverage", | ||
"quick": "./node_modules/tape/bin/tape ./test/*.test.cjs", | ||
"test": "nyc tape ./test/*.test.cjs | tap-nyc", | ||
"coverage": "nyc tape ./test/*.test.cjs && nyc check-coverage", | ||
"lint": "eslint lib", | ||
"fixlint": "eslint lib --fix", | ||
"start": "node example/server.js", | ||
"start": "node example/server.cjs", | ||
"report": "open coverage/lcov-report/index.html" | ||
@@ -111,0 +115,0 @@ }, |
@@ -67,3 +67,3 @@ [](https://snyk.io/test/github/dwyl/hapi-auth-jwt2?targetFile=package.json) | ||
// 在这里引入我们的包 ↓↓, 例如, require('hapi-auth-jwt2') | ||
await server.register(require('../lib')); | ||
await server.register(require('../lib/index.cjs')); | ||
server.auth.strategy('jwt', 'jwt', | ||
@@ -70,0 +70,0 @@ { key: 'NeverShareYourSecret', // 不要告诉别人你的secret key |
@@ -73,3 +73,3 @@ # Hapi Auth using JSON Web Tokens (JWT) | ||
// include our module here ↓↓, for example, require('hapi-auth-jwt2') | ||
await server.register(require('../lib')); | ||
await server.register(require('../lib/index.cjs')); | ||
server.auth.strategy('jwt', 'jwt', | ||
@@ -76,0 +76,0 @@ { key: 'NeverShareYourSecret', // Never Share your secret key |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
213826
52
3591
Yes
14
1