qcobjects 2.5.112-beta → 2.5.113-beta

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.
@@ -122,7 +122,9 @@ var init_platform = __esm({
122
122
  return isDeno ? deno_require(name) : ((name2) => {
123
123
  let r;
124
124
  try {
125
- _import_(name2).then((m) => {
125
+ (async () => {
126
+ r = await _import_(name2);
127
+ })().then((m) => {
126
128
  r = m && m.default || m;
127
129
  }).catch((e) => {
128
130
  logger.warn(`An error ocurred: ${e}`);
@@ -2274,9 +2276,9 @@ var init_componentLoader = __esm({
2274
2276
  } else {
2275
2277
  logger.debug("Loading the component as a local file in server...");
2276
2278
  const _directLoad = /* @__PURE__ */ __name(function() {
2277
- const fs2 = _require_("fs");
2279
+ const fs = _require_("fs");
2278
2280
  logger.debug("SENDING THE NORMAL REQUEST ");
2279
- fs2.readFile(component2.url, _componentLoaded);
2281
+ fs.readFile(component2.url, _componentLoaded);
2280
2282
  }, "_directLoad");
2281
2283
  if (component2.cached) {
2282
2284
  logger.debug("USING CACHE FOR COMPONENT: " + component2.name);
@@ -4325,19 +4327,22 @@ var init_Tag = __esm({
4325
4327
  });
4326
4328
 
4327
4329
  // src/findPackageNodePath.ts
4328
- var import_node_fs, findPackageNodePath;
4330
+ var findPackageNodePath;
4329
4331
  var init_findPackageNodePath = __esm({
4330
4332
  "src/findPackageNodePath.ts"() {
4331
4333
  "use strict";
4334
+ init_import();
4332
4335
  init_CONFIG();
4333
4336
  init_Export();
4334
4337
  init_Logger();
4335
4338
  init_platform();
4336
- import_node_fs = __toESM(require("node:fs"));
4337
4339
  findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
4338
4340
  let sdkPath = null;
4339
4341
  if (!isBrowser) {
4340
- try {
4342
+ let fs;
4343
+ (async () => {
4344
+ fs = await _import_("node:fs");
4345
+ })().then(() => {
4341
4346
  let sdkPaths = [
4342
4347
  `${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
4343
4348
  `${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
@@ -4353,7 +4358,7 @@ var init_findPackageNodePath = __esm({
4353
4358
  ""
4354
4359
  ].concat(module.paths);
4355
4360
  sdkPaths = sdkPaths.filter((p) => {
4356
- return import_node_fs.default.existsSync(p + "/" + packagename);
4361
+ return fs.existsSync(p + "/" + packagename);
4357
4362
  });
4358
4363
  if (sdkPaths.length > 0) {
4359
4364
  sdkPath = sdkPaths[0];
@@ -4362,9 +4367,9 @@ var init_findPackageNodePath = __esm({
4362
4367
  sdkPath = "";
4363
4368
  logger.info(`${packagename} is not in a standard path.`);
4364
4369
  }
4365
- } catch (e) {
4366
- console.log(e);
4367
- }
4370
+ }).catch((e) => {
4371
+ throw new Error(e);
4372
+ });
4368
4373
  }
4369
4374
  return sdkPath;
4370
4375
  }, "findPackageNodePath");