@ever-works/bluesky-connector-plugin 1.0.2 → 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 +80 -33
- package/dist/index.js +80 -33
- 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,
|
|
@@ -40847,6 +40847,7 @@ function isSafeWebhookUrl(rawUrl) {
|
|
|
40847
40847
|
if (host.startsWith("[") && host.endsWith("]")) {
|
|
40848
40848
|
host = host.slice(1, -1);
|
|
40849
40849
|
}
|
|
40850
|
+
host = host.replace(/\.+$/, "");
|
|
40850
40851
|
if (CLOUD_METADATA_HOSTNAMES.has(host)) {
|
|
40851
40852
|
return false;
|
|
40852
40853
|
}
|
|
@@ -40876,23 +40877,69 @@ function isPrivateIPv4(ip) {
|
|
|
40876
40877
|
if (a === 172 && b >= 16 && b <= 31) return true;
|
|
40877
40878
|
if (a === 192 && b === 168) return true;
|
|
40878
40879
|
if (a === 192 && b === 0 && parts[2] === 0) return true;
|
|
40880
|
+
if (a === 198 && (b === 18 || b === 19)) return true;
|
|
40881
|
+
if (a === 192 && b === 0 && parts[2] === 2) return true;
|
|
40882
|
+
if (a === 198 && b === 51 && parts[2] === 100) return true;
|
|
40883
|
+
if (a === 203 && b === 0 && parts[2] === 113) return true;
|
|
40879
40884
|
if (a === 100 && b >= 64 && b <= 127) return true;
|
|
40880
40885
|
if (a >= 224) return true;
|
|
40881
40886
|
return false;
|
|
40882
40887
|
}
|
|
40883
|
-
function
|
|
40884
|
-
|
|
40885
|
-
|
|
40886
|
-
if (
|
|
40887
|
-
|
|
40888
|
-
|
|
40889
|
-
|
|
40890
|
-
|
|
40891
|
-
|
|
40892
|
-
|
|
40893
|
-
|
|
40894
|
-
|
|
40888
|
+
function parseIPv6Groups(ip) {
|
|
40889
|
+
let text = ip.trim().toLowerCase();
|
|
40890
|
+
const zone = text.indexOf("%");
|
|
40891
|
+
if (zone >= 0) text = text.slice(0, zone);
|
|
40892
|
+
if (net.isIP(text) !== 6) return null;
|
|
40893
|
+
const lastColon = text.lastIndexOf(":");
|
|
40894
|
+
const tail = text.slice(lastColon + 1);
|
|
40895
|
+
if (tail.includes(".")) {
|
|
40896
|
+
if (net.isIP(tail) !== 4) return null;
|
|
40897
|
+
const [a, b, c, d] = tail.split(".").map((part) => Number(part));
|
|
40898
|
+
text = `${text.slice(0, lastColon + 1)}${(a << 8 | b).toString(16)}:${(c << 8 | d).toString(16)}`;
|
|
40899
|
+
}
|
|
40900
|
+
const halves = text.split("::");
|
|
40901
|
+
if (halves.length > 2) return null;
|
|
40902
|
+
const head = halves[0] ? halves[0].split(":") : [];
|
|
40903
|
+
const rest = halves.length === 2 && halves[1] ? halves[1].split(":") : [];
|
|
40904
|
+
const fill = halves.length === 2 ? 8 - head.length - rest.length : 0;
|
|
40905
|
+
if (fill < 0) return null;
|
|
40906
|
+
const groups = [...head, ...new Array(fill).fill("0"), ...rest].map((group) => parseInt(group, 16));
|
|
40907
|
+
if (groups.length !== 8 || groups.some((group) => Number.isNaN(group) || group < 0 || group > 65535)) {
|
|
40908
|
+
return null;
|
|
40895
40909
|
}
|
|
40910
|
+
return groups;
|
|
40911
|
+
}
|
|
40912
|
+
function ipv4FromGroups(high, low) {
|
|
40913
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
40914
|
+
}
|
|
40915
|
+
function embeddedIPv4(ip) {
|
|
40916
|
+
const g = parseIPv6Groups(ip);
|
|
40917
|
+
if (!g) return null;
|
|
40918
|
+
const zeros = (from3, to) => g.slice(from3, to).every((group) => group === 0);
|
|
40919
|
+
if (zeros(0, 5) && g[5] === 65535) return ipv4FromGroups(g[6], g[7]);
|
|
40920
|
+
if (zeros(0, 4) && g[4] === 65535 && g[5] === 0) return ipv4FromGroups(g[6], g[7]);
|
|
40921
|
+
if (zeros(0, 6) && (g[6] !== 0 || g[7] > 1)) return ipv4FromGroups(g[6], g[7]);
|
|
40922
|
+
if (g[0] === 100 && g[1] === 65435 && zeros(2, 6)) return ipv4FromGroups(g[6], g[7]);
|
|
40923
|
+
if (g[0] === 8194) return ipv4FromGroups(g[1], g[2]);
|
|
40924
|
+
if (g[0] === 8193 && g[1] === 0) return ipv4FromGroups(g[6] ^ 65535, g[7] ^ 65535);
|
|
40925
|
+
return null;
|
|
40926
|
+
}
|
|
40927
|
+
function isPrivateIPv6(ip) {
|
|
40928
|
+
const g = parseIPv6Groups(ip);
|
|
40929
|
+
if (!g) {
|
|
40930
|
+
const lower = ip.toLowerCase();
|
|
40931
|
+
return lower === "::1" || lower === "::" || lower.startsWith("fc") || lower.startsWith("fd");
|
|
40932
|
+
}
|
|
40933
|
+
if (g.every((group) => group === 0)) return true;
|
|
40934
|
+
if (g.slice(0, 7).every((group) => group === 0) && g[7] === 1) return true;
|
|
40935
|
+
if ((g[0] & 65024) === 64512) return true;
|
|
40936
|
+
if ((g[0] & 65472) === 65152) return true;
|
|
40937
|
+
if ((g[0] & 65472) === 65216) return true;
|
|
40938
|
+
if ((g[0] & 65280) === 65280) return true;
|
|
40939
|
+
if (g[0] === 8193 && g[1] === 3512) return true;
|
|
40940
|
+
if (g[0] === 100 && g[1] === 65435 && g[2] === 1) return true;
|
|
40941
|
+
const v4 = embeddedIPv4(ip);
|
|
40942
|
+
if (v4 && isPrivateIPv4(v4)) return true;
|
|
40896
40943
|
return false;
|
|
40897
40944
|
}
|
|
40898
40945
|
|
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,
|
|
@@ -40839,6 +40839,7 @@ function isSafeWebhookUrl(rawUrl) {
|
|
|
40839
40839
|
if (host.startsWith("[") && host.endsWith("]")) {
|
|
40840
40840
|
host = host.slice(1, -1);
|
|
40841
40841
|
}
|
|
40842
|
+
host = host.replace(/\.+$/, "");
|
|
40842
40843
|
if (CLOUD_METADATA_HOSTNAMES.has(host)) {
|
|
40843
40844
|
return false;
|
|
40844
40845
|
}
|
|
@@ -40868,23 +40869,69 @@ function isPrivateIPv4(ip) {
|
|
|
40868
40869
|
if (a === 172 && b >= 16 && b <= 31) return true;
|
|
40869
40870
|
if (a === 192 && b === 168) return true;
|
|
40870
40871
|
if (a === 192 && b === 0 && parts[2] === 0) return true;
|
|
40872
|
+
if (a === 198 && (b === 18 || b === 19)) return true;
|
|
40873
|
+
if (a === 192 && b === 0 && parts[2] === 2) return true;
|
|
40874
|
+
if (a === 198 && b === 51 && parts[2] === 100) return true;
|
|
40875
|
+
if (a === 203 && b === 0 && parts[2] === 113) return true;
|
|
40871
40876
|
if (a === 100 && b >= 64 && b <= 127) return true;
|
|
40872
40877
|
if (a >= 224) return true;
|
|
40873
40878
|
return false;
|
|
40874
40879
|
}
|
|
40875
|
-
function
|
|
40876
|
-
|
|
40877
|
-
|
|
40878
|
-
if (
|
|
40879
|
-
|
|
40880
|
-
|
|
40881
|
-
|
|
40882
|
-
|
|
40883
|
-
|
|
40884
|
-
|
|
40885
|
-
|
|
40886
|
-
|
|
40880
|
+
function parseIPv6Groups(ip) {
|
|
40881
|
+
let text = ip.trim().toLowerCase();
|
|
40882
|
+
const zone = text.indexOf("%");
|
|
40883
|
+
if (zone >= 0) text = text.slice(0, zone);
|
|
40884
|
+
if (isIP(text) !== 6) return null;
|
|
40885
|
+
const lastColon = text.lastIndexOf(":");
|
|
40886
|
+
const tail = text.slice(lastColon + 1);
|
|
40887
|
+
if (tail.includes(".")) {
|
|
40888
|
+
if (isIP(tail) !== 4) return null;
|
|
40889
|
+
const [a, b, c, d] = tail.split(".").map((part) => Number(part));
|
|
40890
|
+
text = `${text.slice(0, lastColon + 1)}${(a << 8 | b).toString(16)}:${(c << 8 | d).toString(16)}`;
|
|
40891
|
+
}
|
|
40892
|
+
const halves = text.split("::");
|
|
40893
|
+
if (halves.length > 2) return null;
|
|
40894
|
+
const head = halves[0] ? halves[0].split(":") : [];
|
|
40895
|
+
const rest = halves.length === 2 && halves[1] ? halves[1].split(":") : [];
|
|
40896
|
+
const fill = halves.length === 2 ? 8 - head.length - rest.length : 0;
|
|
40897
|
+
if (fill < 0) return null;
|
|
40898
|
+
const groups = [...head, ...new Array(fill).fill("0"), ...rest].map((group) => parseInt(group, 16));
|
|
40899
|
+
if (groups.length !== 8 || groups.some((group) => Number.isNaN(group) || group < 0 || group > 65535)) {
|
|
40900
|
+
return null;
|
|
40887
40901
|
}
|
|
40902
|
+
return groups;
|
|
40903
|
+
}
|
|
40904
|
+
function ipv4FromGroups(high, low) {
|
|
40905
|
+
return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
|
|
40906
|
+
}
|
|
40907
|
+
function embeddedIPv4(ip) {
|
|
40908
|
+
const g = parseIPv6Groups(ip);
|
|
40909
|
+
if (!g) return null;
|
|
40910
|
+
const zeros = (from3, to) => g.slice(from3, to).every((group) => group === 0);
|
|
40911
|
+
if (zeros(0, 5) && g[5] === 65535) return ipv4FromGroups(g[6], g[7]);
|
|
40912
|
+
if (zeros(0, 4) && g[4] === 65535 && g[5] === 0) return ipv4FromGroups(g[6], g[7]);
|
|
40913
|
+
if (zeros(0, 6) && (g[6] !== 0 || g[7] > 1)) return ipv4FromGroups(g[6], g[7]);
|
|
40914
|
+
if (g[0] === 100 && g[1] === 65435 && zeros(2, 6)) return ipv4FromGroups(g[6], g[7]);
|
|
40915
|
+
if (g[0] === 8194) return ipv4FromGroups(g[1], g[2]);
|
|
40916
|
+
if (g[0] === 8193 && g[1] === 0) return ipv4FromGroups(g[6] ^ 65535, g[7] ^ 65535);
|
|
40917
|
+
return null;
|
|
40918
|
+
}
|
|
40919
|
+
function isPrivateIPv6(ip) {
|
|
40920
|
+
const g = parseIPv6Groups(ip);
|
|
40921
|
+
if (!g) {
|
|
40922
|
+
const lower = ip.toLowerCase();
|
|
40923
|
+
return lower === "::1" || lower === "::" || lower.startsWith("fc") || lower.startsWith("fd");
|
|
40924
|
+
}
|
|
40925
|
+
if (g.every((group) => group === 0)) return true;
|
|
40926
|
+
if (g.slice(0, 7).every((group) => group === 0) && g[7] === 1) return true;
|
|
40927
|
+
if ((g[0] & 65024) === 64512) return true;
|
|
40928
|
+
if ((g[0] & 65472) === 65152) return true;
|
|
40929
|
+
if ((g[0] & 65472) === 65216) return true;
|
|
40930
|
+
if ((g[0] & 65280) === 65280) return true;
|
|
40931
|
+
if (g[0] === 8193 && g[1] === 3512) return true;
|
|
40932
|
+
if (g[0] === 100 && g[1] === 65435 && g[2] === 1) return true;
|
|
40933
|
+
const v4 = embeddedIPv4(ip);
|
|
40934
|
+
if (v4 && isPrivateIPv4(v4)) return true;
|
|
40888
40935
|
return false;
|
|
40889
40936
|
}
|
|
40890
40937
|
|
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
|
}
|