elections-types 1.0.79 → 1.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ export class FECF1File extends FECFile {
39
39
  typeof fec_file.report_date === "string" &&
40
40
  is_committee_designation(fec_file.designation) &&
41
41
  (fec_file.election_id === undefined || is_election_id(fec_file.election_id)) &&
42
- (fec_file.candidate_id === undefined || typeof fec_file.election_id === "string") &&
42
+ (fec_file.candidate_id === undefined || typeof fec_file.candidate_id === "string") &&
43
43
  (fec_file.jfp_committee_ids === undefined || Array.isArray(fec_file.jfp_committee_ids) && fec_file.jfp_committee_ids.every((committee_id) => typeof committee_id === "string")) &&
44
44
  (Array.isArray(fec_file.jfr_committee_ids) && fec_file.jfr_committee_ids.every((committee_id) => typeof committee_id === "string")) &&
45
45
  (Array.isArray(fec_file.aff_committee_ids) && fec_file.aff_committee_ids.every((committee_id) => typeof committee_id === "string")) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -43,7 +43,7 @@ export class FECF1File extends FECFile {
43
43
  typeof fec_file.report_date === "string" &&
44
44
  is_committee_designation(fec_file.designation) &&
45
45
  (fec_file.election_id === undefined || is_election_id(fec_file.election_id)) &&
46
- (fec_file.candidate_id === undefined || typeof fec_file.election_id === "string") &&
46
+ (fec_file.candidate_id === undefined || typeof fec_file.candidate_id === "string") &&
47
47
  (fec_file.jfp_committee_ids === undefined || Array.isArray(fec_file.jfp_committee_ids) && fec_file.jfp_committee_ids.every((committee_id : any) => typeof committee_id === "string")) &&
48
48
  (Array.isArray(fec_file.jfr_committee_ids) && fec_file.jfr_committee_ids.every((committee_id : any) => typeof committee_id === "string")) &&
49
49
  (Array.isArray(fec_file.aff_committee_ids) && fec_file.aff_committee_ids.every((committee_id : any) => typeof committee_id === "string")) &&