File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function getInternalEnvVariable(envVar: keyof typeof internalOptions): st
4343 return process . env [ 'mysqlmsn_internal_DO_NOT_USE_' + envVar ] || internalOptions [ envVar ]
4444}
4545
46- const allowedArches = [ 'x64' , 'arm64' , undefined ]
46+ const allowedArches = [ 'x64' , 'arm64' ]
4747export const OPTION_TYPE_CHECKS : OptionTypeChecks = {
4848 version : {
4949 check : ( opt : any ) => opt === undefined || typeof opt === 'string' && validSemver ( coerceSemver ( opt ) ) !== null ,
@@ -111,7 +111,7 @@ export const OPTION_TYPE_CHECKS: OptionTypeChecks = {
111111 definedType : 'string'
112112 } ,
113113 arch : {
114- check : ( opt : any ) => allowedArches . includes ( opt ) ,
114+ check : ( opt : any ) => opt === undefined || allowedArches . includes ( opt ) ,
115115 errorMessage : `Option arch must be either of the following: ${ allowedArches . join ( ', ' ) } ` ,
116116 definedType : 'string'
117117 }
You can’t perform that action at this time.
0 commit comments