Skip to content

Commit

Permalink
chore: add missing use strict directives (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Oct 19, 2023
1 parent a616201 commit bcbd94c
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bench/busboy-form-bench-latin1.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const Busboy = require('busboy');
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");

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

const Busboy = require('busboy');
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");

Expand Down
2 changes: 2 additions & 0 deletions bench/createMultipartBufferForEncodingBench.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions bench/dicer/dicer-bench-multipart-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const Dicer = require('../../deps/dicer/lib/Dicer')

function createMultipartBuffer(boundary, size) {
Expand Down
2 changes: 2 additions & 0 deletions bench/dicer/formidable-bench-multipart-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

require('../node_modules/formidable/test/common');
var multipartParser = require('../node_modules/formidable/lib/multipart_parser'),
MultipartParser = multipartParser.MultipartParser,
Expand Down
2 changes: 2 additions & 0 deletions bench/dicer/multipartser-bench-multipart-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var multipartser = require('multipartser'),
boundary = '-----------------------------168072824752491622650073',
parser = multipartser(),
Expand Down
2 changes: 2 additions & 0 deletions bench/dicer/multiparty-bench-multipart-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

var assert = require('node:assert'),
Form = require('multiparty').Form,
boundary = '-----------------------------168072824752491622650073',
Expand Down
2 changes: 2 additions & 0 deletions bench/dicer/parted-bench-multipart-parser.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

// A special, edited version of the multipart parser from parted is needed here
// because otherwise it attempts to do some things above and beyond just parsing
// -- like saving to disk and whatnot
Expand Down
2 changes: 2 additions & 0 deletions bench/dicer/parted-multipart.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

/**
* Parted (https://github.com/chjj/parted)
* A streaming multipart state parser.
Expand Down
2 changes: 2 additions & 0 deletions bench/fastify-busboy-form-bench-latin1.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const Busboy = require('../lib/main');
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");

Expand Down
2 changes: 2 additions & 0 deletions bench/fastify-busboy-form-bench-utf8.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const Busboy = require('../lib/main');
const { createMultipartBufferForEncodingBench } = require("./createMultipartBufferForEncodingBench");

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

const Busboy = require('busboy')
const { buffer, boundary } = require('../data')

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

const Busboy = require('../../../lib/main')
const { buffer, boundary } = require('../data')

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

const boundary = '-----------------------------paZqsnEHRufoShdX6fh0lUhXBP4k'
const randomContent = Buffer.from(makeString(1024 * 500), 'utf8')
const buffer = createMultipartBuffer(boundary)
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/busboy/executioner.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const { process: processBusboy } = require('./contestants/busboy')
const { process: processFastify } = require('./contestants/fastify-busboy')
const { getCommonBuilder } = require('../common/commonBuilder')
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/busboy/validator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const { validateEqual } = require('validation-utils')
const { randomContent } = require('./data')

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

const { validateNotNil } = require('validation-utils')
const { BenchmarkBuilder } = require('photofinish')
const getopts = require('getopts')
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/common/contestantResolver.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const getopts = require('getopts')

const options = getopts(process.argv.slice(1), {
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/common/executionUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const { getCommonBuilder } = require('./commonBuilder')
const { outputResults } = require('./resultUtils')

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

const { exportResults } = require('photofinish')

function outputResults (benchmark, benchmarkResults) {
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/common/resultsCombinator.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const fs = require('node:fs')
const path = require('node:path')
const getopts = require('getopts')
Expand Down

0 comments on commit bcbd94c

Please sign in to comment.