tfk-dsf-normalize-contact
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -20,7 +20,7 @@ 'use strict' | ||
contact.fullName = resolveFullName(contact.firstName, contact.middleName, contact.lastName) | ||
contact.address = capitalize.words(dsf.ADR.toLowerCase()) | ||
contact.address = capitalize.words(dsf.ADR ? dsf.ADR.toLowerCase() : '') | ||
contact.zip = dsf.POSTN || '' | ||
contact.city = capitalize.words(dsf.POSTS.toLowerCase()) | ||
contact.city = capitalize.words(dsf.POSTS ? dsf.POSTS.toLowerCase() : '') | ||
return contact | ||
} |
{ | ||
"name": "tfk-dsf-normalize-contact", | ||
"description": "Transforms contact information from dsf to something useful", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"author": { | ||
@@ -19,3 +19,3 @@ "name": "Jonas Enge", | ||
"engines": { | ||
"node": ">=4.8.3" | ||
"node": ">=4.8.4" | ||
}, | ||
@@ -47,10 +47,10 @@ "scripts": { | ||
"coveralls": "2.13.1", | ||
"nsp": "2.6.3", | ||
"tap": "10.3.2", | ||
"standard": "10.0.2" | ||
"nsp": "2.7.0", | ||
"tap": "10.7.2", | ||
"standard": "10.0.3" | ||
}, | ||
"dependencies": { | ||
"birthdate-from-id": "1.0.12", | ||
"birthdate-from-id": "1.1.0", | ||
"capitalize": "1.0.0" | ||
} | ||
} |
{ | ||
"personalIdNumber": "18117112345", | ||
"birthDate": "1971-11-18", | ||
"personalIdNumber": "01010750160", | ||
"birthDate": "2007-01-01", | ||
"firstName": "Gandalf", | ||
@@ -5,0 +5,0 @@ "middleName": "", |
{ | ||
"personalIdNumber": "18117112345", | ||
"birthDate": "1971-11-18", | ||
"personalIdNumber": "01010750160", | ||
"birthDate": "2007-01-01", | ||
"firstName": "Gandalf", | ||
@@ -5,0 +5,0 @@ "middleName": "Georg", |
{ | ||
"FODT": "181171", | ||
"PERS": "12345", | ||
"FODT": "010107", | ||
"PERS": "50160", | ||
"INR": "18117108976", | ||
"FODTAR": "1971", | ||
"FODTAR": "2007", | ||
"STAT-KD": "1", | ||
@@ -7,0 +7,0 @@ "STAT": "BOSATT", |
{ | ||
"FODT": "181171", | ||
"PERS": "12345", | ||
"FODT": "010107", | ||
"PERS": "50160", | ||
"INR": "18117108976", | ||
"FODTAR": "1971", | ||
"FODTAR": "2007", | ||
"STAT-KD": "1", | ||
@@ -7,0 +7,0 @@ "STAT": "BOSATT", |
{ | ||
"FODT": "181171", | ||
"PERS": "12345", | ||
"FODT": "010107", | ||
"PERS": "50160", | ||
"INR": "18117108976", | ||
"FODTAR": "1971", | ||
"FODTAR": "2007", | ||
"STAT-KD": "1", | ||
@@ -7,0 +7,0 @@ "STAT": "BOSATT", |
9522
+ Addedbirthdate-from-id@1.1.0(transitive)
+ Addedis-valid-fodselsnummer@2.1.0(transitive)
- Removedbirthdate-from-id@1.0.12(transitive)
Updatedbirthdate-from-id@1.1.0