Skip to content

Commit

Permalink
Removes babel (#226)
Browse files Browse the repository at this point in the history
Compiling is no longer needed.  Node 10+ supports all the features used in this library.
  • Loading branch information
davidpatrick committed Mar 10, 2021
1 parent 9c4fddf commit 1e3ba06
Show file tree
Hide file tree
Showing 35 changed files with 999 additions and 4,695 deletions.
6 changes: 0 additions & 6 deletions .babelrc

This file was deleted.

15 changes: 2 additions & 13 deletions .eslintrc
@@ -1,12 +1,6 @@
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"generators": true,
"modules": true
}
"ecmaVersion": 2018
},
"rules": {
"array-bracket-spacing": [2, "always"],
Expand All @@ -27,11 +21,6 @@
"space-before-blocks": [2, "always"]
},
"env": {
"amd": true,
"es6": true,
"node": true
},
"plugins": [
"babel"
]
}
}
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion examples/express-demo/server.js
@@ -1,7 +1,7 @@
const Express = require('express');
const jwt = require('express-jwt');
const logger = require('debug')('express');
const jwksRsa = require('../../lib');
const jwksRsa = require('../../src');

const jwksHost = process.env.JWKS_HOST;
const audience = process.env.AUDIENCE;
Expand Down
2 changes: 1 addition & 1 deletion examples/hapi-demo/server.js
Expand Up @@ -2,7 +2,7 @@ const Hapi = require('hapi');
const good = require('good');
const jwt = require('hapi-auth-jwt2');
const logger = require('debug')('hapi');
const jwksRsa = require('../../lib');
const jwksRsa = require('../../src');

const jwksHost = process.env.JWKS_HOST;
const audience = process.env.AUDIENCE;
Expand Down
2 changes: 1 addition & 1 deletion examples/koa-demo/server.js
@@ -1,7 +1,7 @@
const Koa = require('koa');
const Router = require('koa-router');
const jwt = require('koa-jwt');
const jwksRsa = require('../../lib');
const jwksRsa = require('../../src');

const jwksHost = process.env.JWKS_HOST;
const audience = process.env.AUDIENCE;
Expand Down
2 changes: 1 addition & 1 deletion examples/passport-demo/server.js
Expand Up @@ -3,7 +3,7 @@ const logger = require('debug')('express');
const passport = require('passport');
const JwtStrategy = require('passport-jwt').Strategy;
const ExtractJwt = require('passport-jwt').ExtractJwt;
const jwksRsa = require('../../lib');
const jwksRsa = require('../../src');

const jwksHost = process.env.JWKS_HOST;
const audience = process.env.AUDIENCE;
Expand Down

0 comments on commit 1e3ba06

Please sign in to comment.