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.1 to 3.1.2

2

dist/cjs/index.js

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

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