@perspective-dev/client 4.4.0 → 4.5.0

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.
@@ -115,6 +115,10 @@ function duckdbTypeToPsp(name: string): ColumnType {
115
115
  return "string";
116
116
  }
117
117
 
118
+ if (name.startsWith("time")) {
119
+ return "float";
120
+ }
121
+
118
122
  console.warn(`Unknown type '${name}'`);
119
123
  return "string";
120
124
  }
@@ -234,8 +234,8 @@ async function decode_api_responses(
234
234
  messages.getInt32(i * 16 + 12, true),
235
235
  ]
236
236
  : [
237
- messages.getInt32(i * 12, true),
238
- messages.getInt32(i * 12 + 4, true),
237
+ messages.getUint32(i * 12, true),
238
+ messages.getUint32(i * 12 + 4, true),
239
239
  messages.getInt32(i * 12 + 8, true),
240
240
  ];
241
241
 
@@ -73,7 +73,7 @@ export default async function (obj: any) {
73
73
  },
74
74
  );
75
75
 
76
- // e.message = getExceptionMessage(e);
76
+ // @ts-ignore This is helpful for debugging
77
77
  e.message = "Unexpected internal error";
78
78
  throw e;
79
79
  },