Skip to content

Commit 97d903a

Browse files
committed
fix: change pyarrow dependency to be compatible with pyodide
1 parent 4fb05f7 commit 97d903a

File tree

3 files changed

+46
-45
lines changed

3 files changed

+46
-45
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pyobsplot"
3-
version = "0.5.3"
3+
version = "0.5.3.1"
44
description = "Observable Plot in Jupyter notebooks and Quarto documents"
55
authors = [{ name = "Julien Barnier", email = "[email protected]" }]
66
license = { file = "LICENSE" }
@@ -19,7 +19,7 @@ dependencies = [
1919
"pandas>=2.0.0",
2020
"polars>=1.4.1",
2121
"requests",
22-
"pyarrow>=19.0.1",
22+
"pyarrow>=18.1.0",
2323
]
2424

2525
[optional-dependencies]

src/pyobsplot/static/static-widget.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33376,7 +33376,7 @@ var StructRow = class {
3337633376
constructor(parent, rowIndex) {
3337733377
this[kParent] = parent;
3337833378
this[kRowIndex] = rowIndex;
33379-
return new Proxy(this, new StructRowProxyHandler());
33379+
return new Proxy(this, structRowProxyHandler);
3338033380
}
3338133381
toArray() {
3338233382
return Object.values(this.toJSON());
@@ -33446,10 +33446,10 @@ var StructRowProxyHandler = class {
3344633446
return row[kParent].type.children.map((f) => f.name);
3344733447
}
3344833448
has(row, key) {
33449-
return row[kParent].type.children.findIndex((f) => f.name === key) !== -1;
33449+
return row[kParent].type.children.some((f) => f.name === key);
3345033450
}
3345133451
getOwnPropertyDescriptor(row, key) {
33452-
if (row[kParent].type.children.findIndex((f) => f.name === key) !== -1) {
33452+
if (row[kParent].type.children.some((f) => f.name === key)) {
3345333453
return { writable: true, enumerable: true, configurable: true };
3345433454
}
3345533455
return;
@@ -33476,6 +33476,7 @@ var StructRowProxyHandler = class {
3347633476
return false;
3347733477
}
3347833478
};
33479+
var structRowProxyHandler = new StructRowProxyHandler();
3347933480

3348033481
// node_modules/apache-arrow/visitor/get.mjs
3348133482
var GetVisitor = class extends Visitor {

0 commit comments

Comments
 (0)