Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
export declare class DLPerson { | ||
export interface IDLPerson { | ||
firstName: string; | ||
@@ -7,10 +7,11 @@ lastName: string; | ||
gender: string; | ||
constructor(person: Object<{ | ||
firstName: string; | ||
lastName: string; | ||
middleName: string; | ||
dob: Date; | ||
gender: string; | ||
}>); | ||
} | ||
export declare class DLPerson implements IDLPerson { | ||
firstName: string; | ||
lastName: string; | ||
middleName: string; | ||
dob: Date; | ||
gender: string; | ||
constructor(person: IDLPerson); | ||
} | ||
export declare class DLGenerator { | ||
@@ -17,0 +18,0 @@ dlPerson: DLPerson; |
{ | ||
"name": "dlgen", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "State ID/Driver license generator", | ||
@@ -5,0 +5,0 @@ "main": "built/dlgen.js", |
let Soundex: any = require('soundex'); | ||
export class DLPerson { | ||
export interface IDLPerson { | ||
firstName: string; | ||
lastName: string; | ||
middleName: string; | ||
dob: Date; | ||
gender: string; | ||
} | ||
export class DLPerson implements IDLPerson { | ||
firstName: string; | ||
lastName: string; | ||
middleName: string = ""; | ||
@@ -10,9 +18,3 @@ dob: Date; | ||
constructor(person: Object<{ | ||
firstName: string, | ||
lastName: string, | ||
middleName: string, | ||
dob: Date, | ||
gender: string | ||
}>) { | ||
constructor(person: IDLPerson) { | ||
this.firstName = person.firstName.toUpperCase(); | ||
@@ -24,3 +26,2 @@ this.lastName = person.lastName.toUpperCase(); | ||
} | ||
} | ||
@@ -27,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
54411
1077
0