personnummer
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -550,3 +550,3 @@ 'use strict'; | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + ageDay; | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + (ageDay < 9 ? '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; | ||
var ageDate = this.century + this.year + '-' + this.month + '-' + (ageDay < 9 ? '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.1", | ||
"version": "3.1.2", | ||
"license": "MIT", | ||
@@ -38,4 +38,4 @@ "homepage": "https://github.com/personnummer/js", | ||
"@rollup/plugin-babel": "^5.2.1", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
"@rollup/plugin-node-resolve": "^10.0.0", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.0", | ||
"@types/jest": "^26.0.15", | ||
@@ -42,0 +42,0 @@ "@typescript-eslint/eslint-plugin": "^4.7.0", |
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
34620