Skip to content

Commit

Permalink
Update packages (major) (#6755)
Browse files Browse the repository at this point in the history
* Update packages

* Revert dep updates that don't immediately pass tests; add "newly missing" deps

* npm run fix:node

* Revert `husky` dep update

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Rozenberg <[email protected]>
  • Loading branch information
renovate[bot] and danielrozenberg authored Feb 21, 2024
1 parent 9803724 commit 5411b48
Show file tree
Hide file tree
Showing 11 changed files with 10,463 additions and 9,897 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:18-alpine

# Create app directory
WORKDIR /usr/src/app
Expand Down
14 changes: 8 additions & 6 deletions examples/api/product-browse-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const utils = require('@lib/utils');

// eslint-disable-next-line new-cap
const examples = express.Router();
const products = require(utils.project.absolute(
'/examples/static/samples/json/related_products.json'
));
const products = require(
utils.project.absolute('/examples/static/samples/json/related_products.json')
);
const productNames = products.items.map((item) => {
return item.name;
});
Expand Down Expand Up @@ -102,9 +102,11 @@ function handleProductsAutosuggestRequest(request, response) {

function handleLoadMoreRequest(request, response) {
const moreItemsPageIndex = request.query.moreItemsPageIndex;
const productsFile = require(utils.project.absolute(
`/examples/static/samples/json/more_related_products_page${moreItemsPageIndex}.json`
));
const productsFile = require(
utils.project.absolute(
`/examples/static/samples/json/more_related_products_page${moreItemsPageIndex}.json`
)
);

hasMorePages = Number(moreItemsPageIndex) !== 1;

Expand Down
6 changes: 3 additions & 3 deletions examples/source/e-commerce/Hotel/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
const express = require('express');
const {setMaxAge} = require('@lib/utils/cacheHelpers');
const utils = require('@lib/utils');
const rooms = require(utils.project.absolute(
'/examples/static/samples/json/rooms.json'
));
const rooms = require(
utils.project.absolute('/examples/static/samples/json/rooms.json')
);

// eslint-disable-next-line new-cap
const examples = express.Router();
Expand Down
6 changes: 3 additions & 3 deletions examples/source/interactivity-dynamic-content/SeatMap/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const express = require('express');
const SampleRenderer = require('@examples/lib/SampleRenderer');
const {createRequestContext} = require('@lib/templates/index.js');
const utils = require('@lib/utils');
const seats = require(utils.project.absolute(
'/examples/static/samples/json/seats.json'
));
const seats = require(
utils.project.absolute('/examples/static/samples/json/seats.json')
);

// eslint-disable-next-line new-cap
const router = express.Router();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const express = require('express');
const SampleRenderer = require('@examples/lib/SampleRenderer');
const {createRequestContext} = require('@lib/templates/index.js');
const utils = require('@lib/utils');
const seats = require(utils.project.absolute(
'/examples/static/samples/json/seats.json'
));
const seats = require(
utils.project.absolute('/examples/static/samples/json/seats.json')
);

// eslint-disable-next-line new-cap
const router = express.Router();
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.js/import/importRoadmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ const {
GitHubImporter,
DEFAULT_ORGANISATION,
} = require('@lib/pipeline/gitHubImporter');
const config = require(utils.project.absolute(
'platform/config/imports/roadmap.json'
));
const config = require(
utils.project.absolute('platform/config/imports/roadmap.json')
);
const log = require('@lib/utils/log')('Import Roadmap');

/* Path where the roadmap data gets imported to */
Expand Down
Loading

0 comments on commit 5411b48

Please sign in to comment.