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

Update NodeJS for Lambdas #113

Merged
merged 2 commits into from
Aug 10, 2023
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. As our fork has diverged from AWS SWB mainline branch, we are noting the SWB version and the lab version together, as <swb version>\_<lab version>, starting from SWB mainline, 5.0.0.

## [5.0.0_1.1.1](https://github.com/hms-dbmi/service-workbench-on-aws/compare/v5.0.0_1.1.0...v5.0.0_1.1.1) (08/10/2023)
- Cherry pick [a0c7eeed34eea02ec56f49411cf499d1c59f0d3a](https://github.com/awslabs/service-workbench-on-aws/commit/a0c7eeed34eea02ec56f49411cf499d1c59f0d3a) to upgrade nodejs version and dependencies for lambda runtimes.
## [5.0.0_1.1.0](https://github.com/hms-dbmi/service-workbench-on-aws/compare/v5.0.0_1.0.3...v5.0.0_1.1.0) (07/21/2023)
- Add S3 GetObject and List permission to access embed data for workspaces.
- Add logos to workspace types on user creation step so it's easier to visually find the types they want.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@
"@aws-ee/base-api-services": "workspace:*",
"@aws-ee/base-services": "workspace:*",
"@aws-ee/base-services-container": "workspace:*",
"aws-sdk": "^2.1000.0",
"generate-password": "^1.5.0",
"aws-sdk": "^2.1228.0",
"generate-password": "^1.7.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"aws-sdk-mock": "^5.1.0",
"aws-sdk-mock": "^5.7.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov --disable=gcov",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
"@aws-ee/base-api-services": "workspace:*",
"@aws-ee/base-services": "workspace:*",
"@aws-ee/base-services-container": "workspace:*",
"aws-sdk": "^2.1000.0",
"generate-password": "^1.5.0",
"aws-sdk": "^2.1228.0",
"generate-password": "^1.7.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov --disable=gcov",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"test": "NODE_ENV=test jest --config jest.config.js --passWithNoTests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
"uuid": "^3.4.0"
},
"devDependencies": {
"aws-sdk-mock": "^5.1.0",
"aws-sdk-mock": "^5.7.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov --disable=gcov",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"react/jsx-props-no-spreading": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-filename-extension": 0,
"react/jsx-pascal-case": 0,
"react/destructuring-assignment": 0,
"react/sort-comp": 0,
"react/prop-types": 0,
Expand Down
80 changes: 40 additions & 40 deletions addons/addon-base-raas-ui/packages/base-raas-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@
"author": "Amazon Web Services",
"license": "Apache-2.0",
"dependencies": {
"@auth0/auth0-spa-js": "^1.2.3",
"@auth0/auth0-spa-js": "^1.22.4",
"@aws-ee/base-ui": "workspace:*",
"@aws-ee/base-services": "workspace:*",
"@aws-ee/key-pair-mgmt-ui": "workspace:*",
"aws-sdk": "^2.1000.0",
"aws-sdk": "^2.1228.0",
"chart.js": "^2.9.4",
"classnames": "^2.2.6",
"classnames": "^2.3.2",
"crypto-browserify": "^3.12.0",
"csvtojson": "^2.0.10",
"is-cidr": "^3.1.0",
"is-cidr": "^3.1.1",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.21",
"mobx": "^5.15.4",
"mobx-react": "^6.1.7",
"mobx-react-form": "^2.0.8",
"mobx-state-tree": "^3.15.0",
"mobx": "^5.15.7",
"mobx-react": "^6.3.1",
"mobx-react-form": "^2.0.9",
"mobx-state-tree": "^3.17.3",
"numeral": "^2.0.6",
"pretty-bytes": "^5.3.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-avatar": "^3.9.0",
"react-chartjs-2": "^2.9.0",
"react-copy-to-clipboard": "^5.0.2",
"react-dom": "^16.12.0",
"pretty-bytes": "^5.6.0",
"prop-types": "^15.8.1",
"react": "^16.14.0",
"react-avatar": "^3.10.0",
"react-chartjs-2": "^2.11.2",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^16.14.0",
"react-dotdotdot": "^1.3.1",
"react-dropzone": "^10.1.9",
"react-router-dom": "^5.1.2",
"react-select": "^3.0.8",
"react-dropzone": "^10.2.2",
"react-router-dom": "^5.3.4",
"react-select": "^3.2.0",
"react-sparklines": "^1.7.0",
"react-syntax-highlighter": "^15.4.4",
"react-syntax-highlighter": "^15.5.0",
"react-table": "^6.11.5",
"react-timeago": "^4.4.0",
"request": "^2.34",
Expand All @@ -43,41 +43,41 @@
"toastr": "^2.1.4",
"typeface-lato": "0.0.75",
"uuid": "^3.4.0",
"validatorjs": "^3.18.1"
"validatorjs": "^3.22.1"
},
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.6",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-react-jsx": "^7.8.3",
"@babel/preset-env": "^7.8.6",
"@babel/preset-react": "^7.8.3",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.19.0",
"@babel/preset-env": "^7.19.3",
"@babel/preset-react": "^7.18.6",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.2.5",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.18.3",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^1.7.0",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
"prop-types": "^15.7.2",
"serverless": "^1.63.0",
"serverless-deployment-bucket": "^1.1.0",
"typescript": "^3.7.5",
"serverless": "^3.22.0",
"serverless-deployment-bucket": "^1.6.0",
"typescript": "^3.9.10",
"webpack": "4.41.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"regenerator-runtime": "^0.13.5"
"enzyme-adapter-react-16": "^1.15.6",
"regenerator-runtime": "^0.13.9"
},
"scripts": {
"coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov --disable=gcov",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
"author": "Amazon Web Services",
"license": "Apache-2.0",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.19.3",
"babel-plugin-inline-import": "^3.0.0",
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"babel": "babel src/ --out-dir dist/ --source-maps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov --disable=gcov",
Expand Down
12 changes: 6 additions & 6 deletions addons/addon-base-raas/packages/base-raas-rest-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.10.0",
"eslint-import-resolver-node": "^0.3.3",
"eslint-plugin-import": "^2.20.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^6.15.0",
"eslint-import-resolver-node": "^0.3.6",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^22.21.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^3.1.0",
"jest": "^24.9.0",
"jest-junit": "^10.0.0",
"prettier": "^1.19.1",
"pretty-quick": "^1.11.1",
"source-map-support": "^0.5.16"
"source-map-support": "^0.5.21"
},
"scripts": {
"coverage": "NODE_ENV=test jest --config jest.config.js --passWithNoTests --verbose --collectCoverage --watchAll=false --coverage && codecov --disable=gcov",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const { runAndCatch } = require('@aws-ee/base-services/lib/helpers/utils');
const { allowIfActive, allowIfAdmin } = require('@aws-ee/base-services/lib/authorization/authorization-utils');

const { isExternalGuest, isExternalResearcher, isInternalGuest } = require('../helpers/is-role');
const createSchema = require('../schema/create-account');
const updateSchema = require('../schema/update-account');
const createSchema = require('../schema/create-account.json');
const updateSchema = require('../schema/update-account.json');

const settingKeys = {
tableName: 'dbAccounts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const IndexServiceMock = require('../../indexes/indexes-service');
jest.mock('../../project/project-service');
const ProjectServiceMock = require('../../project/project-service');

jest.mock('../../../../../../addon-base-post-deployment/packages/base-post-deployment/lib/deployment-store-service.js');
const DeploymentStoreServiceMock = require('../../../../../../addon-base-post-deployment/packages/base-post-deployment/lib/deployment-store-service.js');
jest.mock('../../../../../../addon-base-post-deployment/packages/base-post-deployment/lib/deployment-store-service');
const DeploymentStoreServiceMock = require('../../../../../../addon-base-post-deployment/packages/base-post-deployment/lib/deployment-store-service');

jest.mock('../../aws-accounts/aws-accounts-service');
const AwsAccountsServiceMock = require('../../aws-accounts/aws-accounts-service');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const { runAndCatch } = require('@aws-ee/base-services/lib/helpers/utils');
const { allowIfActive, allowIfAdmin } = require('@aws-ee/base-services/lib/authorization/authorization-utils');

const { isExternalGuest, isExternalResearcher, isInternalGuest, isInternalResearcher } = require('../helpers/is-role');
const createSchema = require('../schema/create-aws-accounts');
const ensureExternalSchema = require('../schema/ensure-external-aws-accounts');
const updateSchema = require('../schema/update-aws-accounts');
const createSchema = require('../schema/create-aws-accounts.json');
const ensureExternalSchema = require('../schema/ensure-external-aws-accounts.json');
const updateSchema = require('../schema/update-aws-accounts.json');

const settingKeys = {
tableName: 'dbAwsAccounts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const moment = require('moment');
const Service = require('@aws-ee/base-services-container/lib/service');
const { runAndCatch } = require('@aws-ee/base-services/lib/helpers/utils');
const { isAdmin, isActive } = require('@aws-ee/base-services/lib/authorization/authorization-utils');
const createSchema = require('../schema/create-budget');
const createSchema = require('../schema/create-budget.json');

class BudgetsService extends Service {
constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ const SettingsServiceMock = require('@aws-ee/base-services/lib/settings/env-sett
// jest.mock('@aws-ee/base-services/lib/json-schema-validation-service');
const JsonSchemaValidationServiceMock = require('@aws-ee/base-services/lib/json-schema-validation-service');

jest.mock('../compute-price-service.js');
const ComputePriceService = require('../compute-price-service.js');
jest.mock('../compute-price-service');
const ComputePriceService = require('../compute-price-service');
const ComputePlatformService = require('../compute-platform-service');

describe('ComputePlatformService', () => {
Expand Down
Loading
Loading