Skip to content

Commit 36fc8c2

Browse files
authored
chore: add missing use strict directives (fastify#5106)
1 parent 68e5dd1 commit 36fc8c2

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

examples/use-plugin.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 fastify = require('../fastify')({ logger: true })
24

35
const opts = {

integration/server.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 Fastify = require('../fastify')
24

35
const fastify = Fastify()

test/buffer.test.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 t = require('tap')
24
const test = t.test
35
const Fastify = require('..')

test/bundler/esbuild/src/fail-plugin-version.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 fp = require('fastify-plugin')
24
const fastify = require('../../../../')()
35

test/bundler/esbuild/src/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
const fastify = require('../../../../')()
24
// Declare a route
35
fastify.get('/', function (request, reply) {

test/bundler/webpack/src/fail-plugin-version.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 fp = require('fastify-plugin')
24
const fastify = require('../../../../')()
35

test/bundler/webpack/src/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
const fastify = require('../../../../')()
24
// Declare a route
35
fastify.get('/', function (request, reply) {

test/bundler/webpack/webpack.config.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 path = require('node:path')
24

35
module.exports = {

0 commit comments

Comments
 (0)