Skip to content

Commit

Permalink
fix: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Aug 28, 2019
1 parent 42a7e12 commit 21a9cc9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -50,14 +50,14 @@
"babel-plugin-macros": "^2.6.1",
"babel-plugin-transform-export-default-name": "^2.0.4",
"coveralls": "^3.0.6",
"eslint": "^6.2.1",
"eslint-config-canonical": "^17.3.4",
"flow-bin": "^0.105.2",
"eslint": "^6.2.2",
"eslint-config-canonical": "^17.4.0",
"flow-bin": "^0.106.2",
"flow-copy-source": "^2.0.8",
"gitdown": "^3.1.1",
"husky": "^3.0.4",
"nyc": "^14.1.1",
"semantic-release": "^15.13.21",
"semantic-release": "^15.13.24",
"sinon": "^7.4.1"
},
"engines": {
Expand Down
6 changes: 5 additions & 1 deletion src/types.js
Expand Up @@ -27,7 +27,7 @@ export type TypeNameIdentifierType =
'text' |
'timestamptz';

export type SerializableValueType = string | number | boolean | null | {+[key: string]: SerializableValueType} | $ReadOnlyArray<SerializableValueType>;
export type SerializableValueType = string | number | boolean | null | {+[key: string]: SerializableValueType, ...} | $ReadOnlyArray<SerializableValueType>;

export opaque type QueryIdType = string;

Expand Down Expand Up @@ -175,12 +175,14 @@ export type DatabaseConnectionType =
$Shape<{
...$Exact<DatabasePoolConnectionType>,
...$Exact<DatabasePoolType>,
...,
}>;

type QueryResultRowColumnType = string | number | null;

export type QueryResultRowType = {
+[key: string]: QueryResultRowColumnType,
...,
};

export type QueryType = {|
Expand Down Expand Up @@ -254,6 +256,7 @@ export type PositionalParameterValuesType = $ReadOnlyArray<ValueExpressionType>;

export type NamedParameterValuesType = {
[key: string]: ValueExpressionType,
...,
};

export type IdentifierListMemberType = $ReadOnlyArray<string> |
Expand Down Expand Up @@ -364,6 +367,7 @@ export type ValueExpressionType =

export type NamedAssignmentType = {
+[key: string]: ValueExpressionType,
...,
};

export type TaggedTemplateLiteralInvocationType = {|
Expand Down
2 changes: 1 addition & 1 deletion test/slonik/connectionMethods/maybeOneFirst.js
Expand Up @@ -22,7 +22,7 @@ test('returns the first row', async (t) => {

const result = await pool.maybeOneFirst(sql`SELECT 1`);

t.deepEqual(result, 1);
t.is(result, 1);
});

test('returns null if no results', async (t) => {
Expand Down
2 changes: 1 addition & 1 deletion test/slonik/connectionMethods/oneFirst.js
Expand Up @@ -24,7 +24,7 @@ test('returns value of the first column from the first row', async (t) => {

const result = await pool.oneFirst(sql`SELECT 1`);

t.deepEqual(result, 1);
t.is(result, 1);
});

test('throws an error if no rows are returned', async (t) => {
Expand Down

0 comments on commit 21a9cc9

Please sign in to comment.