@continuous-excellence/coupling-cli 1.1.427 → 1.1.428
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/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.js.mjs +16 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.js.mjs.map +1 -0
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs +4 -2
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Login.mjs.map +1 -1
- package/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/Versions.mjs +1 -1
- package/kotlin/Coupling-sdk/com/zegreatrob/coupling/sdk/KtorSdk.mjs +2 -2
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
2
|
+
import com_zegreatrob_coupling_cli_external_open_open_uzx5os from 'open';
|
|
3
|
+
//region block: imports
|
|
4
|
+
//endregion
|
|
5
|
+
//region block: pre-declaration
|
|
6
|
+
//endregion
|
|
7
|
+
function openBrowser(uri) {
|
|
8
|
+
com_zegreatrob_coupling_cli_external_open_open_uzx5os(uri);
|
|
9
|
+
}
|
|
10
|
+
//region block: exports
|
|
11
|
+
export {
|
|
12
|
+
openBrowser as openBrowserf7v8b3cea9s1,
|
|
13
|
+
};
|
|
14
|
+
//endregion
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=Login.js.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/Login.js.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["openBrowser","uri"],"mappings":";;;;;;oBAIOA,CAAgBC,GAAhBD,EAA6B;A,EAChC,sDAAK,GAAL,C;AACJ,C;;;;;"}
|
|
@@ -4,6 +4,7 @@ import { Companion_getInstance3p7529cu4pihk as Companion_getInstance } from './A
|
|
|
4
4
|
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
5
5
|
import { KtorAuth0Client3a2sxtdbcw6av as KtorAuth0Client } from '../../../../../Coupling-libraries-auth0-management/com/zegreatrob/coupling/auth0/management/KtorAuth0Client.mjs';
|
|
6
6
|
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
7
|
+
import { openBrowserf7v8b3cea9s1 as openBrowser } from './Login.js.mjs';
|
|
7
8
|
import {
|
|
8
9
|
get_couplingHomeDirectory32p7uuvrqu08f as get_couplingHomeDirectory,
|
|
9
10
|
get_configFilePathy8zo0j9e4mo6 as get_configFilePath,
|
|
@@ -46,6 +47,7 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
46
47
|
var result = tmp;
|
|
47
48
|
$this.x5o('Your user code is: ' + result.e4f_1);
|
|
48
49
|
$this.x5o('Please follow link to authenticate: ' + result.d4f_1);
|
|
50
|
+
openBrowser(result.d4f_1);
|
|
49
51
|
var tmp_0 = pollForSuccess($this, client, environment, result.f4f_1, result.g4f_1, $completion);
|
|
50
52
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
51
53
|
tmp_0 = yield tmp_0;
|
|
@@ -54,8 +56,8 @@ function *_generator_run__cb7u2f($this, $completion) {
|
|
|
54
56
|
var tmp_1 = get_configFilePath();
|
|
55
57
|
// Inline function 'kotlinx.serialization.json.buildJsonObject' call
|
|
56
58
|
var builder = new (JsonObjectBuilder())();
|
|
57
|
-
put(builder, 'accessToken', pollResult
|
|
58
|
-
put(builder, 'refreshToken', pollResult
|
|
59
|
+
put(builder, 'accessToken', pollResult.o4f_1);
|
|
60
|
+
put(builder, 'refreshToken', pollResult.p4f_1);
|
|
59
61
|
var tmp$ret$1 = builder.b3z();
|
|
60
62
|
writeDataToFile(tmp_1, tmp$ret$1.toString());
|
|
61
63
|
$this.x5o('Login complete!');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Login.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/JsonElementBuilders.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/time/Duration.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-env>","<generator-run>","$completion","environment","client","result","pollResult","builder","<generator-pollForSuccess>","<this>","deviceCode","interval","pollForSuccess","run"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/src/commonMain/kotlin/com/zegreatrob/coupling/cli/Login.kt","../../../../../../../../../../mnt/agent/work/b2fef8360e1bcf3d/formats/json/commonMain/src/kotlinx/serialization/json/JsonElementBuilders.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/time/Duration.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-env>","<generator-run>","$completion","environment","client","result","pollResult","builder","<generator-pollForSuccess>","<this>","deviceCode","interval","pollForSuccess","run"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAcYA,CAAA,KAAAA,EAAW;A;EAAA,yG;AAA6B,C;gCAE/BC,CAAA,K,EAAAC,WAAAD,EAAU;A,MACvBE,cAAkB,wBAAiB,KAAjB,IAAqB,uBAArB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AAAX,WAAAW,E;;O;;;;;;;;;;;"}
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
execute3ka32mbtyv00e as execute,
|
|
17
17
|
GqlTrait2wtoeyl3yfalb as GqlTrait,
|
|
18
18
|
} from './gql/GqlTrait.mjs';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { Dispatcherhdhfzcswb8hc as Dispatcher } from '../../../../../Coupling-libraries-action/com/zegreatrob/coupling/action/party/SaveContributionCommand.mjs';
|
|
20
|
+
import { Dispatcher2xvjdz9qh940 as Dispatcher_0 } from './gql/GqlQuery.mjs';
|
|
21
21
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
22
22
|
import {
|
|
23
23
|
apolloMutation1qfm4b9xbpwrf as apolloMutation,
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
//region block: polyfills
|
|
2
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
3
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
4
|
-
position = position || 0;
|
|
5
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
6
|
-
}});
|
|
7
|
-
}
|
|
8
2
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
9
3
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
10
4
|
var subjectString = this.toString();
|
|
@@ -16,6 +10,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
16
10
|
return lastIndex !== -1 && lastIndex === position;
|
|
17
11
|
}});
|
|
18
12
|
}
|
|
13
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
14
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
15
|
+
position = position || 0;
|
|
16
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
17
|
+
}});
|
|
18
|
+
}
|
|
19
19
|
//endregion
|
|
20
20
|
import { VOID3gxj6tk5isa35 as VOID } from '../js/void.mjs';
|
|
21
21
|
import { compareTo3ankvs086tmwq as compareTo } from '../js/compareTo.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/kotlin-kotlin-stdlib/kotlin/text/js/src/kotlin/text/stringJs.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/kotlin-kotlin-stdlib/kotlin/text/js/src/generated/_ComparisonsJs.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/kotlin-kotlin-stdlib/kotlin/text/js/src/kotlin/text/charJs.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["searchString","position","subjectString","lastIndex","substring","<this>","startIndex","endIndex","compareTo","other","ignoreCase","n1","n2","min","index","thisChar","otherChar","concatToString","result","char","decodeToString","throwOnInvalidSequence","encodeToByteArray","toCharArray","compare","a","b","equals","hashCode","STRING_CASE_INSENSITIVE_ORDER$lambda","<init properties stringJs.kt>"],"mappings":";
|
|
1
|
+
{"version":3,"sources":["../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/kotlin-kotlin-stdlib/kotlin/text/js/src/kotlin/text/stringJs.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/kotlin-kotlin-stdlib/kotlin/text/js/src/generated/_ComparisonsJs.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/kotlin-kotlin-stdlib/kotlin/text/js/src/kotlin/text/charJs.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["searchString","position","subjectString","lastIndex","substring","<this>","startIndex","endIndex","compareTo","other","ignoreCase","n1","n2","min","index","thisChar","otherChar","concatToString","result","char","decodeToString","throwOnInvalidSequence","encodeToByteArray","toCharArray","compare","a","b","equals","hashCode","STRING_CASE_INSENSITIVE_ORDER$lambda","<init properties stringJs.kt>"],"mappings":";AAiQA,IAAI,OAAO,MAAP,C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ACa,K;;EAErB,sBAAmB,UAAnB,EAA+B,QAA/B,EAAyC,aAAzC,CAA8C,MAA9C,C;EACb,OAAO,WAAW,aAAX,EAAiB,UAAjB,EAA6B,QAA7B,EAAuC,sBAAvC,C;AACX,C;0BAUcE,CAAIjB,aAAJiB,EAA0C;A;EACpD,OAAO,WAAW,aAAX,EAAiB,CAAjB,EAAoB,aAApB,CAAoB,MAApB,EAA4B,KAA5B,C;AACX,C;yBApCcF,CAAIf,aAAJe,EAAuC;A;EACjD,OAAO,WAAW,aAAX,EAAiB,CAAjB,EAAoB,aAApB,CAAoB,MAApB,EAA0B,KAA1B,C;AACX,C;4BAmDcE,CAAIjB,a,EACdC,U,EACAC,Q,EACAc,sBAHUC,EAID;A,qCAHS,C;iCACF,a,CAAK,M;6DACa,K;;EAErB,sBAAmB,UAAnB,EAA+B,QAA/B,EAAyC,aAAzC,CAAyC,MAAzC,C;EACb,OAAO,WAAW,aAAX,EAAiB,UAAjB,EAA6B,QAA7B,EAAuC,sBAAvC,C;AACX,C;oBApHcC,CAAIlB,aAAJkB,EAAoC;A;MACvC,O;MAAU,4B;MAAV,wB;SAAA,W,EAAA;A,QAAA,W;IAAA,eAAoB,0BAAI,KAAJ,C;IAApB,iB;EAA4B,C;EAAnC,OAAO,K;AACX,C;;;;;;QAmR4C,sB;;QAAAC,CAtVnCC,C,EAAMC,CAsV6BF,E;;O;cAtVnCC,C,EAAMC,C;;;;;;YAbfC,C,KAAAA,E;;;;;;;;;;;;;;O;cAAAC,CAAAA,E;;O;;;;;;;6CAmW+DC,CAAE,C,EAAG,CAALA,EAAA;A;EAA2C,OAA/B,YAAF,CAAE,EAAU,CAAV,EAA0B,IAA1B,C;AAAgC,C;;6CAnW3GC,CAAAA,E;;;QAmW+D,0C;oEAAA,G;;C;;;;;"}
|
|
@@ -161,7 +161,7 @@ function SelectImplementation() {
|
|
|
161
161
|
return TrySelectDetailedResult_0(trySelectInternal(this, clauseObject, result));
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
initMetadataForClass($, 'SelectImplementation', VOID, VOID, [CancelHandler(),
|
|
164
|
+
initMetadataForClass($, 'SelectImplementation', VOID, VOID, [CancelHandler(), Waiter(), SelectInstance()], [0, 2]);
|
|
165
165
|
SelectImplementationClass = $;
|
|
166
166
|
}
|
|
167
167
|
return SelectImplementationClass;
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@continuous-excellence/coupling-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.428",
|
|
4
4
|
"main": "kotlin/Coupling-cli.mjs",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"source-map-support": "0.5.21"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
+
"open": "^11.0.0",
|
|
9
10
|
"@js-joda/core": "3.2.0",
|
|
10
11
|
"ws": "8.18.3",
|
|
11
12
|
"node-fetch": "2.7.0",
|