Skip to content

Commit 7addc16

Browse files
chore: update dependencies (#38)
1 parent d3e1a42 commit 7addc16

File tree

4 files changed

+24
-41
lines changed

4 files changed

+24
-41
lines changed

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
"scripts": {
1010
"build": "tsc",
1111
"prepublishOnly": "npm run build",
12-
"test": "node --loader tsx test/index.ts",
12+
"test": "node --loader tsx test/*.ts",
1313
"coverage": "c8 -r html npm test",
14-
"lint": "cross-env eslint src/*.ts"
14+
"lint": "eslint src/*.ts"
1515
},
1616
"repository": {
1717
"type": "git",
@@ -38,18 +38,18 @@
3838
},
3939
"homepage": "https://github.com/NodeSecure/ossf-scorecard-sdk#readme",
4040
"devDependencies": {
41-
"@nodesecure/eslint-config": "^1.5.0",
41+
"@nodesecure/eslint-config": "^1.7.0",
4242
"@slimio/is": "^2.0.0",
43-
"@types/node": "^18.11.9",
44-
"c8": "^7.12.0",
45-
"eslint": "^8.26.0",
43+
"@types/node": "^18.15.11",
44+
"c8": "^7.13.0",
45+
"eslint": "^8.38.0",
4646
"globstar": "^1.0.0",
4747
"is-svg": "^5.0.0",
4848
"ts-node": "^10.9.1",
49-
"tsx": "^3.12.4",
50-
"typescript": "^4.8.4"
49+
"tsx": "^3.12.6",
50+
"typescript": "^5.0.4"
5151
},
5252
"dependencies": {
53-
"undici": "^5.14.0"
53+
"undici": "^5.21.2"
5454
}
5555
}

test/badge.spec.ts

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
// Import Node.js Dependencies
2+
import assert from "node:assert";
3+
import { after, afterEach, before, beforeEach, describe, it } from "node:test";
4+
15
// Import Third-party Dependencies
2-
import assert from 'node:assert';
3-
import { after, afterEach, before, beforeEach, describe, it } from 'node:test'
4-
import Undici, { Interceptable } from 'undici';
6+
import Undici, { Interceptable } from "undici";
57
import isSvg from "is-svg";
68
import is from "@slimio/is";
79

@@ -58,19 +60,19 @@ describe("#badge() FT", () => {
5860

5961
assert.equal(is.plainObject(result), true);
6062
assert.equal(isSvg(result.svg), true);
61-
63+
6264
const imageUrl = new URL(result.image);
63-
assert.strictEqual(imageUrl.origin, "https://img.shields.io");
65+
assert.strictEqual(imageUrl.origin, "https://img.shields.io");
6466
});
6567

6668
it("should throw an error for an unknown repository", async() => {
6769
await assert.rejects(
6870
scorecard.badge("NodeSecure/foobar"),
6971
{
7072
name: "Error",
71-
message : "Invalid repo path"
73+
message: "Invalid repo path"
7274
}
73-
)
75+
);
7476
});
7577
});
7678

test/index.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

test/result.spec.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
// Import Third-party Dependencies
1+
// Import Node.js Dependencies
22
import assert from "node:assert";
3-
import Undici, { Interceptable } from "undici";
43
import { after, afterEach, before, beforeEach, describe, it } from "node:test";
5-
import is from "@slimio/is";
64

5+
// Import Third-party Dependencies
6+
import Undici, { Interceptable } from "undici";
7+
import is from "@slimio/is";
78

89
// Import Internal Dependencies
910
import * as scorecard from "../src/index.js";
@@ -61,9 +62,9 @@ describe("#result() UT", () => {
6162
scorecard.result(expectedRepository),
6263
{
6364
name: "Error",
64-
message : "Not Found"
65+
message: "Not Found"
6566
}
66-
)
67+
);
6768
});
6869
});
6970

0 commit comments

Comments
 (0)