Skip to content

Commit 14c05e4

Browse files
authored
chore(package): update standard to version 14.0.2 (#68)
1 parent 475db5f commit 14c05e4

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ typings/
6464
*.swp
6565

6666
# package-lock
67-
.package-lock.json
67+
package-lock.json

jwt.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function fastifyJwt (fastify, options, next) {
6262
(typeof secret === 'string' ||
6363
secret instanceof Buffer)
6464
) {
65-
return next(new Error(`RSA Signatures set as Algorithm in the options require a private and public key to be set as the secret`))
65+
return next(new Error('RSA Signatures set as Algorithm in the options require a private and public key to be set as the secret'))
6666
}
6767
if (
6868
signOptions &&
@@ -71,7 +71,7 @@ function fastifyJwt (fastify, options, next) {
7171
(typeof secret === 'string' ||
7272
secret instanceof Buffer)
7373
) {
74-
return next(new Error(`ECDSA Signatures set as Algorithm in the options require a private and public key to be set as the secret`))
74+
return next(new Error('ECDSA Signatures set as Algorithm in the options require a private and public key to be set as the secret'))
7575
}
7676

7777
fastify.decorate('jwt', {

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"node": ">6"
99
},
1010
"scripts": {
11+
"lint": "standard",
12+
"lint:fix": "standard --fix",
1113
"test": "standard && tap test.js && tsc --project ./tsconfig.json"
1214
},
1315
"repository": {
@@ -36,7 +38,7 @@
3638
},
3739
"devDependencies": {
3840
"fastify": "^2.0.0",
39-
"standard": "^13.0.1",
41+
"standard": "^14.0.2",
4042
"tap": "^12.6.5",
4143
"typescript": "^3.2.2"
4244
},

test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ test('errors', function (t) {
15151515
method: 'get',
15161516
url: '/verifyCallbackCount',
15171517
headers: {
1518-
authorization: `Bearer invalid`
1518+
authorization: 'Bearer invalid'
15191519
}
15201520
}).then(function (response) {
15211521
const result = JSON.parse(response.payload)

0 commit comments

Comments
 (0)