File tree Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Expand file tree Collapse file tree 3 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 4545 },
4646 "dependencies" : {
4747 "cwd" : " 0.10.0" ,
48- "debug" : " 4.3.3 " ,
48+ "debug" : " 4.3.4 " ,
4949 "dynamodb-local" : " 0.0.31"
5050 },
5151 "devDependencies" : {
52- "@aws-sdk/client-dynamodb" : " ^3.26 .0" ,
53- "@aws-sdk/lib-dynamodb" : " ^3.26 .0" ,
54- "@aws-sdk/util-dynamodb" : " ^3.26 .0" ,
55- "@shelf/eslint-config" : " 2.7 .0" ,
52+ "@aws-sdk/client-dynamodb" : " ^3.100 .0" ,
53+ "@aws-sdk/lib-dynamodb" : " ^3.100 .0" ,
54+ "@aws-sdk/util-dynamodb" : " ^3.100 .0" ,
55+ "@shelf/eslint-config" : " 2.18 .0" ,
5656 "@shelf/prettier-config" : " 1.0.0" ,
57- "eslint" : " 8.4.1 " ,
58- "husky" : " 7 .0.4 " ,
57+ "eslint" : " 8.16.0 " ,
58+ "husky" : " 8 .0.1 " ,
5959 "jest" : " 28.1.0" ,
60- "lint-staged" : " 12.1.2 " ,
61- "prettier" : " 2.5.1 " ,
62- "typescript" : " 4.5.4 "
60+ "lint-staged" : " 12.4.3 " ,
61+ "prettier" : " 2.6.2 " ,
62+ "typescript" : " 4.7.2 "
6363 },
6464 "peerDependencies" : {
6565 "@aws-sdk/client-dynamodb" : " 3.x.x" ,
Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ module.exports = async function () {
6464 await createTables ( dynamoDB , newTables ) ;
6565} ;
6666
67- async function createTables ( dynamoDB , tables ) {
67+ function createTables ( dynamoDB , tables ) {
6868 return Promise . all ( tables . map ( table => dynamoDB . createTable ( table ) ) ) ;
6969}
7070
71- async function deleteTables ( dynamoDB , tableNames ) {
71+ function deleteTables ( dynamoDB , tableNames ) {
7272 return Promise . all ( tableNames . map ( tableName => dynamoDB . deleteTable ( { TableName : tableName } ) ) ) ;
7373}
Original file line number Diff line number Diff line change 1- /*
2- This is copied from https://github.com/sindresorhus/wait-for-localhost/blob/v3.3.0/index.js
3- With 1 change
4- We rely on status code 400 instead of 200 to ensure local DDB is up and running
5- * /
1+ //
2+ // This is copied from https://github.com/sindresorhus/wait-for-localhost/blob/v3.3.0/index.js
3+ // With 1 change
4+ // We rely on status code 400 instead of 200 to ensure local DDB is up and running
5+ / /
66
77const http = require ( 'http' ) ;
88
9- const waitForLocalhost = port => {
10- return new Promise ( resolve => {
9+ const waitForLocalhost = port =>
10+ new Promise ( resolve => {
1111 const retry = ( ) => setTimeout ( main , 200 ) ;
1212
1313 const main = ( ) => {
@@ -25,6 +25,5 @@ const waitForLocalhost = port => {
2525
2626 main ( ) ;
2727 } ) ;
28- } ;
2928
3029module . exports = waitForLocalhost ;
You can’t perform that action at this time.
0 commit comments