Skip to content

Commit a866e85

Browse files
authored
Merge pull request #30 from axa-group/poveden/npmupdate
Poveden/npmupdate
2 parents dcb727d + 5dfca30 commit a866e85

6 files changed

Lines changed: 1093 additions & 2054 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66

7+
## [1.5.1](https://github.com/axa-group/oauth2-mock-server/compare/v1.5.0...v1.5.1) — 2020-04-06
8+
9+
### Security
10+
11+
- Update `npm` dependencies to fix:
12+
- [CVE-2020-7598](https://github.com/advisories/GHSA-vh95-rmgr-6w4m)
13+
714
## [1.5.0](https://github.com/axa-group/oauth2-mock-server/compare/v1.4.0...v1.5.0) — 2020-01-23
815

916
### Added

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,18 @@ It simulates a token revocation. This endpoint should always return 200 as state
161161

162162
## Command-Line Interface
163163

164-
The server can be run from the command line. Run `oauth2-mock-server --help` for details on its utilization.
164+
The server can be run from the command line. You can either install it globally:
165+
166+
```shell
167+
npm install -g oauth2-mock-server
168+
oauth2-mock-server --help
169+
```
170+
171+
or run it directly:
172+
173+
```shell
174+
npx oauth2-mock-server --help
175+
```
165176

166177
## Attributions
167178

bin/oauth2-mock-server

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
const fs = require('fs');
2121
const path = require('path');
22-
const { OAuth2Server } = require('../');
22+
const { OAuth2Server } = require('..');
2323

2424
/* eslint no-console: off */
2525

lib/oauth2-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const cors = require('cors');
2525
const bodyParser = require('body-parser');
2626
const basicAuth = require('basic-auth');
2727
const { EventEmitter } = require('events');
28-
const uuidv4 = require('uuid/v4');
28+
const { v4: uuidv4 } = require('uuid');
2929

3030
const OPENID_CONFIGURATION_PATH = '/.well-known/openid-configuration';
3131
const TOKEN_ENDPOINT_PATH = '/token';

0 commit comments

Comments
 (0)