@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 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
  ![github](https://img.shields.io/github/license/ehildt/depbadge?labelColor=333&style=for-the-badge&cacheSeconds=3600&color=b16425&logo=github&logoColor=b16425&logoWidth=40&branch=main)
30
30
  [![codecov](https://img.shields.io/codecov/c/github/ehildt/depbadge?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=4021b0&logoWidth=40&style=for-the-badge&color=4021b0&branch=main)](https://about.codecov.io/)
31
31
  [![My_favorite](https://img.shields.io/badge/My_favorite-🍪🍪🍪-777?labelColor=333&cacheSeconds=3600&logo=npm&logoColor=b4cf2a&logoWidth=40&style=for-the-badge)](https://sallysbakingaddiction.com/chewy-chocolate-chip-cookies/)
32
+ [![socket](https://badge.socket.dev/npm/package/@ehildt/depbadge/1.1.4)](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) &nbsp;—&nbsp; [WIKI](https://github.com/ehildt/depbadge/wiki) &nbsp;—&nbsp; [ISSUES](https://github.com/ehildt/depbadge/issues) &nbsp;—&nbsp; [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 ? `[![${label}](${url})](${badge.link})` : `![${label}](${url})`;
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 `[![${label}](${url})](${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.1.4",
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.3",
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.0",
61
+ "typescript-eslint": "^8.57.1",
62
62
  "vitest": "^4.1.0"
63
63
  },
64
64
  "scripts": {