Skip to content

Commit

Permalink
Merge pull request ElemeFE#5 from CatTail/master
Browse files Browse the repository at this point in the history
Enable strict mode
  • Loading branch information
lujjjh authored Nov 28, 2016
2 parents 1c97535 + 67918b4 commit 652611f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

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

const restc = require('./restc');

module.exports = () => (req, res, next) => {
Expand Down
2 changes: 2 additions & 0 deletions lib/koa.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const restc = require('./restc');

module.exports = () => function*(next) {
Expand Down
2 changes: 2 additions & 0 deletions lib/koa2.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const restc = require('./restc');

module.exports = () => (ctx, next) => {
Expand Down
2 changes: 2 additions & 0 deletions lib/restc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const fs = require('fs');
const path = require('path');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "restc",
"version": "0.0.2",
"version": "0.0.3",
"description": "A server-side middleware to visualize REST requests.",
"main": "index.js",
"repository": "https://github.com/ElemeFE/restc.git",
Expand Down

0 comments on commit 652611f

Please sign in to comment.