Skip to content

Commit 7aac1dd

Browse files
committed
adding use strict everywhere
1 parent b0c5eb0 commit 7aac1dd

File tree

13 files changed

+24
-0
lines changed

13 files changed

+24
-0
lines changed

benchmark/gateway.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('../index')
24

35
const server = gateway({

benchmark/service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict'
12

23
const service = require('restana')({
34
disableResponseEvent: true

demos/basic-express.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('../index')
24
const express = require('express')
35
const PORT = process.env.PORT || 8080

demos/basic.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('./../index')
24
const PORT = process.env.PORT || 8080
35

demos/circuitbreaker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('../index')
24
const onEnd = require('on-http-end')
35
const CircuitBreaker = require('opossum')

demos/hooks.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('./../index')
24
const PORT = process.env.PORT || 8080
35

demos/https-example.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('./../index')
24

35
gateway({

demos/post-processing.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const toArray = require('stream-to-array')
24
const gateway = require('../index')
35

demos/rate-limit.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const gateway = require('../index')
24
const rateLimit = require('express-rate-limit')
35
const requestIp = require('request-ip')

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
/* eslint-disable no-useless-call */
24

35
const proxyFactory = require('./lib/proxy-factory')

0 commit comments

Comments
 (0)