Skip to content

Commit

Permalink
fix(deps): update dependency p-wait-for to v5 (#5632)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency p-wait-for to v5

* chore: remove usage of pWaitFor and fix usage

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Tschinder <231804+danez@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 14, 2023
1 parent 2e1405c commit d50374a
Show file tree
Hide file tree
Showing 8 changed files with 103 additions and 195 deletions.
43 changes: 20 additions & 23 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"ora": "^6.0.0",
"p-filter": "^3.0.0",
"p-map": "^5.0.0",
"p-wait-for": "^3.0.0",
"p-wait-for": "^5.0.0",
"parallel-transform": "^1.2.0",
"parse-github-url": "^1.0.2",
"parse-gitignore": "^2.0.0",
Expand Down
6 changes: 4 additions & 2 deletions src/commands/watch/watch.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ const waitForBuildFinish = async function (api, siteId, spinner) {

await pWaitFor(waitForBuildToFinish, {
interval: BUILD_FINISH_INTERVAL,
timeout: BUILD_FINISH_TIMEOUT,
message: 'Timeout while waiting for deploy to finish',
timeout: {
milliseconds: BUILD_FINISH_TIMEOUT,
message: 'Timeout while waiting for deploy to finish',
},
})

// return only when build done or timeout happens
Expand Down
13 changes: 9 additions & 4 deletions src/utils/deploy/util.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-check
import { sep } from 'path'

import pWaitFor from 'p-wait-for'
Expand Down Expand Up @@ -43,8 +44,10 @@ export const waitForDiff = async (api, deployId, siteId, timeout) => {

await pWaitFor(loadDeploy, {
interval: DEPLOY_POLL,
timeout,
message: 'Timeout while waiting for deploy',
timeout: {
milliseconds: timeout,
message: 'Timeout while waiting for deploy',
},
})

return deploy
Expand Down Expand Up @@ -80,8 +83,10 @@ export const waitForDeploy = async (api, deployId, siteId, timeout) => {

await pWaitFor(loadDeploy, {
interval: DEPLOY_POLL,
timeout,
message: 'Timeout while waiting for deploy',
timeout: {
milliseconds: timeout,
message: 'Timeout while waiting for deploy',
},
})

return deploy
Expand Down
2 changes: 1 addition & 1 deletion src/utils/live-tunnel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const startLiveTunnel = async ({ localPort, netlifyApiToken, siteId }) =>
return data.state === 'online'
}

await connectTunnel({ session, netlifyApiToken, localPort })
connectTunnel({ session, netlifyApiToken, localPort })

// Waiting for the live session to have a state of `online`.
await pWaitFor(isLiveTunnelReady, {
Expand Down
Loading

0 comments on commit d50374a

Please sign in to comment.