@newskit-render/core 4.13.5-alpha.0 → 4.13.5-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,7 +31,7 @@ executors:
31
31
 
32
32
  node:
33
33
  docker:
34
- - image: cimg/node:16.14.0-browsers
34
+ - image: cimg/node:18.17.0-browsers
35
35
  auth:
36
36
  username: ${DOCKER_USERNAME}
37
37
  password: ${DOCKER_PASSWORD}
@@ -516,9 +516,9 @@ jobs:
516
516
  - run:
517
517
  name: Install aws cli
518
518
  command: |
519
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
519
+ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 4EB27DB2A3B88B8B
520
520
  sudo apt-get update
521
- sudo apt-get install python python3-pip
521
+ sudo apt-get install python-is-python3 python3-pip
522
522
  sudo pip install awscli
523
523
  - aws_assume_role_file
524
524
  - run:
@@ -533,7 +533,7 @@ jobs:
533
533
  fi
534
534
  DOCKER_REGISTRY_URL="$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com"
535
535
 
536
- npm prune --production
536
+ <% PACKAGE_DOCKER_BUILD >
537
537
 
538
538
  echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
539
539
  docker build -t << parameters.project >> .
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/core",
3
- "version": "4.13.5-alpha.0",
3
+ "version": "4.13.5-alpha.2",
4
4
  "description": "Newskit Render - Core package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
package/pages/_error.tsx CHANGED
@@ -58,13 +58,7 @@ function CustomError({ statusCode, asPath }) {
58
58
  }
59
59
 
60
60
  CustomError.getInitialProps = ({ res, err, asPath }) => {
61
- let statusCode = 404
62
-
63
- if (res) {
64
- statusCode = res.statusCode
65
- } else if (err) {
66
- statusCode = err.statusCode
67
- }
61
+ const statusCode = res ? res.statusCode : err ? err.statusCode : 404
68
62
 
69
63
  // Logging the error for being captured by New Relic
70
64
  console.error(