graphile-build-pg
Advanced tools
Comparing version 0.1.0-alpha.39 to 0.1.0-alpha.40
@@ -11,2 +11,6 @@ "use strict"; | ||
var _assign = require("babel-runtime/core-js/object/assign"); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _jsonwebtoken = require("jsonwebtoken"); | ||
@@ -76,7 +80,8 @@ | ||
}, {}); | ||
return (0, _jsonwebtoken.sign)(token, pgJwtSecret, { | ||
return (0, _jsonwebtoken.sign)(token, pgJwtSecret, (0, _assign2.default)({}, { | ||
audience: "postgraphql", | ||
issuer: "postgraphql", | ||
expiresIn: token.exp ? undefined : "1 day" | ||
}); | ||
issuer: "postgraphql" | ||
}, token.exp ? null : { | ||
expiresIn: "1 day" | ||
})); | ||
} | ||
@@ -83,0 +88,0 @@ }, { |
@@ -11,2 +11,6 @@ "use strict"; | ||
var _assign = require("babel-runtime/core-js/object/assign"); | ||
var _assign2 = _interopRequireDefault(_assign); | ||
var _jsonwebtoken = require("jsonwebtoken"); | ||
@@ -61,7 +65,8 @@ | ||
}, {}); | ||
return (0, _jsonwebtoken.sign)(token, pgJwtSecret, { | ||
return (0, _jsonwebtoken.sign)(token, pgJwtSecret, (0, _assign2.default)({}, { | ||
audience: "postgraphql", | ||
issuer: "postgraphql", | ||
expiresIn: token.exp ? undefined : "1 day" | ||
}); | ||
issuer: "postgraphql" | ||
}, token.exp ? null : { | ||
expiresIn: "1 day" | ||
})); | ||
} | ||
@@ -68,0 +73,0 @@ }, { |
{ | ||
"name": "graphile-build-pg", | ||
"version": "0.1.0-alpha.39", | ||
"version": "0.1.0-alpha.40", | ||
"description": "Build a GraphQL schema by reflection over a PostgreSQL schema. Easy to customize since it's built with plugins on graphile-build", | ||
@@ -43,3 +43,3 @@ "main": "index.js", | ||
"graphql-type-json": "^0.1.4", | ||
"jsonwebtoken": "^7.4.1", | ||
"jsonwebtoken": "^8.1.1", | ||
"lodash": ">=4 <5", | ||
@@ -46,0 +46,0 @@ "lru-cache": "4.1.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1569937
10750
+ Addedjsonwebtoken@8.5.1(transitive)
+ Addedlodash.includes@4.3.0(transitive)
+ Addedlodash.isboolean@3.0.3(transitive)
+ Addedlodash.isinteger@4.0.4(transitive)
+ Addedlodash.isnumber@3.0.3(transitive)
+ Addedlodash.isplainobject@4.0.6(transitive)
+ Addedlodash.isstring@4.0.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsemver@5.7.2(transitive)
- Removedhoek@2.16.3(transitive)
- Removedisemail@1.2.0(transitive)
- Removedjoi@6.10.1(transitive)
- Removedjsonwebtoken@7.4.3(transitive)
- Removedmoment@2.30.1(transitive)
- Removedtopo@1.1.0(transitive)
Updatedjsonwebtoken@^8.1.1