@westbayberry/dg 1.0.24 → 1.0.28

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.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -256,7 +256,7 @@ function parseConfig(argv) {
256
256
  const command = positionals[0] ?? "scan";
257
257
  const noConfig = values["no-config"];
258
258
  const dgrc = noConfig ? {} : loadDgrc();
259
- const apiKey = dgrc.apiKey && dgrc.apiKey.length > 0 ? dgrc.apiKey : null;
259
+ const apiKey = dgrc.apiKey && typeof dgrc.apiKey === "string" && dgrc.apiKey.startsWith("dg_live_") ? dgrc.apiKey : null;
260
260
  const deviceId = getOrCreateDeviceId();
261
261
  const modeRaw = values.mode ?? process.env.DG_MODE ?? dgrc.mode ?? "warn";
262
262
  if (!["block", "warn", "off"].includes(modeRaw)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@westbayberry/dg",
3
- "version": "1.0.24",
3
+ "version": "1.0.28",
4
4
  "description": "Supply chain security scanner for npm and Python dependencies — detects malicious packages, typosquatting, dependency confusion, and 26+ attack patterns",
5
5
  "bin": {
6
6
  "dependency-guardian": "dist/index.mjs",