Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 11, 2019
1 parent 2f93c3f commit 3b9e4d7
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 28 deletions.
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@
"es6-error": "^4.1.1",
"lodash": "^4.17.15",
"pluralize": "^8.0.0",
"roarr": "^2.14.1",
"slonik": "^19.0.1",
"yargs": "^14.0.0"
"roarr": "^2.14.4",
"slonik": "^21.4.0",
"yargs": "^14.2.0"
},
"description": "A scaffolding tool for projects using DataLoader, Flow and PostgreSQL.",
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/node": "^7.6.1",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/preset-env": "^7.6.0",
"@babel/register": "^7.6.0",
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.2",
"@babel/node": "^7.7.0",
"@babel/plugin-transform-flow-strip-types": "^7.6.3",
"@babel/preset-env": "^7.7.1",
"@babel/register": "^7.7.0",
"ava": "^2.4.0",
"babel-plugin-istanbul": "^5.2.0",
"babel-plugin-macros": "^2.6.1",
"coveralls": "^3.0.6",
"eslint": "^6.4.0",
"eslint-config-canonical": "^17.7.0",
"flow-bin": "^0.108.0",
"coveralls": "^3.0.7",
"eslint": "^6.6.0",
"eslint-config-canonical": "^17.8.0",
"flow-bin": "^0.111.3",
"flow-copy-source": "^2.0.8",
"husky": "^3.0.5",
"husky": "^3.0.9",
"inline-loops.macro": "^1.2.2",
"nyc": "^14.1.1",
"semantic-release": "^15.13.24"
"semantic-release": "^15.13.30"
},
"engines": {
"node": ">=8"
Expand Down
2 changes: 1 addition & 1 deletion src/routines/getByIds.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default async (
ids: $ReadOnlyArray<string | number>,
idName: string = 'id',
identifiers: string,
resultIsArray: boolean
resultIsArray: boolean,
): Promise<$ReadOnlyArray<any>> => {
let rows = [];

Expand Down
2 changes: 1 addition & 1 deletion src/routines/getByIdsUsingJoiningTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async (
joiningKeyName: string,
lookupKeyName: string,
identifiers: string,
ids: $ReadOnlyArray<string | number>
ids: $ReadOnlyArray<string | number>,
): Promise<$ReadOnlyArray<any>> => {
let rows = [];

Expand Down
8 changes: 4 additions & 4 deletions src/utilities/generateDataLoaderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const createLoaderByIdsUsingJoiningTableDeclaration = (
targetResourceTableName: string,
joiningKeyName: string,
lookupKeyName: string,
columnSelector: string
columnSelector: string,
) => {
return `const ${loaderName} = new DataLoader((ids) => {
return getByIdsUsingJoiningTable(connection, '${joiningTableName}', '${targetResourceTableName}', '${joiningKeyName}', '${lookupKeyName}', '${columnSelector}', ids);
Expand Down Expand Up @@ -99,7 +99,7 @@ export default (
loaderName,
dataTypeMap[tableColumn.dataType] ? dataTypeMap[tableColumn.dataType] : tableColumn.dataType,
tableColumn.mappedTableName,
true
true,
);

loaderTypes.push(loaderType);
Expand Down Expand Up @@ -137,7 +137,7 @@ export default (
loaderName,
dataTypeMap[indexColumn.dataType] ? dataTypeMap[indexColumn.dataType] : indexColumn.dataType,
indexColumn.mappedTableName,
false
false,
);

loaderTypes.push(loaderType);
Expand Down Expand Up @@ -223,7 +223,7 @@ export default (
loaderName,
dataTypeMap[keyColumn.dataType] ? dataTypeMap[keyColumn.dataType] : keyColumn.dataType,
relation.resource,
true
true,
);

loaderTypes.push(loaderType);
Expand Down
8 changes: 4 additions & 4 deletions test/postloader/utilities/generateDataLoaderFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ test('creates a loader for unique indexes', (t) => {
tableName: 'foo',
},
],
{}
{},
));

const expected = trim(`
Expand Down Expand Up @@ -92,7 +92,7 @@ test('creates a loader for unique indexes (uses mappedTableName when available)'
tableName: 'foo',
},
],
{}
{},
));

const expected = trim(`
Expand Down Expand Up @@ -147,7 +147,7 @@ test('creates a loader for _id columns', (t) => {
},
],
[],
{}
{},
));

const expected = trim(`
Expand Down Expand Up @@ -229,7 +229,7 @@ test('creates a loader for a join table', (t) => {
},
],
[],
{}
{},
));

const expected = trim(`
Expand Down
6 changes: 3 additions & 3 deletions test/postloader/utilities/isJoiningTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test('correctly recognizes a joining table (genre_movie)', (t) => {
[
createColumnWithName('genre_id'),
createColumnWithName('movie_id'),
]
],
);

t.true(tableIsJoining);
Expand All @@ -24,7 +24,7 @@ test('correctly recognizes a joining table (event_event_attribute)', (t) => {
[
createColumnWithName('event_id'),
createColumnWithName('event_attribute_id'),
]
],
);

t.true(tableIsJoining);
Expand All @@ -36,7 +36,7 @@ test('correctly recognizes not a joining table', (t) => {
[
createColumnWithName('id'),
createColumnWithName('name'),
]
],
);

t.true(!tableIsJoining);
Expand Down

0 comments on commit 3b9e4d7

Please sign in to comment.