camstack 1.2.55 → 1.2.56

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.js CHANGED
@@ -38,7 +38,7 @@ async function runServe(args) {
38
38
  ...typeof values.data === "string" ? { data: values.data } : {}
39
39
  };
40
40
  Object.assign(process.env, buildServeEnv(opts));
41
- await import("./launcher-QLUF66FQ.js");
41
+ await import("./launcher-3MW23WFM.js");
42
42
  }
43
43
 
44
44
  // src/commands/agent.ts
@@ -83,7 +83,7 @@ async function runAgent(args) {
83
83
  ...typeof values.port === "string" ? { port: values.port } : {}
84
84
  };
85
85
  Object.assign(process.env, buildAgentEnv(opts));
86
- await import("./launcher-QLUF66FQ.js");
86
+ await import("./launcher-3MW23WFM.js");
87
87
  }
88
88
 
89
89
  // src/commands/setup.ts
@@ -413572,6 +413572,7 @@ var require_require_cache = __commonJS({
413572
413572
  };
413573
413573
  Object.defineProperty(exports, "__esModule", { value: true });
413574
413574
  exports.purgeRequireCacheUnder = purgeRequireCacheUnder;
413575
+ exports.bundleGraphRootFor = bundleGraphRootFor;
413575
413576
  var node_fs_1 = __importDefault(__require("fs"));
413576
413577
  var node_path_1 = __importDefault(__require("path"));
413577
413578
  function purgeRequireCacheUnder(dir) {
@@ -413587,6 +413588,11 @@ var require_require_cache = __commonJS({
413587
413588
  } catch {
413588
413589
  }
413589
413590
  }
413591
+ function bundleGraphRootFor(addonDir, entryPath) {
413592
+ const distDir = node_path_1.default.resolve(addonDir, "dist");
413593
+ const withSep = distDir.endsWith(node_path_1.default.sep) ? distDir : `${distDir}${node_path_1.default.sep}`;
413594
+ return entryPath.startsWith(withSep) ? distDir : node_path_1.default.dirname(entryPath);
413595
+ }
413590
413596
  function candidatePrefixes(dir) {
413591
413597
  const withSep = (d) => d.endsWith(node_path_1.default.sep) ? d : `${d}${node_path_1.default.sep}`;
413592
413598
  const given = withSep(dir);
@@ -416148,8 +416154,9 @@ var require_addon_registry_service = __commonJS({
416148
416154
  return;
416149
416155
  let catalog;
416150
416156
  try {
416151
- const modUnknown = await this.moduleLoadSerializer.run(path.dirname(entryPath), async () => {
416152
- (0, require_cache_js_1.purgeRequireCacheUnder)(path.dirname(entryPath));
416157
+ const graphRoot = (0, require_cache_js_1.bundleGraphRootFor)(addonDir, entryPath);
416158
+ const modUnknown = await this.moduleLoadSerializer.run(graphRoot, async () => {
416159
+ (0, require_cache_js_1.purgeRequireCacheUnder)(graphRoot);
416153
416160
  const cacheBustedUrl = `${(0, node_url_1.pathToFileURL)(entryPath).href}?t=${Date.now()}`;
416154
416161
  const nativeImport = new Function("specifier", "return import(specifier)");
416155
416162
  return nativeImport(cacheBustedUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "camstack",
3
- "version": "1.2.55",
3
+ "version": "1.2.56",
4
4
  "description": "CLI tool for managing and running CamStack server",
5
5
  "keywords": [
6
6
  "camstack",