@ever-works/bluesky-connector-plugin 1.0.3 → 1.0.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.cjs +21 -21
- package/dist/index.js +21 -21
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -257,10 +257,10 @@ var util;
|
|
|
257
257
|
return void 0;
|
|
258
258
|
};
|
|
259
259
|
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
260
|
-
function
|
|
260
|
+
function joinValues2(array2, separator = " | ") {
|
|
261
261
|
return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
262
262
|
}
|
|
263
|
-
util2.joinValues =
|
|
263
|
+
util2.joinValues = joinValues2;
|
|
264
264
|
util2.jsonStringifyReplacer = (_, value) => {
|
|
265
265
|
if (typeof value === "bigint") {
|
|
266
266
|
return value.toString();
|
|
@@ -1159,11 +1159,11 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
1159
1159
|
status.dirty();
|
|
1160
1160
|
}
|
|
1161
1161
|
} else if (check.kind === "length") {
|
|
1162
|
-
const
|
|
1163
|
-
const
|
|
1164
|
-
if (
|
|
1162
|
+
const tooBig2 = input.data.length > check.value;
|
|
1163
|
+
const tooSmall2 = input.data.length < check.value;
|
|
1164
|
+
if (tooBig2 || tooSmall2) {
|
|
1165
1165
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1166
|
-
if (
|
|
1166
|
+
if (tooBig2) {
|
|
1167
1167
|
addIssueToContext(ctx, {
|
|
1168
1168
|
code: ZodIssueCode.too_big,
|
|
1169
1169
|
maximum: check.value,
|
|
@@ -1172,7 +1172,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
1172
1172
|
exact: true,
|
|
1173
1173
|
message: check.message
|
|
1174
1174
|
});
|
|
1175
|
-
} else if (
|
|
1175
|
+
} else if (tooSmall2) {
|
|
1176
1176
|
addIssueToContext(ctx, {
|
|
1177
1177
|
code: ZodIssueCode.too_small,
|
|
1178
1178
|
minimum: check.value,
|
|
@@ -1704,8 +1704,8 @@ var ZodNumber = class _ZodNumber extends ZodType {
|
|
|
1704
1704
|
status.dirty();
|
|
1705
1705
|
}
|
|
1706
1706
|
} else if (check.kind === "min") {
|
|
1707
|
-
const
|
|
1708
|
-
if (
|
|
1707
|
+
const tooSmall2 = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1708
|
+
if (tooSmall2) {
|
|
1709
1709
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1710
1710
|
addIssueToContext(ctx, {
|
|
1711
1711
|
code: ZodIssueCode.too_small,
|
|
@@ -1718,8 +1718,8 @@ var ZodNumber = class _ZodNumber extends ZodType {
|
|
|
1718
1718
|
status.dirty();
|
|
1719
1719
|
}
|
|
1720
1720
|
} else if (check.kind === "max") {
|
|
1721
|
-
const
|
|
1722
|
-
if (
|
|
1721
|
+
const tooBig2 = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1722
|
+
if (tooBig2) {
|
|
1723
1723
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1724
1724
|
addIssueToContext(ctx, {
|
|
1725
1725
|
code: ZodIssueCode.too_big,
|
|
@@ -1922,8 +1922,8 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
1922
1922
|
const status = new ParseStatus();
|
|
1923
1923
|
for (const check of this._def.checks) {
|
|
1924
1924
|
if (check.kind === "min") {
|
|
1925
|
-
const
|
|
1926
|
-
if (
|
|
1925
|
+
const tooSmall2 = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1926
|
+
if (tooSmall2) {
|
|
1927
1927
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1928
1928
|
addIssueToContext(ctx, {
|
|
1929
1929
|
code: ZodIssueCode.too_small,
|
|
@@ -1935,8 +1935,8 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
1935
1935
|
status.dirty();
|
|
1936
1936
|
}
|
|
1937
1937
|
} else if (check.kind === "max") {
|
|
1938
|
-
const
|
|
1939
|
-
if (
|
|
1938
|
+
const tooBig2 = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1939
|
+
if (tooBig2) {
|
|
1940
1940
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1941
1941
|
addIssueToContext(ctx, {
|
|
1942
1942
|
code: ZodIssueCode.too_big,
|
|
@@ -2350,13 +2350,13 @@ var ZodArray = class _ZodArray extends ZodType {
|
|
|
2350
2350
|
return INVALID;
|
|
2351
2351
|
}
|
|
2352
2352
|
if (def2.exactLength !== null) {
|
|
2353
|
-
const
|
|
2354
|
-
const
|
|
2355
|
-
if (
|
|
2353
|
+
const tooBig2 = ctx.data.length > def2.exactLength.value;
|
|
2354
|
+
const tooSmall2 = ctx.data.length < def2.exactLength.value;
|
|
2355
|
+
if (tooBig2 || tooSmall2) {
|
|
2356
2356
|
addIssueToContext(ctx, {
|
|
2357
|
-
code:
|
|
2358
|
-
minimum:
|
|
2359
|
-
maximum:
|
|
2357
|
+
code: tooBig2 ? ZodIssueCode.too_big : ZodIssueCode.too_small,
|
|
2358
|
+
minimum: tooSmall2 ? def2.exactLength.value : void 0,
|
|
2359
|
+
maximum: tooBig2 ? def2.exactLength.value : void 0,
|
|
2360
2360
|
type: "array",
|
|
2361
2361
|
inclusive: true,
|
|
2362
2362
|
exact: true,
|
package/dist/index.js
CHANGED
|
@@ -249,10 +249,10 @@ var util;
|
|
|
249
249
|
return void 0;
|
|
250
250
|
};
|
|
251
251
|
util2.isInteger = typeof Number.isInteger === "function" ? (val) => Number.isInteger(val) : (val) => typeof val === "number" && Number.isFinite(val) && Math.floor(val) === val;
|
|
252
|
-
function
|
|
252
|
+
function joinValues2(array2, separator = " | ") {
|
|
253
253
|
return array2.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
|
|
254
254
|
}
|
|
255
|
-
util2.joinValues =
|
|
255
|
+
util2.joinValues = joinValues2;
|
|
256
256
|
util2.jsonStringifyReplacer = (_, value) => {
|
|
257
257
|
if (typeof value === "bigint") {
|
|
258
258
|
return value.toString();
|
|
@@ -1151,11 +1151,11 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
1151
1151
|
status.dirty();
|
|
1152
1152
|
}
|
|
1153
1153
|
} else if (check.kind === "length") {
|
|
1154
|
-
const
|
|
1155
|
-
const
|
|
1156
|
-
if (
|
|
1154
|
+
const tooBig2 = input.data.length > check.value;
|
|
1155
|
+
const tooSmall2 = input.data.length < check.value;
|
|
1156
|
+
if (tooBig2 || tooSmall2) {
|
|
1157
1157
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1158
|
-
if (
|
|
1158
|
+
if (tooBig2) {
|
|
1159
1159
|
addIssueToContext(ctx, {
|
|
1160
1160
|
code: ZodIssueCode.too_big,
|
|
1161
1161
|
maximum: check.value,
|
|
@@ -1164,7 +1164,7 @@ var ZodString = class _ZodString extends ZodType {
|
|
|
1164
1164
|
exact: true,
|
|
1165
1165
|
message: check.message
|
|
1166
1166
|
});
|
|
1167
|
-
} else if (
|
|
1167
|
+
} else if (tooSmall2) {
|
|
1168
1168
|
addIssueToContext(ctx, {
|
|
1169
1169
|
code: ZodIssueCode.too_small,
|
|
1170
1170
|
minimum: check.value,
|
|
@@ -1696,8 +1696,8 @@ var ZodNumber = class _ZodNumber extends ZodType {
|
|
|
1696
1696
|
status.dirty();
|
|
1697
1697
|
}
|
|
1698
1698
|
} else if (check.kind === "min") {
|
|
1699
|
-
const
|
|
1700
|
-
if (
|
|
1699
|
+
const tooSmall2 = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1700
|
+
if (tooSmall2) {
|
|
1701
1701
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1702
1702
|
addIssueToContext(ctx, {
|
|
1703
1703
|
code: ZodIssueCode.too_small,
|
|
@@ -1710,8 +1710,8 @@ var ZodNumber = class _ZodNumber extends ZodType {
|
|
|
1710
1710
|
status.dirty();
|
|
1711
1711
|
}
|
|
1712
1712
|
} else if (check.kind === "max") {
|
|
1713
|
-
const
|
|
1714
|
-
if (
|
|
1713
|
+
const tooBig2 = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1714
|
+
if (tooBig2) {
|
|
1715
1715
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1716
1716
|
addIssueToContext(ctx, {
|
|
1717
1717
|
code: ZodIssueCode.too_big,
|
|
@@ -1914,8 +1914,8 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
1914
1914
|
const status = new ParseStatus();
|
|
1915
1915
|
for (const check of this._def.checks) {
|
|
1916
1916
|
if (check.kind === "min") {
|
|
1917
|
-
const
|
|
1918
|
-
if (
|
|
1917
|
+
const tooSmall2 = check.inclusive ? input.data < check.value : input.data <= check.value;
|
|
1918
|
+
if (tooSmall2) {
|
|
1919
1919
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1920
1920
|
addIssueToContext(ctx, {
|
|
1921
1921
|
code: ZodIssueCode.too_small,
|
|
@@ -1927,8 +1927,8 @@ var ZodBigInt = class _ZodBigInt extends ZodType {
|
|
|
1927
1927
|
status.dirty();
|
|
1928
1928
|
}
|
|
1929
1929
|
} else if (check.kind === "max") {
|
|
1930
|
-
const
|
|
1931
|
-
if (
|
|
1930
|
+
const tooBig2 = check.inclusive ? input.data > check.value : input.data >= check.value;
|
|
1931
|
+
if (tooBig2) {
|
|
1932
1932
|
ctx = this._getOrReturnCtx(input, ctx);
|
|
1933
1933
|
addIssueToContext(ctx, {
|
|
1934
1934
|
code: ZodIssueCode.too_big,
|
|
@@ -2342,13 +2342,13 @@ var ZodArray = class _ZodArray extends ZodType {
|
|
|
2342
2342
|
return INVALID;
|
|
2343
2343
|
}
|
|
2344
2344
|
if (def2.exactLength !== null) {
|
|
2345
|
-
const
|
|
2346
|
-
const
|
|
2347
|
-
if (
|
|
2345
|
+
const tooBig2 = ctx.data.length > def2.exactLength.value;
|
|
2346
|
+
const tooSmall2 = ctx.data.length < def2.exactLength.value;
|
|
2347
|
+
if (tooBig2 || tooSmall2) {
|
|
2348
2348
|
addIssueToContext(ctx, {
|
|
2349
|
-
code:
|
|
2350
|
-
minimum:
|
|
2351
|
-
maximum:
|
|
2349
|
+
code: tooBig2 ? ZodIssueCode.too_big : ZodIssueCode.too_small,
|
|
2350
|
+
minimum: tooSmall2 ? def2.exactLength.value : void 0,
|
|
2351
|
+
maximum: tooBig2 ? def2.exactLength.value : void 0,
|
|
2352
2352
|
type: "array",
|
|
2353
2353
|
inclusive: true,
|
|
2354
2354
|
exact: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ever-works/bluesky-connector-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Bluesky social connector plugin for Ever Works platform (outbound posts via the official @atproto/api SDK, and event-source pull of mentions/replies plus the account's own timeline into the event-ingest pipeline, with opt-in historical backfill)",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ever Co. LTD",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atproto/api": "^0.20.34",
|
|
36
|
-
"@ever-works/contracts": "^1.0.
|
|
37
|
-
"@ever-works/plugin": "^1.2.
|
|
36
|
+
"@ever-works/contracts": "^1.0.16",
|
|
37
|
+
"@ever-works/plugin": "^1.2.12"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^26.6.4",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"url": "https://github.com/ever-works/ever-works/issues"
|
|
102
102
|
},
|
|
103
103
|
"everworksRelease": {
|
|
104
|
-
"contentHash": "sha256:
|
|
105
|
-
"commit": "
|
|
106
|
-
"source": "https://github.com/ever-works/ever-works/tree/
|
|
104
|
+
"contentHash": "sha256:6ef090bdfddc9db024309a536d547a6dff05d3bdc41460c297f0f0bbce7883c1",
|
|
105
|
+
"commit": "4b0b642a5bf671c9b0480d49307c2c4442730f28",
|
|
106
|
+
"source": "https://github.com/ever-works/ever-works/tree/4b0b642a5bf671c9b0480d49307c2c4442730f28/packages/plugins/bluesky-connector"
|
|
107
107
|
}
|
|
108
108
|
}
|