@ehildt/depbadge 1.1.4 → 1.2.0
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.
- package/README.md +3 -4
- package/dist/index.mjs +11 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ Depbadge is a CLI tool that automatically generates and maintains dependency and
|
|
|
15
15
|
|
|
16
16
|
**`package.json`** – Node.js / JavaScript / TypeScript projects
|
|
17
17
|
**`pyproject.toml`** – Python projects (PEP 621)
|
|
18
|
-
**`Cargo.toml`** – Rust projects
|
|
18
|
+
**`Cargo.toml`** – Rust projects
|
|
19
19
|
|
|
20
20
|
</div>
|
|
21
21
|
<br>
|
|
@@ -29,6 +29,7 @@ Depbadge is a CLI tool that automatically generates and maintains dependency and
|
|
|
29
29
|

|
|
30
30
|
[](https://about.codecov.io/)
|
|
31
31
|
[](https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/)
|
|
32
|
+
[](https://www.npmjs.com/package/@ehildt/depbadge)
|
|
32
33
|
|
|
33
34
|
</div>
|
|
34
35
|
|
|
@@ -80,11 +81,9 @@ Depbadge is a CLI tool that automatically generates and maintains dependency and
|
|
|
80
81
|
|
|
81
82
|
<br>
|
|
82
83
|
|
|
83
|
-
|
|
84
84
|
<div align="center">
|
|
85
85
|
|
|
86
86
|
[E-MAIL](mailto:eugen.hildt@gmail.com) — [WIKI](https://github.com/ehildt/depbadge/wiki) — [ISSUES](https://github.com/ehildt/depbadge/issues) — [DONATE](https://github.com/sponsors/ehildt)
|
|
87
87
|
|
|
88
|
-
|
|
89
88
|
</div>
|
|
90
|
-
<br>
|
|
89
|
+
<br>
|
package/dist/index.mjs
CHANGED
|
@@ -4968,6 +4968,16 @@ function mapGithubStatusBadgeToMarkdown(badge) {
|
|
|
4968
4968
|
return badge?.link ? `[](${badge.link})` : ``;
|
|
4969
4969
|
}
|
|
4970
4970
|
|
|
4971
|
+
// src/depbadgerc/map-socket-status-badge-to-markdown.ts
|
|
4972
|
+
init_esm_shims();
|
|
4973
|
+
function mapSocketStatusBadgeToMarkdown(badge) {
|
|
4974
|
+
const label = badge.name;
|
|
4975
|
+
const version = badge.version ?? "*";
|
|
4976
|
+
const url = `https://badge.socket.dev/npm/package/${badge.package}/${version}`;
|
|
4977
|
+
const link = badge.link ?? `https://www.npmjs.com/package/${badge.package}`;
|
|
4978
|
+
return `[](${link})`;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4971
4981
|
// src/depbadgerc/map-tile-status-badge-to-markdown.ts
|
|
4972
4982
|
init_esm_shims();
|
|
4973
4983
|
function mapTileStatusBadgeToMarkdown(badge) {
|
|
@@ -5000,6 +5010,7 @@ var mapStatusBadgesToMarkdown = useCtxCallback(
|
|
|
5000
5010
|
if (item.name === "docker") return mapDockerHubStatusBadgeToMarkdown(item);
|
|
5001
5011
|
if (item.name === "codecov") return mapCodecovStatusBadgeToMarkdown(item);
|
|
5002
5012
|
if (item.name === "tile") return mapTileStatusBadgeToMarkdown(item);
|
|
5013
|
+
if (item.name === "socket") return mapSocketStatusBadgeToMarkdown(item);
|
|
5003
5014
|
}).filter((x2) => Boolean(x2))
|
|
5004
5015
|
])
|
|
5005
5016
|
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ehildt/depbadge",
|
|
3
3
|
"description": "A tool that creates shieldio badges",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.mjs",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"husky": "^9.1.7",
|
|
51
51
|
"jiti": "^2.6.1",
|
|
52
52
|
"lint-staged": "^16.4.0",
|
|
53
|
-
"npm-check-updates": "^19.6.
|
|
53
|
+
"npm-check-updates": "^19.6.5",
|
|
54
54
|
"rimraf": "^6.1.3",
|
|
55
55
|
"source-map-support": "^0.5.21",
|
|
56
56
|
"ts-loader": "^9.5.4",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"ts-unused-exports": "^11.0.1",
|
|
59
59
|
"tsup": "^8.5.1",
|
|
60
60
|
"typescript": "^5.9.3",
|
|
61
|
-
"typescript-eslint": "^8.57.
|
|
61
|
+
"typescript-eslint": "^8.57.1",
|
|
62
62
|
"vitest": "^4.1.0"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|