@observablehq/notebook-kit 2.5.5 → 2.5.6
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/dist/package.json
CHANGED
|
@@ -118,8 +118,8 @@ export class AbstractFile {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
async arrow() {
|
|
121
|
-
const [
|
|
122
|
-
return
|
|
121
|
+
const [Flechette, buffer] = await Promise.all([import("https://cdn.jsdelivr.net/npm/@uwdata/flechette/+esm"), this.arrayBuffer()]); // prettier-ignore
|
|
122
|
+
return Flechette.tableFromIPC(buffer, { useDate: true });
|
|
123
123
|
}
|
|
124
124
|
async arquero(options) {
|
|
125
125
|
let request;
|
|
@@ -156,8 +156,8 @@ export class AbstractFile {
|
|
|
156
156
|
return aq[from](body, options);
|
|
157
157
|
}
|
|
158
158
|
async parquet() {
|
|
159
|
-
const [
|
|
160
|
-
return
|
|
159
|
+
const [Flechette, Parquet, buffer] = await Promise.all([import("https://cdn.jsdelivr.net/npm/@uwdata/flechette/+esm"), import("https://cdn.jsdelivr.net/npm/parquet-wasm/+esm").then(async (Parquet) => (await Parquet.default("https://cdn.jsdelivr.net/npm/parquet-wasm/esm/parquet_wasm_bg.wasm"), Parquet)), this.arrayBuffer()]); // prettier-ignore
|
|
160
|
+
return Flechette.tableFromIPC(Parquet.readParquet(new Uint8Array(buffer)).intoIPCStream(), { useDate: true }); // prettier-ignore
|
|
161
161
|
}
|
|
162
162
|
async zip() {
|
|
163
163
|
const [{ ZipArchive }, buffer] = await Promise.all([import("./zip.js"), this.arrayBuffer()]);
|