From 0782347016ec33e00e614257d6ebf5f6332076ec Mon Sep 17 00:00:00 2001 From: Sean Cannon Date: Thu, 25 Jun 2026 23:03:59 -0500 Subject: [PATCH 1/2] fix CI branch trigger from main to master, wire Coveralls repo token --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2763aa..6625684 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,3 +29,5 @@ jobs: - uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} From 6a5c4cc9056ae16487f5718007ee2ea6c1998638 Mon Sep 17 00:00:00 2001 From: Sean Cannon Date: Thu, 25 Jun 2026 23:12:15 -0500 Subject: [PATCH 2/2] add more coverage because OCD --- lib/relation/equals.ts | 2 +- package.json | 2 +- spec/relation.test.cjs | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/relation/equals.ts b/lib/relation/equals.ts index b7528a8..eb54c56 100644 --- a/lib/relation/equals.ts +++ b/lib/relation/equals.ts @@ -20,11 +20,11 @@ const _uniqContentEquals = (iterA: Iterator, iterB: Iterator, }; const __equals = (a: unknown, b: unknown, stackA: unknown[], stackB: unknown[]): boolean => { + if (a === null || b === null) return a === b; if (identical(a, b)) return true; const typeA = Object.prototype.toString.call(a).slice(8, -1); const typeB = Object.prototype.toString.call(b).slice(8, -1); if (typeA !== typeB) return false; - if (a === null || b === null) return false; switch (typeA) { case 'Boolean': case 'Number': case 'String': case 'Date': diff --git a/package.json b/package.json index f617ada..1b184c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fpure", - "version": "0.2.1", + "version": "0.2.2", "description": "Pure, curried, functional programming utilities for TypeScript.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/spec/relation.test.cjs b/spec/relation.test.cjs index b29b4f6..85c3fde 100644 --- a/spec/relation.test.cjs +++ b/spec/relation.test.cjs @@ -57,6 +57,10 @@ describe('equals', () => { assert.equal(equals(1, 1), true); assert.equal(equals(1, '1'), false); assert.equal(equals(NaN, NaN), true); + assert.equal(equals(true, false), false); + assert.equal(equals(false, true), false); + assert.equal(equals(null, null), true); + assert.equal(equals(null, undefined), false); }); it('compares arrays deeply', () => {