@freehour/supabase-langchain 1.3.3 → 1.3.4
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/index.js +41 -41
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -11522,7 +11522,41 @@ function ym(e, t = (e) => e) {
|
|
|
11522
11522
|
}
|
|
11523
11523
|
return `${t(e.key)}.${e.op}.${e.value}`;
|
|
11524
11524
|
}
|
|
11525
|
-
var bm = class e extends
|
|
11525
|
+
var bm = class e extends cm {
|
|
11526
|
+
constructor(e) {
|
|
11527
|
+
super(e);
|
|
11528
|
+
}
|
|
11529
|
+
throwOnError() {
|
|
11530
|
+
return super.throwOnError();
|
|
11531
|
+
}
|
|
11532
|
+
select(t = "*") {
|
|
11533
|
+
return new e(super.select(pm(t).join(",")));
|
|
11534
|
+
}
|
|
11535
|
+
where(...e) {
|
|
11536
|
+
if (e.length === 0) return this;
|
|
11537
|
+
if (e.length === 1) {
|
|
11538
|
+
let t = m.value(e[0]);
|
|
11539
|
+
if (t.type === "logical") {
|
|
11540
|
+
let e = t.args.map((e) => ym(e)).join(",");
|
|
11541
|
+
return this.url.searchParams.append(t.op, `(${e})`), this;
|
|
11542
|
+
}
|
|
11543
|
+
return this.filter(t.key, t.op, t.value);
|
|
11544
|
+
}
|
|
11545
|
+
return this.where({
|
|
11546
|
+
type: "logical",
|
|
11547
|
+
op: "and",
|
|
11548
|
+
args: e
|
|
11549
|
+
});
|
|
11550
|
+
}
|
|
11551
|
+
paginate(e, t) {
|
|
11552
|
+
m(e >= 0, "Page index must be ≥ 0"), m(t >= 0, "Page limit must be ≥ 0");
|
|
11553
|
+
let n = e * t, r = n + t - 1;
|
|
11554
|
+
return new xm(this.range(n, r), {
|
|
11555
|
+
page: e,
|
|
11556
|
+
limit: t
|
|
11557
|
+
});
|
|
11558
|
+
}
|
|
11559
|
+
}, xm = class e extends bm {
|
|
11526
11560
|
pagination;
|
|
11527
11561
|
constructor(e, t) {
|
|
11528
11562
|
super(e), this.pagination = t;
|
|
@@ -11603,47 +11637,13 @@ var bm = class e extends xm {
|
|
|
11603
11637
|
throw e;
|
|
11604
11638
|
}) : e;
|
|
11605
11639
|
}
|
|
11606
|
-
}, xm = class e extends cm {
|
|
11607
|
-
constructor(e) {
|
|
11608
|
-
super(e);
|
|
11609
|
-
}
|
|
11610
|
-
throwOnError() {
|
|
11611
|
-
return super.throwOnError();
|
|
11612
|
-
}
|
|
11613
|
-
select(t = "*") {
|
|
11614
|
-
return new e(super.select(pm(t).join(",")));
|
|
11615
|
-
}
|
|
11616
|
-
where(...e) {
|
|
11617
|
-
if (e.length === 0) return this;
|
|
11618
|
-
if (e.length === 1) {
|
|
11619
|
-
let t = m.value(e[0]);
|
|
11620
|
-
if (t.type === "logical") {
|
|
11621
|
-
let e = t.args.map((e) => ym(e)).join(",");
|
|
11622
|
-
return this.url.searchParams.append(t.op, `(${e})`), this;
|
|
11623
|
-
}
|
|
11624
|
-
return this.filter(t.key, t.op, t.value);
|
|
11625
|
-
}
|
|
11626
|
-
return this.where({
|
|
11627
|
-
type: "logical",
|
|
11628
|
-
op: "and",
|
|
11629
|
-
args: e
|
|
11630
|
-
});
|
|
11631
|
-
}
|
|
11632
|
-
paginate(e, t) {
|
|
11633
|
-
m(e >= 0, "Page index must be ≥ 0"), m(t >= 0, "Page limit must be ≥ 0");
|
|
11634
|
-
let n = e * t, r = n + t - 1;
|
|
11635
|
-
return new bm(this.range(n, r), {
|
|
11636
|
-
page: e,
|
|
11637
|
-
limit: t
|
|
11638
|
-
});
|
|
11639
|
-
}
|
|
11640
11640
|
}, Sm = class {
|
|
11641
11641
|
builder;
|
|
11642
11642
|
constructor(e) {
|
|
11643
11643
|
this.builder = e;
|
|
11644
11644
|
}
|
|
11645
11645
|
select(e = "*", t) {
|
|
11646
|
-
return new
|
|
11646
|
+
return new bm(this.builder.select(pm(e).join(","), t));
|
|
11647
11647
|
}
|
|
11648
11648
|
count(e = "exact") {
|
|
11649
11649
|
return this.select("*", {
|
|
@@ -11652,19 +11652,19 @@ var bm = class e extends xm {
|
|
|
11652
11652
|
});
|
|
11653
11653
|
}
|
|
11654
11654
|
insert(e, t) {
|
|
11655
|
-
return new
|
|
11655
|
+
return new bm(this.builder.insert(e, t));
|
|
11656
11656
|
}
|
|
11657
11657
|
upsert(e, { onConflict: t, ...n } = {}) {
|
|
11658
|
-
return new
|
|
11658
|
+
return new bm(this.builder.upsert(e, {
|
|
11659
11659
|
onConflict: pm(t).join(","),
|
|
11660
11660
|
...n
|
|
11661
11661
|
}));
|
|
11662
11662
|
}
|
|
11663
11663
|
update(e, t) {
|
|
11664
|
-
return new
|
|
11664
|
+
return new bm(this.builder.update(e, t));
|
|
11665
11665
|
}
|
|
11666
11666
|
delete() {
|
|
11667
|
-
return new
|
|
11667
|
+
return new bm(this.builder.delete());
|
|
11668
11668
|
}
|
|
11669
11669
|
}, Cm = class {
|
|
11670
11670
|
client;
|
|
@@ -11675,7 +11675,7 @@ var bm = class e extends xm {
|
|
|
11675
11675
|
return new Sm(this.client.from(e));
|
|
11676
11676
|
}
|
|
11677
11677
|
rpc(e, t, n) {
|
|
11678
|
-
return new
|
|
11678
|
+
return new bm(this.client.rpc(e, t, n));
|
|
11679
11679
|
}
|
|
11680
11680
|
}, wm = class {
|
|
11681
11681
|
supabase;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"displayName": "Supabase-Langchain",
|
|
5
5
|
"description": "Integration package for using LangChain with Supabase",
|
|
6
|
-
"version": "1.3.
|
|
6
|
+
"version": "1.3.4",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"srt-parser-2": "^1.2.3"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@freehour/supabase-core": "^2.5.
|
|
41
|
+
"@freehour/supabase-core": "^2.5.4",
|
|
42
42
|
"@supabase/supabase-js": "^2.107.0"
|
|
43
43
|
},
|
|
44
44
|
"overrides": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@freehour/eslint-rules": "^1.0.19",
|
|
49
|
-
"@freehour/supabase-core": "^2.5.
|
|
49
|
+
"@freehour/supabase-core": "^2.5.4",
|
|
50
50
|
"@supabase/supabase-js": "^2.107.0",
|
|
51
51
|
"ajv": "^8.20.0",
|
|
52
52
|
"bun-types": "^1.3.14",
|