@petradb/cli 1.2.4 → 1.2.5

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/bin/client.js CHANGED
@@ -499,16 +499,16 @@ $c_Lio_github_edadma_petradb_client_JSSession.prototype.close__sjs_js_Promise =
499
499
  var f = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(this.Lio_github_edadma_petradb_client_JSSession__f_session).close__s_concurrent_ExecutionContext__s_concurrent_Future($j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
500
500
  return $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_sjs_js_JSConverters$JSRichFuture$().toJSPromise$extension__s_concurrent_Future__s_concurrent_ExecutionContext__sjs_js_Promise(f, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$m_s_concurrent_ExecutionContext$().global__s_concurrent_ExecutionContextExecutor());
501
501
  });
502
- $c_Lio_github_edadma_petradb_client_JSSession.prototype.execute = (function(arg, ...rest) {
503
- var prep0 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T(arg);
504
- var prep1 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
505
- return this.execute__T__O__sjs_js_Promise(prep0, prep1);
502
+ $c_Lio_github_edadma_petradb_client_JSSession.prototype.close = (function() {
503
+ return this.close__sjs_js_Promise();
506
504
  });
507
505
  $c_Lio_github_edadma_petradb_client_JSSession.prototype.connect = (function() {
508
506
  return this.connect__sjs_js_Promise();
509
507
  });
510
- $c_Lio_github_edadma_petradb_client_JSSession.prototype.close = (function() {
511
- return this.close__sjs_js_Promise();
508
+ $c_Lio_github_edadma_petradb_client_JSSession.prototype.execute = (function(arg, ...rest) {
509
+ var prep0 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T(arg);
510
+ var prep1 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
511
+ return this.execute__T__O__sjs_js_Promise(prep0, prep1);
512
512
  });
513
513
  var $d_Lio_github_edadma_petradb_client_JSSession = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$TypeData().initClass($c_Lio_github_edadma_petradb_client_JSSession, "io.github.edadma.petradb.client.JSSession", ({
514
514
  Lio_github_edadma_petradb_client_JSSession: 1
@@ -4448,9 +4448,30 @@ $c_Lio_github_edadma_petradb_Type$package$.prototype.parseTimestamp__T__Ljava_ti
4448
4448
  return $m_Ljava_time_LocalDateTime$().parse__jl_CharSequence__Ljava_time_format_DateTimeFormatter__Ljava_time_LocalDateTime(s, formatter);
4449
4449
  } catch (e$2) {
4450
4450
  if ((e$2 instanceof $c_Ljava_time_format_DateTimeParseException)) {
4451
- var this$2 = $m_Ljava_time_LocalDate$();
4452
- var this$3 = $n(this$2.parse__jl_CharSequence__Ljava_time_format_DateTimeFormatter__Ljava_time_LocalDate(s, $m_Ljava_time_format_DateTimeFormatter$().ISO_LOCAL_DATE__Ljava_time_format_DateTimeFormatter()));
4453
- return $m_Ljava_time_LocalDateTime$().of__Ljava_time_LocalDate__Ljava_time_LocalTime__Ljava_time_LocalDateTime(this$3, $m_Ljava_time_LocalTime$().MIDNIGHT__Ljava_time_LocalTime());
4451
+ try {
4452
+ var this$2 = $m_Ljava_time_OffsetDateTime$();
4453
+ var this$3 = $n(this$2.parse__jl_CharSequence__Ljava_time_format_DateTimeFormatter__Ljava_time_OffsetDateTime(s, $m_Ljava_time_format_DateTimeFormatter$().ISO_OFFSET_DATE_TIME__Ljava_time_format_DateTimeFormatter()));
4454
+ return this$3.Ljava_time_OffsetDateTime__f_dateTime;
4455
+ } catch (e$3) {
4456
+ if ((e$3 instanceof $c_Ljava_time_format_DateTimeParseException)) {
4457
+ try {
4458
+ var text = $f_T__replaceFirst__T__T__T($n(s), " ", "T");
4459
+ var this$4 = $m_Ljava_time_OffsetDateTime$();
4460
+ var this$5 = $n(this$4.parse__jl_CharSequence__Ljava_time_format_DateTimeFormatter__Ljava_time_OffsetDateTime(text, $m_Ljava_time_format_DateTimeFormatter$().ISO_OFFSET_DATE_TIME__Ljava_time_format_DateTimeFormatter()));
4461
+ return this$5.Ljava_time_OffsetDateTime__f_dateTime;
4462
+ } catch (e$4) {
4463
+ if ((e$4 instanceof $c_Ljava_time_format_DateTimeParseException)) {
4464
+ var this$6 = $m_Ljava_time_LocalDate$();
4465
+ var this$7 = $n(this$6.parse__jl_CharSequence__Ljava_time_format_DateTimeFormatter__Ljava_time_LocalDate(s, $m_Ljava_time_format_DateTimeFormatter$().ISO_LOCAL_DATE__Ljava_time_format_DateTimeFormatter()));
4466
+ return $m_Ljava_time_LocalDateTime$().of__Ljava_time_LocalDate__Ljava_time_LocalTime__Ljava_time_LocalDateTime(this$7, $m_Ljava_time_LocalTime$().MIDNIGHT__Ljava_time_LocalTime());
4467
+ } else {
4468
+ throw e$4;
4469
+ }
4470
+ }
4471
+ } else {
4472
+ throw e$3;
4473
+ }
4474
+ }
4454
4475
  } else {
4455
4476
  throw e$2;
4456
4477
  }
package/bin/main.js CHANGED
@@ -6039,9 +6039,6 @@ $c_Lio_github_edadma_petradb_engine_JSSession.prototype.close__V = (function() {
6039
6039
  $c_Lio_github_edadma_petradb_engine_JSSession.prototype.prepare__T__Lio_github_edadma_petradb_engine_JSSession$PreparedStatementJS = (function(sql) {
6040
6040
  return new $c_Lio_github_edadma_petradb_engine_JSSession$PreparedStatementJS(this, $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$n(this.session__Lio_github_edadma_petradb_engine_Session()).prepare__T__Lio_github_edadma_petradb_engine_PreparedStatement(sql));
6041
6041
  });
6042
- $c_Lio_github_edadma_petradb_engine_JSSession.prototype.close = (function() {
6043
- this.close__V();
6044
- });
6045
6042
  $c_Lio_github_edadma_petradb_engine_JSSession.prototype.execute = (function(arg, ...rest) {
6046
6043
  var prep0 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T(arg);
6047
6044
  var prep1 = ((rest[0] === (void 0)) ? (void 0) : rest[0]);
@@ -6051,6 +6048,9 @@ $c_Lio_github_edadma_petradb_engine_JSSession.prototype.prepare = (function(arg)
6051
6048
  var prep0 = $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$as_T(arg);
6052
6049
  return this.prepare__T__Lio_github_edadma_petradb_engine_JSSession$PreparedStatementJS(prep0);
6053
6050
  });
6051
+ $c_Lio_github_edadma_petradb_engine_JSSession.prototype.close = (function() {
6052
+ this.close__V();
6053
+ });
6054
6054
  var $d_Lio_github_edadma_petradb_engine_JSSession = new $j_internal$002ddce91b54b95045401f0e6cc062cdc27ff895d6ee.$TypeData().initClass($c_Lio_github_edadma_petradb_engine_JSSession, "io.github.edadma.petradb.engine.JSSession", ({
6055
6055
  Lio_github_edadma_petradb_engine_JSSession: 1
6056
6056
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petradb/cli",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "PetraDB \u2014 a lightweight PostgreSQL-compatible SQL database",
5
5
  "bin": {
6
6
  "petradb": "./bin/petradb"