Skip to content

Commit

Permalink
Merge branch 'ItzRabbs-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed May 30, 2022
2 parents 7c1fb33 + 9ccf0cf commit c583fdd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
@@ -1,6 +1,6 @@
import * as jwt from 'jsonwebtoken';
import * as express from 'express';
import expressUnless from 'express-unless';
import * as expressUnless from 'express-unless';
import { UnauthorizedError } from './errors/UnauthorizedError';

/**
Expand Down
2 changes: 1 addition & 1 deletion test/UnauthorizedError.test.ts
@@ -1,5 +1,5 @@
import { UnauthorizedError } from '../src/errors/UnauthorizedError';
import assert from 'assert';
import * as assert from 'assert';

describe('Unauthorized Error', () => {
const e = new UnauthorizedError('credentials_bad_format', new Error('a'));
Expand Down
2 changes: 1 addition & 1 deletion test/jwt.test.ts
Expand Up @@ -2,7 +2,7 @@
import * as jwt from 'jsonwebtoken';
import * as express from 'express';
import { expressjwt, UnauthorizedError, ExpressJwtRequest, GetVerificationKey } from '../src';
import assert from 'assert';
import * as assert from 'assert';


describe('failure tests', function () {
Expand Down
2 changes: 1 addition & 1 deletion test/multitenancy.test.ts
@@ -1,7 +1,7 @@
import * as jwt from 'jsonwebtoken';
import * as express from 'express';
import { expressjwt, ExpressJwtRequest, GetVerificationKey } from '../src';
import assert from 'assert';
import * as assert from 'assert';

describe('multitenancy', function () {
const req = {} as ExpressJwtRequest;
Expand Down
2 changes: 1 addition & 1 deletion test/revocation.test.ts
@@ -1,7 +1,7 @@
import * as jwt from 'jsonwebtoken';
import * as express from 'express';
import { expressjwt, ExpressJwtRequest } from '../src';
import assert from 'assert';
import * as assert from 'assert';

describe('revoked jwts', function () {
const secret = 'shhhhhh';
Expand Down
2 changes: 1 addition & 1 deletion test/string_token.test.ts
@@ -1,7 +1,7 @@
import * as jwt from 'jsonwebtoken';
import * as express from 'express';
import { expressjwt, ExpressJwtRequest } from '../src';
import assert from 'assert';
import * as assert from 'assert';


describe('string tokens', function () {
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Expand Up @@ -3,10 +3,9 @@
"outDir": "./dist",
"allowJs": true,
"target": "es5",
"esModuleInterop": true,
"declaration": true
},
"include": [
"./src/**/*"
]
}
}

0 comments on commit c583fdd

Please sign in to comment.