qcobjects-cli 2.5.143-beta → 2.5.145-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/.cursor/rules/collaboration-features.mdc +25 -0
- package/.cursor/rules/development-guidelines.mdc +37 -0
- package/.cursor/rules/project-structure.mdc +36 -0
- package/.dockerignore +0 -0
- package/.github/FUNDING.yml +0 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- package/.github/ISSUE_TEMPLATE/custom.md +0 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- package/.github/ISSUE_TEMPLATE/issue-template.md +0 -0
- package/.github/workflows/ci.yml +26 -0
- package/.github/workflows/codeql-analysis.yml +0 -0
- package/.github/workflows/main-pr-source.yml +26 -0
- package/.github/workflows/npmpublish-beta.yml +18 -14
- package/.github/workflows/npmpublish-lts.yml +18 -14
- package/.github/workflows/npmpublish-main.yml +17 -13
- package/.github/workflows/open-pr-to-development.yml +70 -0
- package/.opencode/instructions/git-workflow.md +46 -0
- package/.pre-commit-config.yaml +9 -0
- package/AGENTS.md +59 -0
- package/CHANGELOG.md +0 -0
- package/README.md +75 -0
- package/VERSION +1 -1
- package/build-esbuild-esm.js +180 -0
- package/build-esbuild.js +182 -208
- package/deno.json +0 -0
- package/dev-requirements.txt +5 -0
- package/eslint.config.mjs +0 -0
- package/mod.ts +0 -0
- package/package.json +45 -44
- package/public/browser/api-client_services.js.map +1 -1
- package/public/browser/backend/backend-microservice-static.js +211 -219
- package/public/browser/backend/backend-microservice-static.js.map +2 -2
- package/public/browser/backend/backend-php.js +227 -231
- package/public/browser/backend/backend-php.js.map +3 -3
- package/public/browser/cli-commands-build-esbuild.js +326 -0
- package/public/browser/cli-commands-build-esbuild.js.map +7 -0
- package/public/browser/cli-commands-build-typescript.js +114 -0
- package/public/browser/cli-commands-build-typescript.js.map +7 -0
- package/public/browser/cli-commands-jira.js.map +1 -1
- package/public/browser/cli-commands-version.js.map +1 -1
- package/public/browser/cli-commands.js +4 -0
- package/public/browser/cli-commands.js.map +2 -2
- package/public/browser/cli-main.js.map +1 -1
- package/public/browser/client_services.js.map +1 -1
- package/public/browser/collab-server.js.map +1 -1
- package/public/browser/common-pipelog.js.map +1 -1
- package/public/browser/defaultsettings.js +68 -27
- package/public/browser/defaultsettings.js.map +3 -3
- package/public/browser/enterprise-commands.js.map +1 -1
- package/public/browser/main-file.js.map +1 -1
- package/public/browser/main-http-gae-server.js.map +1 -1
- package/public/browser/main-http-server.js.map +1 -1
- package/public/browser/main-http2-server.js.map +1 -1
- package/public/browser/qcobjects-cli.js.map +1 -1
- package/public/browser/qcobjects-collab.js +16 -24
- package/public/browser/qcobjects-collab.js.map +2 -2
- package/public/browser/qcobjects-createcert.js +46 -54
- package/public/browser/qcobjects-createcert.js.map +2 -2
- package/public/browser/qcobjects-gae-http-server.js +16 -24
- package/public/browser/qcobjects-gae-http-server.js.map +2 -2
- package/public/browser/qcobjects-http-server.js +16 -24
- package/public/browser/qcobjects-http-server.js.map +2 -2
- package/public/browser/qcobjects-http2-server.js +21 -30
- package/public/browser/qcobjects-http2-server.js.map +2 -2
- package/public/browser/qcobjects-shell.js.map +1 -1
- package/public/browser/templates/apps/spa-local.html +0 -0
- package/public/browser/templates/apps/spa-local.js +0 -0
- package/public/browser/templates/pwa/sw.js +0 -0
- package/public/browser/types/global/index.d.js +0 -9
- package/public/browser/types/global/index.d.js.map +3 -3
- package/public/cjs/api-client_services.js +74 -0
- package/public/cjs/api-client_services.js.map +1 -0
- package/public/cjs/backend/backend-microservice-static.js +255 -0
- package/public/cjs/backend/backend-microservice-static.js.map +1 -0
- package/public/cjs/backend/backend-php.js +317 -0
- package/public/cjs/backend/backend-php.js.map +1 -0
- package/public/cjs/cli-commands-build-esbuild.js +341 -0
- package/public/cjs/cli-commands-build-esbuild.js.map +1 -0
- package/public/cjs/cli-commands-build-typescript.js +127 -0
- package/public/cjs/cli-commands-build-typescript.js.map +1 -0
- package/public/cjs/cli-commands-jira.js +115 -0
- package/public/cjs/cli-commands-jira.js.map +1 -0
- package/public/cjs/cli-commands-publish-static.js +108 -0
- package/public/cjs/cli-commands-publish-static.js.map +1 -0
- package/public/cjs/cli-commands-version.js +250 -0
- package/public/cjs/cli-commands-version.js.map +1 -0
- package/public/cjs/cli-commands.js +73 -0
- package/public/cjs/cli-commands.js.map +1 -0
- package/public/cjs/cli-main.js +487 -0
- package/public/cjs/cli-main.js.map +1 -0
- package/public/cjs/client_services.js +80 -0
- package/public/cjs/client_services.js.map +1 -0
- package/public/cjs/collab-server.js +404 -0
- package/public/cjs/collab-server.js.map +1 -0
- package/public/cjs/common-pipelog.js +57 -0
- package/public/cjs/common-pipelog.js.map +1 -0
- package/public/cjs/defaultsettings.js +496 -0
- package/public/cjs/defaultsettings.js.map +1 -0
- package/public/cjs/enterprise-commands.js +173 -0
- package/public/cjs/enterprise-commands.js.map +1 -0
- package/public/cjs/index.js +38 -0
- package/public/cjs/index.js.map +1 -0
- package/public/cjs/main-file.js +161 -0
- package/public/cjs/main-file.js.map +1 -0
- package/public/cjs/main-http-gae-server.js +498 -0
- package/public/cjs/main-http-gae-server.js.map +1 -0
- package/public/cjs/main-http-server.js +540 -0
- package/public/cjs/main-http-server.js.map +1 -0
- package/public/cjs/main-http2-server.js +398 -0
- package/public/cjs/main-http2-server.js.map +1 -0
- package/public/cjs/qcobjects-cli.js +105 -0
- package/public/cjs/qcobjects-cli.js.map +1 -0
- package/public/cjs/qcobjects-collab.js +51 -0
- package/public/cjs/qcobjects-collab.js.map +1 -0
- package/public/cjs/qcobjects-createcert.js +89 -0
- package/public/cjs/qcobjects-createcert.js.map +1 -0
- package/public/cjs/qcobjects-gae-http-server.js +51 -0
- package/public/cjs/qcobjects-gae-http-server.js.map +1 -0
- package/public/cjs/qcobjects-http-server.js +51 -0
- package/public/cjs/qcobjects-http-server.js.map +1 -0
- package/public/cjs/qcobjects-http2-server.js +54 -0
- package/public/cjs/qcobjects-http2-server.js.map +1 -0
- package/public/cjs/qcobjects-shell.js +145 -0
- package/public/cjs/qcobjects-shell.js.map +1 -0
- package/public/cjs/templates/apps/spa-local.html +0 -0
- package/public/cjs/templates/apps/spa-local.js +0 -0
- package/public/cjs/templates/pwa/sw.js +0 -0
- package/public/esm/api-client_services.mjs.map +1 -1
- package/public/esm/backend/backend-microservice-static.mjs +207 -216
- package/public/esm/backend/backend-microservice-static.mjs.map +2 -2
- package/public/esm/backend/backend-php.mjs +228 -232
- package/public/esm/backend/backend-php.mjs.map +2 -2
- package/public/esm/cli-commands-build-esbuild.mjs +295 -0
- package/public/esm/cli-commands-build-esbuild.mjs.map +7 -0
- package/public/esm/cli-commands-build-typescript.mjs +83 -0
- package/public/esm/cli-commands-build-typescript.mjs.map +7 -0
- package/public/esm/cli-commands-jira.mjs +1 -1
- package/public/esm/cli-commands-jira.mjs.map +1 -1
- package/public/esm/cli-commands-version.mjs.map +1 -1
- package/public/esm/cli-commands.mjs +7 -3
- package/public/esm/cli-commands.mjs.map +2 -2
- package/public/esm/cli-main.mjs +6 -6
- package/public/esm/cli-main.mjs.map +1 -1
- package/public/esm/client_services.mjs.map +1 -1
- package/public/esm/collab-server.mjs.map +1 -1
- package/public/esm/common-pipelog.mjs.map +1 -1
- package/public/esm/defaultsettings.mjs +68 -27
- package/public/esm/defaultsettings.mjs.map +3 -3
- package/public/esm/enterprise-commands.mjs.map +1 -1
- package/public/esm/index.mjs +1 -1
- package/public/esm/main-file.mjs.map +1 -1
- package/public/esm/main-http-gae-server.mjs +2 -2
- package/public/esm/main-http-gae-server.mjs.map +1 -1
- package/public/esm/main-http-server.mjs +2 -2
- package/public/esm/main-http-server.mjs.map +1 -1
- package/public/esm/main-http2-server.mjs +2 -2
- package/public/esm/main-http2-server.mjs.map +1 -1
- package/public/esm/qcobjects-cli.mjs +2 -2
- package/public/esm/qcobjects-cli.mjs.map +1 -1
- package/public/esm/qcobjects-collab.mjs +14 -23
- package/public/esm/qcobjects-collab.mjs.map +2 -2
- package/public/esm/qcobjects-createcert.mjs +43 -52
- package/public/esm/qcobjects-createcert.mjs.map +2 -2
- package/public/esm/qcobjects-gae-http-server.mjs +14 -23
- package/public/esm/qcobjects-gae-http-server.mjs.map +2 -2
- package/public/esm/qcobjects-http-server.mjs +14 -23
- package/public/esm/qcobjects-http-server.mjs.map +2 -2
- package/public/esm/qcobjects-http2-server.mjs +21 -31
- package/public/esm/qcobjects-http2-server.mjs.map +2 -2
- package/public/esm/qcobjects-shell.mjs +1 -1
- package/public/esm/qcobjects-shell.mjs.map +1 -1
- package/public/esm/templates/apps/spa-local.html +0 -0
- package/public/esm/templates/apps/spa-local.js +0 -0
- package/public/esm/templates/pwa/sw.js +0 -0
- package/public/esm/types/global/index.d.mjs +0 -9
- package/public/esm/types/global/index.d.mjs.map +3 -3
- package/public/types/index.d.ts +29 -3
- package/spec/support/jasmine.json +0 -0
- package/spec/testsSpec.ts +0 -0
- package/src/api-client_services.ts +1 -1
- package/src/backend/backend-microservice-static.ts +196 -196
- package/src/backend/backend-php.ts +240 -245
- package/src/cli-commands-build-esbuild.ts +375 -0
- package/src/cli-commands-build-typescript.ts +139 -0
- package/src/cli-commands-jira.ts +1 -1
- package/src/cli-commands-publish-static.ts +0 -0
- package/src/cli-commands-version.ts +1 -1
- package/src/cli-commands.ts +3 -1
- package/src/cli-main.ts +1 -1
- package/src/client_services.ts +1 -1
- package/src/collab-server.ts +1 -1
- package/src/common-pipelog.ts +1 -1
- package/src/defaultsettings.ts +65 -19
- package/src/enterprise-commands.ts +1 -1
- package/src/index.ts +0 -0
- package/src/main-file.ts +1 -1
- package/src/main-http-gae-server.ts +1 -1
- package/src/main-http-server.ts +1 -1
- package/src/main-http2-server.ts +1 -1
- package/src/qcobjects-cli.ts +1 -1
- package/src/qcobjects-collab.ts +1 -1
- package/src/qcobjects-createcert.ts +1 -1
- package/src/qcobjects-gae-http-server.ts +1 -1
- package/src/qcobjects-http-server.ts +1 -1
- package/src/qcobjects-http2-server.ts +4 -5
- package/src/qcobjects-shell.ts +1 -1
- package/src/templates/apps/spa-local.html +0 -0
- package/src/templates/apps/spa-local.js +0 -0
- package/src/templates/pwa/sw.js +0 -0
- package/src/types/global/index.d.ts +0 -0
- package/transpile.js +0 -0
- package/tsconfig.d.json +0 -0
- package/tsconfig.jasmine.json +0 -0
- package/tsconfig.json +3 -3
- package/.gitlab-ci.yml +0 -16
- package/public/cjs/api-client_services.cjs +0 -79
- package/public/cjs/api-client_services.cjs.map +0 -7
- package/public/cjs/backend/backend-microservice-static.cjs +0 -245
- package/public/cjs/backend/backend-microservice-static.cjs.map +0 -7
- package/public/cjs/backend/backend-php.cjs +0 -301
- package/public/cjs/backend/backend-php.cjs.map +0 -7
- package/public/cjs/cli-commands-jira.cjs +0 -112
- package/public/cjs/cli-commands-jira.cjs.map +0 -7
- package/public/cjs/cli-commands-publish-static.cjs +0 -109
- package/public/cjs/cli-commands-publish-static.cjs.map +0 -7
- package/public/cjs/cli-commands-version.cjs +0 -252
- package/public/cjs/cli-commands-version.cjs.map +0 -7
- package/public/cjs/cli-commands.cjs +0 -45
- package/public/cjs/cli-commands.cjs.map +0 -7
- package/public/cjs/cli-main.cjs +0 -417
- package/public/cjs/cli-main.cjs.map +0 -7
- package/public/cjs/client_services.cjs +0 -86
- package/public/cjs/client_services.cjs.map +0 -7
- package/public/cjs/collab-server.cjs +0 -444
- package/public/cjs/collab-server.cjs.map +0 -7
- package/public/cjs/common-pipelog.cjs +0 -50
- package/public/cjs/common-pipelog.cjs.map +0 -7
- package/public/cjs/defaultsettings.cjs +0 -432
- package/public/cjs/defaultsettings.cjs.map +0 -7
- package/public/cjs/enterprise-commands.cjs +0 -175
- package/public/cjs/enterprise-commands.cjs.map +0 -7
- package/public/cjs/index.cjs +0 -36
- package/public/cjs/index.cjs.map +0 -7
- package/public/cjs/main-file.cjs +0 -194
- package/public/cjs/main-file.cjs.map +0 -7
- package/public/cjs/main-http-gae-server.cjs +0 -522
- package/public/cjs/main-http-gae-server.cjs.map +0 -7
- package/public/cjs/main-http-server.cjs +0 -588
- package/public/cjs/main-http-server.cjs.map +0 -7
- package/public/cjs/main-http2-server.cjs +0 -431
- package/public/cjs/main-http2-server.cjs.map +0 -7
- package/public/cjs/qcobjects-cli.cjs +0 -92
- package/public/cjs/qcobjects-cli.cjs.map +0 -7
- package/public/cjs/qcobjects-collab.cjs +0 -43
- package/public/cjs/qcobjects-collab.cjs.map +0 -7
- package/public/cjs/qcobjects-createcert.cjs +0 -75
- package/public/cjs/qcobjects-createcert.cjs.map +0 -7
- package/public/cjs/qcobjects-gae-http-server.cjs +0 -43
- package/public/cjs/qcobjects-gae-http-server.cjs.map +0 -7
- package/public/cjs/qcobjects-http-server.cjs +0 -43
- package/public/cjs/qcobjects-http-server.cjs.map +0 -7
- package/public/cjs/qcobjects-http2-server.cjs +0 -49
- package/public/cjs/qcobjects-http2-server.cjs.map +0 -7
- package/public/cjs/qcobjects-shell.cjs +0 -185
- package/public/cjs/qcobjects-shell.cjs.map +0 -7
- package/public/cjs/types/global/index.d.cjs +0 -2
- package/public/cjs/types/global/index.d.cjs.map +0 -7
- package/public/types/index.d.ts.map +0 -1
- package/src/index.cts +0 -2
- package/src/index.mts +0 -2
package/src/defaultsettings.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* QCObjects CLI 2.
|
|
2
|
+
* QCObjects CLI 2.5
|
|
3
3
|
* ________________
|
|
4
4
|
*
|
|
5
5
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -71,24 +71,69 @@ export const __get_version_string__ = () => {
|
|
|
71
71
|
return "QCObjects: v" + version.qcobjects + ", SDK: v" + version.sdk + ", CLI: v" + version.cli;
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
+
export const getProjectPath = () => {
|
|
75
|
+
return CONFIG.get("projectPath", `${process.cwd()}/`);
|
|
76
|
+
};
|
|
77
|
+
|
|
74
78
|
Export(__get_version__);
|
|
75
79
|
Export(__get_version_string__);
|
|
80
|
+
Export(getProjectPath);
|
|
76
81
|
|
|
77
82
|
|
|
78
83
|
const __load_default_settings__ = () => {
|
|
84
|
+
CONFIG.set("domain", "$ENV(DOMAIN)");
|
|
85
|
+
CONFIG.set("certificate_provider", "$ENV(CERTIFICATE_PROVIDER)");
|
|
86
|
+
CONFIG.set("devmode", "$ENV(DEVMODE)");
|
|
87
|
+
CONFIG.set("autodiscover", true);
|
|
88
|
+
CONFIG.set("autodiscover_commands", true);
|
|
89
|
+
CONFIG.set("autodiscover_handlers", true);
|
|
90
|
+
CONFIG.set("documentRoot", "$config(projectPath)public/");
|
|
79
91
|
CONFIG.set("documentRootFileIndex", "index.html");
|
|
80
|
-
CONFIG.set("
|
|
92
|
+
CONFIG.set("cacheControl", "max-age=31536000");
|
|
93
|
+
CONFIG.set("relativeImportPath", "js/packages/");
|
|
94
|
+
CONFIG.set("serverPortHTTP", "8080");
|
|
95
|
+
CONFIG.set("serverPortHTTPS", "8443");
|
|
96
|
+
CONFIG.set("useLocalSDK", true);
|
|
97
|
+
CONFIG.set("useLegacyHTTP", false);
|
|
98
|
+
CONFIG.set("private-key-pem", "$config(domain)-privkey.pem");
|
|
99
|
+
CONFIG.set("private-cert-pem", "$config(domain)-cert.pem");
|
|
100
|
+
CONFIG.set("enableShellCommands", true);
|
|
101
|
+
CONFIG.set("OPENAI_API_KEY", "$ENV(OPENAI_API_KEY)");
|
|
102
|
+
|
|
103
|
+
// Set backend configuration
|
|
104
|
+
const backend = {
|
|
105
|
+
db_engine: {
|
|
106
|
+
name: "$ENV(ENGINE_NAME)",
|
|
107
|
+
databaseName: "$ENV(DATABASE_NAME)"
|
|
108
|
+
},
|
|
109
|
+
auth: {
|
|
110
|
+
enabled: true,
|
|
111
|
+
defaultUser: "$ENV(DEFAULT_USER)",
|
|
112
|
+
defaultPasswd: "$ENV(DEFAULT_PASSWORD)",
|
|
113
|
+
microsoftapikey: "$ENV(MICROSOFT_API_KEY)",
|
|
114
|
+
googleapikey: "$ENV(GOOGLE_API_KEY)"
|
|
115
|
+
},
|
|
116
|
+
routes: [
|
|
117
|
+
]
|
|
118
|
+
};
|
|
119
|
+
CONFIG.set("backend", backend);
|
|
120
|
+
|
|
121
|
+
// Set package configuration
|
|
122
|
+
const packageConfig = {
|
|
123
|
+
source: {
|
|
124
|
+
backend: "backend",
|
|
125
|
+
frontend: "src"
|
|
126
|
+
},
|
|
127
|
+
build: "build",
|
|
128
|
+
dist: "dist"
|
|
129
|
+
};
|
|
130
|
+
CONFIG.set("package", packageConfig);
|
|
131
|
+
|
|
81
132
|
CONFIG.set("useConfigService", false); // this is only true useful for client web side
|
|
82
|
-
CONFIG.set("
|
|
83
|
-
CONFIG.set("serverPortHTTP", 80);
|
|
84
|
-
CONFIG.set("serverPortHTTPS", 443);
|
|
85
|
-
CONFIG.set("private-key-pem", "localhost-privkey.pem");
|
|
86
|
-
CONFIG.set("private-cert-pem", "localhost-cert.pem");
|
|
133
|
+
CONFIG.set("projectPath", `${process.cwd()}/`);
|
|
87
134
|
CONFIG.set("allowHTTP1", true);
|
|
88
135
|
CONFIG.set("useTemplate", false);
|
|
89
|
-
CONFIG.set("
|
|
90
|
-
|
|
91
|
-
|
|
136
|
+
CONFIG.set("useLegacyHTTP", false);
|
|
92
137
|
|
|
93
138
|
const setDevMode = (devmode: string) => {
|
|
94
139
|
if (typeof devmode !== "undefined") {
|
|
@@ -148,24 +193,25 @@ const __load_default_settings__ = () => {
|
|
|
148
193
|
|
|
149
194
|
if (typeof CONFIG.get("backend") !== "undefined") {
|
|
150
195
|
global.set("backendAvailable", true);
|
|
196
|
+
}
|
|
151
197
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
198
|
+
if (typeof CONFIG.get("basePath") !== "undefined") {
|
|
199
|
+
logger.debug(`Changing the current directory: ${process.cwd()}`);
|
|
200
|
+
try {
|
|
201
|
+
process.chdir(CONFIG.get("basePath"));
|
|
202
|
+
logger.debug(`New directory: ${process.cwd()}`);
|
|
203
|
+
} catch (err: any) {
|
|
204
|
+
logger.warn(`It was impossible to change the current chdir: ${err}`);
|
|
160
205
|
}
|
|
161
206
|
}
|
|
207
|
+
|
|
162
208
|
} catch (e:any) {
|
|
163
209
|
logger.debug(e);
|
|
164
210
|
logger.debug("Something went wrong trying to load config.json file in your project");
|
|
165
211
|
}
|
|
166
212
|
|
|
167
213
|
(async function () {
|
|
168
|
-
const projectPath =
|
|
214
|
+
const projectPath = getProjectPath();
|
|
169
215
|
const loadDefaultRoutes = async () => {
|
|
170
216
|
return await new Promise<void>((resolve, reject) => {
|
|
171
217
|
const sdkPath = path.resolve(findPackageNodePath("qcobjects-sdk"), "qcobjects-sdk");
|
package/src/index.ts
CHANGED
|
File without changes
|
package/src/main-file.ts
CHANGED
package/src/main-http-server.ts
CHANGED
package/src/main-http2-server.ts
CHANGED
package/src/qcobjects-cli.ts
CHANGED
package/src/qcobjects-collab.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
* QCObjects CLI 2.
|
|
3
|
+
* QCObjects CLI 2.5
|
|
4
4
|
* ________________
|
|
5
5
|
*
|
|
6
6
|
* Author: Jean Machuca <correojean@gmail.com>
|
|
@@ -33,16 +33,15 @@
|
|
|
33
33
|
import "./defaultsettings";
|
|
34
34
|
import {HTTPServer} from "./main-http-server";
|
|
35
35
|
import {HTTP2Server} from "./main-http2-server";
|
|
36
|
+
import {getProjectPath} from "./defaultsettings";
|
|
37
|
+
import { CONFIG, InheritClass, New, logger } from "qcobjects";
|
|
38
|
+
|
|
36
39
|
|
|
37
40
|
(async () => {
|
|
38
41
|
"use strict";
|
|
39
42
|
const path = await import("path");
|
|
40
43
|
const absolutePath = path.resolve(__dirname, "./");
|
|
41
44
|
|
|
42
|
-
await import("qcobjects");
|
|
43
|
-
const { CONFIG, InheritClass, New, logger } = await import("qcobjects");
|
|
44
|
-
|
|
45
|
-
|
|
46
45
|
class Main extends InheritClass {
|
|
47
46
|
constructor() {
|
|
48
47
|
super();
|
package/src/qcobjects-shell.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/templates/pwa/sw.js
CHANGED
|
File without changes
|
|
File without changes
|
package/transpile.js
CHANGED
|
File without changes
|
package/tsconfig.d.json
CHANGED
|
File without changes
|
package/tsconfig.jasmine.json
CHANGED
|
File without changes
|
package/tsconfig.json
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"module": "NodeNext",
|
|
21
21
|
"rootDir": "./src",
|
|
22
22
|
"allowJs": true,
|
|
23
|
-
"outDir": "
|
|
23
|
+
"outDir": "public/cjs",
|
|
24
24
|
"allowSyntheticDefaultImports": true,
|
|
25
25
|
"esModuleInterop": true,
|
|
26
26
|
"baseUrl": ".",
|
|
27
|
-
"declaration":
|
|
28
|
-
"declarationMap":
|
|
27
|
+
"declaration": false,
|
|
28
|
+
"declarationMap": false,
|
|
29
29
|
"sourceMap": true,
|
|
30
30
|
"typeRoots": [
|
|
31
31
|
"./node_modules/@types"
|
package/.gitlab-ci.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
image: node:latest
|
|
2
|
-
|
|
3
|
-
stages:
|
|
4
|
-
- deploy
|
|
5
|
-
|
|
6
|
-
deploy:
|
|
7
|
-
stage: deploy
|
|
8
|
-
rules:
|
|
9
|
-
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_REF_NAME =~ /^v\d+\.\d+\.\d+.*$/
|
|
10
|
-
changes:
|
|
11
|
-
- package.json
|
|
12
|
-
script:
|
|
13
|
-
- npm config set @scope:registry https://registry.npmjs.org/
|
|
14
|
-
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
|
|
15
|
-
- npm ci
|
|
16
|
-
# - npm publish --verbose
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var api_client_services_exports = {};
|
|
21
|
-
__export(api_client_services_exports, {
|
|
22
|
-
QuickCorpCloud: () => QuickCorpCloud
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(api_client_services_exports);
|
|
25
|
-
var import_qcobjects = require("qcobjects");
|
|
26
|
-
class QuickCorpCloud extends import_qcobjects.Service {
|
|
27
|
-
static {
|
|
28
|
-
__name(this, "QuickCorpCloud");
|
|
29
|
-
}
|
|
30
|
-
headers;
|
|
31
|
-
url;
|
|
32
|
-
basePath;
|
|
33
|
-
data;
|
|
34
|
-
constructor({
|
|
35
|
-
name = "quickcorp_cloud",
|
|
36
|
-
external = true,
|
|
37
|
-
useHTTP2 = true,
|
|
38
|
-
cached = false,
|
|
39
|
-
method = "post",
|
|
40
|
-
headers = {
|
|
41
|
-
"origin": "localhost",
|
|
42
|
-
"content-type": "application/json"
|
|
43
|
-
},
|
|
44
|
-
basePath = "https://cloud.quickcorp.org/",
|
|
45
|
-
url = "",
|
|
46
|
-
withCredentials = false
|
|
47
|
-
}) {
|
|
48
|
-
super({
|
|
49
|
-
name,
|
|
50
|
-
external,
|
|
51
|
-
useHTTP2,
|
|
52
|
-
cached,
|
|
53
|
-
method,
|
|
54
|
-
headers,
|
|
55
|
-
basePath,
|
|
56
|
-
url,
|
|
57
|
-
withCredentials
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
_new_(o) {
|
|
61
|
-
this.headers["authorization"] = "Basic token";
|
|
62
|
-
this.url = this.basePath + o.apiMethod;
|
|
63
|
-
this.data = o.data;
|
|
64
|
-
}
|
|
65
|
-
done(service, standardResponse) {
|
|
66
|
-
import_qcobjects.logger.debug(standardResponse);
|
|
67
|
-
}
|
|
68
|
-
fail(e) {
|
|
69
|
-
import_qcobjects.logger.debug(e);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
(0, import_qcobjects.Package)("org.quickcorp.qcobjects.api.client_services", [
|
|
73
|
-
QuickCorpCloud
|
|
74
|
-
]);
|
|
75
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
-
0 && (module.exports = {
|
|
77
|
-
QuickCorpCloud
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=api-client_services.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/api-client_services.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * QCObjects CLI 2.4.x\n * ________________\n *\n * Author: Jean Machuca <correojean@gmail.com>\n *\n * Cross Browser Javascript Framework for MVC Patterns\n * QuickCorp/QCObjects is licensed under the\n * GNU Lesser General Public License v3.0\n * [LICENSE] (https://github.com/QuickCorp/QCObjects/blob/master/LICENSE.txt)\n *\n * Permissions of this copyleft license are conditioned on making available\n * complete source code of licensed works and modifications under the same\n * license or the GNU GPLv3. Copyright and license notices must be preserved.\n * Contributors provide an express grant of patent rights. However, a larger\n * work using the licensed work through interfaces provided by the licensed\n * work may be distributed under different terms and without source code for\n * the larger work.\n *\n * Copyright (C) 2015 Jean Machuca,<correojean@gmail.com>\n *\n * Everyone is permitted to copy and distribute verbatim copies of this\n * license document, but changing it is not allowed.\n*/\n/*eslint no-unused-vars: \"off\"*/\n/*eslint no-redeclare: \"off\"*/\n/*eslint no-empty: \"off\"*/\n/*eslint strict: \"off\"*/\n/*eslint no-mixed-operators: \"off\"*/\n/*eslint no-undef: \"off\"*/\n\"use strict\";\n\nimport { Package, Service, logger } from \"qcobjects\";\n\nexport class QuickCorpCloud extends Service {\n headers: any;\n url: any;\n basePath: any;\n data: any;\n constructor({\n name = \"quickcorp_cloud\",\n external = true,\n useHTTP2 = true,\n cached = false,\n method = \"post\",\n headers = {\n \"origin\": \"localhost\",\n \"content-type\": \"application/json\"\n },\n basePath = \"https://cloud.quickcorp.org/\",\n url = \"\",\n withCredentials = false\n }) {\n super({\n name,\n external,\n useHTTP2,\n cached,\n method,\n headers,\n basePath,\n url,\n withCredentials\n });\n\n }\n\n _new_(o: any) {\n // service instantiated\n this.headers[\"authorization\"] = \"Basic token\";\n this.url = this.basePath + o.apiMethod;\n this.data = o.data;\n }\n\n done(service: any, standardResponse: any) {\n // service loaded\n logger.debug(standardResponse);\n }\n\n fail(e: any) {\n logger.debug(e);\n }\n\n}\n\nPackage(\"org.quickcorp.qcobjects.api.client_services\", [\n QuickCorpCloud\n]);\n\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCA,uBAAyC;AAElC,MAAM,uBAAuB,yBAAQ;AAAA,EAlC5C,OAkC4C;AAAA;AAAA;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,IACV,OAAO;AAAA,IACP,WAAW;AAAA,IACX,WAAW;AAAA,IACX,SAAS;AAAA,IACT,SAAS;AAAA,IACT,UAAU;AAAA,MACR,UAAU;AAAA,MACV,gBAAgB;AAAA,IAClB;AAAA,IACA,WAAW;AAAA,IACX,MAAM;AAAA,IACN,kBAAkB;AAAA,EACpB,GAAG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EAEH;AAAA,EAEA,MAAM,GAAQ;AAEZ,SAAK,QAAQ,eAAe,IAAI;AAChC,SAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,SAAK,OAAO,EAAE;AAAA,EAChB;AAAA,EAEA,KAAK,SAAc,kBAAuB;AAExC,4BAAO,MAAM,gBAAgB;AAAA,EAC/B;AAAA,EAEA,KAAK,GAAQ;AACX,4BAAO,MAAM,CAAC;AAAA,EAChB;AAEF;AAAA,IAEA,0BAAQ,+CAA+C;AAAA,EACrD;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
-
mod
|
|
24
|
-
));
|
|
25
|
-
var import_mime = __toESM(require("mime"));
|
|
26
|
-
var import_node_fs = __toESM(require("node:fs"));
|
|
27
|
-
var import_node_path = __toESM(require("node:path"));
|
|
28
|
-
var import_qcobjects = require("qcobjects");
|
|
29
|
-
const absolutePath = import_node_path.default.resolve(__dirname, "./");
|
|
30
|
-
(0, import_qcobjects.Package)("com.qcobjects.backend.microservice.static", [
|
|
31
|
-
class Microservice extends import_qcobjects.BackendMicroservice {
|
|
32
|
-
static {
|
|
33
|
-
__name(this, "Microservice");
|
|
34
|
-
}
|
|
35
|
-
stream;
|
|
36
|
-
fileName;
|
|
37
|
-
route;
|
|
38
|
-
request;
|
|
39
|
-
body;
|
|
40
|
-
finishWithBody() {
|
|
41
|
-
}
|
|
42
|
-
done() {
|
|
43
|
-
const microservice = this;
|
|
44
|
-
const stream = microservice.stream;
|
|
45
|
-
const fileName = !microservice.fileName.startsWith("/") ? `${process.cwd()}/${microservice.fileName}` : microservice.fileName;
|
|
46
|
-
const sendFileHTTP2 = /* @__PURE__ */ __name(function(stream2, fileName2) {
|
|
47
|
-
try {
|
|
48
|
-
const fd = import_node_fs.default.openSync(fileName2, "r");
|
|
49
|
-
const stat = import_node_fs.default.fstatSync(fd);
|
|
50
|
-
let headers = {
|
|
51
|
-
"content-length": stat.size,
|
|
52
|
-
"last-modified": stat.mtime.toUTCString(),
|
|
53
|
-
"content-type": import_mime.default.getType(fileName2),
|
|
54
|
-
"cache-control": import_qcobjects.CONFIG.get("cacheControl", "max-age=31536000")
|
|
55
|
-
};
|
|
56
|
-
if (typeof microservice.route.responseHeaders !== "undefined") {
|
|
57
|
-
headers = Object.assign(headers, microservice.route.responseHeaders);
|
|
58
|
-
}
|
|
59
|
-
stream2.respondWithFD(fd, headers);
|
|
60
|
-
stream2.on("close", () => {
|
|
61
|
-
import_qcobjects.logger.debug("closing file " + fileName2);
|
|
62
|
-
import_node_fs.default.closeSync(fd);
|
|
63
|
-
});
|
|
64
|
-
stream2.end();
|
|
65
|
-
} catch (e) {
|
|
66
|
-
import_qcobjects.logger.warn("[ERROR] Something went wrong when trying to send the response as file " + fileName2);
|
|
67
|
-
if (e.errno == -2) {
|
|
68
|
-
const headers = {
|
|
69
|
-
":status": 404,
|
|
70
|
-
"content-type": import_mime.default.getType(fileName2)
|
|
71
|
-
};
|
|
72
|
-
stream2.respond(headers);
|
|
73
|
-
stream2.write("<h1>404 - FILE NOT FOUND</h1>");
|
|
74
|
-
stream2.on("close", () => {
|
|
75
|
-
import_qcobjects.logger.debug("closing file " + fileName2);
|
|
76
|
-
});
|
|
77
|
-
stream2.end();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}, "sendFileHTTP2");
|
|
81
|
-
const sendFileLegacyHTTP = /* @__PURE__ */ __name(function(stream2, fileName2) {
|
|
82
|
-
let headers;
|
|
83
|
-
try {
|
|
84
|
-
import_qcobjects.logger.info("trying to read " + fileName2);
|
|
85
|
-
const fd = import_node_fs.default.openSync(fileName2, "r");
|
|
86
|
-
const stat = import_node_fs.default.fstatSync(fd);
|
|
87
|
-
headers = {
|
|
88
|
-
"Content-Length": stat.size,
|
|
89
|
-
"Last-Modified": stat.mtime.toUTCString(),
|
|
90
|
-
"Content-Type": import_mime.default.getType(fileName2),
|
|
91
|
-
"Cache-Control": import_qcobjects.CONFIG.get("cacheControl", "max-age=31536000")
|
|
92
|
-
};
|
|
93
|
-
if (typeof microservice.route.responseHeaders !== "undefined") {
|
|
94
|
-
headers = Object.assign(headers, microservice.route.responseHeaders);
|
|
95
|
-
}
|
|
96
|
-
import_qcobjects.logger.debug("closing file " + fileName2);
|
|
97
|
-
import_node_fs.default.closeSync(fd);
|
|
98
|
-
stream2.writeHead(200, headers);
|
|
99
|
-
stream2.write(import_node_fs.default.readFileSync(fileName2).toString());
|
|
100
|
-
stream2.on("close", () => {
|
|
101
|
-
import_qcobjects.logger.info("closing static file", fileName2);
|
|
102
|
-
});
|
|
103
|
-
} catch (e) {
|
|
104
|
-
if (e.errno == -2) {
|
|
105
|
-
headers = {
|
|
106
|
-
"status": 404,
|
|
107
|
-
"Content-Type": "text/html"
|
|
108
|
-
};
|
|
109
|
-
stream2.writeHead(404, headers);
|
|
110
|
-
stream2.write("<h1>404 - FILE NOT FOUND</h1>");
|
|
111
|
-
stream2.on("close", () => {
|
|
112
|
-
import_qcobjects.logger.info("closing static file with error: ", fileName2);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
import_qcobjects.logger.warn(e);
|
|
116
|
-
stream2.end();
|
|
117
|
-
}
|
|
118
|
-
stream2.end();
|
|
119
|
-
}, "sendFileLegacyHTTP");
|
|
120
|
-
if (typeof stream.respondWithFD !== "undefined") {
|
|
121
|
-
sendFileHTTP2(stream, fileName);
|
|
122
|
-
} else {
|
|
123
|
-
sendFileLegacyHTTP(stream, fileName);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
static(method, data) {
|
|
127
|
-
const microservice = this;
|
|
128
|
-
const redirect_to = microservice.route.redirect_to;
|
|
129
|
-
return new Promise(function(resolve, reject) {
|
|
130
|
-
const supported_methods = microservice.route.supported_methods;
|
|
131
|
-
let _method_allowed_ = false;
|
|
132
|
-
if (typeof supported_methods !== "undefined") {
|
|
133
|
-
if (supported_methods == "*" || typeof method === "undefined" || [...supported_methods].map((m) => m.toLowerCase()).indexOf(method.toLowerCase()) !== -1) {
|
|
134
|
-
_method_allowed_ = true;
|
|
135
|
-
}
|
|
136
|
-
} else {
|
|
137
|
-
_method_allowed_ = true;
|
|
138
|
-
}
|
|
139
|
-
import_qcobjects.logger.debug("Starting static delivery microservice call for method: " + method);
|
|
140
|
-
if (_method_allowed_) {
|
|
141
|
-
import_qcobjects.logger.info("I'm going to deliver a static path...");
|
|
142
|
-
if (redirect_to) {
|
|
143
|
-
const request_path = microservice.request.path;
|
|
144
|
-
const re = new RegExp(microservice.route.path.replace(/{(.*?)}/g, "(?<$1>.*)"), "g");
|
|
145
|
-
microservice.fileName = request_path.replace(re, microservice.route.redirect_to);
|
|
146
|
-
try {
|
|
147
|
-
resolve();
|
|
148
|
-
} catch (e) {
|
|
149
|
-
import_qcobjects.logger.warn("\u{1F926} Something went wrong \u{1F926} when trying to deliver a static path: " + microservice.fileName);
|
|
150
|
-
reject(e);
|
|
151
|
-
}
|
|
152
|
-
} else {
|
|
153
|
-
import_qcobjects.logger.info("There is no redirect_to setting declared in route properties. \n Skipping static delivery...");
|
|
154
|
-
reject(new Error("There is no redirect_to setting declared in route properties. \n Skipping static delivery..."));
|
|
155
|
-
}
|
|
156
|
-
} else {
|
|
157
|
-
import_qcobjects.logger.debug("Method: " + method + " will be skipped");
|
|
158
|
-
resolve();
|
|
159
|
-
}
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
head(formData) {
|
|
163
|
-
const microservice = this;
|
|
164
|
-
microservice.static("head", formData).then((response) => {
|
|
165
|
-
microservice.body = response;
|
|
166
|
-
microservice.done();
|
|
167
|
-
}).catch((e) => {
|
|
168
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
get(formData) {
|
|
172
|
-
const microservice = this;
|
|
173
|
-
microservice.static("get", formData).then((response) => {
|
|
174
|
-
microservice.body = response;
|
|
175
|
-
microservice.done();
|
|
176
|
-
}).catch((error) => {
|
|
177
|
-
console.error(error);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
post(formData) {
|
|
181
|
-
const microservice = this;
|
|
182
|
-
microservice.static("post", formData).then((response) => {
|
|
183
|
-
microservice.body = response;
|
|
184
|
-
microservice.done();
|
|
185
|
-
}).catch((e) => {
|
|
186
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
put(formData) {
|
|
190
|
-
const microservice = this;
|
|
191
|
-
microservice.static("put", formData).then((response) => {
|
|
192
|
-
microservice.body = response;
|
|
193
|
-
microservice.done();
|
|
194
|
-
}).catch((e) => {
|
|
195
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
delete(formData) {
|
|
199
|
-
const microservice = this;
|
|
200
|
-
microservice.static("delete", formData).then((response) => {
|
|
201
|
-
microservice.body = response;
|
|
202
|
-
microservice.done();
|
|
203
|
-
}).catch((e) => {
|
|
204
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
connect(formData) {
|
|
208
|
-
const microservice = this;
|
|
209
|
-
microservice.static("connect", formData).then((response) => {
|
|
210
|
-
microservice.body = response;
|
|
211
|
-
microservice.done();
|
|
212
|
-
}).catch((e) => {
|
|
213
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
options(formData) {
|
|
217
|
-
const microservice = this;
|
|
218
|
-
microservice.static("options", formData).then((response) => {
|
|
219
|
-
microservice.body = response;
|
|
220
|
-
microservice.done();
|
|
221
|
-
}).catch((e) => {
|
|
222
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
trace(formData) {
|
|
226
|
-
const microservice = this;
|
|
227
|
-
microservice.static("trace", formData).then((response) => {
|
|
228
|
-
microservice.body = response;
|
|
229
|
-
microservice.done();
|
|
230
|
-
}).catch((e) => {
|
|
231
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
patch(formData) {
|
|
235
|
-
const microservice = this;
|
|
236
|
-
microservice.static("patch", formData).then((response) => {
|
|
237
|
-
microservice.body = response;
|
|
238
|
-
microservice.done();
|
|
239
|
-
}).catch((e) => {
|
|
240
|
-
import_qcobjects.logger.warn(`An error ocurred: ${e}`);
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
]);
|
|
245
|
-
//# sourceMappingURL=backend-microservice-static.cjs.map
|