Skip to content

Commit

Permalink
chore: do not alias paseto@2 as paseto2
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jan 11, 2022
1 parent 2d7220b commit 8e17188
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/models/formats/paseto.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (paseto3) {

if (!paseto3) {
// eslint-disable-next-line
paseto = require('paseto2');
paseto = require('paseto');
}

const instance = require('../../helpers/weak_cache');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"nanoid": "^3.1.28",
"object-hash": "^2.2.0",
"oidc-token-hash": "^5.0.1",
"paseto2": "npm:paseto@^2.1.3",
"paseto": "^2.1.3",
"quick-lru": "^5.1.1",
"raw-body": "^2.4.1"
},
Expand Down
2 changes: 1 addition & 1 deletion test/formats/paseto.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if (above16) {
paseto = require('paseto3');
} else {
// eslint-disable-next-line
paseto = require('paseto2');
paseto = require('paseto');
}

const ResourceServer = require('../../lib/helpers/resource_server');
Expand Down

0 comments on commit 8e17188

Please sign in to comment.