personnummer
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -550,3 +550,3 @@ 'use strict'; | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + (ageDay < 9 ? '0' + ageDay : ageDay); | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + (ageDay < 10 ? '0' + ageDay : ageDay); | ||
return diffInYears(new Date(Date.now()), new Date(ageDate)); | ||
@@ -553,0 +553,0 @@ } |
@@ -548,3 +548,3 @@ function _classCallCheck(instance, Constructor) { | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + (ageDay < 9 ? '0' + ageDay : ageDay); | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + (ageDay < 10 ? '0' + ageDay : ageDay); | ||
return diffInYears(new Date(Date.now()), new Date(ageDate)); | ||
@@ -551,0 +551,0 @@ } |
{ | ||
"name": "personnummer", | ||
"description": "Validate Swedish personal identity numbers", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/personnummer/js", |
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
34622