qcobjects 2.4.55 → 2.4.57
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/.eslintrc.json +1 -0
- package/VERSION +1 -1
- package/package.json +12 -4
- package/spec/testsClassFactorySpec.js +1 -1
- package/spec/testsConfigSpec.js +1 -1
- package/spec/testsGlobalFeaturesSpec.js +1 -1
- package/spec/testsSpec.js +1 -1
- package/spec/testsTypeSpec.js +1 -1
- package/{QCObjects.js → src/QCObjects.js} +15 -11
- package/src/index.cjs +1 -0
- package/src/index.mjs +1 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +18 -0
- package/sw.js +0 -197
package/.eslintrc.json
CHANGED
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.4.
|
|
1
|
+
2.4.57
|
package/package.json
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qcobjects",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.57",
|
|
4
4
|
"description": "QCObjects is an Open-source framework that empowers full-stack developers to make micro-services and micro-frontends into an N-Tier architecture.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "src/index.cjs",
|
|
6
|
+
"module": "src/index.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
"require": "./src/index.cjs",
|
|
9
|
+
"import": "./src/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"type": "commonjs",
|
|
6
12
|
"license": "LGPL-3.0",
|
|
7
13
|
"scripts": {
|
|
14
|
+
"build:ts": "npm test && npx tsc",
|
|
8
15
|
"start": "qcobjects-shell",
|
|
9
|
-
"test": "npx eslint --fix
|
|
16
|
+
"test": "((npx eslint src/*.js spec/*.js --fix) && (npx jasmine))",
|
|
10
17
|
"preversion": "npm cache verify && npm test",
|
|
11
18
|
"sync": "git add . && git commit -am ",
|
|
12
19
|
"postversion": "git push && git push --tags "
|
|
@@ -78,7 +85,8 @@
|
|
|
78
85
|
},
|
|
79
86
|
"devDependencies": {
|
|
80
87
|
"eslint": "^8.2.0",
|
|
81
|
-
"jasmine": "^3.7.0"
|
|
88
|
+
"jasmine": "^3.7.0",
|
|
89
|
+
"typescript": "^5.0.4"
|
|
82
90
|
},
|
|
83
91
|
"engines": {
|
|
84
92
|
"npm": "~8.10.0",
|
package/spec/testsConfigSpec.js
CHANGED
package/spec/testsSpec.js
CHANGED
package/spec/testsTypeSpec.js
CHANGED
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
"use strict";
|
|
32
32
|
var global = _top;
|
|
33
33
|
_top.global = global;
|
|
34
|
+
var isDeno = (typeof window !== "undefined" && "Deno" in window);
|
|
35
|
+
var isBrowser = (typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self) && !isDeno;
|
|
36
|
+
var deno_require = function (){ /* not yet implemented */};
|
|
37
|
+
var _require_ = function (){
|
|
38
|
+
return (isDeno)?(deno_require(...arguments)):(require(...arguments));
|
|
39
|
+
};
|
|
34
40
|
|
|
35
41
|
var _protected_code_ = function (_) {
|
|
36
42
|
var __oldtoString = (typeof _.prototype !== "undefined") ? (_.prototype.toString) : (function () {
|
|
@@ -124,8 +130,6 @@
|
|
|
124
130
|
if (typeof String.prototype.matchAll === "undefined") {
|
|
125
131
|
String.prototype.matchAll = String.prototype.__mAll__;
|
|
126
132
|
}
|
|
127
|
-
var isDeno = (typeof window !== "undefined" && "Deno" in window);
|
|
128
|
-
var isBrowser = (typeof window !== "undefined" && typeof window.self !== "undefined" && window === window.self) && !isDeno;
|
|
129
133
|
var _DOMCreateElement = function (elementName) {
|
|
130
134
|
var _ret_;
|
|
131
135
|
if (isBrowser) {
|
|
@@ -137,7 +141,7 @@
|
|
|
137
141
|
};
|
|
138
142
|
|
|
139
143
|
if (!isBrowser) {
|
|
140
|
-
const fs =
|
|
144
|
+
const fs = _require_("fs");
|
|
141
145
|
}
|
|
142
146
|
|
|
143
147
|
var _DataStringify = function (data) {
|
|
@@ -202,7 +206,7 @@
|
|
|
202
206
|
} else {
|
|
203
207
|
var process;
|
|
204
208
|
try {
|
|
205
|
-
process =
|
|
209
|
+
process = _require_("process");
|
|
206
210
|
} catch (e) {
|
|
207
211
|
// not a process module
|
|
208
212
|
}
|
|
@@ -1197,7 +1201,7 @@
|
|
|
1197
1201
|
|
|
1198
1202
|
if (!isBrowser) {
|
|
1199
1203
|
var findPackageNodePath = function (packagename) {
|
|
1200
|
-
const fs =
|
|
1204
|
+
const fs = _require_("fs");
|
|
1201
1205
|
var sdkPath = null;
|
|
1202
1206
|
try {
|
|
1203
1207
|
var sdkPaths = [
|
|
@@ -1694,7 +1698,7 @@
|
|
|
1694
1698
|
}
|
|
1695
1699
|
try {
|
|
1696
1700
|
resolve.call(_promise_import_, {
|
|
1697
|
-
"_imported_":
|
|
1701
|
+
"_imported_": _require_(`${packageAbsoluteName}`),
|
|
1698
1702
|
"_package_name_": packagename
|
|
1699
1703
|
});
|
|
1700
1704
|
} catch (e) {
|
|
@@ -3495,7 +3499,7 @@
|
|
|
3495
3499
|
} else {
|
|
3496
3500
|
logger.debug("Loading the component as a local file in server...");
|
|
3497
3501
|
var _directLoad = function (is_file) {
|
|
3498
|
-
const fs =
|
|
3502
|
+
const fs = _require_("fs");
|
|
3499
3503
|
logger.debug("SENDING THE NORMAL REQUEST ");
|
|
3500
3504
|
fs.readFile(component.url, _componentLoaded);
|
|
3501
3505
|
};
|
|
@@ -3663,7 +3667,7 @@
|
|
|
3663
3667
|
var _promise = new Promise(
|
|
3664
3668
|
function (resolve, reject) {
|
|
3665
3669
|
if (typeof URL === "undefined") {
|
|
3666
|
-
global.URL =
|
|
3670
|
+
global.URL = _require_("url").URL;
|
|
3667
3671
|
let URL = global.URL;
|
|
3668
3672
|
}
|
|
3669
3673
|
var serviceURL = new URL(service.url);
|
|
@@ -3734,7 +3738,7 @@
|
|
|
3734
3738
|
var requestOptions;
|
|
3735
3739
|
if (service.useHTTP2) {
|
|
3736
3740
|
logger.debug("using http2");
|
|
3737
|
-
var http2 =
|
|
3741
|
+
var http2 = _require_("http2");
|
|
3738
3742
|
var client = http2.connect(serviceURL.origin);
|
|
3739
3743
|
requestOptions = Object.assign({
|
|
3740
3744
|
":method": service.method,
|
|
@@ -3746,7 +3750,7 @@
|
|
|
3746
3750
|
captureEvents(req);
|
|
3747
3751
|
} else {
|
|
3748
3752
|
if (serviceURL.protocol === "http:") {
|
|
3749
|
-
var http =
|
|
3753
|
+
var http = _require_("http");
|
|
3750
3754
|
var request = http.request;
|
|
3751
3755
|
requestOptions = Object.assign({
|
|
3752
3756
|
"url": service.url,
|
|
@@ -3755,7 +3759,7 @@
|
|
|
3755
3759
|
var req = request(service.url);
|
|
3756
3760
|
captureEvents(req);
|
|
3757
3761
|
} else if (serviceURL.protocol === "https:") {
|
|
3758
|
-
var https =
|
|
3762
|
+
var https = _require_("https");
|
|
3759
3763
|
requestOptions = Object.assign({
|
|
3760
3764
|
hostname: serviceURL.hostname,
|
|
3761
3765
|
port: serviceURL.port,
|
package/src/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require("./QCObjects.js");
|
package/src/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./QCObjects.js";
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./QCObjects.js";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2021", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
4
|
+
"lib": ["ES2021"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
5
|
+
"module": "commonjs", /* Specify what module code is generated. */
|
|
6
|
+
"rootDir": "src", /* Specify the root folder within your source files. */
|
|
7
|
+
"resolveJsonModule": true, /* Enable importing .json files. */
|
|
8
|
+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
9
|
+
"outDir": "build", /* Specify an output folder for all emitted files. */
|
|
10
|
+
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
11
|
+
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
12
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
13
|
+
"noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
14
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
15
|
+
},
|
|
16
|
+
"include": ["src/**/*.ts"],
|
|
17
|
+
"exclude": ["src/**/*.spec.ts", "src/*.js"]
|
|
18
|
+
}
|
package/sw.js
DELETED
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* QCObjects SDK 1.0
|
|
3
|
-
* ________________
|
|
4
|
-
*
|
|
5
|
-
* Author: Jean Machuca <correojean@gmail.com>
|
|
6
|
-
*
|
|
7
|
-
* Cross Browser Javascript Framework for MVC Patterns
|
|
8
|
-
* QuickCorp/QCObjects is licensed under the
|
|
9
|
-
* GNU Lesser General Public License v3.0
|
|
10
|
-
* [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)
|
|
11
|
-
*
|
|
12
|
-
* Permissions of this copyleft license are conditioned on making available
|
|
13
|
-
* complete source code of licensed works and modifications under the same
|
|
14
|
-
* license or the GNU GPLv3. Copyright and license notices must be preserved.
|
|
15
|
-
* Contributors provide an express grant of patent rights. However, a larger
|
|
16
|
-
* work using the licensed work through interfaces provided by the licensed
|
|
17
|
-
* work may be distributed under different terms and without source code for
|
|
18
|
-
* the larger work.
|
|
19
|
-
*
|
|
20
|
-
* Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>
|
|
21
|
-
*
|
|
22
|
-
* Everyone is permitted to copy and distribute verbatim copies of this
|
|
23
|
-
* license document, but changing it is not allowed.
|
|
24
|
-
*/
|
|
25
|
-
"use strict";
|
|
26
|
-
const version = "2.2.601";
|
|
27
|
-
const appName = "qcobjects";
|
|
28
|
-
const cacheSufix = (Math.round(Date.now()/(1000*3600))).toString(); // 1 hour
|
|
29
|
-
const cacheName = `qcobjects-app-${appName}-${version}-${cacheSufix}`;
|
|
30
|
-
const start_url = "/?homescreen=1";
|
|
31
|
-
caches.delete(cacheName); // force to reload cache for the first time the sw is loaded
|
|
32
|
-
self.addEventListener('install', e => {
|
|
33
|
-
e.waitUntil(
|
|
34
|
-
caches.open(cacheName).then(cache => {
|
|
35
|
-
return cache.addAll([`${start_url}`,
|
|
36
|
-
"/",
|
|
37
|
-
"AUTHOR.md",
|
|
38
|
-
"CHANGELOG.md",
|
|
39
|
-
"CNAME",
|
|
40
|
-
"CODE_OF_CONDUCT.md",
|
|
41
|
-
"CONTRIBUTING.md",
|
|
42
|
-
"LICENSE.txt",
|
|
43
|
-
"QCObjects.js",
|
|
44
|
-
"README-es.md",
|
|
45
|
-
"README-es.pdf",
|
|
46
|
-
"README.md",
|
|
47
|
-
"README.pdf",
|
|
48
|
-
"README.rst",
|
|
49
|
-
"doc/README.rst",
|
|
50
|
-
"doc/css/components/card.css",
|
|
51
|
-
"doc/css/components/floating-object-effect.css",
|
|
52
|
-
"doc/css/components/hero/hero-call-to-action.css",
|
|
53
|
-
"doc/css/components/hero/hero-overlay.css",
|
|
54
|
-
"doc/css/components/hero/hero-two-column-form.css",
|
|
55
|
-
"doc/css/components/modal.css",
|
|
56
|
-
"doc/css/components/morph-shape-effect.css",
|
|
57
|
-
"doc/css/desktop/container.css",
|
|
58
|
-
"doc/css/desktop/content.css",
|
|
59
|
-
"doc/css/desktop/footer.css",
|
|
60
|
-
"doc/css/desktop/index.css",
|
|
61
|
-
"doc/css/desktop/navbar.css",
|
|
62
|
-
"doc/css/desktop/sidebar.css",
|
|
63
|
-
"doc/css/github-style.css",
|
|
64
|
-
"doc/css/index.css",
|
|
65
|
-
"doc/css/mobile/content.css",
|
|
66
|
-
"doc/css/mobile/footer.css",
|
|
67
|
-
"doc/css/mobile/index.css",
|
|
68
|
-
"doc/css/mobile/navbar.css",
|
|
69
|
-
"doc/css/mobile/sidebar.css",
|
|
70
|
-
"doc/css/modern-base.css",
|
|
71
|
-
"doc/css/modern-fonts.css",
|
|
72
|
-
"doc/css/prism-okaidia.css",
|
|
73
|
-
"doc/css/snippet.css",
|
|
74
|
-
"doc/css/theme/basic/style.css",
|
|
75
|
-
"doc/css/theme/cyan/style.css",
|
|
76
|
-
"doc/css/theme/redlight/style.css",
|
|
77
|
-
"doc/css/theme/xtra/style.css",
|
|
78
|
-
"doc/img/ALPHA-RISE.png",
|
|
79
|
-
"doc/img/QCOBJECTS-animated-logo.svg",
|
|
80
|
-
"doc/img/QCObjects-CLI-AMP.gif",
|
|
81
|
-
"doc/img/QCObjects-Components-Layout.gif",
|
|
82
|
-
"doc/img/QCObjects-Docker-Playground.gif",
|
|
83
|
-
"doc/img/QCObjects-Quick-Start.gif",
|
|
84
|
-
"doc/img/QCObjects-running-on-Windows64bit.gif",
|
|
85
|
-
"doc/img/Q_web.png",
|
|
86
|
-
"doc/img/Q_web.svg",
|
|
87
|
-
"doc/img/components.gif",
|
|
88
|
-
"doc/img/home/bg_hr.png",
|
|
89
|
-
"doc/img/home/blacktocat.png",
|
|
90
|
-
"doc/img/home/icon_download.png",
|
|
91
|
-
"doc/img/home/sprite_download.png",
|
|
92
|
-
"doc/img/icons/icon-128x128.png",
|
|
93
|
-
"doc/img/icons/icon-144x144.png",
|
|
94
|
-
"doc/img/icons/icon-152x152.png",
|
|
95
|
-
"doc/img/icons/icon-192x192.png",
|
|
96
|
-
"doc/img/icons/icon-384x384.png",
|
|
97
|
-
"doc/img/icons/icon-512x512.png",
|
|
98
|
-
"doc/img/icons/icon-72x72.png",
|
|
99
|
-
"doc/img/icons/icon-96x96.png",
|
|
100
|
-
"doc/img/jeanmachuca.png",
|
|
101
|
-
"doc/img/loading.svg",
|
|
102
|
-
"doc/img/logo-qcobjects-white.svg",
|
|
103
|
-
"doc/img/logo.png",
|
|
104
|
-
"doc/img/placeholder.svg",
|
|
105
|
-
"doc/img/pwa-qcobjects-demo.gif",
|
|
106
|
-
"doc/img/qco2.png",
|
|
107
|
-
"doc/img/screenshots/screenshot1.png",
|
|
108
|
-
"doc/img/screenshots/screenshot1.webp",
|
|
109
|
-
"doc/img/screenshots/screenshot2.png",
|
|
110
|
-
"doc/img/screenshots/screenshot2.webp",
|
|
111
|
-
"doc/index.rst",
|
|
112
|
-
"doc/js/cl.quickcorp.components.js",
|
|
113
|
-
"doc/js/cl.quickcorp.controller.js",
|
|
114
|
-
"doc/js/cl.quickcorp.effects.js",
|
|
115
|
-
"doc/js/cl.quickcorp.js",
|
|
116
|
-
"doc/js/cl.quickcorp.model.js",
|
|
117
|
-
"doc/js/cl.quickcorp.tools.js",
|
|
118
|
-
"doc/js/cl.quickcorp.view.js",
|
|
119
|
-
"doc/js/init.js",
|
|
120
|
-
"doc/js/installer.js",
|
|
121
|
-
"doc/js/prism-okaidia.js",
|
|
122
|
-
"doc/templates/components/app-showcase.tpl.html",
|
|
123
|
-
"doc/templates/components/shadowed-card.tpl.html",
|
|
124
|
-
"doc/templates/components/academy.tpl.html",
|
|
125
|
-
"doc/templates/components/article1.tpl.html",
|
|
126
|
-
"doc/templates/components/article2.tpl.html",
|
|
127
|
-
"doc/templates/components/article3.tpl.html",
|
|
128
|
-
"doc/templates/components/article4.tpl.html",
|
|
129
|
-
"doc/templates/components/blank.md",
|
|
130
|
-
"doc/templates/components/blank.tpl.html",
|
|
131
|
-
"doc/templates/components/card.tpl.html",
|
|
132
|
-
"doc/templates/components/contentblock.tpl.html",
|
|
133
|
-
"doc/templates/components/download-button.tpl.html",
|
|
134
|
-
"doc/templates/components/download.tpl.html",
|
|
135
|
-
"doc/templates/components/footer.tpl.html",
|
|
136
|
-
"doc/templates/components/footer2.tpl.html",
|
|
137
|
-
"doc/templates/components/grid.tpl.html",
|
|
138
|
-
"doc/templates/components/header.tpl.html",
|
|
139
|
-
"doc/templates/components/header-es.tpl.html",
|
|
140
|
-
"doc/templates/components/hero/hero-call-to-action.tpl.html",
|
|
141
|
-
"doc/templates/components/hero/hero-overlay.tpl.html",
|
|
142
|
-
"doc/templates/components/hero/hero-two-column-form.tpl.html",
|
|
143
|
-
"doc/templates/components/layout-basic.tpl.html",
|
|
144
|
-
"doc/templates/components/loading.tpl.html",
|
|
145
|
-
"doc/templates/components/loadingfooter.tpl.html",
|
|
146
|
-
"doc/templates/components/login.tpl.html",
|
|
147
|
-
"doc/templates/components/login2.tpl.html",
|
|
148
|
-
"doc/templates/components/loginform.tpl.html",
|
|
149
|
-
"doc/templates/components/nav.tpl.html",
|
|
150
|
-
"doc/templates/components/pages/author.tpl.html",
|
|
151
|
-
"doc/templates/components/pages/code_of_conduct.tpl.html",
|
|
152
|
-
"doc/templates/components/pages/contributing.tpl.html",
|
|
153
|
-
"doc/templates/components/pages/download.tpl.html",
|
|
154
|
-
"doc/templates/components/pages/page1.tpl.html",
|
|
155
|
-
"doc/templates/components/pages/page2.tpl.html",
|
|
156
|
-
"doc/templates/components/pages/page3.tpl.html",
|
|
157
|
-
"doc/templates/components/pages/pricing.tpl.html",
|
|
158
|
-
"doc/templates/components/pwa.tpl.html",
|
|
159
|
-
"doc/templates/components/section1.tpl.html",
|
|
160
|
-
"doc/templates/components/section2.tpl.html",
|
|
161
|
-
"doc/templates/components/shadowed-checkbox.tpl.html",
|
|
162
|
-
"doc/templates/components/signin.tpl.html",
|
|
163
|
-
"doc/templates/components/signup-form.tpl.html",
|
|
164
|
-
"doc/templates/components/signup.tpl.html",
|
|
165
|
-
"doc/templates/components/signupbuttons.tpl.html",
|
|
166
|
-
"doc/templates/components/signupform.tpl.html",
|
|
167
|
-
"doc/templates/components/signuppage.tpl.html",
|
|
168
|
-
"doc/templates/components/signupsuccessful.tpl.html",
|
|
169
|
-
"doc/templates/components/signupsuccessfulfooter.tpl.html",
|
|
170
|
-
"doc/templates/components/snippet.tpl.html",
|
|
171
|
-
"doc/templates/components/video_testimonials.tpl.html",
|
|
172
|
-
"doc/templates/components/topmenu.tpl.html",
|
|
173
|
-
"doc/test_service_response.html",
|
|
174
|
-
"favicon.ico",
|
|
175
|
-
"humans.txt",
|
|
176
|
-
"index.html",
|
|
177
|
-
"index.rst",
|
|
178
|
-
"qcobjects_01.png",
|
|
179
|
-
"robots.txt"])
|
|
180
|
-
.then(() => self.skipWaiting());
|
|
181
|
-
})
|
|
182
|
-
);
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
self.addEventListener('activate', event => {
|
|
186
|
-
event.waitUntil(self.clients.claim());
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
self.addEventListener('fetch', event => {
|
|
190
|
-
event.respondWith(
|
|
191
|
-
caches.open(cacheName)
|
|
192
|
-
.then(cache => cache.match(event.request, {ignoreSearch: true}))
|
|
193
|
-
.then(response => {
|
|
194
|
-
return response || fetch(event.request);
|
|
195
|
-
})
|
|
196
|
-
);
|
|
197
|
-
});
|