Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cif-parser

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cif-parser - npm Package Compare versions

Comparing version
1.4.0
to
1.4.1
+12
-9
main.js

@@ -144,2 +144,4 @@ /**

let competitors = [];
let unmanagedCompetitors = [];
competitorNameFields.forEach((textLastName) => {

@@ -152,3 +154,3 @@

if (! this._isAName(lastName)){
console.error("\"" + lastName + "\" is not a competitor line")
unmanagedCompetitors.push({name: lastName, error: "Not considered as a competitor line."});
return;

@@ -166,3 +168,3 @@ }

if (! textFirstName[0]){
console.error("\"" + lastName + "\" is not a competitor line")
unmanagedCompetitors.push({name: lastName, error: "Not considered as a competitor line."});
return;

@@ -174,3 +176,3 @@ }

if (! this._isAName(firstName)){
console.warn("Invalid First name: \"" + firstName + "\" for biker \"" + lastName + "\".");
unmanagedCompetitors.push({name: lastName, error: "Invalid First name: \"" + firstName + "\"."});
return;

@@ -183,3 +185,2 @@ }

if (! thisBikerExpected){
console.log("As setup, competitor \"" + lastName + " " + firstName +"\" is not added to JSON file");
return;

@@ -203,3 +204,3 @@ }

else {
console.warn("Competitor \"" + lastName + "\" is not considered as a valid competitor");
unmanagedCompetitors.push({name: lastName, error: "Licence number not valid"});
return;

@@ -225,3 +226,4 @@ }

if (! this._isRaceNumber(raceNumber)){
console.error("Invalid Race number: " + raceNumber);
unmanagedCompetitors.push({name: lastName, error: "Invalid Race number: " + raceNumber});
return;
}

@@ -239,3 +241,4 @@

if (! this._isRank(rank)){
console.error("Invalid Rank \"" + rank + "\" for competitor: " + lastName)
unmanagedCompetitors.push({name: lastName, error: "Invalid Rank \"" + rank + "\"."});
return;
}

@@ -271,3 +274,3 @@

if (! this._isCategory(category)){
console.warn("Unmanaged category: " + category + " for competitor: " + textLastName.value.R[0].T + ". This biker will not be added to JSON file");
unmanagedCompetitors.push({name: textLastName.value.R[0].T, error: "Invalid category \"" + category + "\"."});
return;

@@ -299,3 +302,3 @@ }

});
this.emit("cif_parser_dataReady", {"competitors":competitors});
this.emit("cif_parser_dataReady", {"competitors":competitors, "ignoredCompetitors": unmanagedCompetitors});
});

@@ -302,0 +305,0 @@

{
"name": "cif-parser",
"version": "1.4.0",
"version": "1.4.1",
"description": "Parse results of bike race published by FFC CIF",

@@ -5,0 +5,0 @@ "main": "main.js",