Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add missing use strict directives #132

Merged
merged 1 commit into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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