qcobjects 2.5.113-beta → 2.5.115-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/MainProcess.js +9 -1
- package/build/QCObjects.js +3 -2
- package/build/make_global.js +7 -13
- package/build/top.js +1 -1
- package/package.json +1 -1
- package/public/browser/QCObjects.js +56 -43
- package/public/browser/QCObjects.js.map +3 -3
- package/public/cjs/QCObjects.cjs +57 -43
- package/public/cjs/QCObjects.cjs.map +3 -3
- package/public/esm/QCObjects.mjs +60 -43
- package/public/esm/QCObjects.mjs.map +3 -3
- package/public/types/index.d.ts +13 -12
- package/src/MainProcess.ts +9 -2
- 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}...`);
|
|
@@ -142,47 +181,6 @@ var init_platform = __esm({
|
|
|
142
181
|
}
|
|
143
182
|
});
|
|
144
183
|
|
|
145
|
-
// src/make_global.ts
|
|
146
|
-
var __make_global__;
|
|
147
|
-
var init_make_global = __esm({
|
|
148
|
-
"src/make_global.ts"() {
|
|
149
|
-
"use strict";
|
|
150
|
-
init_platform();
|
|
151
|
-
init_top();
|
|
152
|
-
__make_global__ = /* @__PURE__ */ __name(function(f) {
|
|
153
|
-
if (typeof f !== "undefined") {
|
|
154
|
-
if (isBrowser) {
|
|
155
|
-
try {
|
|
156
|
-
_top[f.name] = f;
|
|
157
|
-
window[f.name] = f;
|
|
158
|
-
} catch (e) {
|
|
159
|
-
throw Error(`An error ocurred: ${e}`);
|
|
160
|
-
}
|
|
161
|
-
} else if (typeof global !== "undefined") {
|
|
162
|
-
if (!Object.hasOwn(global, f.name)) {
|
|
163
|
-
global[f.name] = f;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}, "__make_global__");
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
|
|
171
|
-
// src/Export.ts
|
|
172
|
-
var Export;
|
|
173
|
-
var init_Export = __esm({
|
|
174
|
-
"src/Export.ts"() {
|
|
175
|
-
"use strict";
|
|
176
|
-
init_make_global();
|
|
177
|
-
Export = /* @__PURE__ */ __name(function(f) {
|
|
178
|
-
return __make_global__(f);
|
|
179
|
-
}, "Export");
|
|
180
|
-
Export.prototype.toString = function() {
|
|
181
|
-
return "Export(function or symbol) { [QCObjects native code] }";
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
|
|
186
184
|
// src/Logger.ts
|
|
187
185
|
var Logger, logger;
|
|
188
186
|
var init_Logger = __esm({
|
|
@@ -3771,6 +3769,17 @@ var init_globalSettings = __esm({
|
|
|
3771
3769
|
});
|
|
3772
3770
|
|
|
3773
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
|
+
});
|
|
3774
3783
|
var _top, componentsStack, resetTop, buildComponentsStack, configService, setConfigService, set, get;
|
|
3775
3784
|
var init_top = __esm({
|
|
3776
3785
|
"src/top.ts"() {
|
|
@@ -3778,7 +3787,7 @@ var init_top = __esm({
|
|
|
3778
3787
|
init_ComponentFactory();
|
|
3779
3788
|
init_Cast();
|
|
3780
3789
|
init_globalSettings();
|
|
3781
|
-
_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;
|
|
3782
3791
|
_top.lastCache = void 0;
|
|
3783
3792
|
componentsStack = [];
|
|
3784
3793
|
resetTop = /* @__PURE__ */ __name(() => {
|
|
@@ -4955,7 +4964,13 @@ var require_MainProcess = __commonJS({
|
|
|
4955
4964
|
Class("GLOBAL", _QC_CLASSES.global);
|
|
4956
4965
|
Export(ClassFactory("GLOBAL"));
|
|
4957
4966
|
}
|
|
4958
|
-
|
|
4967
|
+
if (isBrowser && typeof window !== "undefined") {
|
|
4968
|
+
set("global", window);
|
|
4969
|
+
} else if (typeof global !== "undefined") {
|
|
4970
|
+
set("global", global);
|
|
4971
|
+
} else if (typeof globalThis !== "undefined") {
|
|
4972
|
+
set("global", globalThis);
|
|
4973
|
+
}
|
|
4959
4974
|
loadSDK_default();
|
|
4960
4975
|
})(_top2);
|
|
4961
4976
|
if (isBrowser) {
|
|
@@ -5048,6 +5063,7 @@ var require_MainProcess = __commonJS({
|
|
|
5048
5063
|
// src/QCObjects.ts
|
|
5049
5064
|
var AssignPolyfill = __toESM(require_assign());
|
|
5050
5065
|
init_top();
|
|
5066
|
+
init_top();
|
|
5051
5067
|
init_PrimaryCollections();
|
|
5052
5068
|
init_DataStringify();
|
|
5053
5069
|
init_DOMCreateElement();
|
|
@@ -6535,6 +6551,7 @@ export {
|
|
|
6535
6551
|
__is_raw_class__,
|
|
6536
6552
|
__make_global__,
|
|
6537
6553
|
__to_number,
|
|
6554
|
+
top_exports as __top__,
|
|
6538
6555
|
_buildComponentsFromElements_,
|
|
6539
6556
|
_fireAsyncLoad,
|
|
6540
6557
|
_methods_,
|