@nodaro/shared 3.32.0 → 3.33.0
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/{chunk-ISJDAFKS.js → chunk-23FJQTEA.js} +8 -8
- package/dist/{chunk-ISJDAFKS.js.map → chunk-23FJQTEA.js.map} +1 -1
- package/dist/{chunk-VWGNPMJZ.cjs → chunk-2NQLSLSN.cjs} +5 -5
- package/dist/{chunk-VWGNPMJZ.cjs.map → chunk-2NQLSLSN.cjs.map} +1 -1
- package/dist/{chunk-IEBZHTPE.js → chunk-5RYLK3MQ.js} +28 -15
- package/dist/chunk-5RYLK3MQ.js.map +1 -0
- package/dist/{chunk-Z4AZW6FY.js → chunk-6WZ2VN7V.js} +5 -5
- package/dist/{chunk-Z4AZW6FY.js.map → chunk-6WZ2VN7V.js.map} +1 -1
- package/dist/{chunk-6DKDOWBL.js → chunk-7Z5LUTGU.js} +3 -3
- package/dist/{chunk-6DKDOWBL.js.map → chunk-7Z5LUTGU.js.map} +1 -1
- package/dist/{chunk-3CUFITU7.js → chunk-BG5D5CZ6.js} +67 -50
- package/dist/chunk-BG5D5CZ6.js.map +1 -0
- package/dist/{chunk-XAMC4S53.js → chunk-CUH22J4D.js} +3 -3
- package/dist/{chunk-XAMC4S53.js.map → chunk-CUH22J4D.js.map} +1 -1
- package/dist/{chunk-E2TGXG6X.cjs → chunk-D26ENTN2.cjs} +43 -43
- package/dist/{chunk-E2TGXG6X.cjs.map → chunk-D26ENTN2.cjs.map} +1 -1
- package/dist/{chunk-AVQK77G6.cjs → chunk-D6GNRSCV.cjs} +67 -50
- package/dist/chunk-D6GNRSCV.cjs.map +1 -0
- package/dist/{chunk-KHCBJ7KD.js → chunk-FT5CF6IA.js} +3 -3
- package/dist/{chunk-KHCBJ7KD.js.map → chunk-FT5CF6IA.js.map} +1 -1
- package/dist/{chunk-JX5YZ4DH.cjs → chunk-HC7VKIV5.cjs} +38 -38
- package/dist/{chunk-JX5YZ4DH.cjs.map → chunk-HC7VKIV5.cjs.map} +1 -1
- package/dist/{chunk-S5DMKUWK.cjs → chunk-HKFMXNVQ.cjs} +11 -11
- package/dist/{chunk-S5DMKUWK.cjs.map → chunk-HKFMXNVQ.cjs.map} +1 -1
- package/dist/{chunk-O5MP52U2.cjs → chunk-HRXEZ3SX.cjs} +4 -4
- package/dist/{chunk-O5MP52U2.cjs.map → chunk-HRXEZ3SX.cjs.map} +1 -1
- package/dist/{chunk-RJL7RCEM.cjs → chunk-HUR6ZJ7S.cjs} +6 -6
- package/dist/chunk-HUR6ZJ7S.cjs.map +1 -0
- package/dist/{chunk-QELDJGDK.cjs → chunk-JFS3NWZ5.cjs} +4 -4
- package/dist/{chunk-QELDJGDK.cjs.map → chunk-JFS3NWZ5.cjs.map} +1 -1
- package/dist/{chunk-5AUSSJIM.cjs → chunk-K3LLGRK7.cjs} +175 -2
- package/dist/chunk-K3LLGRK7.cjs.map +1 -0
- package/dist/{chunk-J6KHW2E5.cjs → chunk-M7GQBRZU.cjs} +16 -16
- package/dist/{chunk-J6KHW2E5.cjs.map → chunk-M7GQBRZU.cjs.map} +1 -1
- package/dist/{chunk-5U7VLG43.js → chunk-OTATNBMD.js} +3 -3
- package/dist/chunk-OTATNBMD.js.map +1 -0
- package/dist/{chunk-LPW3XNC2.js → chunk-OZSACQ2V.js} +3 -3
- package/dist/{chunk-LPW3XNC2.js.map → chunk-OZSACQ2V.js.map} +1 -1
- package/dist/{chunk-VIWSWVAW.js → chunk-PHZ23DP3.js} +3 -3
- package/dist/{chunk-VIWSWVAW.js.map → chunk-PHZ23DP3.js.map} +1 -1
- package/dist/{chunk-ZT77RY6R.js → chunk-PVJBAPYJ.js} +4 -4
- package/dist/{chunk-ZT77RY6R.js.map → chunk-PVJBAPYJ.js.map} +1 -1
- package/dist/{chunk-AROWPFO2.js → chunk-PXFQVLBX.js} +7 -4
- package/dist/chunk-PXFQVLBX.js.map +1 -0
- package/dist/{chunk-Q4CDQ2KO.js → chunk-QA3MVQ32.js} +4 -4
- package/dist/{chunk-Q4CDQ2KO.js.map → chunk-QA3MVQ32.js.map} +1 -1
- package/dist/{chunk-NB72XWXQ.cjs → chunk-SAW5OK36.cjs} +6 -6
- package/dist/{chunk-NB72XWXQ.cjs.map → chunk-SAW5OK36.cjs.map} +1 -1
- package/dist/{chunk-YHRG7UOC.js → chunk-SFW3UB2P.js} +4 -4
- package/dist/{chunk-YHRG7UOC.js.map → chunk-SFW3UB2P.js.map} +1 -1
- package/dist/chunk-TU33KYKW.cjs +25 -0
- package/dist/{chunk-WNG7HRVA.cjs.map → chunk-TU33KYKW.cjs.map} +1 -1
- package/dist/{chunk-QNGNOU4Z.js → chunk-UCFWI6D4.js} +3 -3
- package/dist/{chunk-QNGNOU4Z.js.map → chunk-UCFWI6D4.js.map} +1 -1
- package/dist/{chunk-RN3RMBJZ.js → chunk-UTQSSKSG.js} +4 -4
- package/dist/{chunk-RN3RMBJZ.js.map → chunk-UTQSSKSG.js.map} +1 -1
- package/dist/{chunk-NT6IJH4L.cjs → chunk-VA42637J.cjs} +61 -47
- package/dist/chunk-VA42637J.cjs.map +1 -0
- package/dist/{chunk-ULXI7A6Q.cjs → chunk-VNQRI2RO.cjs} +11 -11
- package/dist/{chunk-ULXI7A6Q.cjs.map → chunk-VNQRI2RO.cjs.map} +1 -1
- package/dist/{chunk-O7PUQLJ3.cjs → chunk-VXPLKQWY.cjs} +11 -8
- package/dist/chunk-VXPLKQWY.cjs.map +1 -0
- package/dist/{chunk-6IJOPRZP.cjs → chunk-WD6HJRBG.cjs} +21 -21
- package/dist/{chunk-6IJOPRZP.cjs.map → chunk-WD6HJRBG.cjs.map} +1 -1
- package/dist/{chunk-EK362Q45.cjs → chunk-WKOIGLQX.cjs} +8 -8
- package/dist/{chunk-EK362Q45.cjs.map → chunk-WKOIGLQX.cjs.map} +1 -1
- package/dist/{chunk-LKAIXWK3.js → chunk-XGFTL5XY.js} +3 -3
- package/dist/{chunk-LKAIXWK3.js.map → chunk-XGFTL5XY.js.map} +1 -1
- package/dist/{chunk-JSNV5O2F.cjs → chunk-ZL7UM6PU.cjs} +4 -4
- package/dist/{chunk-JSNV5O2F.cjs.map → chunk-ZL7UM6PU.cjs.map} +1 -1
- package/dist/{chunk-C57NEO3X.js → chunk-ZO5PBBFX.js} +173 -3
- package/dist/chunk-ZO5PBBFX.js.map +1 -0
- package/dist/entries/apps.cjs +42 -42
- package/dist/entries/apps.d.cts +10 -1
- package/dist/entries/apps.d.ts +10 -1
- package/dist/entries/apps.js +7 -7
- package/dist/entries/credits.cjs +155 -151
- package/dist/entries/credits.d.cts +41 -10
- package/dist/entries/credits.d.ts +41 -10
- package/dist/entries/credits.js +7 -7
- package/dist/entries/model-catalog.cjs +75 -63
- package/dist/entries/model-catalog.d.cts +2 -2
- package/dist/entries/model-catalog.d.ts +2 -2
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +209 -209
- package/dist/entries/models.d.cts +3 -3
- package/dist/entries/models.d.ts +3 -3
- package/dist/entries/models.js +4 -4
- package/dist/entries/nodes.cjs +200 -200
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +8 -8
- package/dist/entries/pipeline.cjs +149 -149
- package/dist/entries/pipeline.d.cts +6 -6
- package/dist/entries/pipeline.d.ts +6 -6
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +115 -115
- package/dist/entries/video.js +4 -4
- package/dist/entries/workflow.cjs +95 -95
- package/dist/entries/workflow.d.cts +13 -3
- package/dist/entries/workflow.d.ts +13 -3
- package/dist/entries/workflow.js +1 -1
- package/dist/index.cjs +1087 -1071
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +18 -18
- package/dist/{model-catalog-flJYaa-g.d.ts → model-catalog-V-ZNzRSd.d.cts} +91 -1
- package/dist/{model-catalog-flJYaa-g.d.cts → model-catalog-V-ZNzRSd.d.ts} +91 -1
- package/dist/{presentation-utils-BIqiCzSA.d.cts → presentation-utils-D0kxsWf9.d.cts} +2 -0
- package/dist/{presentation-utils-BdiObtwq.d.ts → presentation-utils-pZwlEAzo.d.ts} +2 -0
- package/dist/{scene-node-types-DjenYFLO.d.ts → scene-node-types-C3kl_zyK.d.cts} +1 -1
- package/dist/{scene-node-types-DjenYFLO.d.cts → scene-node-types-C3kl_zyK.d.ts} +1 -1
- package/package.json +1 -1
- package/src/__tests__/model-makers.test.ts +76 -0
- package/src/__tests__/presentation-utils.test.ts +15 -0
- package/src/__tests__/private-host.test.ts +53 -0
- package/src/component-types.ts +9 -0
- package/src/credit-identifiers.ts +62 -17
- package/src/entries/credits.ts +1 -0
- package/src/entries/model-catalog.ts +6 -0
- package/src/model-catalog.ts +207 -0
- package/src/presentation-utils.ts +7 -0
- package/src/private-host.ts +89 -59
- package/dist/chunk-3CUFITU7.js.map +0 -1
- package/dist/chunk-5AUSSJIM.cjs.map +0 -1
- package/dist/chunk-5U7VLG43.js.map +0 -1
- package/dist/chunk-AROWPFO2.js.map +0 -1
- package/dist/chunk-AVQK77G6.cjs.map +0 -1
- package/dist/chunk-C57NEO3X.js.map +0 -1
- package/dist/chunk-IEBZHTPE.js.map +0 -1
- package/dist/chunk-NT6IJH4L.cjs.map +0 -1
- package/dist/chunk-O7PUQLJ3.cjs.map +0 -1
- package/dist/chunk-RJL7RCEM.cjs.map +0 -1
- package/dist/chunk-WNG7HRVA.cjs +0 -25
|
@@ -1821,58 +1821,75 @@ function getStrategy(id) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
|
|
1823
1823
|
// src/private-host.ts
|
|
1824
|
+
function isPrivateOrReservedIPv4(a, b, c) {
|
|
1825
|
+
if (a === 0) return true;
|
|
1826
|
+
if (a === 127) return true;
|
|
1827
|
+
if (a === 10) return true;
|
|
1828
|
+
if (a === 172 && b >= 16 && b <= 31) return true;
|
|
1829
|
+
if (a === 192 && b === 168) return true;
|
|
1830
|
+
if (a === 169 && b === 254) return true;
|
|
1831
|
+
if (a === 100 && b >= 64 && b <= 127) return true;
|
|
1832
|
+
if (a === 198 && (b === 18 || b === 19)) return true;
|
|
1833
|
+
if (a === 192 && b === 0 && c === 0) return true;
|
|
1834
|
+
if (a >= 224) return true;
|
|
1835
|
+
return false;
|
|
1836
|
+
}
|
|
1837
|
+
function embeddedIPv4IsPrivate(hi, lo) {
|
|
1838
|
+
return isPrivateOrReservedIPv4(hi >> 8, hi & 255, lo >> 8);
|
|
1839
|
+
}
|
|
1840
|
+
function ipv6Groups(ip) {
|
|
1841
|
+
let text = ip.toLowerCase();
|
|
1842
|
+
const zone = text.indexOf("%");
|
|
1843
|
+
if (zone >= 0) text = text.slice(0, zone);
|
|
1844
|
+
if (!text.includes(":") || !/^[0-9a-f:.]+$/.test(text)) return null;
|
|
1845
|
+
const lastColon = text.lastIndexOf(":");
|
|
1846
|
+
const last = text.slice(lastColon + 1);
|
|
1847
|
+
if (last.includes(".")) {
|
|
1848
|
+
const parts = last.split(".");
|
|
1849
|
+
if (parts.length !== 4 || parts.some((p) => !/^\d{1,3}$/.test(p) || Number(p) > 255)) return null;
|
|
1850
|
+
const [a, b, c, d] = parts.map(Number);
|
|
1851
|
+
text = `${text.slice(0, lastColon + 1)}${(a << 8 | b).toString(16)}:${(c << 8 | d).toString(16)}`;
|
|
1852
|
+
}
|
|
1853
|
+
const halves = text.split("::");
|
|
1854
|
+
if (halves.length > 2) return null;
|
|
1855
|
+
const groupsOf = (part) => part === "" ? [] : part.split(":");
|
|
1856
|
+
const head = groupsOf(halves[0] ?? "");
|
|
1857
|
+
const tail = halves.length === 2 ? groupsOf(halves[1] ?? "") : [];
|
|
1858
|
+
if ([...head, ...tail].some((g) => !/^[0-9a-f]{1,4}$/.test(g))) return null;
|
|
1859
|
+
if (halves.length === 1) {
|
|
1860
|
+
return head.length === 8 ? head.map((g) => parseInt(g, 16)) : null;
|
|
1861
|
+
}
|
|
1862
|
+
const missing = 8 - head.length - tail.length;
|
|
1863
|
+
if (missing < 1) return null;
|
|
1864
|
+
return [...head, ...Array(missing).fill("0"), ...tail].map((g) => parseInt(g, 16));
|
|
1865
|
+
}
|
|
1866
|
+
function isPrivateOrReservedIPv6(g) {
|
|
1867
|
+
const zeroThrough = (n) => g.slice(0, n).every((x) => x === 0);
|
|
1868
|
+
const [g0 = 0, g1 = 0, g2 = 0, g3 = 0, , g5 = 0, g6 = 0, g7 = 0] = g;
|
|
1869
|
+
if (zeroThrough(8)) return true;
|
|
1870
|
+
if (zeroThrough(7) && g7 === 1) return true;
|
|
1871
|
+
if (zeroThrough(5) && g5 === 65535) return embeddedIPv4IsPrivate(g6, g7);
|
|
1872
|
+
if (zeroThrough(6)) return embeddedIPv4IsPrivate(g6, g7);
|
|
1873
|
+
if (g0 === 100 && g1 === 65435 && g.slice(2, 6).every((x) => x === 0)) {
|
|
1874
|
+
return embeddedIPv4IsPrivate(g6, g7);
|
|
1875
|
+
}
|
|
1876
|
+
if (g0 === 100 && g1 === 65435 && g2 === 1) return true;
|
|
1877
|
+
if (g0 === 8194) return embeddedIPv4IsPrivate(g1, g2);
|
|
1878
|
+
if (g0 === 8193 && g1 === 0) return true;
|
|
1879
|
+
if ((g0 & 65024) === 64512) return true;
|
|
1880
|
+
if ((g0 & 65472) === 65152) return true;
|
|
1881
|
+
if ((g0 & 65472) === 65216) return true;
|
|
1882
|
+
if ((g0 & 65280) === 65280) return true;
|
|
1883
|
+
return false;
|
|
1884
|
+
}
|
|
1824
1885
|
function isPrivateOrReservedIP(ip) {
|
|
1825
1886
|
const v4 = ip.match(/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/);
|
|
1826
1887
|
if (v4) {
|
|
1827
|
-
|
|
1828
|
-
const b = Number(v4[2]);
|
|
1829
|
-
if (a === 0) return true;
|
|
1830
|
-
if (a === 127) return true;
|
|
1831
|
-
if (a === 10) return true;
|
|
1832
|
-
if (a === 172 && b >= 16 && b <= 31) return true;
|
|
1833
|
-
if (a === 192 && b === 168) return true;
|
|
1834
|
-
if (a === 169 && b === 254) return true;
|
|
1835
|
-
if (a === 100 && b >= 64 && b <= 127) return true;
|
|
1836
|
-
if (a === 198 && (b === 18 || b === 19)) return true;
|
|
1837
|
-
if (a >= 224) return true;
|
|
1838
|
-
return false;
|
|
1839
|
-
}
|
|
1840
|
-
const lower = ip.toLowerCase();
|
|
1841
|
-
if (lower === "::" || lower === "::1") return true;
|
|
1842
|
-
if (lower.startsWith("fe80:") || lower.startsWith("fe80::")) return true;
|
|
1843
|
-
if (/^f[cd]/.test(lower)) return true;
|
|
1844
|
-
if (lower.startsWith("ff")) return true;
|
|
1845
|
-
if (lower.startsWith("::ffff:")) {
|
|
1846
|
-
const tail = lower.slice(7);
|
|
1847
|
-
if (tail.includes(".")) {
|
|
1848
|
-
return isPrivateOrReservedIP(tail);
|
|
1849
|
-
}
|
|
1850
|
-
const parts = tail.split(":");
|
|
1851
|
-
if (parts.length === 2) {
|
|
1852
|
-
const hi = parseInt(parts[0] || "0", 16);
|
|
1853
|
-
const lo = parseInt(parts[1] || "0", 16);
|
|
1854
|
-
if (Number.isFinite(hi) && Number.isFinite(lo)) {
|
|
1855
|
-
const ipv4 = `${hi >> 8 & 255}.${hi & 255}.${lo >> 8 & 255}.${lo & 255}`;
|
|
1856
|
-
return isPrivateOrReservedIP(ipv4);
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
return true;
|
|
1888
|
+
return isPrivateOrReservedIPv4(Number(v4[1]), Number(v4[2]), Number(v4[3]));
|
|
1860
1889
|
}
|
|
1861
|
-
if (
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
return isPrivateOrReservedIP(tail);
|
|
1865
|
-
}
|
|
1866
|
-
const parts = tail.split(":");
|
|
1867
|
-
if (parts.length === 2 && /^[0-9a-f]{1,4}$/.test(parts[0]) && /^[0-9a-f]{1,4}$/.test(parts[1])) {
|
|
1868
|
-
const hi = parseInt(parts[0], 16);
|
|
1869
|
-
const lo = parseInt(parts[1], 16);
|
|
1870
|
-
if (Number.isFinite(hi) && Number.isFinite(lo)) {
|
|
1871
|
-
return isPrivateOrReservedIP(`${hi >> 8 & 255}.${hi & 255}.${lo >> 8 & 255}.${lo & 255}`);
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
return false;
|
|
1890
|
+
if (!ip.includes(":")) return false;
|
|
1891
|
+
const groups = ipv6Groups(ip);
|
|
1892
|
+
return groups === null ? true : isPrivateOrReservedIPv6(groups);
|
|
1876
1893
|
}
|
|
1877
1894
|
function isLocalOrPrivateHostname(hostname) {
|
|
1878
1895
|
const host = hostname.toLowerCase().replace(/^\[|\]$/g, "").replace(/\.$/, "");
|
|
@@ -1901,5 +1918,5 @@ function executionOutcome(status, nodeStates) {
|
|
|
1901
1918
|
}
|
|
1902
1919
|
|
|
1903
1920
|
export { AGGREGATEABLE_TYPES, CATEGORY_DURATION_DEFAULTS, COLLECT_IN_HANDLE, GENERATE_TEXT_DELIMITER, GROUP_HANDLE_PREFIX, ITER_CLONE_PATTERN, NON_PROMPT_TEXT_LANES, NO_SPLIT_DELIMITER, OUTPUT_BEARING_NODE_STATUSES, PROJECTED_TRIGGER_NODE_TYPES, PROVIDER_PLACEHOLDER_PREFIX, REDUCE_STRATEGIES, REDUCE_STRATEGY_IDS, REPEATABLE_NODE_TYPES, REPEAT_PLACEHOLDER, SCHEDULE_EVERY_LIMITS, SCHEDULE_RULE_KINDS, SCHEDULE_TRIGGER_NODE_TYPE, SEPARATOR_DISPLAY, SEPARATOR_PRESETS, TELEGRAM_ACCOUNT_TRIGGER_NODE_TYPE, TELEGRAM_TRIGGER_NODE_TYPE, VARIABLES_HANDLE_ID, WEBHOOK_TRIGGER_NODE_TYPE, aggregateByType, alignedFieldList, buildChildrenByParent, buildConditionVariables, buildExpressionFromVisual, buildProgressSegments, calculateCombinedProgress, calculateProgress, compactWithRows, computeAggregateLanes, countEmptyInputSkips, decodeProviderItem, encodeProviderItem, evaluateJsonExpression, executionOutcome, expandItemsWithRepeat, extractAllGeneratedResults, extractGeneratedJsonAsList, fanOutTextFeedsPrompt, fanOutUrlItemIsText, filterCloneNodes, getEffectiveRepeatCount, getRouteReachableNodeIds, getStrategy, groupHandleId, isAggregateableType, isCollectInEdge, isCronExpression, isExpandedClone, isFanOutUrlItem, isLocalOrPrivateHostname, isPrivateOrReservedIP, isProjectedTriggerNodeType, isValidTimezone, jsonResultToList, legacyScheduleToRules, liveRowColumn, localMinuteKey, localTimeIn, matchesCron, matchesCronField, nextScheduleRuns, nodeStateMayCarryOutput, normalizeScheduleRule, normalizeScheduleRules, parseGroupHandle, pickHeldRow, planFanOut, presentTypes, previewHorizonMs, resolveFieldMappings, resolveListFanOut, resolveLocationFields, resolveSeparator, resolveSourceThroughConnectedList, ruleMatches, scheduleMatchesAt, scheduleOccurrences, settledWithLimit, sortListItems, spliceDelimitedRows, splitByLoopDelimiter, splitGeneratedItems, spreadJsonArrayIfSingleton, stripExportContent, stripUnownedRefs, timezoneOffsetMinutes, validateSubWorkflowRoutes, variantJobId, zipMergeLists };
|
|
1904
|
-
//# sourceMappingURL=chunk-
|
|
1905
|
-
//# sourceMappingURL=chunk-
|
|
1921
|
+
//# sourceMappingURL=chunk-BG5D5CZ6.js.map
|
|
1922
|
+
//# sourceMappingURL=chunk-BG5D5CZ6.js.map
|