Skip to content
Merged
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
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getInternalEnvVariable(envVar: keyof typeof internalOptions): st
return process.env['mysqlmsn_internal_DO_NOT_USE_' + envVar] || internalOptions[envVar]
}

const allowedArches = ['x64', 'arm64', undefined]
const allowedArches = ['x64', 'arm64']
export const OPTION_TYPE_CHECKS: OptionTypeChecks = {
version: {
check: (opt: any) => opt === undefined || typeof opt === 'string' && validSemver(coerceSemver(opt)) !== null,
Expand Down Expand Up @@ -111,7 +111,7 @@ export const OPTION_TYPE_CHECKS: OptionTypeChecks = {
definedType: 'string'
},
arch: {
check: (opt: any) => allowedArches.includes(opt),
check: (opt: any) => opt === undefined || allowedArches.includes(opt),
errorMessage: `Option arch must be either of the following: ${allowedArches.join(', ')}`,
definedType: 'string'
}
Expand Down
Loading