Skip to content

Commit da7f42e

Browse files
renovate[bot]YujohnNattrasskodiakhq[bot]
authored
fix(deps): update netlify packages (#6999)
* fix(deps): update netlify packages * chore: fix ts types using that are using the Netlify API (#7000) * fix(deps): update netlify packages * chore: update ts types imported from Netlify API * chore: run lint --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: YujohnNattrass <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 3a46e8f commit da7f42e

File tree

13 files changed

+88
-86
lines changed

13 files changed

+88
-86
lines changed

package-lock.json

Lines changed: 68 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@
7373
"@bugsnag/js": "7.25.0",
7474
"@fastify/static": "7.0.4",
7575
"@netlify/blobs": "8.1.0",
76-
"@netlify/build": "29.58.2",
76+
"@netlify/build": "29.58.7",
7777
"@netlify/build-info": "8.0.0",
78-
"@netlify/config": "20.21.2",
78+
"@netlify/config": "20.21.6",
7979
"@netlify/edge-bundler": "12.3.2",
8080
"@netlify/edge-functions": "2.11.1",
8181
"@netlify/headers-parser": "7.3.0",
8282
"@netlify/local-functions-proxy": "1.1.1",
8383
"@netlify/redirect-parser": "14.5.0",
84-
"@netlify/zip-it-and-ship-it": "9.42.2",
84+
"@netlify/zip-it-and-ship-it": "9.42.4",
8585
"@octokit/rest": "20.1.1",
8686
"@opentelemetry/api": "1.8.0",
8787
"ansi-escapes": "7.0.0",
@@ -144,7 +144,7 @@
144144
"maxstache": "1.0.7",
145145
"maxstache-stream": "1.0.4",
146146
"multiparty": "4.2.3",
147-
"netlify": "13.2.1",
147+
"netlify": "13.3.2",
148148
"netlify-redirector": "0.5.0",
149149
"node-fetch": "3.3.2",
150150
"ora": "8.1.1",

src/commands/base-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export default class BaseCommand extends Command {
575575
const needsFeatureFlagsToResolveConfig = COMMANDS_WITH_FEATURE_FLAGS.has(actionCommand.name())
576576
if (api.accessToken && !flags.offline && needsFeatureFlagsToResolveConfig && actionCommand.siteId) {
577577
try {
578-
const site = await api.getSite({ siteId: actionCommand.siteId, feature_flags: 'cli' })
578+
const site = await (api as any).getSite({ siteId: actionCommand.siteId, feature_flags: 'cli' })
579579
actionCommand.featureFlags = site.feature_flags
580580
actionCommand.accountId = site.account_id
581581
} catch {

src/commands/logs/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const logsBuild = async (options: OptionValues, command: BaseCommand) =>
6363
})),
6464
})
6565

66-
deploy = deploys.find((dep: any) => dep.id === result)
66+
deploy = deploys.find((dep: any) => dep.id === result) || deploy
6767
}
6868

6969
const { id } = deploy

src/commands/logs/functions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export const logsFunction = async (functionName: string | undefined, options: Op
3838

3939
const levelsToPrint = options.level || LOG_LEVELS_LIST
4040

41-
const { functions = [] } = await client.searchSiteFunctions({ siteId })
41+
// TODO: Update type once the open api spec is updated https://open-api.netlify.com/#tag/function/operation/searchSiteFunctions
42+
const { functions = [] } = (await client.searchSiteFunctions({ siteId: siteId as string })) as any
4243

4344
if (functions.length === 0) {
4445
log(`No functions found for the site`)

src/commands/sites/sites-create-template.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const sitesCreateTemplate = async (repository: string, options: OptionVal
8787
}
8888

8989
try {
90-
const sites: SiteInfo[] = await api.listSites({ name: siteName, filter: 'all' })
90+
const sites = await api.listSites({ name: siteName, filter: 'all' })
9191
const siteFoundByName = sites.find((filteredSite) => filteredSite.name === siteName)
9292
if (siteFoundByName) {
9393
log('A site with that name already exists on your account')
@@ -133,7 +133,8 @@ export const sitesCreateTemplate = async (repository: string, options: OptionVal
133133
}
134134

135135
try {
136-
site = await api.createSiteInTeam({
136+
// TODO: Update type once the open api spec is updated https://open-api.netlify.com/#tag/site/operation/createSiteInTeam
137+
site = await (api as any).createSiteInTeam({
137138
accountSlug,
138139
body: {
139140
repo: {

src/commands/sites/sites-create.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const sitesCreate = async (options: OptionValues, command: BaseCommand) =
6363
}
6464
try {
6565
site = await api.createSiteInTeam({
66-
accountSlug,
66+
accountSlug: accountSlug as string,
6767
body,
6868
})
6969
} catch (error_) {

0 commit comments

Comments
 (0)