Skip to content

Commit dfe901a

Browse files
authored
Merge pull request #312 from NodeSecure/fix-links
Fix links
2 parents 1f2ca5a + f76d5bb commit dfe901a

2 files changed

Lines changed: 110 additions & 110 deletions

File tree

package.json

Lines changed: 109 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,109 +1,109 @@
1-
{
2-
"name": "@nodesecure/cli",
3-
"version": "2.2.1",
4-
"description": "Node.js security CLI",
5-
"main": "./bin/index.js",
6-
"bin": {
7-
"node-secure": "./bin/index.js",
8-
"nsecure": "./bin/index.js"
9-
},
10-
"type": "module",
11-
"engines": {
12-
"node": ">=18"
13-
},
14-
"scripts": {
15-
"eslint": "eslint bin src test",
16-
"eslint-fix": "npm run eslint -- --fix",
17-
"prepublishOnly": "rimraf ./dist && npm run build && pkg-ok",
18-
"build": "node ./esbuild.config.js",
19-
"test": "npm run test-only && npm run eslint",
20-
"test-only": "node --loader=esmock --no-warnings --test test/",
21-
"coverage": "c8 --reporter=lcov npm run test"
22-
},
23-
"files": [
24-
"bin",
25-
"dist",
26-
"src",
27-
"views"
28-
],
29-
"workspaces": [
30-
"workspaces/documentation-ui",
31-
"workspaces/vis-network",
32-
"workspaces/size-satisfies"
33-
],
34-
"repository": {
35-
"type": "git",
36-
"url": "git+https://github.com/NodeSecure/cli.git"
37-
},
38-
"keywords": [
39-
"node",
40-
"nodejs",
41-
"security",
42-
"cli",
43-
"sast",
44-
"scanner",
45-
"static",
46-
"code",
47-
"analysis",
48-
"node_modules",
49-
"tree",
50-
"npm",
51-
"registry",
52-
"graph",
53-
"visualization",
54-
"dependencies"
55-
],
56-
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
57-
"license": "MIT",
58-
"bugs": {
59-
"url": "https://github.com/NodeSecure/cli/issues"
60-
},
61-
"homepage": "https://github.com/NodeSecure/cli#readme",
62-
"devDependencies": {
63-
"@myunisoft/httpie": "^2.0.1",
64-
"@nodesecure/eslint-config": "^1.7.1",
65-
"@nodesecure/size-satisfies": "^1.1.0",
66-
"@nodesecure/vis-network": "^1.4.0",
67-
"@types/node": "^20.5.3",
68-
"c8": "^8.0.1",
69-
"cross-env": "^7.0.3",
70-
"esbuild": "^0.19.2",
71-
"eslint": "^8.47.0",
72-
"esmock": "^2.3.8",
73-
"http-server": "^14.1.1",
74-
"pkg-ok": "^3.0.0",
75-
"pretty-bytes": "^6.1.1",
76-
"rimraf": "^5.0.5",
77-
"strip-ansi": "^7.1.0"
78-
},
79-
"dependencies": {
80-
"@nodesecure/documentation-ui": "^1.3.0",
81-
"@nodesecure/flags": "^2.4.0",
82-
"@nodesecure/i18n": "^3.5.0",
83-
"@nodesecure/licenses-conformance": "^2.1.0",
84-
"@nodesecure/npm-registry-sdk": "^2.0.0",
85-
"@nodesecure/ossf-scorecard-sdk": "^3.1.0",
86-
"@nodesecure/rc": "^1.5.0",
87-
"@nodesecure/scanner": "^5.2.0",
88-
"@nodesecure/utils": "^1.2.0",
89-
"@nodesecure/vuln": "^1.7.0",
90-
"@openally/result": "^1.2.0",
91-
"@polka/send-type": "^0.5.2",
92-
"@topcli/cliui": "^1.1.0",
93-
"@topcli/prompts": "^1.7.0",
94-
"@topcli/spinner": "^2.1.2",
95-
"cacache": "^18.0.0",
96-
"dotenv": "^16.3.1",
97-
"filenamify": "^6.0.0",
98-
"ini": "^4.1.1",
99-
"kleur": "^4.1.5",
100-
"ms": "^2.1.3",
101-
"open": "^9.1.0",
102-
"polka": "^0.5.2",
103-
"sade": "^1.8.1",
104-
"semver": "^7.5.4",
105-
"server-destroy": "^1.0.1",
106-
"sirv": "^2.0.3",
107-
"zup": "0.0.1"
108-
}
109-
}
1+
{
2+
"name": "@nodesecure/cli",
3+
"version": "2.2.1",
4+
"description": "Node.js security CLI",
5+
"main": "./bin/index.js",
6+
"bin": {
7+
"node-secure": "./bin/index.js",
8+
"nsecure": "./bin/index.js"
9+
},
10+
"type": "module",
11+
"engines": {
12+
"node": ">=18"
13+
},
14+
"scripts": {
15+
"eslint": "eslint bin src test",
16+
"eslint-fix": "npm run eslint -- --fix",
17+
"prepublishOnly": "rimraf ./dist && npm run build && pkg-ok",
18+
"build": "node ./esbuild.config.js",
19+
"test": "npm run test-only && npm run eslint",
20+
"test-only": "node --loader=esmock --no-warnings --test test/",
21+
"coverage": "c8 --reporter=lcov npm run test"
22+
},
23+
"files": [
24+
"bin",
25+
"dist",
26+
"src",
27+
"views"
28+
],
29+
"workspaces": [
30+
"workspaces/documentation-ui",
31+
"workspaces/vis-network",
32+
"workspaces/size-satisfies"
33+
],
34+
"repository": {
35+
"type": "git",
36+
"url": "git+https://github.com/NodeSecure/cli.git"
37+
},
38+
"keywords": [
39+
"node",
40+
"nodejs",
41+
"security",
42+
"cli",
43+
"sast",
44+
"scanner",
45+
"static",
46+
"code",
47+
"analysis",
48+
"node_modules",
49+
"tree",
50+
"npm",
51+
"registry",
52+
"graph",
53+
"visualization",
54+
"dependencies"
55+
],
56+
"author": "GENTILHOMME Thomas <gentilhomme.thomas@gmail.com>",
57+
"license": "MIT",
58+
"bugs": {
59+
"url": "https://github.com/NodeSecure/cli/issues"
60+
},
61+
"homepage": "https://github.com/NodeSecure/cli#readme",
62+
"devDependencies": {
63+
"@myunisoft/httpie": "^2.0.1",
64+
"@nodesecure/eslint-config": "^1.7.1",
65+
"@nodesecure/size-satisfies": "^1.1.0",
66+
"@nodesecure/vis-network": "^1.4.0",
67+
"@types/node": "^20.5.3",
68+
"c8": "^8.0.1",
69+
"cross-env": "^7.0.3",
70+
"esbuild": "^0.19.2",
71+
"eslint": "^8.47.0",
72+
"esmock": "^2.3.8",
73+
"http-server": "^14.1.1",
74+
"pkg-ok": "^3.0.0",
75+
"pretty-bytes": "^6.1.1",
76+
"rimraf": "^5.0.5",
77+
"strip-ansi": "^7.1.0"
78+
},
79+
"dependencies": {
80+
"@nodesecure/documentation-ui": "^1.3.0",
81+
"@nodesecure/flags": "^2.4.0",
82+
"@nodesecure/i18n": "^3.5.0",
83+
"@nodesecure/licenses-conformance": "^2.1.0",
84+
"@nodesecure/npm-registry-sdk": "^2.0.0",
85+
"@nodesecure/ossf-scorecard-sdk": "^3.1.0",
86+
"@nodesecure/rc": "^1.5.0",
87+
"@nodesecure/scanner": "^5.2.1",
88+
"@nodesecure/utils": "^1.2.0",
89+
"@nodesecure/vuln": "^1.7.0",
90+
"@openally/result": "^1.2.0",
91+
"@polka/send-type": "^0.5.2",
92+
"@topcli/cliui": "^1.1.0",
93+
"@topcli/prompts": "^1.7.0",
94+
"@topcli/spinner": "^2.1.2",
95+
"cacache": "^18.0.0",
96+
"dotenv": "^16.3.1",
97+
"filenamify": "^6.0.0",
98+
"ini": "^4.1.1",
99+
"kleur": "^4.1.5",
100+
"ms": "^2.1.3",
101+
"open": "^9.1.0",
102+
"polka": "^0.5.2",
103+
"sade": "^1.8.1",
104+
"semver": "^7.5.4",
105+
"server-destroy": "^1.0.1",
106+
"sirv": "^2.0.3",
107+
"zup": "0.0.1"
108+
}
109+
}

public/components/package/pannels/overview/overview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class Overview {
119119
const fragment = document.createDocumentFragment();
120120

121121
const { homepage } = this.package.links;
122-
if (homepage.href !== null) {
122+
if (typeof homepage.href === "string") {
123123
fragment.appendChild(utils.createLiField("Homepage", homepage.href, { isLink: true }));
124124
}
125125
fragment.appendChild(utils.createLiField("Author", this.author));

0 commit comments

Comments
 (0)