Skip to content

Commit

Permalink
fix: remove strict directive from mjs files, add missing to cjs files (
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 19, 2024
1 parent 9e25fc3 commit e91c83b
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 9 deletions.
2 changes: 0 additions & 2 deletions benchmark-bench.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

import inquirer from 'inquirer'
import bench from './lib/bench.js'
import { choices, list } from './lib/packages.js'
Expand Down
1 change: 0 additions & 1 deletion benchmark-compare.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
'use strict'

import { platform, arch, cpus, totalmem } from 'os'
import { program } from 'commander'
Expand Down
1 change: 0 additions & 1 deletion benchmark.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
'use strict'

import { program } from 'commander'

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

require('node:http')
.createServer(
require('server-base-router')({
Expand Down
2 changes: 2 additions & 0 deletions benchmarks/server-base.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

require('server-base')({
'@setup' (ctx) {
ctx.middlewareFunctions = []
Expand Down
2 changes: 0 additions & 2 deletions lib/autocannon.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

import autocannon from 'autocannon'
import { writeFile as _writeFile, mkdir as _mkdir, access as _access } from 'fs'
import compare from 'autocannon-compare'
Expand Down
1 change: 0 additions & 1 deletion lib/bench.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env node
'use strict'

import { access } from 'node:fs/promises'
import { fork } from 'child_process'
Expand Down
2 changes: 0 additions & 2 deletions lib/packages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

import pkgJson from '../package.json' assert { type: 'json' }
import { createRequire } from 'module';
import path from 'path';
Expand Down
2 changes: 2 additions & 0 deletions metrics/process-results.cjs
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 os = require('node:os')
Expand Down
2 changes: 2 additions & 0 deletions metrics/startup-listen.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const start = process.hrtime()

const fastify = require('fastify')
Expand Down
2 changes: 2 additions & 0 deletions metrics/startup-routes-schema.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const start = process.hrtime()

const fastify = require('fastify')
Expand Down
2 changes: 2 additions & 0 deletions metrics/startup-routes.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict'

const start = process.hrtime()

const fastify = require('fastify')
Expand Down

0 comments on commit e91c83b

Please sign in to comment.