apeframework
Advanced tools
Comparing version 0.0.0-dev.11 to 0.0.0-dev.13
@@ -21,3 +21,3 @@ import type { Endpoint } from './Endpoint'; | ||
enable?: boolean; | ||
origin?: string[]; | ||
origins?: string[]; | ||
}; | ||
@@ -24,0 +24,0 @@ responseValidation?: boolean; |
@@ -47,3 +47,3 @@ "use strict"; | ||
this.server.register(cors_1.default, { | ||
origin: params.cors.origin, | ||
origin: params.cors.origins, | ||
}); | ||
@@ -50,0 +50,0 @@ } |
@@ -31,3 +31,3 @@ import cors from '@fastify/cors' | ||
enable?: boolean, | ||
origin?: string[], | ||
origins?: string[], | ||
}, | ||
@@ -79,3 +79,3 @@ responseValidation?: boolean, | ||
this.server.register(cors, { | ||
origin: params.cors.origin, | ||
origin: params.cors.origins, | ||
}) | ||
@@ -82,0 +82,0 @@ } |
interface Args { | ||
positional: string[]; | ||
optional: Record<string, boolean | string>; | ||
optional: Record<string, boolean | string | undefined>; | ||
} | ||
export { type Args, }; |
interface Args { | ||
positional: string[], | ||
optional: Record<string, boolean | string>, | ||
optional: Record<string, boolean | string | undefined>, | ||
} | ||
@@ -5,0 +5,0 @@ |
@@ -22,3 +22,3 @@ import yargsParser from 'yargs-parser' | ||
const optional = parsed as Record<string, boolean | string> | ||
const optional = parsed as Record<string, boolean | string | undefined> | ||
@@ -25,0 +25,0 @@ delete optional._ |
{ | ||
"name": "apeframework", | ||
"version": "0.0.0-dev.11", | ||
"version": "0.0.0-dev.13", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Matthieu Symoens", |
@@ -9,8 +9,2 @@ "use strict"; | ||
} | ||
else if (input === false) { | ||
return '0'; | ||
} | ||
else if (input === true) { | ||
return '1'; | ||
} | ||
else if (['object', 'function', 'symbol'].includes(typeof input)) { | ||
@@ -17,0 +11,0 @@ throw new ParseError_1.ParseError('string'); |
@@ -7,6 +7,2 @@ import { ParseError } from './errors/ParseError' | ||
return '' | ||
} else if (input === false) { | ||
return '0' | ||
} else if (input === true) { | ||
return '1' | ||
} else if (['object', 'function', 'symbol'].includes(typeof input)) { | ||
@@ -13,0 +9,0 @@ throw new ParseError('string') |
112544
3807