Skip to content

Commit

Permalink
Merge pull request #2365 from alphagov/update-packages
Browse files Browse the repository at this point in the history
Update packages
  • Loading branch information
BenSurgisonGDS authored Oct 26, 2023
2 parents bcc7c55 + 8443ead commit 62a3655
Show file tree
Hide file tree
Showing 48 changed files with 3,690 additions and 2,098 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-heroku.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node v16
- name: Use Node v18
uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: '16'
node-version: '18'
- name: Cache Cypress binary
uses: actions/cache@v3
with:
Expand Down
1 change: 0 additions & 1 deletion __tests__/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const os = require('os')
const path = require('path')
Expand Down
1 change: 0 additions & 1 deletion bin/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { spawn } = require('../../lib/exec')
const fse = require('fs-extra')
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/dev/1-watch-files/watch-config.cypress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/dev/1-watch-files/watch-images.cypress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/dev/1-watch-files/watch-routes.cypress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/dev/1-watch-files/watch-views.cypress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { waitForApplication, restoreStarterFiles } = require('../../utils')
const { setUpPages, setUpBranchingPages } = require('./link-page-utils')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { waitForApplication, restoreStarterFiles } = require('../../utils')
const { setUpPages, setUpData } = require('./link-page-utils')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/dev/3-link-page-tests/link-page-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { waitForApplication, restoreStarterFiles } = require('../../utils')
const { setUpPages } = require('./link-page-utils')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { waitForApplication } = require('../../utils')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/dev/6-layout-tests/default-layout.cypress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { authenticate, restoreStarterFiles } = require('../../utils')

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { authenticate, restoreStarterFiles } = require('../../utils')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/step-by-step-utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

const showHideAllLinkQuery = '.app-step-nav__controls button'
const toggleButtonQuery = (step) => `[data-position="${step}"]`
const showHideLinkQuery = (step) => `[data-position="${step}"]`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/styles/1-watch-styles/watch-styles.cypress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/plugins/plugin-bar/filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { addFilter } = require('govuk-prototype-kit').views

Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/plugins/plugin-bar/scripts/bar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

window.BAR = window.BAR || {}
window.BAR.Modules = window.BAR.Modules || {};

Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/plugins/plugin-baz/filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { addFilter } = require('govuk-prototype-kit').views

Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/plugins/plugin-baz/scripts/baz.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

window.BAZ = window.BAZ || {}
window.BAZ.Modules = window.BAZ.Modules || {};

Expand Down
1 change: 0 additions & 1 deletion cypress/fixtures/plugins/plugin-foo/scripts/foo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

window.FOO = window.FOO || {}
window.FOO.Modules = window.FOO.Modules || {};

Expand Down
1 change: 0 additions & 1 deletion cypress/scripts/run-starter-prototype.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const os = require('os')
const path = require('path')
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const filtersApi = require('./lib/filters/api').external
const functionsApi = require('./lib/functions/api').external
Expand Down
1 change: 0 additions & 1 deletion lib/build.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// node dependencies
const path = require('path')

Expand Down
1 change: 0 additions & 1 deletion lib/exec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// npm dependencies
const { spawn: crossSpawn } = require('cross-spawn')

Expand Down
1 change: 0 additions & 1 deletion lib/filters/api.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

let environment
const whenEnvIsAvailable = []

Expand Down
1 change: 0 additions & 1 deletion lib/filters/core-filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// local dependencies
const { addFilter, getFilter } = require('../../').views

Expand Down
1 change: 0 additions & 1 deletion lib/routes/api.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// npm dependencies
const express = require('express')

Expand Down
1 change: 0 additions & 1 deletion lib/usage-data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const fs = require('fs')
const os = require('os')
Expand Down
1 change: 0 additions & 1 deletion lib/utils/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const crypto = require('crypto')
const fs = require('fs')
Expand Down
1 change: 0 additions & 1 deletion listen-on-port.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// npm dependencies
const { runErrorServer } = require('./lib/errorServer')
const { verboseLog } = require('./lib/utils/verboseLogger')
Expand Down
1 change: 0 additions & 1 deletion migrator/logger.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const fsp = require('fs').promises
const os = require('os')
Expand Down
4 changes: 1 addition & 3 deletions migrator/migration-steps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// core dependencies
const path = require('path')

Expand Down Expand Up @@ -228,7 +227,7 @@ async function updateLayoutIfUnchanged (filePath, starterFilePath) {
}

async function updateIfUnchanged (filePaths, additionalStep) {
const results = await Promise.all(filePaths.map(async filePath => {
return Promise.all(filePaths.map(async filePath => {
const matchFound = await matchAgainstOldVersions(filePath)

const reporter = await addReporter(`Overwrite ${filePath}`)
Expand All @@ -251,7 +250,6 @@ async function updateIfUnchanged (filePaths, additionalStep) {
await reporter(result)
return result
}))
return results
}

async function updateUnbrandedLayouts (dir) {
Expand Down
1 change: 0 additions & 1 deletion migrator/reporter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

// npm dependencies
const c = require('ansi-colors')

Expand Down
Loading

0 comments on commit 62a3655

Please sign in to comment.