@continuous-excellence/coupling-cli 1.1.431 → 1.1.432

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.
@@ -1,28 +1,63 @@
1
1
  import { jwtDecode as jwtDecode } from 'jwt-decode';
2
+ import {
3
+ Companion_instance25ullnynvxd0w as Companion_instance,
4
+ _Result___init__impl__xyqfz83a5421h46yeyh as _Result___init__impl__xyqfz8,
5
+ createFailure8paxfkfa5dc7 as createFailure,
6
+ _Result___get_value__impl__bjfvqg3630bgmytqwyb as _Result___get_value__impl__bjfvqg,
7
+ _Result___get_isFailure__impl__jpiriv131ia60azkd5j as _Result___get_isFailure__impl__jpiriv,
8
+ } from '../../../../../kotlin-kotlin-stdlib/kotlin/Result.mjs';
2
9
  import { LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs';
3
10
  import { mapCapacity1h45rc3eh9p2l as mapCapacity } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
4
11
  import { coerceAtLeast2bkz8m9ik7hep as coerceAtLeast } from '../../../../../kotlin-kotlin-stdlib/kotlin/ranges/_Ranges.mjs';
5
12
  import { toString30pk9tzaqopn as toString } from '../../../../../kotlin-kotlin-stdlib/kotlin/Library.mjs';
6
13
  import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
14
+ import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
15
+ import { emptyMapr06gerzljqtm as emptyMap } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs';
7
16
  //region block: imports
8
17
  //endregion
9
18
  //region block: pre-declaration
10
19
  //endregion
11
20
  function decodeJwt(accessToken) {
12
- var json = jwtDecode(accessToken);
13
- // Inline function 'kotlin.collections.associateWith' call
14
- var this_0 = Object.keys(json);
15
- var result = LinkedHashMap().rc(coerceAtLeast(mapCapacity(this_0.length), 16));
16
- // Inline function 'kotlin.collections.associateWithTo' call
17
- var inductionVariable = 0;
18
- var last = this_0.length;
19
- while (inductionVariable < last) {
20
- var element = this_0[inductionVariable];
21
- inductionVariable = inductionVariable + 1 | 0;
22
- var tmp$ret$0 = toString(json[element]);
23
- result.v4(element, tmp$ret$0);
21
+ // Inline function 'kotlin.runCatching' call
22
+ var tmp;
23
+ try {
24
+ var json = jwtDecode(accessToken);
25
+ // Inline function 'kotlin.collections.associateWith' call
26
+ var this_0 = Object.keys(json);
27
+ var result = LinkedHashMap().rc(coerceAtLeast(mapCapacity(this_0.length), 16));
28
+ // Inline function 'kotlin.collections.associateWithTo' call
29
+ var inductionVariable = 0;
30
+ var last = this_0.length;
31
+ while (inductionVariable < last) {
32
+ var element = this_0[inductionVariable];
33
+ inductionVariable = inductionVariable + 1 | 0;
34
+ var tmp$ret$0 = toString(json[element]);
35
+ result.v4(element, tmp$ret$0);
36
+ }
37
+ // Inline function 'kotlin.Companion.success' call
38
+ tmp = _Result___init__impl__xyqfz8(result);
39
+ } catch ($p) {
40
+ var tmp_0;
41
+ if ($p instanceof Error) {
42
+ var e = $p;
43
+ // Inline function 'kotlin.Companion.failure' call
44
+ tmp_0 = _Result___init__impl__xyqfz8(createFailure(e));
45
+ } else {
46
+ throw $p;
47
+ }
48
+ tmp = tmp_0;
24
49
  }
25
- return result;
50
+ // Inline function 'kotlin.Result.getOrNull' call
51
+ var this_1 = tmp;
52
+ var tmp_1;
53
+ if (_Result___get_isFailure__impl__jpiriv(this_1)) {
54
+ tmp_1 = null;
55
+ } else {
56
+ var tmp_2 = _Result___get_value__impl__bjfvqg(this_1);
57
+ tmp_1 = (tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE();
58
+ }
59
+ var tmp0_elvis_lhs = tmp_1;
60
+ return tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
26
61
  }
27
62
  //region block: exports
28
63
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/CouplingCli.js.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/common/src/generated/_Arrays.kt"],"sourcesContent":[null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["decodeJwt","accessToken","json","result","element"],"mappings":";;;;;;;;;;kBAMOA,CAAcC,WAAdD,EAAwD;A,MAC3DE,OAAW,UAAU,WAAV,C;;eACJ,YAAK,IAAL,C;MCykTPC,4BAAmD,cAAlB,YAAY,MAAZ,CAAY,MAAZ,CAAkB,EAAc,EAAd,CAAnDA,C;;MAuJgB,qB;MAAA,OAtJT,MAsJS,O;SAAhB,oBAAgB,I,EAAhB;A,QAAKC,UAtJE,MAsJS,mB;IAAA,6C;QD9tTW,YAAV,SAAT,KC+tTmC,OD/tTnC,CAAS,C;ICwkTM,MAuJP,IAAI,OAAJ,EAAa,SAAb,C;;EDjuThB,OC0kTuB,M;ADtkT3B,C;;;;;"}
1
+ {"version":3,"sources":["../../../../../cli/src/jsMain/kotlin/com/zegreatrob/coupling/cli/CouplingCli.js.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/src/kotlin/util/Result.kt","../../../../../cli/build/compileSync/js/main/productionExecutable/kotlin/Coupling-cli/com/zegreatrob/coupling/cli/common/src/generated/_Arrays.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["decodeJwt","accessToken","json","result","element","e"],"mappings":";;;;;;;;;;;;;;;;;;;kBAMOA,CAAcC,WAAdD,EAA0D;A;;ECuItD,I;QDtIPE,OAAW,UAAU,WAAV,C;;iBACX,YAAK,IAAL,C;QEykTAC,4BAAmD,cAAlB,YAAY,MAAZ,CAAY,MAAZ,CAAkB,EAAc,EAAd,CAAnDA,C;;QAuJgB,qB;QAAA,OAtJT,MAsJS,O;WAAhB,oBAAgB,I,EAAhB;A,UAAKC,UAtJE,MAsJS,mB;MAAA,6C;UF/tTO,YAAV,SAAT,KEguTuC,OFhuTvC,CAAS,C;MEykTU,MAuJP,IAAI,OAAJ,EAAa,SAAb,C;;;UD7oTR,6BCs/Se,MDt/Sf,C;;;;UAmDCC,M;;cA1CD,6BAAO,cA2CI,CA3CJ,CAAP,C;;;;;;;eAwCD,G;;EA1FC,kD;YAAa,I;;gBACL,yC;wDAAA,K;;MD9C6C,iBC4CzD,K;EDvCmB,OALsC,yBAKhD,UALgD,iB;AAKvC,C;;;;;"}
@@ -9,7 +9,7 @@ function Versions() {
9
9
  if (VersionsClass === VOID) {
10
10
  class $ {
11
11
  constructor() {
12
- this.u6t_1 = '1.1.431';
12
+ this.u6t_1 = '1.1.432';
13
13
  }
14
14
  }
15
15
  initMetadataForObject($, 'Versions');
@@ -74,8 +74,8 @@ import {
74
74
  ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
75
75
  close$default29t9kascifp5w as close$default,
76
76
  cancel$default3ekkkwpkem73o as cancel$default,
77
- SendChannel38sllbxw662ws as SendChannel,
78
77
  ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
78
+ SendChannel38sllbxw662ws as SendChannel,
79
79
  } from './Channel.mjs';
80
80
  import {
81
81
  SelectInstance2isepgzfsd8ur as SelectInstance,
@@ -2850,7 +2850,7 @@ function BufferedChannel() {
2850
2850
  }
2851
2851
  protoOf($).o1c = close$default;
2852
2852
  protoOf($).q1c = cancel$default;
2853
- initMetadataForClass($, 'BufferedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
2853
+ initMetadataForClass($, 'BufferedChannel', VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 4, 0, 3]);
2854
2854
  BufferedChannelClass = $;
2855
2855
  }
2856
2856
  return BufferedChannelClass;
@@ -7,8 +7,8 @@ import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../kotl
7
7
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
8
8
  import {
9
9
  close$default29t9kascifp5w as close$default,
10
- SendChannel38sllbxw662ws as SendChannel,
11
10
  ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
11
+ SendChannel38sllbxw662ws as SendChannel,
12
12
  } from './Channel.mjs';
13
13
  import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
14
14
  import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
@@ -70,7 +70,7 @@ function ChannelCoroutine() {
70
70
  }
71
71
  }
72
72
  protoOf($).o1c = close$default;
73
- initMetadataForClass($, 'ChannelCoroutine', VOID, VOID, [AbstractCoroutine(), SendChannel(), ReceiveChannel()], [1, 0]);
73
+ initMetadataForClass($, 'ChannelCoroutine', VOID, VOID, [AbstractCoroutine(), ReceiveChannel(), SendChannel()], [1, 0]);
74
74
  ChannelCoroutineClass = $;
75
75
  }
76
76
  return ChannelCoroutineClass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuous-excellence/coupling-cli",
3
- "version": "1.1.431",
3
+ "version": "1.1.432",
4
4
  "main": "kotlin/Coupling-cli.mjs",
5
5
  "devDependencies": {
6
6
  "source-map-support": "0.5.21"