Skip to content

Commit

Permalink
feat(deps): upgrade postgraphile-core (#935)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Dec 2, 2018
1 parent 102b786 commit 676b352
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"pg": ">=6.1.0 <8",
"pg-connection-string": "^0.1.3",
"pg-sql2": "^2.2.1",
"postgraphile-core": "4.1.0-rc.2",
"postgraphile-core": "4.1.0-rc.3",
"tslib": "^1.5.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Object {
},
},
"c": Object {
"cursor": "WyJpZF9hc2MiLFs5MDAwLDkwMDBdXQ==",
"cursor": "WyJpZF9hc2MiLFs5MDAwXV0=",
"node": Object {
"name": "John Smith Jr.",
"nodeId": "WyJwZW9wbGUiLDkwMDBd",
Expand All @@ -126,7 +126,7 @@ Object {
},
},
"e": Object {
"cursor": "WyJlbWFpbF9hc2MiLFsiam9obm55LmJveS5zbWl0aEBlbWFpbC5jb20iLDkwMDBdXQ==",
"cursor": "WyJlbWFpbF9hc2MiLFsiam9obm55LmJveS5zbWl0aEBlbWFpbC5jb20iXV0=",
"node": Object {
"name": "John Smith Jr.",
"nodeId": "WyJwZW9wbGUiLDkwMDBd",
Expand Down Expand Up @@ -173,7 +173,7 @@ Object {
},
},
"c": Object {
"cursor": "WyJpZF9hc2MiLFsyMCwyMF1d",
"cursor": "WyJpZF9hc2MiLFsyMF1d",
"node": Object {
"name": "Best Pal",
"nodeId": "WyJwZW9wbGUiLDIwXQ==",
Expand All @@ -188,7 +188,7 @@ Object {
},
},
"e": Object {
"cursor": "WyJlbWFpbF9hc2MiLFsiYmVzdC5wYWxAZW1haWwuY29tIiwyMF1d",
"cursor": "WyJlbWFpbF9hc2MiLFsiYmVzdC5wYWxAZW1haWwuY29tIl1d",
"node": Object {
"name": "Best Pal",
"nodeId": "WyJwZW9wbGUiLDIwXQ==",
Expand Down Expand Up @@ -279,7 +279,7 @@ Object {
},
},
"c": Object {
"cursor": "WyJpZF9hc2MiLFsxOTk4LDE5OThdXQ==",
"cursor": "WyJpZF9hc2MiLFsxOTk4XV0=",
"node": Object {
"name": "Budd Deey",
"nodeId": "WyJwZW9wbGUiLDE5OThd",
Expand All @@ -294,7 +294,7 @@ Object {
},
},
"e": Object {
"cursor": "WyJlbWFpbF9hc2MiLFsiYnVkZC5kZWV5LnRoZS5zZWNvbmRAZW1haWwuY29tIiwxOTk4XV0=",
"cursor": "WyJlbWFpbF9hc2MiLFsiYnVkZC5kZWV5LnRoZS5zZWNvbmRAZW1haWwuY29tIl1d",
"node": Object {
"name": "Budd Deey",
"nodeId": "WyJwZW9wbGUiLDE5OThd",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3816,7 +3816,7 @@ type IntSetQueryConnection {
edges: [IntSetQueryEdge!]!
\"\"\"A list of \`Int\` objects.\"\"\"
nodes: [Int!]!
nodes: [Int]!
}
\"\"\"A \`Int\` edge in the connection.\"\"\"
Expand Down
3 changes: 2 additions & 1 deletion src/postgraphile/withPostGraphileContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import * as sql from 'pg-sql2';
import { $$pgClient } from '../postgres/inventory/pgClientFromContext';
import { pluginHookFromOptions } from './pluginHook';
import { mixed } from '../interfaces';
import { formatSQLForDebugging } from 'postgraphile-core';

const undefinedIfEmpty = (o?: Array<string> | string): undefined | Array<string> | string =>
o && o.length ? o : undefined;
Expand Down Expand Up @@ -370,7 +371,7 @@ function debugPgClient(pgClient: PoolClient): PoolClient {
pgClient.query = function(...args: Array<any>): any {
// Debug just the query text. We don’t want to debug variables because
// there may be passwords in there.
debugPg(args[0] && args[0].text ? args[0].text : args[0]);
debugPg('%s', formatSQLForDebugging(args[0] && args[0].text ? args[0].text : args[0]));

// tslint:disable-next-line no-invalid-this
const promiseResult = pgClient[$$pgClientOrigQuery].apply(this, args);
Expand Down
40 changes: 20 additions & 20 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3299,30 +3299,30 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"
integrity sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=

graphile-build-pg@4.1.0-rc.2:
version "4.1.0-rc.2"
resolved "https://registry.yarnpkg.com/graphile-build-pg/-/graphile-build-pg-4.1.0-rc.2.tgz#b059e8f22bcb96bd04820c217cb6dc463fa1fc27"
integrity sha512-n3d1rFncSVqNZSzWOhog21/E67M2o8T0ppVQBNgvCOec+byKy++6nBKUoxzhVyxNyzAYwY7Y9oySXgiKnajyoA==
graphile-build-pg@4.1.0-rc.3:
version "4.1.0-rc.3"
resolved "https://registry.yarnpkg.com/graphile-build-pg/-/graphile-build-pg-4.1.0-rc.3.tgz#6ccaeba0703d4c9c0cebd516ddfa201867b7929f"
integrity sha512-O/Kk3PkB1JbscmBgy1z8Cj72wOK/RFEjWg5jZlgpqGCPOr+KahQDiNgkAvRlvF1dU94WwprhLlNO53mgMQ1/SA==
dependencies:
chalk "^2.1.0"
debug ">=2 <3"
graphile-build "4.1.0-rc.2"
graphile-build "4.1.0-rc.3"
graphql-iso-date "^3.6.0"
jsonwebtoken "^8.1.1"
lodash ">=4 <5"
lru-cache ">=4 <5"
pg-sql2 "2.2.1"
postgres-interval "^1.1.1"

graphile-build@4.1.0-rc.2:
version "4.1.0-rc.2"
resolved "https://registry.yarnpkg.com/graphile-build/-/graphile-build-4.1.0-rc.2.tgz#71749419a92d2126eff1bddb72f1b6169494fed8"
integrity sha512-pNRvAWerwDmRGJP7alyevUum/K9fBkJcH3oQb9gEo0R0TVFEId5T4Ccfq5wc0vogazEvJ7oSyNN4PIryPDHbbw==
graphile-build@4.1.0-rc.3:
version "4.1.0-rc.3"
resolved "https://registry.yarnpkg.com/graphile-build/-/graphile-build-4.1.0-rc.3.tgz#d470c6967725ff16bf12c806c413b913e9deeeb4"
integrity sha512-Bg3TrxD8SycfoHhr94xHqpRmhgRqLDr52FBP6ibf9JaeOb5L5vGnHVop4AVzpFMQOMCEdZ3t0Pg/GvCCkxzxeg==
dependencies:
"@types/graphql" "^14.0.3"
chalk "^2.1.0"
debug ">=2 <3"
graphql-parse-resolve-info "4.1.0-rc.2"
graphql-parse-resolve-info "4.1.0-rc.3"
lodash ">=4 <5"
lru-cache ">=4 <5"
pluralize "^7.0.0"
Expand All @@ -3333,10 +3333,10 @@ graphql-iso-date@^3.6.0:
resolved "https://registry.yarnpkg.com/graphql-iso-date/-/graphql-iso-date-3.6.1.tgz#bd2d0dc886e0f954cbbbc496bbf1d480b57ffa96"
integrity sha512-AwFGIuYMJQXOEAgRlJlFL4H1ncFM8n8XmoVDTNypNOZyQ8LFDG2ppMFlsS862BSTCDcSUfHp8PD3/uJhv7t59Q==

graphql-parse-resolve-info@4.1.0-rc.2:
version "4.1.0-rc.2"
resolved "https://registry.yarnpkg.com/graphql-parse-resolve-info/-/graphql-parse-resolve-info-4.1.0-rc.2.tgz#e93ef370f9c7b5caa1712ea3dfa3090944887383"
integrity sha512-t7HmxMfCddgaBONr/Ss8jtaZd+4nkX5LkEkVfTZR59XeR03XFUkXBvz/4gMm/luN1z5Rxv6FRsIu1JKOK6Fu4g==
graphql-parse-resolve-info@4.1.0-rc.3:
version "4.1.0-rc.3"
resolved "https://registry.yarnpkg.com/graphql-parse-resolve-info/-/graphql-parse-resolve-info-4.1.0-rc.3.tgz#b15999d3296ac4845a5e7ba61f67669f6bc63edd"
integrity sha512-6Z9JsgC46gNQ/L1vImW+u1oswoXpTgNh2IGUBMVcyAEjU+t5AFDtMz1cMcKkBoj/r0XY+lhsEQbxEelc6RcPkA==
dependencies:
"@types/graphql" "^14.0.3"
debug ">=2 <3"
Expand Down Expand Up @@ -5741,14 +5741,14 @@ postcss@^6.0.1, postcss@^6.0.23:
source-map "^0.6.1"
supports-color "^5.4.0"

postgraphile-core@4.1.0-rc.2:
version "4.1.0-rc.2"
resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-4.1.0-rc.2.tgz#780cb09b6f4404308343616396d0221186412031"
integrity sha512-XMMBBsHTUp4ge+b2FCoknICFwQyRZpgJJOyKrFR0xPIulNY3V0CBq90yzXvPFXfmU68GjuR1eAMR9//0I6FSWw==
postgraphile-core@4.1.0-rc.3:
version "4.1.0-rc.3"
resolved "https://registry.yarnpkg.com/postgraphile-core/-/postgraphile-core-4.1.0-rc.3.tgz#d277de48c60f5cdcd93aec239b4c613d42944f58"
integrity sha512-ztAEi1wtuqPLYyQv1ni5Vr4eKnOTSd35oUdoWV4tgo13fRpznLAc+r7sAXHHexor6xz/ywKkGkCYkycrcP0Cfg==
dependencies:
"@types/graphql" "^14.0.3"
graphile-build "4.1.0-rc.2"
graphile-build-pg "4.1.0-rc.2"
graphile-build "4.1.0-rc.3"
graphile-build-pg "4.1.0-rc.3"

postgres-array@~1.0.0:
version "1.0.2"
Expand Down

0 comments on commit 676b352

Please sign in to comment.