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.
- package/VERSION +1 -1
- package/build/findPackageNodePath.js +10 -11
- package/build/platform.js +3 -2
- package/package.json +1 -1
- package/public/browser/QCObjects.js +15 -10
- package/public/browser/QCObjects.js.map +3 -3
- package/public/cjs/QCObjects.cjs +15 -10
- package/public/cjs/QCObjects.cjs.map +3 -3
- package/public/esm/QCObjects.mjs +13 -8
- package/public/esm/QCObjects.mjs.map +3 -3
package/public/esm/QCObjects.mjs
CHANGED
|
@@ -122,7 +122,9 @@ var init_platform = __esm({
|
|
|
122
122
|
return isDeno ? deno_require(name) : ((name2) => {
|
|
123
123
|
let r;
|
|
124
124
|
try {
|
|
125
|
-
|
|
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
|
|
2279
|
+
const fs = _require_("fs");
|
|
2278
2280
|
logger.debug("SENDING THE NORMAL REQUEST ");
|
|
2279
|
-
|
|
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,11 +4327,11 @@ var init_Tag = __esm({
|
|
|
4325
4327
|
});
|
|
4326
4328
|
|
|
4327
4329
|
// src/findPackageNodePath.ts
|
|
4328
|
-
import fs from "node:fs";
|
|
4329
4330
|
var findPackageNodePath;
|
|
4330
4331
|
var init_findPackageNodePath = __esm({
|
|
4331
4332
|
"src/findPackageNodePath.ts"() {
|
|
4332
4333
|
"use strict";
|
|
4334
|
+
init_import();
|
|
4333
4335
|
init_CONFIG();
|
|
4334
4336
|
init_Export();
|
|
4335
4337
|
init_Logger();
|
|
@@ -4337,7 +4339,10 @@ var init_findPackageNodePath = __esm({
|
|
|
4337
4339
|
findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
|
|
4338
4340
|
let sdkPath = null;
|
|
4339
4341
|
if (!isBrowser) {
|
|
4340
|
-
|
|
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")}`,
|
|
@@ -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
|
-
}
|
|
4366
|
-
|
|
4367
|
-
}
|
|
4370
|
+
}).catch((e) => {
|
|
4371
|
+
throw new Error(e);
|
|
4372
|
+
});
|
|
4368
4373
|
}
|
|
4369
4374
|
return sdkPath;
|
|
4370
4375
|
}, "findPackageNodePath");
|