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: kebab-case filenames #254

Merged
merged 1 commit into from
Sep 1, 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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/build-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const factory = AjvStandaloneCompiler({
/* eslint-disable */
${schemaValidationCode}
`
const file = path.join(__dirname, '..', 'lib', 'configValidator.js')
const file = path.join(__dirname, '..', 'lib', 'config-validator.js')
fs.writeFileSync(file, moduleCode)
console.log(`Saved ${file} file successfully`)
}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Response = require('./lib/response')

const errorMessage = 'The dispatch function has already been invoked'

const optsValidator = require('./lib/configValidator')
const optsValidator = require('./lib/config-validator')

function inject (dispatchFunc, options, callback) {
if (typeof callback === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion lib/configValidator.js → lib/config-validator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is autogenerated by build\build-validation.js, do not edit
// This file is autogenerated by build/build-validation.js, do not edit
/* istanbul ignore file */
/* eslint-disable */
"use strict";
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const cookie = require('cookie')
const assert = require('assert')
const warning = require('process-warning')()

const parseURL = require('./parseURL')
const parseURL = require('./parse-url')
const { EventEmitter } = require('events')

// request.connectin deprecation https://nodejs.org/api/http.html#http_request_connection
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const semver = require('semver')
const express = require('express')

const inject = require('../index')
const parseURL = require('../lib/parseURL')
const parseURL = require('../lib/parse-url')

const FormData = require('form-data')
const formAutoContent = require('form-auto-content')
Expand Down