qcobjects-cli 2.5.103-beta → 2.5.105-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-esbuild.js +65 -12
- package/package.json +55 -21
- package/public/browser/com.qcobjects.cli.commands.jira.client_services.js +66 -55
- package/public/browser/com.qcobjects.cli.commands.jira.client_services.js.map +2 -2
- package/public/browser/com.qcobjects.cli.commands.jira.js +138 -93
- package/public/browser/com.qcobjects.cli.commands.jira.js.map +4 -4
- package/public/browser/com.qcobjects.cli.commands.js +371 -14
- package/public/browser/com.qcobjects.cli.commands.js.map +4 -4
- package/public/browser/com.qcobjects.cli.commands.version.js +220 -214
- package/public/browser/com.qcobjects.cli.commands.version.js.map +2 -2
- package/public/browser/index.js +4042 -13
- package/public/browser/index.js.map +4 -4
- package/public/browser/org.qcobjects.common.pipelog.js +37 -24
- package/public/browser/org.qcobjects.common.pipelog.js.map +2 -2
- package/public/browser/org.qcobjects.enterprise.commands.js +108 -117
- package/public/browser/org.qcobjects.enterprise.commands.js.map +3 -3
- package/public/browser/org.quickcorp.qcobjects.api.client_services.js +64 -55
- package/public/browser/org.quickcorp.qcobjects.api.client_services.js.map +2 -2
- package/public/browser/org.quickcorp.qcobjects.cli.js +1280 -379
- package/public/browser/org.quickcorp.qcobjects.cli.js.map +4 -4
- package/public/browser/org.quickcorp.qcobjects.defaultsettings.js +373 -359
- package/public/browser/org.quickcorp.qcobjects.defaultsettings.js.map +2 -2
- package/public/browser/qcobjects-cli.js +4042 -13
- package/public/browser/qcobjects-cli.js.map +4 -4
- package/public/browser/templates/apps/spa-local.html +28 -0
- package/public/browser/templates/apps/spa-local.js +65 -0
- package/public/browser/templates/pwa/sw.js +112 -0
- package/public/cjs/com.qcobjects.cli.commands.cjs +377 -6
- package/public/cjs/com.qcobjects.cli.commands.cjs.map +4 -4
- package/public/cjs/com.qcobjects.cli.commands.jira.cjs +82 -24
- package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +4 -4
- package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +25 -1
- package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +2 -2
- package/public/cjs/com.qcobjects.cli.commands.version.cjs +25 -6
- package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +2 -2
- package/public/cjs/index.cjs +4042 -13
- package/public/cjs/index.cjs.map +4 -4
- package/public/cjs/org.qcobjects.common.pipelog.cjs +40 -14
- package/public/cjs/org.qcobjects.common.pipelog.cjs.map +2 -2
- package/public/cjs/org.qcobjects.enterprise.commands.cjs +38 -34
- package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +3 -3
- package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +24 -2
- package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +2 -2
- package/public/cjs/org.quickcorp.qcobjects.cli.cjs +1032 -118
- package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +4 -4
- package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +362 -334
- package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +2 -2
- package/public/cjs/qcobjects-cli.cjs +4047 -13
- package/public/cjs/qcobjects-cli.cjs.map +4 -4
- package/public/cjs/templates/apps/spa-local.html +28 -0
- package/public/cjs/templates/apps/spa-local.js +65 -0
- package/public/cjs/templates/pwa/sw.js +112 -0
- package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +50 -57
- package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +2 -2
- package/public/esm/com.qcobjects.cli.commands.jira.mjs +119 -94
- package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +4 -4
- package/public/esm/com.qcobjects.cli.commands.mjs +357 -16
- package/public/esm/com.qcobjects.cli.commands.mjs.map +4 -4
- package/public/esm/com.qcobjects.cli.commands.version.mjs +204 -216
- package/public/esm/com.qcobjects.cli.commands.version.mjs.map +2 -2
- package/public/esm/index.mjs +4043 -13
- package/public/esm/index.mjs.map +4 -4
- package/public/esm/org.qcobjects.common.pipelog.mjs +21 -26
- package/public/esm/org.qcobjects.common.pipelog.mjs.map +2 -2
- package/public/esm/org.qcobjects.enterprise.commands.mjs +92 -119
- package/public/esm/org.qcobjects.enterprise.commands.mjs.map +3 -3
- package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +48 -57
- package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +2 -2
- package/public/esm/org.quickcorp.qcobjects.cli.mjs +1266 -380
- package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +4 -4
- package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +357 -361
- package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +2 -2
- package/public/esm/qcobjects-cli.mjs +4046 -14
- package/public/esm/qcobjects-cli.mjs.map +4 -4
- package/public/esm/templates/apps/spa-local.html +28 -0
- package/public/esm/templates/apps/spa-local.js +65 -0
- package/public/esm/templates/pwa/sw.js +112 -0
- package/public/index.d.ts +140 -10
- package/src/com.qcobjects.cli.commands.jira.client_services.ts +19 -21
- package/src/com.qcobjects.cli.commands.jira.ts +11 -34
- package/src/com.qcobjects.cli.commands.ts +3 -9
- package/src/com.qcobjects.cli.commands.version.ts +1 -9
- package/src/org.qcobjects.common.pipelog.ts +18 -15
- package/src/org.qcobjects.enterprise.commands.ts +29 -50
- package/src/org.quickcorp.qcobjects.api.client_services.ts +1 -4
- package/src/org.quickcorp.qcobjects.cli.ts +28 -57
- package/src/org.quickcorp.qcobjects.defaultsettings.ts +359 -355
- package/src/qcobjects-cli.ts +4 -5
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html class="no-js" lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
|
|
8
|
+
<!-- This is a wide open CSP declaration. To lock this down for production, see below. -->
|
|
9
|
+
<meta http-equiv="Content-Security-Policy" content="default-src * 'self' 'unsafe-inline' 'unsafe-eval' data: gap: https://ssl.gstatic.com; img-src * 'self' data:; child-src *; style-src * 'self' 'unsafe-inline' 'unsafe-eval'; script-src * 'self' 'unsafe-inline' 'unsafe-eval'; connect-src * 'self' 'unsafe-inline' 'unsafe-eval';media-src *">
|
|
10
|
+
<title>{{title}}</title>
|
|
11
|
+
<script type="text/javascript" src="./node_modules/qcobjects/QCObjects.js"></script>
|
|
12
|
+
</head>
|
|
13
|
+
|
|
14
|
+
<body>
|
|
15
|
+
|
|
16
|
+
<component name="main">
|
|
17
|
+
<routing path="/" name="main" />
|
|
18
|
+
<routing path="#" name="main" />
|
|
19
|
+
<routing path="" name="main" />
|
|
20
|
+
<routing path="page1" name="page1" />
|
|
21
|
+
<routing path="page2" name="page2" />
|
|
22
|
+
</component>
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" src="js/init.js"></script>
|
|
25
|
+
|
|
26
|
+
</body>
|
|
27
|
+
|
|
28
|
+
</html>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const path = require("path");
|
|
3
|
+
const absolutePath = path.resolve( __dirname, "./" );
|
|
4
|
+
|
|
5
|
+
const http2 = require("http2");
|
|
6
|
+
const fs = require("fs");
|
|
7
|
+
const mime = require("mime");
|
|
8
|
+
|
|
9
|
+
Import("org.quickcorp.qcobjects.main.file");
|
|
10
|
+
|
|
11
|
+
Package("org.quickcorp.cli.templates.app.spa_local",[
|
|
12
|
+
Class("AppTemplate",{
|
|
13
|
+
name:"app/index.html",
|
|
14
|
+
template:"",
|
|
15
|
+
templateURI:"spa-local.html",
|
|
16
|
+
body:"",
|
|
17
|
+
compileAndSave:false,
|
|
18
|
+
save:function (){
|
|
19
|
+
var appTemplateInstance = this;
|
|
20
|
+
fs.mkdir("app/",()=>{
|
|
21
|
+
fs.writeFile(appTemplateInstance.name, appTemplateInstance.body, err => {
|
|
22
|
+
if (err) {
|
|
23
|
+
return console.error(`Autsch! Failed to store template: ${err.message}.`);
|
|
24
|
+
}
|
|
25
|
+
logger.info("Saved template!");
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
done:function (){
|
|
30
|
+
var appTemplateInstance = this;
|
|
31
|
+
const source = appTemplateInstance.template;
|
|
32
|
+
|
|
33
|
+
(New(Component, {
|
|
34
|
+
name: "static_source",
|
|
35
|
+
template: source,
|
|
36
|
+
cached:false,
|
|
37
|
+
tplsource: "inline",
|
|
38
|
+
data: {
|
|
39
|
+
title: "QCObjects"
|
|
40
|
+
},
|
|
41
|
+
done ({request, component}) {
|
|
42
|
+
appTemplateInstance.body = component.parsedAssignmentText;
|
|
43
|
+
return Promise.resolve({request, component});
|
|
44
|
+
}
|
|
45
|
+
}));
|
|
46
|
+
|
|
47
|
+
if (appTemplateInstance.compileAndSave){
|
|
48
|
+
appTemplateInstance.save();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
},
|
|
52
|
+
_new_:function (){
|
|
53
|
+
|
|
54
|
+
var appTemplateInstance = this;
|
|
55
|
+
const absolutePath = path.resolve( __dirname, "./" );
|
|
56
|
+
|
|
57
|
+
fs.readFile(absolutePath+"/"+appTemplateInstance.templateURI, function(err, data) {
|
|
58
|
+
appTemplateInstance.template = data.toString();
|
|
59
|
+
appTemplateInstance.done.call(appTemplateInstance);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
logger.info("App Template Manager Initialized");
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
]);
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QCObjects Framework
|
|
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
|
+
// eslint-disable-next-line no-undef
|
|
27
|
+
|
|
28
|
+
/* eslint-disable no-undef */
|
|
29
|
+
// This is the service worker with the combined offline experience (Offline page + Offline copy of pages)
|
|
30
|
+
|
|
31
|
+
const CACHE = "{{appName}}-offline-page";
|
|
32
|
+
|
|
33
|
+
importScripts("https://storage.googleapis.com/workbox-cdn/releases/5.1.2/workbox-sw.js");
|
|
34
|
+
|
|
35
|
+
const offlineFallbackPage = "index-fallback.html";
|
|
36
|
+
|
|
37
|
+
self.addEventListener("message", (event) => {
|
|
38
|
+
if (event.data && event.data.type === "SKIP_WAITING") {
|
|
39
|
+
self.skipWaiting();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
self.addEventListener("install", async (event) => {
|
|
44
|
+
event.waitUntil(
|
|
45
|
+
caches.open(CACHE)
|
|
46
|
+
.then((cache) => cache.add(offlineFallbackPage))
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
if (workbox.navigationPreload.isSupported()) {
|
|
51
|
+
workbox.navigationPreload.enable();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
workbox.routing.registerRoute(
|
|
55
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
56
|
+
new RegExp("/*"),
|
|
57
|
+
new workbox.strategies.StaleWhileRevalidate({
|
|
58
|
+
cacheName: CACHE
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
self.addEventListener("fetch", (event) => {
|
|
63
|
+
if (event.request.mode === "navigate") {
|
|
64
|
+
event.respondWith((async () => {
|
|
65
|
+
try {
|
|
66
|
+
const preloadResp = await event.preloadResponse;
|
|
67
|
+
|
|
68
|
+
if (preloadResp) {
|
|
69
|
+
return preloadResp;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const networkResp = await fetch(event.request);
|
|
73
|
+
return networkResp;
|
|
74
|
+
} catch (error) {
|
|
75
|
+
|
|
76
|
+
const cache = await caches.open(CACHE);
|
|
77
|
+
const cachedResp = await cache.match(offlineFallbackPage);
|
|
78
|
+
return cachedResp;
|
|
79
|
+
}
|
|
80
|
+
})());
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
const version = "{{appVersion}}";
|
|
86
|
+
const appName = "{{appName}}";
|
|
87
|
+
const cacheSufix = (Math.round(Date.now()/(1000*3600))).toString(); // 1 hour
|
|
88
|
+
const cacheName = `qcobjects-app-${appName}-${version}-${cacheSufix}`;
|
|
89
|
+
const startUrl = "/?homescreen=1";
|
|
90
|
+
caches.delete(cacheName); // force to reload cache for the first time the sw is loaded
|
|
91
|
+
self.addEventListener("install", e => {
|
|
92
|
+
e.waitUntil(
|
|
93
|
+
caches.open(cacheName).then(cache => {
|
|
94
|
+
return cache.addAll([`${startUrl}`,{{filelist}}])
|
|
95
|
+
.then(() => self.skipWaiting());
|
|
96
|
+
})
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
self.addEventListener("activate", event => {
|
|
101
|
+
event.waitUntil(self.clients.claim());
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
self.addEventListener("fetch", event => {
|
|
105
|
+
event.respondWith(
|
|
106
|
+
caches.open(cacheName)
|
|
107
|
+
.then(cache => cache.match(event.request, { ignoreSearch: true }))
|
|
108
|
+
.then(response => {
|
|
109
|
+
return response || fetch(event.request);
|
|
110
|
+
})
|
|
111
|
+
);
|
|
112
|
+
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
3
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
4
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
@@ -7,63 +6,57 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
6
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
7
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
8
|
});
|
|
10
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
-
};
|
|
13
9
|
|
|
14
10
|
// src/com.qcobjects.cli.commands.jira.client_services.ts
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
static {
|
|
20
|
-
__name(this, "JiraCloud");
|
|
21
|
-
}
|
|
22
|
-
constructor({
|
|
23
|
-
name = "jira_cloud",
|
|
24
|
-
external = true,
|
|
25
|
-
useHTTP2 = true,
|
|
26
|
-
cached = false,
|
|
27
|
-
method = "POST",
|
|
28
|
-
headers = {
|
|
29
|
-
"accept": "application/json",
|
|
30
|
-
"content-type": "application/json"
|
|
31
|
-
},
|
|
32
|
-
basePath = "",
|
|
33
|
-
url = "",
|
|
34
|
-
withCredentials = false
|
|
35
|
-
}) {
|
|
36
|
-
super({
|
|
37
|
-
name,
|
|
38
|
-
external,
|
|
39
|
-
useHTTP2,
|
|
40
|
-
cached,
|
|
41
|
-
method,
|
|
42
|
-
headers,
|
|
43
|
-
basePath,
|
|
44
|
-
url,
|
|
45
|
-
withCredentials
|
|
46
|
-
});
|
|
47
|
-
var o = this;
|
|
48
|
-
this.domain = `${o.domain}`;
|
|
49
|
-
this.basePath = `https://${this.domain}/`;
|
|
50
|
-
this.username_password = `${o.username}:${o.password}`;
|
|
51
|
-
this.headers["authorization"] = `Basic ${Buffer.from(this.username_password).toString("base64")}`;
|
|
52
|
-
this.url = this.basePath + o.apiMethod;
|
|
53
|
-
this.data = o.data;
|
|
54
|
-
}
|
|
55
|
-
done(service, standardResponse) {
|
|
56
|
-
logger.debug(standardResponse);
|
|
57
|
-
}
|
|
58
|
-
fail(e) {
|
|
59
|
-
logger.debug(e);
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
Package("com.qcobjects.cli.commands.jira.client_services", [
|
|
63
|
-
JiraCloud
|
|
64
|
-
]);
|
|
65
|
-
exports = { JiraCloud };
|
|
11
|
+
var { Package, Service, logger } = __require("qcobjects");
|
|
12
|
+
var JiraCloud = class extends Service {
|
|
13
|
+
static {
|
|
14
|
+
__name(this, "JiraCloud");
|
|
66
15
|
}
|
|
67
|
-
|
|
68
|
-
|
|
16
|
+
constructor({
|
|
17
|
+
name = "jira_cloud",
|
|
18
|
+
external = true,
|
|
19
|
+
useHTTP2 = true,
|
|
20
|
+
cached = false,
|
|
21
|
+
method = "POST",
|
|
22
|
+
headers = {
|
|
23
|
+
"accept": "application/json",
|
|
24
|
+
"content-type": "application/json"
|
|
25
|
+
},
|
|
26
|
+
basePath = "",
|
|
27
|
+
url = "",
|
|
28
|
+
withCredentials = false
|
|
29
|
+
}) {
|
|
30
|
+
super({
|
|
31
|
+
name,
|
|
32
|
+
external,
|
|
33
|
+
useHTTP2,
|
|
34
|
+
cached,
|
|
35
|
+
method,
|
|
36
|
+
headers,
|
|
37
|
+
basePath,
|
|
38
|
+
url,
|
|
39
|
+
withCredentials
|
|
40
|
+
});
|
|
41
|
+
var o = this;
|
|
42
|
+
this.domain = `${o.domain}`;
|
|
43
|
+
this.basePath = `https://${this.domain}/`;
|
|
44
|
+
this.username_password = `${o.username}:${o.password}`;
|
|
45
|
+
this.headers["authorization"] = `Basic ${Buffer.from(this.username_password).toString("base64")}`;
|
|
46
|
+
this.url = this.basePath + o.apiMethod;
|
|
47
|
+
this.data = o.data;
|
|
48
|
+
}
|
|
49
|
+
done(service, standardResponse) {
|
|
50
|
+
logger.debug(standardResponse);
|
|
51
|
+
}
|
|
52
|
+
fail(e) {
|
|
53
|
+
logger.debug(e);
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
Package("com.qcobjects.cli.commands.jira.client_services", [
|
|
57
|
+
JiraCloud
|
|
58
|
+
]);
|
|
59
|
+
export {
|
|
60
|
+
JiraCloud
|
|
61
|
+
};
|
|
69
62
|
//# sourceMappingURL=com.qcobjects.cli.commands.jira.client_services.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/com.qcobjects.cli.commands.jira.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\nconst {Package, Service, logger} = require
|
|
5
|
-
"mappings": "
|
|
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\nconst { Package, Service, logger } = require(\"qcobjects\");\n\nexport class JiraCloud extends Service {\n constructor({\n name = \"jira_cloud\",\n external = true,\n useHTTP2 = true,\n cached = false,\n method = \"POST\",\n headers = {\n \"accept\": \"application/json\",\n \"content-type\": \"application/json\"\n },\n basePath = \"\",\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 var o = this;\n this.domain = `${o.domain}`;\n this.basePath = `https://${this.domain}/`;\n this.username_password = `${o.username}:${o.password}`;\n this.headers[\"authorization\"] = `Basic ${Buffer.from(this.username_password).toString(\"base64\")}`;\n this.url = this.basePath + o.apiMethod;\n this.data = o.data;\n\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(\"com.qcobjects.cli.commands.jira.client_services\", [\n JiraCloud\n]);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAgCA,IAAM,EAAE,SAAS,SAAS,OAAO,IAAI,UAAQ,WAAW;AAEjD,IAAM,YAAN,cAAwB,QAAQ;AAAA,EAlCvC,OAkCuC;AAAA;AAAA;AAAA,EACrC,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;AACD,QAAI,IAAI;AACR,SAAK,SAAS,GAAG,EAAE,MAAM;AACzB,SAAK,WAAW,WAAW,KAAK,MAAM;AACtC,SAAK,oBAAoB,GAAG,EAAE,QAAQ,IAAI,EAAE,QAAQ;AACpD,SAAK,QAAQ,eAAe,IAAI,SAAS,OAAO,KAAK,KAAK,iBAAiB,EAAE,SAAS,QAAQ,CAAC;AAC/F,SAAK,MAAM,KAAK,WAAW,EAAE;AAC7B,SAAK,OAAO,EAAE;AAAA,EAEhB;AAAA,EAEA,KAAK,SAAc,kBAAuB;AAExC,WAAO,MAAM,gBAAgB;AAAA,EAC/B;AAAA,EAEA,KAAK,GAAQ;AACX,WAAO,MAAM,CAAC;AAAA,EAChB;AAEF;AAEA,QAAQ,mDAAmD;AAAA,EACzD;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
3
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
3
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
4
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
@@ -7,108 +6,134 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
7
6
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
7
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
8
|
});
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
|
|
10
|
+
// src/com.qcobjects.cli.commands.jira.client_services.ts
|
|
11
|
+
var { Package, Service, logger } = __require("qcobjects");
|
|
12
|
+
var JiraCloud = class extends Service {
|
|
13
|
+
static {
|
|
14
|
+
__name(this, "JiraCloud");
|
|
15
|
+
}
|
|
16
|
+
constructor({
|
|
17
|
+
name = "jira_cloud",
|
|
18
|
+
external = true,
|
|
19
|
+
useHTTP2 = true,
|
|
20
|
+
cached = false,
|
|
21
|
+
method = "POST",
|
|
22
|
+
headers = {
|
|
23
|
+
"accept": "application/json",
|
|
24
|
+
"content-type": "application/json"
|
|
25
|
+
},
|
|
26
|
+
basePath = "",
|
|
27
|
+
url = "",
|
|
28
|
+
withCredentials = false
|
|
29
|
+
}) {
|
|
30
|
+
super({
|
|
31
|
+
name,
|
|
32
|
+
external,
|
|
33
|
+
useHTTP2,
|
|
34
|
+
cached,
|
|
35
|
+
method,
|
|
36
|
+
headers,
|
|
37
|
+
basePath,
|
|
38
|
+
url,
|
|
39
|
+
withCredentials
|
|
40
|
+
});
|
|
41
|
+
var o = this;
|
|
42
|
+
this.domain = `${o.domain}`;
|
|
43
|
+
this.basePath = `https://${this.domain}/`;
|
|
44
|
+
this.username_password = `${o.username}:${o.password}`;
|
|
45
|
+
this.headers["authorization"] = `Basic ${Buffer.from(this.username_password).toString("base64")}`;
|
|
46
|
+
this.url = this.basePath + o.apiMethod;
|
|
47
|
+
this.data = o.data;
|
|
48
|
+
}
|
|
49
|
+
done(service, standardResponse) {
|
|
50
|
+
logger.debug(standardResponse);
|
|
51
|
+
}
|
|
52
|
+
fail(e) {
|
|
53
|
+
logger.debug(e);
|
|
54
|
+
}
|
|
12
55
|
};
|
|
56
|
+
Package("com.qcobjects.cli.commands.jira.client_services", [
|
|
57
|
+
JiraCloud
|
|
58
|
+
]);
|
|
13
59
|
|
|
14
60
|
// src/com.qcobjects.cli.commands.jira.ts
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
console.log(e);
|
|
43
|
-
process.exit(1);
|
|
44
|
-
});
|
|
45
|
-
}, "issues")
|
|
46
|
-
};
|
|
47
|
-
const commandHandler = this;
|
|
48
|
-
switchCommander.program.command("jira <subcommand>").option("-u, --from-user [username]", "User name").option("-fp,--from-project <projectName>", "Project name").option("-p, --pwd <password>", "Password").option("-f, --format <format>", "Format (json, table)").description(`Jira Integration:
|
|
61
|
+
var path = __require("path");
|
|
62
|
+
var absolutePath = path.resolve(__dirname, "./");
|
|
63
|
+
var {
|
|
64
|
+
exec,
|
|
65
|
+
execSync
|
|
66
|
+
} = __require("child_process");
|
|
67
|
+
var { Package: Package2, InheritClass, _DataStringify, New, CONFIG, logger: logger2, serviceLoader } = __require("qcobjects");
|
|
68
|
+
var CommandHandler = class extends InheritClass {
|
|
69
|
+
static {
|
|
70
|
+
__name(this, "CommandHandler");
|
|
71
|
+
}
|
|
72
|
+
constructor({
|
|
73
|
+
switchCommander
|
|
74
|
+
}) {
|
|
75
|
+
super({ switchCommander });
|
|
76
|
+
this.choiceOption = {
|
|
77
|
+
issues: /* @__PURE__ */ __name(function() {
|
|
78
|
+
this.getIssueList().then(function(response) {
|
|
79
|
+
console.log(_DataStringify(response));
|
|
80
|
+
}).catch((e) => {
|
|
81
|
+
console.log(e);
|
|
82
|
+
process.exit(1);
|
|
83
|
+
});
|
|
84
|
+
}, "issues")
|
|
85
|
+
};
|
|
86
|
+
const commandHandler = this;
|
|
87
|
+
switchCommander.program.command("jira <subcommand>").option("-u, --from-user [username]", "User name").option("-fp,--from-project <projectName>", "Project name").option("-p, --pwd <password>", "Password").option("-f, --format <format>", "Format (json, table)").description(`Jira Integration:
|
|
49
88
|
Sub-Commands can be:
|
|
50
89
|
issues: To get the issues list from JIRA
|
|
51
90
|
`).action(function(subcommand, options) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
});
|
|
91
|
+
if (commandHandler.choiceOption.hasOwnProperty.call(commandHandler.choiceOption, subcommand)) {
|
|
92
|
+
commandHandler.choiceOption[subcommand].call(commandHandler, subcommand, options);
|
|
93
|
+
} else {
|
|
94
|
+
console.error(`Sub-Command (jira ${subcommand}... ) is not available`);
|
|
95
|
+
process.exit(1);
|
|
59
96
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
const service = serviceLoader(cloudClient).then((successResponse) => {
|
|
84
|
-
const template = successResponse.service.template;
|
|
85
|
-
const responseHeaders = successResponse.responseHeaders;
|
|
86
|
-
if (responseHeaders[":status"] === 200 || !cloudClient.useHTTP2) {
|
|
87
|
-
const response = JSON.parse(template);
|
|
88
|
-
resolve(response);
|
|
89
|
-
} else {
|
|
90
|
-
console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud. The status was: " + responseHeaders[":status"]);
|
|
91
|
-
reject(template);
|
|
92
|
-
}
|
|
93
|
-
}).catch((e) => {
|
|
94
|
-
console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud");
|
|
95
|
-
reject(e);
|
|
96
|
-
});
|
|
97
|
-
} catch (e) {
|
|
98
|
-
console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud");
|
|
99
|
-
reject(e);
|
|
100
|
-
}
|
|
101
|
-
} else {
|
|
102
|
-
console.error("\u{1F926} Something went wrong \u{1F926} You need to set the jira config settings");
|
|
103
|
-
reject(new Error("\u{1F926} Something went wrong \u{1F926} You need to set the jira config settings"));
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
getIssueList() {
|
|
100
|
+
return new Promise(function(resolve, reject) {
|
|
101
|
+
logger2.info("I'm going to get the issue list from the jira cloud...");
|
|
102
|
+
const jira_config = CONFIG.get("jira", null);
|
|
103
|
+
if (jira_config !== null) {
|
|
104
|
+
const jira_username = jira_config.username;
|
|
105
|
+
const jira_password = jira_config.auth_token;
|
|
106
|
+
const jira_project = jira_config.project;
|
|
107
|
+
const jira_domain = jira_config.domain;
|
|
108
|
+
const jira_issue_fields = ["id", "key", "summary", "timetracking"];
|
|
109
|
+
const cloudClient = New(JiraCloud, {
|
|
110
|
+
domain: `${jira_domain}`,
|
|
111
|
+
username: `${jira_username}`,
|
|
112
|
+
password: `${jira_password}`,
|
|
113
|
+
apiMethod: "rest/api/latest/search",
|
|
114
|
+
data: {
|
|
115
|
+
"jql": `project = ${jira_project}`,
|
|
116
|
+
"startAt": 0,
|
|
117
|
+
"maxResults": 5e3,
|
|
118
|
+
"fields": jira_issue_fields
|
|
104
119
|
}
|
|
105
120
|
});
|
|
121
|
+
try {
|
|
122
|
+
} catch (e) {
|
|
123
|
+
console.error("\u{1F926} Something went wrong \u{1F926} when trying to get jira issues from the cloud");
|
|
124
|
+
reject(e);
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
console.error("\u{1F926} Something went wrong \u{1F926} You need to set the jira config settings");
|
|
128
|
+
reject(new Error("\u{1F926} Something went wrong \u{1F926} You need to set the jira config settings"));
|
|
106
129
|
}
|
|
107
|
-
};
|
|
108
|
-
Package("com.qcobjects.cli.commands.jira", [
|
|
109
|
-
CommandHandler
|
|
110
|
-
]);
|
|
130
|
+
});
|
|
111
131
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
132
|
+
};
|
|
133
|
+
Package2("com.qcobjects.cli.commands.jira", [
|
|
134
|
+
CommandHandler
|
|
135
|
+
]);
|
|
136
|
+
export {
|
|
137
|
+
CommandHandler
|
|
138
|
+
};
|
|
114
139
|
//# sourceMappingURL=com.qcobjects.cli.commands.jira.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/com.qcobjects.cli.commands.jira.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\";\nconst
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/com.qcobjects.cli.commands.jira.client_services.ts", "../../src/com.qcobjects.cli.commands.jira.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\nconst { Package, Service, logger } = require(\"qcobjects\");\n\nexport class JiraCloud extends Service {\n constructor({\n name = \"jira_cloud\",\n external = true,\n useHTTP2 = true,\n cached = false,\n method = \"POST\",\n headers = {\n \"accept\": \"application/json\",\n \"content-type\": \"application/json\"\n },\n basePath = \"\",\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 var o = this;\n this.domain = `${o.domain}`;\n this.basePath = `https://${this.domain}/`;\n this.username_password = `${o.username}:${o.password}`;\n this.headers[\"authorization\"] = `Basic ${Buffer.from(this.username_password).toString(\"base64\")}`;\n this.url = this.basePath + o.apiMethod;\n this.data = o.data;\n\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(\"com.qcobjects.cli.commands.jira.client_services\", [\n JiraCloud\n]);\n", "/**\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\";\nconst path = require(\"path\");\nconst absolutePath = path.resolve(__dirname, \"./\");\nconst {\n exec,\n execSync\n} = require(\"child_process\");\n\nconst { Package, InheritClass, _DataStringify, New, CONFIG, logger, serviceLoader } = require(\"qcobjects\");\n\nimport { JiraCloud } from \"./com.qcobjects.cli.commands.jira.client_services\";\n\nexport class CommandHandler extends InheritClass {\n constructor({\n switchCommander\n }: { switchCommander: any }) {\n super({ switchCommander });\n this.choiceOption = {\n issues: function () {\n\n this.getIssueList().then(function (response: any) {\n console.log(_DataStringify(response));\n }).catch((e: any) => {\n console.log(e);\n process.exit(1);\n });\n\n }\n };\n\n const commandHandler = this;\n\n switchCommander.program.command(\"jira <subcommand>\")\n .option(\"-u, --from-user [username]\", \"User name\")\n .option(\"-fp,--from-project <projectName>\", \"Project name\")\n .option(\"-p, --pwd <password>\", \"Password\")\n .option(\"-f, --format <format>\", \"Format (json, table)\")\n .description(`Jira Integration:\n Sub-Commands can be:\n issues: To get the issues list from JIRA\n `)\n .action(function (subcommand: string | number, options: any) {\n if (commandHandler.choiceOption.hasOwnProperty.call(commandHandler.choiceOption, subcommand)) {\n commandHandler.choiceOption[subcommand].call(commandHandler, subcommand, options);\n } else {\n console.error(`Sub-Command (jira ${subcommand}... ) is not available`);\n process.exit(1);\n }\n });\n\n }\n\n getIssueList() {\n return new Promise<void>(function (resolve, reject) {\n logger.info(\"I'm going to get the issue list from the jira cloud...\");\n const jira_config = CONFIG.get(\"jira\", null);\n if (jira_config !== null) {\n const jira_username = jira_config.username;\n const jira_password = jira_config.auth_token;\n const jira_project = jira_config.project;\n const jira_domain = jira_config.domain;\n const jira_issue_fields = [\"id\", \"key\", \"summary\", \"timetracking\"];\n const cloudClient = New(JiraCloud, {\n domain: `${jira_domain}`,\n username: `${jira_username}`,\n password: `${jira_password}`,\n apiMethod: \"rest/api/latest/search\",\n data: {\n \"jql\": `project = ${jira_project}`,\n \"startAt\": 0,\n \"maxResults\": 5000,\n \"fields\": jira_issue_fields\n }\n });\n try {\n } catch (e) {\n console.error(\"\\u{1F926} Something went wrong \\u{1F926} when trying to get jira issues from the cloud\");\n reject(e as Error);\n }\n\n } else {\n console.error(\"\\u{1F926} Something went wrong \\u{1F926} You need to set the jira config settings\");\n reject(new Error(\"\\u{1F926} Something went wrong \\u{1F926} You need to set the jira config settings\"));\n }\n\n });\n }\n\n\n}\n\nPackage(\"com.qcobjects.cli.commands.jira\", [\n CommandHandler\n]);"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Package", "logger"]
|
|
7
7
|
}
|