kaitai-struct-compiler 0.11.0-SNAPSHOT20240308.193506.8aeb79a → 0.11.0-SNAPSHOT20240310.231805.6aef6fa

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.
@@ -2926,16 +2926,24 @@ $c_Lio_kaitai_struct_Utils$.prototype.capitalize__T__T = (function(s) {
2926
2926
  } else {
2927
2927
  var this$2 = $n(s);
2928
2928
  var c = $charAt(this$2, 0);
2929
- var $$x1 = $m_jl_Character$().toUpperCase__C__C(c);
2930
- var this$5 = $n(s);
2931
- if ((this$5.length < 1)) {
2932
- $charAt(this$5, 1)
2929
+ var this$5 = $m_jl_Character$().toUpperCase__C__C(c);
2930
+ var $$x1 = $as_T(String.fromCharCode(this$5));
2931
+ var this$7 = $n(s);
2932
+ if ((this$7.length < 1)) {
2933
+ $charAt(this$7, 1)
2933
2934
  };
2934
- return (("" + $bC($$x1)) + $as_T(this$5.substring(1)))
2935
+ return (("" + $$x1) + $as_T(this$7.substring(1)))
2935
2936
  }
2936
2937
  });
2937
2938
  $c_Lio_kaitai_struct_Utils$.prototype.join__sc_IterableOnce__T__T__T__T = (function(coll, start, sep, end) {
2938
- return ($m_sc_IterableOnceExtensionMethods$().isEmpty$extension__sc_IterableOnce__Z(coll) ? "" : $m_sc_IterableOnceExtensionMethods$().mkString$extension__sc_IterableOnce__T__T__T__T(coll, start, sep, end))
2939
+ var it = $n(coll).iterator__sc_Iterator();
2940
+ var this$1 = $n(it);
2941
+ if ((!this$1.hasNext__Z())) {
2942
+ return ""
2943
+ } else {
2944
+ var this$2 = $n(it);
2945
+ return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, start, sep, end)
2946
+ }
2939
2947
  });
2940
2948
  $c_Lio_kaitai_struct_Utils$.prototype.hexEscapeByteArray__sci_Seq__T = (function(arr) {
2941
2949
  var this$6 = $n($as_sc_IterableOnceOps($n(arr).map__F1__O(new $c_sjsr_AnonFunction1(((x$2) => {
@@ -3002,8 +3010,8 @@ function $m_Lio_kaitai_struct_Utils$() {
3002
3010
  function $c_Lio_kaitai_struct_Version$() {
3003
3011
  this.Lio_kaitai_struct_Version$__f_version = null;
3004
3012
  this.Lio_kaitai_struct_Version$__f_gitTime = null;
3005
- this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240308.193506.8aeb79a";
3006
- this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-08T19:35:06+00:00"
3013
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20240310.231805.6aef6fa";
3014
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2024-03-10T23:18:05+00:00"
3007
3015
  }
3008
3016
  $c_Lio_kaitai_struct_Version$.prototype = new $h_O();
3009
3017
  $c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
@@ -17145,8 +17153,11 @@ $c_Lio_kaitai_struct_format_JavaScriptKSYParser$.prototype.yamlJavascriptToScala
17145
17153
  var this$8 = new $c_sjs_js_WrappedDictionary(src);
17146
17154
  var this$7 = $m_s_$less$colon$less$();
17147
17155
  var this$9 = $n($m_sci_Map$().from__sc_IterableOnce__sci_Map(this$8));
17156
+ var this$10 = new $c_sc_MapView$Id(this$9);
17148
17157
  var f$1 = new $c_sjsr_AnonFunction1(((src$3$2) => $m_Lio_kaitai_struct_format_JavaScriptKSYParser$().yamlJavascriptToScala__O__O(src$3$2)));
17149
- return new $c_sc_MapView$MapValues(this$9, f$1)
17158
+ var this$12 = new $c_sc_MapView$MapValues(this$10, f$1);
17159
+ var this$11 = $m_s_$less$colon$less$();
17160
+ return $m_sci_Map$().from__sc_IterableOnce__sci_Map(this$12)
17150
17161
  }
17151
17162
  });
17152
17163
  var $d_Lio_kaitai_struct_format_JavaScriptKSYParser$ = new $TypeData().initClass({
@@ -18794,14 +18805,13 @@ function $p_Lio_kaitai_struct_precompile_LoadImports__loadImport__T__sci_List__s
18794
18805
  if ((name !== specName)) {
18795
18806
  $n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_importOps)
18796
18807
  };
18797
- if ((!$n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs).contains__O__Z(specName))) {
18808
+ $n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs);
18809
+ var isNew = (!$n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs).contains__O__Z(specName));
18810
+ if (isNew) {
18798
18811
  var this$5 = $n($thiz.Lio_kaitai_struct_precompile_LoadImports__f_specs);
18799
- $p_scm_HashMap__put0__O__O__Z__s_Some(this$5, specName, spec, false);
18800
- return $thiz.processClass__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_precompile_LoadImports$ImportPath__s_concurrent_Future(spec, $m_Lio_kaitai_struct_precompile_LoadImports$ImportPath$().updateWorkDir__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath(workDir, impPath))
18801
- } else {
18802
- $n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_importOps);
18803
- return $m_s_concurrent_Future$().apply__F0__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction0((() => $m_sci_Nil$())), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())
18804
- }
18812
+ $p_scm_HashMap__put0__O__O__Z__s_Some(this$5, specName, spec, false)
18813
+ };
18814
+ return (isNew ? $thiz.processClass__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_precompile_LoadImports$ImportPath__s_concurrent_Future(spec, $m_Lio_kaitai_struct_precompile_LoadImports$ImportPath$().updateWorkDir__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath__Lio_kaitai_struct_precompile_LoadImports$ImportPath(workDir, impPath)) : ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_importOps), $m_s_concurrent_Future$().apply__F0__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction0((() => $m_sci_Nil$())), $m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor())))
18805
18815
  } else {
18806
18816
  var x = $m_s_None$();
18807
18817
  if ((x === x0$1)) {
@@ -28047,50 +28057,6 @@ function $isArrayOf_sc_IterableOnce(obj, depth) {
28047
28057
  function $asArrayOf_sc_IterableOnce(obj, depth) {
28048
28058
  return (($isArrayOf_sc_IterableOnce(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.IterableOnce;", depth))
28049
28059
  }
28050
- /** @constructor */
28051
- function $c_sc_IterableOnceExtensionMethods$() {
28052
- /*<skip>*/
28053
- }
28054
- $c_sc_IterableOnceExtensionMethods$.prototype = new $h_O();
28055
- $c_sc_IterableOnceExtensionMethods$.prototype.constructor = $c_sc_IterableOnceExtensionMethods$;
28056
- /** @constructor */
28057
- function $h_sc_IterableOnceExtensionMethods$() {
28058
- /*<skip>*/
28059
- }
28060
- $h_sc_IterableOnceExtensionMethods$.prototype = $c_sc_IterableOnceExtensionMethods$.prototype;
28061
- $c_sc_IterableOnceExtensionMethods$.prototype.isEmpty$extension__sc_IterableOnce__Z = (function(this$) {
28062
- if ($is_sc_Iterable(this$)) {
28063
- var x2 = $as_sc_Iterable(this$);
28064
- return $n(x2).isEmpty__Z()
28065
- } else {
28066
- var this$1 = $n($n(this$).iterator__sc_Iterator());
28067
- return (!this$1.hasNext__Z())
28068
- }
28069
- });
28070
- $c_sc_IterableOnceExtensionMethods$.prototype.mkString$extension__sc_IterableOnce__T__T__T__T = (function(this$, start, sep, end) {
28071
- if ($is_sc_Iterable(this$)) {
28072
- var x2 = $as_sc_Iterable(this$);
28073
- var this$1 = $n(x2);
28074
- return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$1, start, sep, end)
28075
- } else {
28076
- var this$2 = $n($n(this$).iterator__sc_Iterator());
28077
- return $f_sc_IterableOnceOps__mkString__T__T__T__T(this$2, start, sep, end)
28078
- }
28079
- });
28080
- var $d_sc_IterableOnceExtensionMethods$ = new $TypeData().initClass({
28081
- sc_IterableOnceExtensionMethods$: 0
28082
- }, false, "scala.collection.IterableOnceExtensionMethods$", {
28083
- sc_IterableOnceExtensionMethods$: 1,
28084
- O: 1
28085
- });
28086
- $c_sc_IterableOnceExtensionMethods$.prototype.$classData = $d_sc_IterableOnceExtensionMethods$;
28087
- var $n_sc_IterableOnceExtensionMethods$;
28088
- function $m_sc_IterableOnceExtensionMethods$() {
28089
- if ((!$n_sc_IterableOnceExtensionMethods$)) {
28090
- $n_sc_IterableOnceExtensionMethods$ = new $c_sc_IterableOnceExtensionMethods$()
28091
- };
28092
- return $n_sc_IterableOnceExtensionMethods$
28093
- }
28094
28060
  function $f_sc_IterableOnceOps__foreach__F1__V($thiz, f) {
28095
28061
  var it = $n($as_sc_IterableOnce($thiz)).iterator__sc_Iterator();
28096
28062
  while ($n(it).hasNext__Z()) {
@@ -38226,7 +38192,7 @@ $c_Lio_kaitai_struct_precompile_ResolveTypes.prototype.resolveUserType__Lio_kait
38226
38192
  var res = $p_Lio_kaitai_struct_precompile_ResolveTypes__realResolveUserType__Lio_kaitai_struct_format_ClassSpec__sci_List__sci_List__s_Option(this, curClass, typeName, path);
38227
38193
  var x = $m_s_None$();
38228
38194
  if ((x === res)) {
38229
- return (this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes ? ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_typeResolve), new $c_T2(new $c_s_Some($m_Lio_kaitai_struct_format_ClassSpec$().opaquePlaceholder__sci_List__Lio_kaitai_struct_format_ClassSpec(typeName)), $m_s_None$())) : new $c_T2($m_s_None$(), new $c_s_Some(new $c_Lio_kaitai_struct_problems_TypeNotFoundErr(typeName, curClass, path, $m_s_None$()))))
38195
+ return (this.Lio_kaitai_struct_precompile_ResolveTypes__f_opaqueTypes ? ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_typeResolve), new $c_T2(new $c_s_Some($m_Lio_kaitai_struct_format_ClassSpec$().opaquePlaceholder__sci_List__Lio_kaitai_struct_format_ClassSpec(typeName)), $m_s_None$())) : ($n($m_Lio_kaitai_struct_Log$().Lio_kaitai_struct_Log$__f_typeResolve), new $c_T2($m_s_None$(), new $c_s_Some(new $c_Lio_kaitai_struct_problems_TypeNotFoundErr(typeName, curClass, path, $m_s_None$())))))
38230
38196
  } else if ((res instanceof $c_s_Some)) {
38231
38197
  var x3 = $as_s_Some(res);
38232
38198
  $as_Lio_kaitai_struct_format_ClassSpec($n(x3).s_Some__f_value);
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "scripts": {
36
36
  "test": "echo \"Error: no test specified\" && exit 1"
37
37
  },
38
- "version": "0.11.0-SNAPSHOT20240308.193506.8aeb79a"
38
+ "version": "0.11.0-SNAPSHOT20240310.231805.6aef6fa"
39
39
  }