1
0
spogulis no https://github.com/therootcompany/keyfetch.js.git synced 2024-11-16 17:29:02 +00:00

chore!: drop really, really old node support

Šī revīzija ir iekļauta:
AJ ONeal 2021-10-21 13:28:20 -06:00
vecāks c57a08f0cd
revīzija 604b42c7ef
2 mainīti faili ar 8 papildinājumiem un 4 dzēšanām

Parādīt failu

@ -301,7 +301,10 @@ For backwards compatibility with v1, the non-stringified `message` is the same a
Minor Breaking changes (with a major version bump):
- v3.0.0 - reworked error messages (also available in v2.1.0 as `client_message`)
- v2.0.0 - changes from the default `issuers = ["*"]` to requiring that an issuer (or public jwk for verification) is specified
- v3.0.0
- reworked error messages (also available in v2.1.0 as `client_message`)
- started using `let` and template strings (drops _really_ old node compat)
- v2.0.0
- changes from the default `issuers = ["*"]` to requiring that an issuer (or public jwk for verification) is specified
See other changes in [CHANGELOG.md](./CHANGELOG.md).

Parādīt failu

@ -22,8 +22,9 @@
function create(old, msg, code, status, details) {
/** @type AuthError */
//@ts-ignore
var err = new Error(old);
err.client_message = msg;
let err = new Error(msg);
err.message = msg;
err._old_message = old;
err.code = code;
err.status = status;
if (details) {