@ehildt/depbadge 1.0.8 → 1.0.9

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
@@ -35,7 +35,6 @@ By automating badge generation, Depbadge solves common problems: outdated badges
35
35
 
36
36
  <div align="center">
37
37
 
38
- [![chalk](https://img.shields.io/badge/chalk-v5.6.2-hsl(35%2C63%25%2C43%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%2835%2C63%25%2C43%25%29&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
39
38
  [![colord](https://img.shields.io/badge/colord-v2.9.3-hsl(297%2C75%25%2C44%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%28297%2C75%25%2C44%25%29&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
40
39
  [![js-yaml](https://img.shields.io/badge/js_yaml-v4.1.1-hsl(259%2C68%25%2C54%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=npm&logoColor=hsl%28259%2C68%25%2C54%25%29&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
41
40
  [![@iarna/toml](https://img.shields.io/badge/_iarna_toml-v2.2.5-hsl(348%2C64%25%2C54%25).svg?labelColor=hsl%280%2C+0%25%2C+20%25%29&cacheSeconds=3600&logo=toml&logoColor=hsl%28348%2C64%25%2C54%25%29&logoWidth=40&style=for-the-badge)](https://www.npmjs.com/package/example_package)
package/dist/index.mjs CHANGED
@@ -4914,7 +4914,8 @@ function mapCodecovStatusBadgeToMarkdown(badge) {
4914
4914
  ...badge?.logoSvg && {
4915
4915
  logo: `data:image/svg+xml;utf8,${encodeURIComponent(badge.logoSvg)}`
4916
4916
  },
4917
- ...badge.branch && { branch: badge.branch }
4917
+ ...badge.branch && { branch: badge.branch },
4918
+ ...badge.token && { token: badge.token }
4918
4919
  }).toString();
4919
4920
  const label = badge.name;
4920
4921
  const user = encodeLabel2(badge.user ?? "library");
@@ -5292,7 +5293,7 @@ function readManifest(path4 = "Cargo.toml") {
5292
5293
  }
5293
5294
 
5294
5295
  // src/manifest/cargo.toml/manifest.store.ts
5295
- var CargoTomlCtx = useCtxStore(readManifest(), {
5296
+ var CargoTomlCtx = () => useCtxStore(readManifest(), {
5296
5297
  getVersion,
5297
5298
  getDependencies: getDependencies2
5298
5299
  });
@@ -5323,7 +5324,7 @@ function readManifest2(path4 = "package.json") {
5323
5324
  }
5324
5325
 
5325
5326
  // src/manifest/package-json/manifest.store.ts
5326
- var PackageJsonCtx = useCtxStore(readManifest2(), {
5327
+ var PackageJsonCtx = () => useCtxStore(readManifest2(), {
5327
5328
  getVersion: getVersion2,
5328
5329
  getDependencies: getDependencies3
5329
5330
  });
@@ -5367,7 +5368,7 @@ function readManifest3(path4 = "pyproject.toml") {
5367
5368
  }
5368
5369
 
5369
5370
  // src/manifest/pyproject-toml/manifest.store.ts
5370
- var PyProjectCtx = useCtxStore(readManifest3(), {
5371
+ var PyProjectCtx = () => useCtxStore(readManifest3(), {
5371
5372
  getVersion: getVersion3,
5372
5373
  getDependencies: getDependencies4
5373
5374
  });
@@ -5380,7 +5381,7 @@ try {
5380
5381
  "Cargo.toml": CargoTomlCtx
5381
5382
  };
5382
5383
  const manifestFile = rcCtx.manifest;
5383
- const ctx = manifestMap[manifestFile];
5384
+ const ctx = manifestMap[manifestFile]?.();
5384
5385
  if (!ctx) throw new Error(`Unsupported manifest file: ${rcCtx.manifest}`);
5385
5386
  console.log(`Processing manifest: ${manifestFile}`);
5386
5387
  rcCtx.processManifest(ctx);
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.0.8",
4
+ "version": "1.0.9",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.mjs",
@@ -49,7 +49,6 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@iarna/toml": "^2.2.5",
52
- "chalk": "^5.6.2",
53
52
  "colord": "^2.9.3",
54
53
  "js-yaml": "^4.1.1"
55
54
  },