qcobjects 2.5.112-beta → 2.5.114-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/QCObjects.js +3 -2
- package/build/findPackageNodePath.js +10 -11
- package/build/make_global.js +7 -13
- package/build/platform.js +3 -2
- package/build/top.js +1 -1
- package/package.json +1 -1
- package/public/browser/QCObjects.js +64 -52
- package/public/browser/QCObjects.js.map +4 -4
- package/public/cjs/QCObjects.cjs +65 -52
- package/public/cjs/QCObjects.cjs.map +4 -4
- package/public/esm/QCObjects.mjs +66 -50
- package/public/esm/QCObjects.mjs.map +4 -4
- package/public/types/index.d.ts +13 -12
- package/src/QCObjects.ts +2 -1
- package/src/make_global.ts +11 -13
- package/src/top.ts +1 -1
package/public/esm/QCObjects.mjs
CHANGED
|
@@ -17,6 +17,10 @@ var __esm = (fn, res) => function __init() {
|
|
|
17
17
|
var __commonJS = (cb, mod) => function __require2() {
|
|
18
18
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
19
|
};
|
|
20
|
+
var __export = (target, all) => {
|
|
21
|
+
for (var name in all)
|
|
22
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
23
|
+
};
|
|
20
24
|
var __copyProps = (to, from, except, desc) => {
|
|
21
25
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
26
|
for (let key of __getOwnPropNames(from))
|
|
@@ -78,6 +82,41 @@ var init_PrimaryCollections = __esm({
|
|
|
78
82
|
}
|
|
79
83
|
});
|
|
80
84
|
|
|
85
|
+
// src/make_global.ts
|
|
86
|
+
var __make_global__;
|
|
87
|
+
var init_make_global = __esm({
|
|
88
|
+
"src/make_global.ts"() {
|
|
89
|
+
"use strict";
|
|
90
|
+
init_top();
|
|
91
|
+
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
92
|
+
if (!!f && !!f.name) {
|
|
93
|
+
if (typeof _top !== "undefined" && typeof f !== "undefined" && _top !== null && !Object.hasOwn(_top, f.name)) {
|
|
94
|
+
set(f.name, f);
|
|
95
|
+
} else if (typeof global !== "undefined") {
|
|
96
|
+
global[f.name] = f;
|
|
97
|
+
} else if (typeof globalThis !== "undefined") {
|
|
98
|
+
globalThis[f.name] = f;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}, "__make_global__");
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// src/Export.ts
|
|
106
|
+
var Export;
|
|
107
|
+
var init_Export = __esm({
|
|
108
|
+
"src/Export.ts"() {
|
|
109
|
+
"use strict";
|
|
110
|
+
init_make_global();
|
|
111
|
+
Export = /* @__PURE__ */ __name(function(f) {
|
|
112
|
+
return __make_global__(f);
|
|
113
|
+
}, "Export");
|
|
114
|
+
Export.prototype.toString = function() {
|
|
115
|
+
return "Export(function or symbol) { [QCObjects native code] }";
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
|
|
81
120
|
// src/_import_.ts
|
|
82
121
|
async function _import_(name) {
|
|
83
122
|
logger.debug(`Importing ${name}...`);
|
|
@@ -122,7 +161,9 @@ var init_platform = __esm({
|
|
|
122
161
|
return isDeno ? deno_require(name) : ((name2) => {
|
|
123
162
|
let r;
|
|
124
163
|
try {
|
|
125
|
-
|
|
164
|
+
(async () => {
|
|
165
|
+
r = await _import_(name2);
|
|
166
|
+
})().then((m) => {
|
|
126
167
|
r = m && m.default || m;
|
|
127
168
|
}).catch((e) => {
|
|
128
169
|
logger.warn(`An error ocurred: ${e}`);
|
|
@@ -140,47 +181,6 @@ var init_platform = __esm({
|
|
|
140
181
|
}
|
|
141
182
|
});
|
|
142
183
|
|
|
143
|
-
// src/make_global.ts
|
|
144
|
-
var __make_global__;
|
|
145
|
-
var init_make_global = __esm({
|
|
146
|
-
"src/make_global.ts"() {
|
|
147
|
-
"use strict";
|
|
148
|
-
init_platform();
|
|
149
|
-
init_top();
|
|
150
|
-
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
151
|
-
if (typeof f !== "undefined") {
|
|
152
|
-
if (isBrowser) {
|
|
153
|
-
try {
|
|
154
|
-
_top[f.name] = f;
|
|
155
|
-
window[f.name] = f;
|
|
156
|
-
} catch (e) {
|
|
157
|
-
throw Error(`An error ocurred: ${e}`);
|
|
158
|
-
}
|
|
159
|
-
} else if (typeof global !== "undefined") {
|
|
160
|
-
if (!Object.hasOwn(global, f.name)) {
|
|
161
|
-
global[f.name] = f;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}, "__make_global__");
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// src/Export.ts
|
|
170
|
-
var Export;
|
|
171
|
-
var init_Export = __esm({
|
|
172
|
-
"src/Export.ts"() {
|
|
173
|
-
"use strict";
|
|
174
|
-
init_make_global();
|
|
175
|
-
Export = /* @__PURE__ */ __name(function(f) {
|
|
176
|
-
return __make_global__(f);
|
|
177
|
-
}, "Export");
|
|
178
|
-
Export.prototype.toString = function() {
|
|
179
|
-
return "Export(function or symbol) { [QCObjects native code] }";
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
|
|
184
184
|
// src/Logger.ts
|
|
185
185
|
var Logger, logger;
|
|
186
186
|
var init_Logger = __esm({
|
|
@@ -2274,9 +2274,9 @@ var init_componentLoader = __esm({
|
|
|
2274
2274
|
} else {
|
|
2275
2275
|
logger.debug("Loading the component as a local file in server...");
|
|
2276
2276
|
const _directLoad = /* @__PURE__ */ __name(function() {
|
|
2277
|
-
const
|
|
2277
|
+
const fs = _require_("fs");
|
|
2278
2278
|
logger.debug("SENDING THE NORMAL REQUEST ");
|
|
2279
|
-
|
|
2279
|
+
fs.readFile(component2.url, _componentLoaded);
|
|
2280
2280
|
}, "_directLoad");
|
|
2281
2281
|
if (component2.cached) {
|
|
2282
2282
|
logger.debug("USING CACHE FOR COMPONENT: " + component2.name);
|
|
@@ -3769,6 +3769,17 @@ var init_globalSettings = __esm({
|
|
|
3769
3769
|
});
|
|
3770
3770
|
|
|
3771
3771
|
// src/top.ts
|
|
3772
|
+
var top_exports = {};
|
|
3773
|
+
__export(top_exports, {
|
|
3774
|
+
_top: () => _top,
|
|
3775
|
+
buildComponentsStack: () => buildComponentsStack,
|
|
3776
|
+
componentsStack: () => componentsStack,
|
|
3777
|
+
configService: () => configService,
|
|
3778
|
+
get: () => get,
|
|
3779
|
+
resetTop: () => resetTop,
|
|
3780
|
+
set: () => set,
|
|
3781
|
+
setConfigService: () => setConfigService
|
|
3782
|
+
});
|
|
3772
3783
|
var _top, componentsStack, resetTop, buildComponentsStack, configService, setConfigService, set, get;
|
|
3773
3784
|
var init_top = __esm({
|
|
3774
3785
|
"src/top.ts"() {
|
|
@@ -3776,7 +3787,7 @@ var init_top = __esm({
|
|
|
3776
3787
|
init_ComponentFactory();
|
|
3777
3788
|
init_Cast();
|
|
3778
3789
|
init_globalSettings();
|
|
3779
|
-
_top = typeof module !== "undefined" && typeof module.exports !== "undefined" && module.exports || typeof global !== "undefined" && global || typeof globalThis !== "undefined" && globalThis || typeof window !== "undefined" && window || typeof self !== "undefined" && self || void 0;
|
|
3790
|
+
_top = typeof module !== "undefined" && typeof module.exports !== "undefined" && module.exports || typeof global !== "undefined" && global || typeof globalThis !== "undefined" && globalThis || typeof window !== "undefined" && window || typeof self !== "undefined" && self !== null && self || void 0;
|
|
3780
3791
|
_top.lastCache = void 0;
|
|
3781
3792
|
componentsStack = [];
|
|
3782
3793
|
resetTop = /* @__PURE__ */ __name(() => {
|
|
@@ -4325,11 +4336,11 @@ var init_Tag = __esm({
|
|
|
4325
4336
|
});
|
|
4326
4337
|
|
|
4327
4338
|
// src/findPackageNodePath.ts
|
|
4328
|
-
import fs from "node:fs";
|
|
4329
4339
|
var findPackageNodePath;
|
|
4330
4340
|
var init_findPackageNodePath = __esm({
|
|
4331
4341
|
"src/findPackageNodePath.ts"() {
|
|
4332
4342
|
"use strict";
|
|
4343
|
+
init_import();
|
|
4333
4344
|
init_CONFIG();
|
|
4334
4345
|
init_Export();
|
|
4335
4346
|
init_Logger();
|
|
@@ -4337,7 +4348,10 @@ var init_findPackageNodePath = __esm({
|
|
|
4337
4348
|
findPackageNodePath = /* @__PURE__ */ __name(function(packagename) {
|
|
4338
4349
|
let sdkPath = null;
|
|
4339
4350
|
if (!isBrowser) {
|
|
4340
|
-
|
|
4351
|
+
let fs;
|
|
4352
|
+
(async () => {
|
|
4353
|
+
fs = await _import_("node:fs");
|
|
4354
|
+
})().then(() => {
|
|
4341
4355
|
let sdkPaths = [
|
|
4342
4356
|
`${CONFIG.get("projectPath")}${CONFIG.get("relativeImportPath")}`,
|
|
4343
4357
|
`${CONFIG.get("basePath")}${CONFIG.get("relativeImportPath")}`,
|
|
@@ -4362,9 +4376,9 @@ var init_findPackageNodePath = __esm({
|
|
|
4362
4376
|
sdkPath = "";
|
|
4363
4377
|
logger.info(`${packagename} is not in a standard path.`);
|
|
4364
4378
|
}
|
|
4365
|
-
}
|
|
4366
|
-
|
|
4367
|
-
}
|
|
4379
|
+
}).catch((e) => {
|
|
4380
|
+
throw new Error(e);
|
|
4381
|
+
});
|
|
4368
4382
|
}
|
|
4369
4383
|
return sdkPath;
|
|
4370
4384
|
}, "findPackageNodePath");
|
|
@@ -5043,6 +5057,7 @@ var require_MainProcess = __commonJS({
|
|
|
5043
5057
|
// src/QCObjects.ts
|
|
5044
5058
|
var AssignPolyfill = __toESM(require_assign());
|
|
5045
5059
|
init_top();
|
|
5060
|
+
init_top();
|
|
5046
5061
|
init_PrimaryCollections();
|
|
5047
5062
|
init_DataStringify();
|
|
5048
5063
|
init_DOMCreateElement();
|
|
@@ -6530,6 +6545,7 @@ export {
|
|
|
6530
6545
|
__is_raw_class__,
|
|
6531
6546
|
__make_global__,
|
|
6532
6547
|
__to_number,
|
|
6548
|
+
top_exports as __top__,
|
|
6533
6549
|
_buildComponentsFromElements_,
|
|
6534
6550
|
_fireAsyncLoad,
|
|
6535
6551
|
_methods_,
|