@ai-ecoverse/slicc-kernel 1.172.0 → 1.172.1

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.
@@ -7513,7 +7513,7 @@ var init_version = __esm({
7513
7513
  "src/version.ts"() {
7514
7514
  "use strict";
7515
7515
  init_captured_globals();
7516
- KERNEL_VERSION = true ? "1.172.0" : "0.0.0-dev";
7516
+ KERNEL_VERSION = true ? "1.172.1" : "0.0.0-dev";
7517
7517
  OS_RELEASE = "6.0.0-slicc";
7518
7518
  }
7519
7519
  });
@@ -7512,7 +7512,7 @@ var init_version = __esm({
7512
7512
  "src/version.ts"() {
7513
7513
  "use strict";
7514
7514
  init_captured_globals();
7515
- KERNEL_VERSION = true ? "1.172.0" : "0.0.0-dev";
7515
+ KERNEL_VERSION = true ? "1.172.1" : "0.0.0-dev";
7516
7516
  OS_RELEASE = "6.0.0-slicc";
7517
7517
  }
7518
7518
  });
package/dist/node.js CHANGED
@@ -3702,7 +3702,7 @@ function satisfies(version, range2) {
3702
3702
  }
3703
3703
 
3704
3704
  // src/version.ts
3705
- var KERNEL_VERSION = true ? "1.172.0" : "0.0.0-dev";
3705
+ var KERNEL_VERSION = true ? "1.172.1" : "0.0.0-dev";
3706
3706
  var OS_RELEASE = "6.0.0-slicc";
3707
3707
  function procVersion() {
3708
3708
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -34166,6 +34166,11 @@ async function* chunks(body, idleMs) {
34166
34166
  await reader.cancel().catch(() => void 0);
34167
34167
  }
34168
34168
  }
34169
+ function sentHeaders(headers, inPage) {
34170
+ const out = joinHeaders(headers);
34171
+ if (inPage) out.delete("user-agent");
34172
+ return out;
34173
+ }
34169
34174
  function streamOf(body) {
34170
34175
  const it = body[Symbol.asyncIterator]();
34171
34176
  return new ReadableStream(
@@ -34193,6 +34198,7 @@ function fetchTransport(options = {}) {
34193
34198
  const Socket = options.webSocket === true ? globalThis.WebSocket : options.webSocket || void 0;
34194
34199
  const headers = options.webSocketHeaders === true;
34195
34200
  const instance = options.redirect ?? "follow";
34201
+ const inPage = !options.fetch && "location" in globalThis;
34196
34202
  return {
34197
34203
  traits: {
34198
34204
  manualRedirects: instance === "manual",
@@ -34209,7 +34215,7 @@ function fetchTransport(options = {}) {
34209
34215
  try {
34210
34216
  response = await send2(request.url, {
34211
34217
  method: request.method,
34212
- headers: joinHeaders(request.headers),
34218
+ headers: sentHeaders(request.headers, inPage),
34213
34219
  ...requestBody(request),
34214
34220
  signal: request.signal,
34215
34221
  redirect: request.redirect ?? instance,