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

social-insurance-number

Package Overview
Dependencies
Maintainers
5
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

social-insurance-number - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

.circleci/config.yml

6

package.json
{
"name": "social-insurance-number",
"version": "0.2.1",
"version": "0.2.2",
"description": "Canadian SIN (Social Insurance Number) parser and generator",
"main": "social-insurance-number.js",
"scripts": {
"test": "jest"
"test": "jest",
"escheck": "es-check es5 social-insurance-number.js"
},

@@ -21,2 +22,3 @@ "repository": {

"devDependencies": {
"es-check": "^5.2.3",
"jest": "^24.5.0",

@@ -23,0 +25,0 @@ "semantic-release": "^15.13.3"

@@ -91,3 +91,3 @@ (function(global) {

doesNotStartWith = [].concat(doesNotStartWith);
var possibleSinPrefixes = [...new Set([].concat.apply([], Object.values(PROVINCES)))];
var possibleSinPrefixes = Array.from(new Set([].concat.apply([], Object.values(PROVINCES))));

@@ -98,6 +98,8 @@ if (province) {

var validStartsWithChoices = possibleSinPrefixes.filter(
(prefix) => !doesNotStartWith.includes(String(prefix))
);
var filter = function(prefix) {
return !doesNotStartWith.includes(String(prefix))
}
var validStartsWithChoices = possibleSinPrefixes.filter(filter);
if (!validStartsWithChoices.length) {

@@ -104,0 +106,0 @@ throw "Cannot find a valid number to start with.";

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