@atproto/bsky 0.0.8 → 0.0.10
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/CHANGELOG.md +14 -0
- package/dist/db/index.js +55 -3
- package/dist/db/index.js.map +3 -3
- package/dist/index.js +561 -124
- package/dist/index.js.map +3 -3
- package/dist/lexicon/index.d.ts +6 -2
- package/dist/lexicon/lexicons.d.ts +203 -14
- package/dist/lexicon/types/app/bsky/actor/searchActors.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/actor/searchActorsTypeahead.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/{unspecced/applyLabels.d.ts → feed/searchPosts.d.ts} +17 -6
- package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +13 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.d.ts +37 -0
- package/dist/lexicon/types/com/atproto/admin/searchRepos.d.ts +1 -0
- package/package.json +5 -6
- package/src/api/app/bsky/actor/searchActors.ts +7 -1
- package/src/api/app/bsky/actor/searchActorsTypeahead.ts +7 -1
- package/src/api/com/atproto/admin/searchRepos.ts +5 -0
- package/src/auto-moderator/index.ts +1 -17
- package/src/lexicon/index.ts +36 -12
- package/src/lexicon/lexicons.ts +229 -23
- package/src/lexicon/types/app/bsky/actor/searchActors.ts +3 -0
- package/src/lexicon/types/app/bsky/actor/searchActorsTypeahead.ts +3 -0
- package/src/lexicon/types/app/bsky/feed/searchPosts.ts +54 -0
- package/src/lexicon/types/app/bsky/unspecced/defs.ts +41 -0
- package/src/lexicon/types/app/bsky/unspecced/searchActorsSkeleton.ts +56 -0
- package/src/lexicon/types/app/bsky/unspecced/searchPostsSkeleton.ts +54 -0
- package/src/lexicon/types/com/atproto/admin/searchRepos.ts +2 -0
- package/src/services/indexing/plugins/block.ts +1 -1
- package/src/services/indexing/plugins/feed-generator.ts +1 -1
- package/src/services/indexing/plugins/follow.ts +1 -1
- package/src/services/indexing/plugins/like.ts +1 -1
- package/src/services/indexing/plugins/list-block.ts +1 -1
- package/src/services/indexing/plugins/list-item.ts +1 -1
- package/src/services/indexing/plugins/list.ts +1 -1
- package/src/services/indexing/plugins/post.ts +1 -1
- package/src/services/indexing/plugins/repost.ts +1 -1
- package/src/services/indexing/plugins/thread-gate.ts +1 -1
- package/src/services/label/index.ts +1 -1
- package/dist/services/indexing/util.d.ts +0 -1
- package/src/lexicon/types/app/bsky/unspecced/applyLabels.ts +0 -39
- package/src/services/indexing/util.ts +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atproto/bsky
|
|
2
2
|
|
|
3
|
+
## 0.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`35b616cd`](https://github.com/bluesky-social/atproto/commit/35b616cd82232879937afc88d3f77d20c6395276)]:
|
|
8
|
+
- @atproto/api@0.6.19
|
|
9
|
+
|
|
10
|
+
## 0.0.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`2ce8a11b`](https://github.com/bluesky-social/atproto/commit/2ce8a11b8daf5d39027488c5dde8c47b0eb937bf)]:
|
|
15
|
+
- @atproto/api@0.6.18
|
|
16
|
+
|
|
3
17
|
## 0.0.8
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/db/index.js
CHANGED
|
@@ -8817,6 +8817,55 @@ var require_lib = __commonJS({
|
|
|
8817
8817
|
}
|
|
8818
8818
|
});
|
|
8819
8819
|
|
|
8820
|
+
// ../../node_modules/.pnpm/iso-datestring-validator@2.2.2/node_modules/iso-datestring-validator/dist/index.js
|
|
8821
|
+
var require_dist = __commonJS({
|
|
8822
|
+
"../../node_modules/.pnpm/iso-datestring-validator@2.2.2/node_modules/iso-datestring-validator/dist/index.js"(exports) {
|
|
8823
|
+
(() => {
|
|
8824
|
+
"use strict";
|
|
8825
|
+
var e = { d: (t2, r2) => {
|
|
8826
|
+
for (var n2 in r2)
|
|
8827
|
+
e.o(r2, n2) && !e.o(t2, n2) && Object.defineProperty(t2, n2, { enumerable: true, get: r2[n2] });
|
|
8828
|
+
}, o: (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2), r: (e2) => {
|
|
8829
|
+
typeof Symbol != "undefined" && Symbol.toStringTag && Object.defineProperty(e2, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e2, "__esModule", { value: true });
|
|
8830
|
+
} }, t = {};
|
|
8831
|
+
function r(e2, t2) {
|
|
8832
|
+
return t2 === void 0 && (t2 = "-"), new RegExp("^(?!0{4}" + t2 + "0{2}" + t2 + "0{2})((?=[0-9]{4}" + t2 + "(((0[^2])|1[0-2])|02(?=" + t2 + "(([0-1][0-9])|2[0-8])))" + t2 + "[0-9]{2})|(?=((([13579][26])|([2468][048])|(0[48]))0{2})|([0-9]{2}((((0|[2468])[48])|[2468][048])|([13579][26])))" + t2 + "02" + t2 + "29))([0-9]{4})" + t2 + "(?!((0[469])|11)" + t2 + "31)((0[1,3-9]|1[0-2])|(02(?!" + t2 + "3)))" + t2 + "(0[1-9]|[1-2][0-9]|3[0-1])$").test(e2);
|
|
8833
|
+
}
|
|
8834
|
+
function n(e2) {
|
|
8835
|
+
var t2 = /\D/.exec(e2);
|
|
8836
|
+
return t2 ? t2[0] : "";
|
|
8837
|
+
}
|
|
8838
|
+
function i(e2, t2, r2) {
|
|
8839
|
+
t2 === void 0 && (t2 = ":"), r2 === void 0 && (r2 = false);
|
|
8840
|
+
var i2 = new RegExp("^([0-1]|2(?=([0-3])|4" + t2 + "00))[0-9]" + t2 + "[0-5][0-9](" + t2 + "([0-5]|6(?=0))[0-9])?(.[0-9]{1,9})?$");
|
|
8841
|
+
if (!r2 || !/[Z+\-]/.test(e2))
|
|
8842
|
+
return i2.test(e2);
|
|
8843
|
+
if (/Z$/.test(e2))
|
|
8844
|
+
return i2.test(e2.replace("Z", ""));
|
|
8845
|
+
var o2 = e2.includes("+"), a2 = e2.split(/[+-]/), u2 = a2[0], d2 = a2[1];
|
|
8846
|
+
return i2.test(u2) && function(e3, t3, r3) {
|
|
8847
|
+
return r3 === void 0 && (r3 = ":"), new RegExp(t3 ? "^(0(?!(2" + r3 + "4)|0" + r3 + "3)|1(?=([0-1]|2(?=" + r3 + "[04])|[34](?=" + r3 + "0))))([03469](?=" + r3 + "[03])|[17](?=" + r3 + "0)|2(?=" + r3 + "[04])|5(?=" + r3 + "[034])|8(?=" + r3 + "[04]))" + r3 + "([03](?=0)|4(?=5))[05]$" : "^(0(?=[^0])|1(?=[0-2]))([39](?=" + r3 + "[03])|[0-24-8](?=" + r3 + "00))" + r3 + "[03]0$").test(e3);
|
|
8848
|
+
}(d2, o2, n(d2));
|
|
8849
|
+
}
|
|
8850
|
+
function o(e2) {
|
|
8851
|
+
var t2 = e2.split("T"), o2 = t2[0], a2 = t2[1], u2 = r(o2, n(o2));
|
|
8852
|
+
if (!a2)
|
|
8853
|
+
return false;
|
|
8854
|
+
var d2, s = (d2 = a2.match(/([^Z+\-\d])(?=\d+\1)/), Array.isArray(d2) ? d2[0] : "");
|
|
8855
|
+
return u2 && i(a2, s, true);
|
|
8856
|
+
}
|
|
8857
|
+
function a(e2, t2) {
|
|
8858
|
+
return t2 === void 0 && (t2 = "-"), new RegExp("^[0-9]{4}" + t2 + "(0(?=[^0])|1(?=[0-2]))[0-9]$").test(e2);
|
|
8859
|
+
}
|
|
8860
|
+
e.r(t), e.d(t, { isValidDate: () => r, isValidISODateString: () => o, isValidTime: () => i, isValidYearMonth: () => a });
|
|
8861
|
+
var u = exports;
|
|
8862
|
+
for (var d in t)
|
|
8863
|
+
u[d] = t[d];
|
|
8864
|
+
t.__esModule && Object.defineProperty(u, "__esModule", { value: true });
|
|
8865
|
+
})();
|
|
8866
|
+
}
|
|
8867
|
+
});
|
|
8868
|
+
|
|
8820
8869
|
// ../../node_modules/.pnpm/node-gyp-build-optional-packages@5.0.3/node_modules/node-gyp-build-optional-packages/index.js
|
|
8821
8870
|
var require_node_gyp_build_optional_packages = __commonJS({
|
|
8822
8871
|
"../../node_modules/.pnpm/node-gyp-build-optional-packages@5.0.3/node_modules/node-gyp-build-optional-packages/index.js"(exports, module2) {
|
|
@@ -16076,7 +16125,7 @@ var require_parser = __commonJS({
|
|
|
16076
16125
|
});
|
|
16077
16126
|
|
|
16078
16127
|
// ../../node_modules/.pnpm/pg-protocol@1.6.0/node_modules/pg-protocol/dist/index.js
|
|
16079
|
-
var
|
|
16128
|
+
var require_dist2 = __commonJS({
|
|
16080
16129
|
"../../node_modules/.pnpm/pg-protocol@1.6.0/node_modules/pg-protocol/dist/index.js"(exports) {
|
|
16081
16130
|
"use strict";
|
|
16082
16131
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -16105,7 +16154,7 @@ var require_connection = __commonJS({
|
|
|
16105
16154
|
"use strict";
|
|
16106
16155
|
var net = require("net");
|
|
16107
16156
|
var EventEmitter2 = require("events").EventEmitter;
|
|
16108
|
-
var { parse, serialize } =
|
|
16157
|
+
var { parse, serialize } = require_dist2();
|
|
16109
16158
|
var flushBuffer = serialize.flush();
|
|
16110
16159
|
var syncBuffer = serialize.sync();
|
|
16111
16160
|
var endBuffer = serialize.end();
|
|
@@ -17541,7 +17590,7 @@ var require_lib3 = __commonJS({
|
|
|
17541
17590
|
var defaults = require_defaults();
|
|
17542
17591
|
var Connection = require_connection();
|
|
17543
17592
|
var Pool = require_pg_pool();
|
|
17544
|
-
var { DatabaseError } =
|
|
17593
|
+
var { DatabaseError } = require_dist2();
|
|
17545
17594
|
var poolFactory = (Client2) => {
|
|
17546
17595
|
return class BoundPool extends Pool {
|
|
17547
17596
|
constructor(options) {
|
|
@@ -29860,6 +29909,9 @@ var DAY = HOUR * 24;
|
|
|
29860
29909
|
// ../common-web/src/strings.ts
|
|
29861
29910
|
var import_graphemer = __toESM(require_lib());
|
|
29862
29911
|
|
|
29912
|
+
// ../common/src/dates.ts
|
|
29913
|
+
var import_iso_datestring_validator = __toESM(require_dist());
|
|
29914
|
+
|
|
29863
29915
|
// ../../node_modules/.pnpm/cborg@1.10.2/node_modules/cborg/esm/lib/is.js
|
|
29864
29916
|
var typeofs = [
|
|
29865
29917
|
"string",
|