Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 8bf1a74

Browse files
committed
Update http-fake-backend to v3.2.1
1 parent f1e3683 commit 8bf1a74

File tree

3 files changed

+171
-110
lines changed

3 files changed

+171
-110
lines changed

generators/app/templates/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[![GitHub version](https://badge.fury.io/gh/micromata%2Fhttp-fake-backend.svg)](https://badge.fury.io/gh/micromata%2Fhttp-fake-backend)
22
[![Build Status](https://travis-ci.org/micromata/http-fake-backend.svg?branch=master)](https://travis-ci.org/micromata/http-fake-backend)
3+
[![Code Climate](https://codeclimate.com/github/micromata/http-fake-backend/badges/gpa.svg)](https://codeclimate.com/github/micromata/http-fake-backend)
34
[![Coverage Status](https://coveralls.io/repos/github/micromata/http-fake-backend/badge.svg?branch=master)](https://coveralls.io/github/micromata/http-fake-backend?branch=master)
45
[![Dependency Status](https://david-dm.org/micromata/http-fake-backend.svg)](https://david-dm.org/micromata/http-fake-backend)
56
[![devDependency Status](https://david-dm.org/micromata/http-fake-backend/dev-status.svg?theme=shields.io)](https://david-dm.org/micromata/http-fake-backend#info=devDependencies)
@@ -35,7 +36,7 @@ git clone https://github.com/micromata/http-fake-backend.git
3536
npm install
3637
```
3738

38-
*Hint: Use `yarn install` instead of `npm install` if you have installed [Yarn](https://yarnpkg.com/)… and yup, we have a lock file :sparkling_heart:*
39+
*Hint: Use `yarn install` instead of `npm install` if you have installed [Yarn](https://yarnpkg.com/) … and yup, we have a lock file* :sparkling_heart:
3940

4041

4142
Or with help of [Yeoman](http://yeoman.io)
@@ -172,13 +173,13 @@ The configuration object in Detail:
172173
* You need to add at least one url object.
173174
* `urls.params`
174175
* Optional
175-
* In this example a valid URL might be:
176-
`http://localhost:8081/api/articles/foo/bar/baz`
177-
whereas:
178-
`http://localhost:8081/api/articles` will return a 404 error.
176+
* URL path parameters with fixed and/or variable path segments.
177+
* Example:
178+
* `params: '/update/{id}'`
179179
* See hapi docs. For example regarding optional [path parameters](http://hapijs.com/api#path-parameters).
180180
* `urls.requests`
181181
* You need to add at least one request object.
182+
* Multiple request objects are needed in case you like to serve different responses via different HTTP methods with the same URL.
182183
* `urls.requests.method`
183184
* optional. Uses `GET` when not defined.
184185
* `string`, or `array` of strings.
@@ -196,7 +197,7 @@ The configuration object in Detail:
196197
* a status code with a predefined error object provided by [boom](https://github.com/hapijs/boom) if you dont provide a response property for that request.
197198
* `statusCode`
198199
* Optional
199-
* Every route of this endpoint will return a HTTP error with the given status code provided by [boom](https://github.com/hapijs/boom).
200+
* Every subroute of this endpoint will return a HTTP error with the given status code provided by [boom](https://github.com/hapijs/boom).
200201

201202
## Configuration
202203

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "http-fake-backend",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.",
55
"license": "MIT",
66
"main": "index.js",
@@ -15,31 +15,34 @@
1515
"coverage": "lab -v -c -r html -o ./test/artifacts/coverage.html && open ./test/artifacts/coverage.html",
1616
"coveralls": "lab -r lcov | ./node_modules/.bin/coveralls"
1717
},
18+
"eslintConfig": {
19+
"extends": "eslint-config-hapi"
20+
},
1821
"engines": {
1922
"node": ">=4.0.0"
2023
},
2124
"dependencies": {
22-
"boom": "4.1.0",
25+
"boom": "^4.2.0",
2326
"confidence": "3.0.2",
2427
"dotenv": "2.0.0",
2528
"glue": "4.0.0",
2629
"good": "7.0.2",
27-
"good-console": "6.1.2",
28-
"good-squeeze": "5.0.0",
29-
"handlebars": "4.0.5",
30-
"hapi": "15.1.1",
30+
"good-console": "^6.3.1",
31+
"good-squeeze": "^5.0.1",
32+
"handlebars": "^4.0.6",
33+
"hapi": "^15.2.0",
3134
"inert": "4.0.2",
3235
"require-dir": "0.3.1",
3336
"vision": "4.1.0",
3437
"visionary": "6.0.2"
3538
},
3639
"devDependencies": {
3740
"code": "4.0.0",
38-
"coveralls": "2.11.14",
39-
"eslint": "3.7.1",
41+
"coveralls": "^2.11.15",
42+
"eslint": "^3.11.0",
4043
"eslint-config-hapi": "10.0.0",
4144
"eslint-plugin-hapi": "4.0.0",
42-
"lab": "11.1.0",
45+
"lab": "^11.2.1",
4346
"nodemon": "1.11.0"
4447
}
4548
}

0 commit comments

Comments
 (0)