@absolutejs/absolute 0.19.0-beta.1090 → 0.19.0-beta.1092

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/index.js CHANGED
@@ -178953,7 +178953,7 @@ var formatServerBootDiagnostic = (output, serverEntry) => {
178953
178953
  ].join(`
178954
178954
  `);
178955
178955
  };
178956
- var HEAP_SNAPSHOT_PRELOAD = `process.on('SIGUSR2', () => {
178956
+ var DEV_CHILD_PRELOAD = `process.on('SIGUSR2', () => {
178957
178957
  try {
178958
178958
  const file = 'heap-' + process.pid + '-' + Date.now() + '.heapsnapshot';
178959
178959
  Bun.write(file, Bun.generateHeapSnapshot('v8'));
@@ -178962,6 +178962,13 @@ var HEAP_SNAPSHOT_PRELOAD = `process.on('SIGUSR2', () => {
178962
178962
  console.error('[absolute] heap snapshot failed:', error);
178963
178963
  }
178964
178964
  });
178965
+ const absoluteDevInitialPpid = process.ppid;
178966
+ const absoluteDevParentWatch = setInterval(() => {
178967
+ if (process.ppid === absoluteDevInitialPpid) return;
178968
+ console.error('[absolute] dev CLI (pid ' + absoluteDevInitialPpid + ') is gone \u2014 shutting down so the port is not held by an orphaned server');
178969
+ process.exit(0);
178970
+ }, 1000);
178971
+ if (typeof absoluteDevParentWatch.unref === 'function') absoluteDevParentWatch.unref();
178965
178972
  `;
178966
178973
  var ANSI_LOG_REGEX = new RegExp(`${String.fromCharCode(ANSI_ESCAPE_CODE)}\\[[0-?]*[ -/]*[@-~]`, "g");
178967
178974
  var confirmPrompt = (message, defaultYes = true) => {
@@ -179228,7 +179235,7 @@ var dev = async (serverEntry, configPath2) => {
179228
179235
  const heapPreloadPath = join6(tmpdir(), `absolute-heap-${process.pid}.ts`);
179229
179236
  let heapSnapshotEnabled = false;
179230
179237
  try {
179231
- writeFileSync4(heapPreloadPath, HEAP_SNAPSHOT_PRELOAD);
179238
+ writeFileSync4(heapPreloadPath, DEV_CHILD_PRELOAD);
179232
179239
  heapSnapshotEnabled = true;
179233
179240
  } catch {
179234
179241
  heapSnapshotEnabled = false;
package/dist/index.js CHANGED
@@ -33487,14 +33487,29 @@ var mimeTypes, getMimeType = (filePath) => {
33487
33487
  };
33488
33488
  var init_assetStore = __esm(() => {
33489
33489
  mimeTypes = {
33490
+ ".avif": "image/avif",
33491
+ ".bmp": "image/bmp",
33490
33492
  ".css": "text/css",
33493
+ ".eot": "application/vnd.ms-fontobject",
33494
+ ".gif": "image/gif",
33491
33495
  ".html": "text/html",
33496
+ ".ico": "image/x-icon",
33497
+ ".jpeg": "image/jpeg",
33498
+ ".jpg": "image/jpeg",
33492
33499
  ".js": "application/javascript",
33493
33500
  ".json": "application/json",
33501
+ ".map": "application/json",
33494
33502
  ".mjs": "application/javascript",
33503
+ ".otf": "font/otf",
33504
+ ".png": "image/png",
33495
33505
  ".svg": "image/svg+xml",
33506
+ ".ttf": "font/ttf",
33507
+ ".txt": "text/plain",
33508
+ ".wasm": "application/wasm",
33509
+ ".webp": "image/webp",
33496
33510
  ".woff": "font/woff",
33497
- ".woff2": "font/woff2"
33511
+ ".woff2": "font/woff2",
33512
+ ".xml": "application/xml"
33498
33513
  };
33499
33514
  HASHED_FILE_RE = /\.[a-z0-9]{8}\.(js|css|mjs)$/;
33500
33515
  });
@@ -47711,5 +47726,5 @@ export {
47711
47726
  ANGULAR_INIT_TIMEOUT_MS
47712
47727
  };
47713
47728
 
47714
- //# debugId=39C8705EE6614D9464756E2164756E21
47729
+ //# debugId=E5478C474D918A3C64756E2164756E21
47715
47730
  //# sourceMappingURL=index.js.map