Skip to content

Commit

Permalink
chore(package): update standard to version 14.0.2 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm authored Aug 25, 2019
1 parent 475db5f commit 14c05e4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ typings/
*.swp

# package-lock
.package-lock.json
package-lock.json
4 changes: 2 additions & 2 deletions jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function fastifyJwt (fastify, options, next) {
(typeof secret === 'string' ||
secret instanceof Buffer)
) {
return next(new Error(`RSA Signatures set as Algorithm in the options require a private and public key to be set as the secret`))
return next(new Error('RSA Signatures set as Algorithm in the options require a private and public key to be set as the secret'))
}
if (
signOptions &&
Expand All @@ -71,7 +71,7 @@ function fastifyJwt (fastify, options, next) {
(typeof secret === 'string' ||
secret instanceof Buffer)
) {
return next(new Error(`ECDSA Signatures set as Algorithm in the options require a private and public key to be set as the secret`))
return next(new Error('ECDSA Signatures set as Algorithm in the options require a private and public key to be set as the secret'))
}

fastify.decorate('jwt', {
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"node": ">6"
},
"scripts": {
"lint": "standard",
"lint:fix": "standard --fix",
"test": "standard && tap test.js && tsc --project ./tsconfig.json"
},
"repository": {
Expand Down Expand Up @@ -36,7 +38,7 @@
},
"devDependencies": {
"fastify": "^2.0.0",
"standard": "^13.0.1",
"standard": "^14.0.2",
"tap": "^12.6.5",
"typescript": "^3.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ test('errors', function (t) {
method: 'get',
url: '/verifyCallbackCount',
headers: {
authorization: `Bearer invalid`
authorization: 'Bearer invalid'
}
}).then(function (response) {
const result = JSON.parse(response.payload)
Expand Down

0 comments on commit 14c05e4

Please sign in to comment.