@skydiveai/git-cache 0.1.0-beta.1635 → 0.1.0-beta.1642

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/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { f as startServer } from "./server-DfaJ_V9K.mjs";
2
+ import { f as startServer } from "./server-B4o5hA96.mjs";
3
3
  //#region src/cli.ts
4
4
  /**
5
5
  * `git-cache` CLI — the published binary for @skydiveai/git-cache.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isProtocolV2Request, c as parseAdvertisement, d as shouldBackfillAfterPassthrough, f as startServer, i as explainRejection, l as parseUpstream, n as classifyUploadRequest, o as metricsSnapshot, r as copyRequestHeaders, s as mirrorHasObjects, t as SidebandPackExtractor, u as recordColdBuildOutcome } from "./server-DfaJ_V9K.mjs";
1
+ import { a as isProtocolV2Request, c as parseAdvertisement, d as shouldBackfillAfterPassthrough, f as startServer, i as explainRejection, l as parseUpstream, n as classifyUploadRequest, o as metricsSnapshot, r as copyRequestHeaders, s as mirrorHasObjects, t as SidebandPackExtractor, u as recordColdBuildOutcome } from "./server-B4o5hA96.mjs";
2
2
  export { SidebandPackExtractor, classifyUploadRequest, copyRequestHeaders, explainRejection, isProtocolV2Request, metricsSnapshot, mirrorHasObjects, parseAdvertisement, parseUpstream, recordColdBuildOutcome, shouldBackfillAfterPassthrough, startServer };
@@ -437,14 +437,12 @@ function parseUpstream(rawPathname, rawSearch = "") {
437
437
  const hadDotGit = Boolean(match[3]);
438
438
  const operation = match[4];
439
439
  let host = authority;
440
- let port = 443;
441
440
  const colon = authority.lastIndexOf(":");
442
441
  if (colon !== -1) {
443
442
  host = authority.slice(0, colon);
444
443
  const p = authority.slice(colon + 1);
445
444
  if (!/^\d{1,5}$/.test(p)) return null;
446
- port = Number(p);
447
- if (port !== 443) return null;
445
+ if (Number(p) !== 443) return null;
448
446
  }
449
447
  host = host.toLowerCase();
450
448
  if (isIpLiteral(host)) return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skydiveai/git-cache",
3
- "version": "0.1.0-beta.1635",
3
+ "version": "0.1.0-beta.1642",
4
4
  "description": "Sandbox-local Git smart-HTTP clone/fetch cache: a loopback daemon that transparently mirrors HTTPS git reads so repeated clone/fetch/ls-remote skip the origin round-trip. Runs inside an agent sandbox; pushes stay direct.",
5
5
  "homepage": "https://skydive.com",
6
6
  "license": "MIT",