Comparing version 1.4.13 to 1.4.14
import { ValidateReturn } from '../types'; | ||
export declare function getGender(input: string): 'M' | 'F'; | ||
export declare function getGender(input: string): 'M' | 'F' | 'X'; | ||
export declare function getBirthDate(input: string): Date; | ||
export declare const name: string, localName: string, abbreviation: string | undefined, validate: (value: string) => ValidateReturn, format: (value: string) => string, compact: (value: string) => string; |
@@ -186,3 +186,3 @@ "use strict"; | ||
} | ||
if (!['H', 'M'].includes(value[10])) { | ||
if (!['H', 'M', 'X'].includes(value[10])) { | ||
return { isValid: false, error: new exceptions.InvalidComponent() }; | ||
@@ -220,4 +220,10 @@ } | ||
function getGender(input) { | ||
const value = impl.compact(input); | ||
return value[10] === 'H' ? 'M' : 'F'; | ||
const value = impl.compact(input)[10]; | ||
if (value === 'X') { | ||
return 'X'; | ||
} | ||
else if (value === 'H') { | ||
return 'M'; | ||
} | ||
return 'F'; | ||
} | ||
@@ -231,2 +237,2 @@ exports.getGender = getGender; | ||
exports.name = impl.name, exports.localName = impl.localName, exports.abbreviation = impl.abbreviation, exports.validate = impl.validate, exports.format = impl.format, exports.compact = impl.compact; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9teC9jdXJwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBZUEsMERBQTRDO0FBQzVDLGtDQUE0RDtBQUc1RCxTQUFTLEtBQUssQ0FBQyxLQUFhO0lBQzFCLE9BQU8sY0FBTyxDQUFDLFlBQVksQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDLENBQUM7QUFDMUMsQ0FBQztBQUVELE1BQU0sYUFBYSxHQUFHLElBQUksR0FBRyxDQUFDO0lBQzVCLE1BQU07SUFDTixNQUFNO0lBQ04sTUFBTTtJQUNOLE1BQU07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xpQkFBUyxHQUM1QixJQUFJLFlBRDBCLG9CQUFZLEdBQzFDLElBQUksZUFEd0MsZ0JBQVEsR0FDcEQsSUFBSSxXQURrRCxjQUFNLEdBQzVELElBQUksU0FEMEQsZUFBTyxHQUNyRSxJQUFJLFNBQUMifQ== |
import { ValidateReturn } from '../types'; | ||
export declare function getGender(input: string): 'M' | 'F'; | ||
export declare function getGender(input: string): 'M' | 'F' | 'X'; | ||
export declare function getBirthDate(input: string): Date; | ||
export declare const name: string, localName: string, abbreviation: string | undefined, validate: (value: string) => ValidateReturn, format: (value: string) => string, compact: (value: string) => string; |
@@ -160,3 +160,3 @@ import * as exceptions from '../exceptions'; | ||
} | ||
if (!['H', 'M'].includes(value[10])) { | ||
if (!['H', 'M', 'X'].includes(value[10])) { | ||
return { isValid: false, error: new exceptions.InvalidComponent() }; | ||
@@ -194,4 +194,10 @@ } | ||
export function getGender(input) { | ||
const value = impl.compact(input); | ||
return value[10] === 'H' ? 'M' : 'F'; | ||
const value = impl.compact(input)[10]; | ||
if (value === 'X') { | ||
return 'X'; | ||
} | ||
else if (value === 'H') { | ||
return 'M'; | ||
} | ||
return 'F'; | ||
} | ||
@@ -203,2 +209,2 @@ export function getBirthDate(input) { | ||
export const { name, localName, abbreviation, validate, format, compact } = impl; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VycC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9teC9jdXJwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWVBLE9BQU8sS0FBSyxVQUFVLE1BQU0sZUFBZSxDQUFDO0FBQzVDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxPQUFPLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFHNUQsU0FBUyxLQUFLLENBQUMsS0FBYTtJQUMxQixPQUFPLE9BQU8sQ0FBQyxZQUFZLENBQUMsS0FBSyxFQU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