Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "faussaire", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Lightweight library to mock API for testing purpose", | ||
"main": "src/faussaire.js", | ||
"main": "build/faussaire.js", | ||
"scripts": { | ||
@@ -10,3 +10,3 @@ "lint": "eslint . && echo 'Lint finished...\n'", | ||
"start": "webpack-dev-server --content-base build/", | ||
"build": "webpack && babel src/faussaire.js --out-dir build", | ||
"build": "babel src/* --out-dir build", | ||
"update": "updtr" | ||
@@ -13,0 +13,0 @@ }, |
@@ -8,2 +8,7 @@ # Faussaire | ||
## Installation | ||
``` | ||
npm install --save-dev faussaire | ||
``` | ||
## Overview | ||
@@ -26,3 +31,3 @@ | ||
```js | ||
import faussaire from 'Faussaire'; | ||
import faussaire from 'faussaire'; | ||
@@ -56,3 +61,3 @@ faussaire | ||
```js | ||
import faussaire from 'Faussaire'; | ||
import faussaire from 'faussaire'; | ||
@@ -59,0 +64,0 @@ faussaire |
@@ -11,3 +11,2 @@ const responseFactory = require('./response'); | ||
const isMatching = (route, url) => { | ||
// The route might as well be an URL or a template. | ||
return new RegExp(route).test(url); | ||
@@ -38,3 +37,6 @@ }; | ||
* methods => array, | ||
* controller => {authenticate(params, options), run(params, options)} | ||
* controller => { | ||
* authenticate(params, options), | ||
* run(params, options) | ||
* } | ||
* }) | ||
@@ -41,0 +43,0 @@ * A route is represented by a template and the HTTP methods. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19804
13
254
149