Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update netlify packages #6999

Merged
merged 3 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 68 additions & 68 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@
"@bugsnag/js": "7.25.0",
"@fastify/static": "7.0.4",
"@netlify/blobs": "8.1.0",
"@netlify/build": "29.58.2",
"@netlify/build": "29.58.7",
"@netlify/build-info": "8.0.0",
"@netlify/config": "20.21.2",
"@netlify/config": "20.21.6",
"@netlify/edge-bundler": "12.3.2",
"@netlify/edge-functions": "2.11.1",
"@netlify/headers-parser": "7.3.0",
"@netlify/local-functions-proxy": "1.1.1",
"@netlify/redirect-parser": "14.5.0",
"@netlify/zip-it-and-ship-it": "9.42.2",
"@netlify/zip-it-and-ship-it": "9.42.4",
"@octokit/rest": "20.1.1",
"@opentelemetry/api": "1.8.0",
"ansi-escapes": "7.0.0",
Expand Down Expand Up @@ -144,7 +144,7 @@
"maxstache": "1.0.7",
"maxstache-stream": "1.0.4",
"multiparty": "4.2.3",
"netlify": "13.2.1",
"netlify": "13.3.2",
"netlify-redirector": "0.5.0",
"node-fetch": "3.3.2",
"ora": "8.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/base-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export default class BaseCommand extends Command {
const needsFeatureFlagsToResolveConfig = COMMANDS_WITH_FEATURE_FLAGS.has(actionCommand.name())
if (api.accessToken && !flags.offline && needsFeatureFlagsToResolveConfig && actionCommand.siteId) {
try {
const site = await api.getSite({ siteId: actionCommand.siteId, feature_flags: 'cli' })
const site = await (api as any).getSite({ siteId: actionCommand.siteId, feature_flags: 'cli' })
actionCommand.featureFlags = site.feature_flags
actionCommand.accountId = site.account_id
} catch {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/logs/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const logsBuild = async (options: OptionValues, command: BaseCommand) =>
})),
})

deploy = deploys.find((dep: any) => dep.id === result)
deploy = deploys.find((dep: any) => dep.id === result) || deploy
}

const { id } = deploy
Expand Down
3 changes: 2 additions & 1 deletion src/commands/logs/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export const logsFunction = async (functionName: string | undefined, options: Op

const levelsToPrint = options.level || LOG_LEVELS_LIST

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

if (functions.length === 0) {
log(`No functions found for the site`)
Expand Down
5 changes: 3 additions & 2 deletions src/commands/sites/sites-create-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const sitesCreateTemplate = async (repository: string, options: OptionVal
}

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

try {
site = await api.createSiteInTeam({
// TODO: Update type once the open api spec is updated https://open-api.netlify.com/#tag/site/operation/createSiteInTeam
site = await (api as any).createSiteInTeam({
accountSlug,
body: {
repo: {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/sites/sites-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const sitesCreate = async (options: OptionValues, command: BaseCommand) =
}
try {
site = await api.createSiteInTeam({
accountSlug,
accountSlug: accountSlug as string,
body,
})
} catch (error_) {
Expand Down
Loading
Loading