Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

personnummer

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

personnummer - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

2

dist/cjs/index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc