@vercel/python 6.54.0 → 6.54.1
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 +22 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8151,10 +8151,24 @@ async function resolveQueueSubscribers({
|
|
|
8151
8151
|
kind,
|
|
8152
8152
|
integrations
|
|
8153
8153
|
});
|
|
8154
|
+
const hint = kind === "workflow" ? "; ensure the entrypoint instantiates vercel.workflow.Workflows" : "";
|
|
8155
|
+
const unmatchedTopicPatterns = getUnmatchedQueueTopicPatterns(
|
|
8156
|
+
declaration,
|
|
8157
|
+
introspected
|
|
8158
|
+
);
|
|
8159
|
+
if (unmatchedTopicPatterns.length > 0) {
|
|
8160
|
+
const introspectedTopics = introspected.map(({ topic }) => topic);
|
|
8161
|
+
throw subscriberError(
|
|
8162
|
+
`${kind} "${declaration.name}" declared topics [${unmatchedTopicPatterns.join(
|
|
8163
|
+
", "
|
|
8164
|
+
)}] but no introspected queue subscriptions matched them; introspected topics [${introspectedTopics.join(
|
|
8165
|
+
", "
|
|
8166
|
+
)}]${hint}`
|
|
8167
|
+
);
|
|
8168
|
+
}
|
|
8154
8169
|
const subscriptions = filterQueueSubscriptions(declaration, introspected);
|
|
8155
8170
|
if (subscriptions.length === 0) {
|
|
8156
8171
|
const declared = declaration.topicPatterns?.join(", ") ?? "*";
|
|
8157
|
-
const hint = kind === "workflow" ? "; ensure the entrypoint instantiates vercel.workflow.Workflows" : "";
|
|
8158
8172
|
throw subscriberError(
|
|
8159
8173
|
`${kind} "${declaration.name}" declared topics [${declared}] but no introspected queue subscriptions matched${hint}`
|
|
8160
8174
|
);
|
|
@@ -8173,6 +8187,13 @@ function filterQueueSubscriptions(declaration, subscriptions) {
|
|
|
8173
8187
|
)
|
|
8174
8188
|
);
|
|
8175
8189
|
}
|
|
8190
|
+
function getUnmatchedQueueTopicPatterns(declaration, subscriptions) {
|
|
8191
|
+
return (declaration.topicPatterns ?? []).filter(
|
|
8192
|
+
(pattern) => !subscriptions.some(
|
|
8193
|
+
(subscription) => queueTopicPatternsOverlap(pattern, subscription.topic)
|
|
8194
|
+
)
|
|
8195
|
+
);
|
|
8196
|
+
}
|
|
8176
8197
|
function queueTopicPatternsOverlap(left, right) {
|
|
8177
8198
|
if (left === "*" || right === "*") {
|
|
8178
8199
|
return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/python",
|
|
3
|
-
"version": "6.54.
|
|
3
|
+
"version": "6.54.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"smol-toml": "1.5.2",
|
|
36
36
|
"vitest": "2.1.4",
|
|
37
37
|
"which": "3.0.0",
|
|
38
|
-
"@vercel/build-utils": "13.36.
|
|
38
|
+
"@vercel/build-utils": "13.36.3",
|
|
39
39
|
"@vercel/python-runtime": "0.17.0",
|
|
40
40
|
"@vercel/error-utils": "2.2.0"
|
|
41
41
|
},
|