netlify-cli 27.16.0 → 27.16.2
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/commands/logs/log-api.js +8 -1
- package/dist/commands/logs/logs.js +6 -2
- package/functions-templates/javascript/scheduled-function/package.json +1 -1
- package/functions-templates/typescript/database/package-lock.json +8 -8
- package/functions-templates/typescript/database/package.json +1 -1
- package/functions-templates/typescript/database-drizzle/package-lock.json +8 -8
- package/functions-templates/typescript/database-drizzle/package.json +1 -1
- package/functions-templates/typescript/hello-world/package-lock.json +15 -15
- package/functions-templates/typescript/hello-world/package.json +1 -1
- package/functions-templates/typescript/scheduled-function/package.json +1 -1
- package/package.json +9 -9
|
@@ -57,6 +57,7 @@ export const debugFetch = async (url, init) => {
|
|
|
57
57
|
};
|
|
58
58
|
export const fetchHistoricalLogs = async ({ baseUrl, accessToken, from, to, deployId, }) => {
|
|
59
59
|
const entries = [];
|
|
60
|
+
const requestedCursors = new Set();
|
|
60
61
|
let cursor;
|
|
61
62
|
do {
|
|
62
63
|
const parsedUrl = new URL(baseUrl);
|
|
@@ -79,7 +80,13 @@ export const fetchHistoricalLogs = async ({ baseUrl, accessToken, from, to, depl
|
|
|
79
80
|
}
|
|
80
81
|
const body = (await response.json());
|
|
81
82
|
entries.push(...(body.logs ?? []));
|
|
82
|
-
cursor = body.
|
|
83
|
+
cursor = body.next;
|
|
84
|
+
if (cursor) {
|
|
85
|
+
if (requestedCursors.has(cursor)) {
|
|
86
|
+
throw new Error(`Failed to fetch logs: pagination repeated cursor ${cursor}`);
|
|
87
|
+
}
|
|
88
|
+
requestedCursors.add(cursor);
|
|
89
|
+
}
|
|
83
90
|
} while (cursor);
|
|
84
91
|
return entries;
|
|
85
92
|
};
|
|
@@ -258,7 +258,9 @@ const runHistoricalMode = async ({ sources, client, siteId, accessToken, deployI
|
|
|
258
258
|
to,
|
|
259
259
|
deployId,
|
|
260
260
|
});
|
|
261
|
-
|
|
261
|
+
for (const entry of entries) {
|
|
262
|
+
allEntries.push(entry);
|
|
263
|
+
}
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
if (sources.includes('edge-functions')) {
|
|
@@ -270,7 +272,9 @@ const runHistoricalMode = async ({ sources, client, siteId, accessToken, deployI
|
|
|
270
272
|
deployId,
|
|
271
273
|
filterNames: edgeFunctionNames,
|
|
272
274
|
});
|
|
273
|
-
|
|
275
|
+
for (const entry of entries) {
|
|
276
|
+
allEntries.push(entry);
|
|
277
|
+
}
|
|
274
278
|
}
|
|
275
279
|
let serverLogsTruncated = false;
|
|
276
280
|
if (sources.includes('server')) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@netlify/database": "latest",
|
|
13
|
-
"@netlify/functions": "^6.0.
|
|
13
|
+
"@netlify/functions": "^6.0.3",
|
|
14
14
|
"@types/node": "^22.0.0",
|
|
15
15
|
"typescript": "^4.5.5"
|
|
16
16
|
}
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"node_modules/@netlify/functions": {
|
|
44
|
-
"version": "6.0.
|
|
45
|
-
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.
|
|
46
|
-
"integrity": "sha512-
|
|
44
|
+
"version": "6.0.3",
|
|
45
|
+
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
|
|
46
|
+
"integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@netlify/types": "3.
|
|
49
|
+
"@netlify/types": "3.3.0"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22.12.0"
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"node_modules/@netlify/types": {
|
|
65
|
-
"version": "3.
|
|
66
|
-
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.
|
|
67
|
-
"integrity": "sha512-
|
|
65
|
+
"version": "3.3.0",
|
|
66
|
+
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
|
|
67
|
+
"integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg==",
|
|
68
68
|
"license": "MIT",
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": ">=22.12.0"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@netlify/database": "latest",
|
|
13
|
-
"@netlify/functions": "^6.0.
|
|
13
|
+
"@netlify/functions": "^6.0.3",
|
|
14
14
|
"@types/node": "^22.0.0",
|
|
15
15
|
"drizzle-orm": "beta",
|
|
16
16
|
"typescript": "^4.5.5"
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"node_modules/@netlify/functions": {
|
|
45
|
-
"version": "6.0.
|
|
46
|
-
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.
|
|
47
|
-
"integrity": "sha512-
|
|
45
|
+
"version": "6.0.3",
|
|
46
|
+
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
|
|
47
|
+
"integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
|
|
48
48
|
"license": "MIT",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@netlify/types": "3.
|
|
50
|
+
"@netlify/types": "3.3.0"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|
|
53
53
|
"node": ">=22.12.0"
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"node_modules/@netlify/types": {
|
|
66
|
-
"version": "3.
|
|
67
|
-
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.
|
|
68
|
-
"integrity": "sha512-
|
|
66
|
+
"version": "3.3.0",
|
|
67
|
+
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
|
|
68
|
+
"integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg==",
|
|
69
69
|
"license": "MIT",
|
|
70
70
|
"engines": {
|
|
71
71
|
"node": ">=22.12.0"
|
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@netlify/functions": "^6.0.
|
|
12
|
+
"@netlify/functions": "^6.0.3",
|
|
13
13
|
"@types/node": "^22.0.0",
|
|
14
14
|
"typescript": "^4.0.0"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"node_modules/@netlify/functions": {
|
|
18
|
-
"version": "6.0.
|
|
19
|
-
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.
|
|
20
|
-
"integrity": "sha512-
|
|
18
|
+
"version": "6.0.3",
|
|
19
|
+
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
|
|
20
|
+
"integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@netlify/types": "3.
|
|
22
|
+
"@netlify/types": "3.3.0"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=22.12.0"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@netlify/types": {
|
|
29
|
-
"version": "3.
|
|
30
|
-
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.
|
|
31
|
-
"integrity": "sha512-
|
|
29
|
+
"version": "3.3.0",
|
|
30
|
+
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
|
|
31
|
+
"integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg==",
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=22.12.0"
|
|
34
34
|
}
|
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@netlify/functions": {
|
|
64
|
-
"version": "6.0.
|
|
65
|
-
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.
|
|
66
|
-
"integrity": "sha512-
|
|
64
|
+
"version": "6.0.3",
|
|
65
|
+
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-6.0.3.tgz",
|
|
66
|
+
"integrity": "sha512-6KHpsR2L4VQL2gMm3VvG46xBNTga/SbOziluInR0++gkvOuQ/T2pxsxf2Rys5wOikpNY3Zv1IoE52/pWBJjZ9Q==",
|
|
67
67
|
"requires": {
|
|
68
|
-
"@netlify/types": "3.
|
|
68
|
+
"@netlify/types": "3.3.0"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"@netlify/types": {
|
|
72
|
-
"version": "3.
|
|
73
|
-
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.
|
|
74
|
-
"integrity": "sha512-
|
|
72
|
+
"version": "3.3.0",
|
|
73
|
+
"resolved": "https://registry.npmjs.org/@netlify/types/-/types-3.3.0.tgz",
|
|
74
|
+
"integrity": "sha512-u/uh0vOFslJsTcG8nnynAKnTpVIakXbv3mkBG9DTqKZrDEzmfLKDZ3I7evHA3/CYUmNB24pNrzlHj2nIsqEwzg=="
|
|
75
75
|
},
|
|
76
76
|
"@types/node": {
|
|
77
77
|
"version": "22.18.11",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "netlify-cli",
|
|
3
|
-
"version": "27.16.
|
|
3
|
+
"version": "27.16.2",
|
|
4
4
|
"description": "Netlify command line tool",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"@fastify/static": "^10.0.0",
|
|
56
56
|
"@inquirer/prompts": "^8.7.2",
|
|
57
57
|
"@netlify/ai": "^1.0.2",
|
|
58
|
-
"@netlify/api": "^15.1.
|
|
59
|
-
"@netlify/blobs": "^11.1.
|
|
60
|
-
"@netlify/build": "^37.7.
|
|
58
|
+
"@netlify/api": "^15.1.5",
|
|
59
|
+
"@netlify/blobs": "^11.1.7",
|
|
60
|
+
"@netlify/build": "^37.7.2",
|
|
61
61
|
"@netlify/build-info": "^11.3.1",
|
|
62
|
-
"@netlify/config": "^25.5.
|
|
63
|
-
"@netlify/dev": "^5.1.
|
|
62
|
+
"@netlify/config": "^25.5.1",
|
|
63
|
+
"@netlify/dev": "^5.1.12",
|
|
64
64
|
"@netlify/dev-utils": "^6.0.4",
|
|
65
65
|
"@netlify/edge-bundler": "^16.2.0",
|
|
66
66
|
"@netlify/edge-functions": "^4.0.3",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@netlify/local-functions-proxy": "^2.0.3",
|
|
71
71
|
"@netlify/redirect-matcher": "^0.7.0",
|
|
72
72
|
"@netlify/redirect-parser": "^16.1.1",
|
|
73
|
-
"@netlify/server-dev": "^0.1.
|
|
73
|
+
"@netlify/server-dev": "^0.1.5",
|
|
74
74
|
"@netlify/zip-it-and-ship-it": "^16.6.0",
|
|
75
75
|
"@opentelemetry/api": "~1.9.0",
|
|
76
76
|
"@pnpm/tabtab": "^0.5.4",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@netlify/functions": "^6.0.3",
|
|
156
156
|
"@netlify/types": "^3.3.0",
|
|
157
157
|
"@sindresorhus/slugify": "^3.0.0",
|
|
158
|
-
"@tsconfig/node22": "22.0.
|
|
158
|
+
"@tsconfig/node22": "22.0.6",
|
|
159
159
|
"@tsconfig/recommended": "^1.0.13",
|
|
160
160
|
"@types/backoff": "^2.5.5",
|
|
161
161
|
"@types/debug": "^4.1.12",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"memfs": "^4.56.10",
|
|
197
197
|
"nock": "^14.0.10",
|
|
198
198
|
"npm-run-all2": "^8.0.4",
|
|
199
|
-
"oxfmt": "0.
|
|
199
|
+
"oxfmt": "0.74.0",
|
|
200
200
|
"p-timeout": "^7.0.0",
|
|
201
201
|
"picomatch": "^4.0.4",
|
|
202
202
|
"pkg-pr-new": "^0.0.86",
|