Skip to content

Commit

Permalink
upgrade hapi v17
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob McGuinness committed Nov 26, 2017
1 parent 1a698d6 commit c2a3e2d
Show file tree
Hide file tree
Showing 61 changed files with 2,239 additions and 3,785 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
public
node_modules
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"parserOptions": {
"ecmaVersion": 8
},
"rules": {
"no-console": 0,
"indent": [
Expand Down
1 change: 0 additions & 1 deletion examples/assets/extendedjoi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
const Joi = require('joi');

const customJoi = Joi.extend((joi) => ({
Expand Down
1 change: 0 additions & 1 deletion examples/assets/routes-complex.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
const Joi = require('joi');
const js2xmlparser = require('js2xmlparser');

Expand Down
1 change: 0 additions & 1 deletion examples/assets/routes-simple.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
const Joi = require('joi');
const js2xmlparser = require('js2xmlparser');

Expand Down
2 changes: 0 additions & 2 deletions examples/basic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `jwt.js` - how to used in combination with JSON Web Tokens (JWT) `securityDefinition`

var Hapi = require('hapi');
Expand Down
117 changes: 0 additions & 117 deletions examples/connections-sep-docs.js

This file was deleted.

120 changes: 0 additions & 120 deletions examples/connections.js

This file was deleted.

2 changes: 0 additions & 2 deletions examples/custom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `custom.js` - how build a custom documentation page with its own CSS and JS

const Blipp = require('blipp');
Expand Down
2 changes: 0 additions & 2 deletions examples/debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `debug.js` - how to validate swagger output and get warning/error messages during development

const Hapi = require('hapi');
Expand Down
2 changes: 0 additions & 2 deletions examples/dot-grouping.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `dot-grouping.js`

// This file also shows the use of `pathReplacements` to group endpoints by replacing `.` with '/`
Expand Down
2 changes: 0 additions & 2 deletions examples/extend.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `extend-joi.js`

// This only works at moment if you have a base JOI type like number.
Expand Down
2 changes: 0 additions & 2 deletions examples/group-ordered.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `group.js` - how to use tag based grouping
const Blipp = require('blipp');
const Hapi = require('hapi');
Expand Down
2 changes: 0 additions & 2 deletions examples/jwt.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `jwt.js` - how to used in combination with JSON Web Tokens (JWT) `securityDefinition`

var Hapi = require('hapi');
Expand Down
2 changes: 0 additions & 2 deletions examples/options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `options.js` - how to use many of the plug-in options

const BearerToken = require('hapi-auth-bearer-token');
Expand Down
2 changes: 0 additions & 2 deletions examples/promise.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `promises.js` - how to setup plug-in using promises

const BearerToken = require('hapi-auth-bearer-token');
Expand Down
2 changes: 0 additions & 2 deletions examples/ssl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `ssl.js` - how to use many of the plug-in options
const Fs = require('fs');
const Path = require('path');
Expand Down
2 changes: 0 additions & 2 deletions examples/swagger-client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `swagger-client.js` - how to plug-in to build an interface with `swagger-client`

const Blipp = require('blipp');
Expand Down
2 changes: 0 additions & 2 deletions examples/upload-file.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `upload-file.js` - how create documenation for a file upload
// the file `example/assets/test-upload.json` has data in the correct format for this example

Expand Down
2 changes: 0 additions & 2 deletions examples/versions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict';

// `versions.js` - how to use plug-in with `hapi-api-version` for versioning of an API

// This file also shows the use of `pathReplacements` to remove all version numbers in paths
Expand Down
Loading

0 comments on commit c2a3e2d

Please sign in to comment.