graphql-auth
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -5,9 +5,10 @@ // Type definitions for graphql-auth | ||
export = withAuth; | ||
export default withAuth; | ||
declare function withAuth(resolve: Resolver): Resolver; | ||
declare function withAuth(scopes: string[], resolver: Resolver): Resolver; | ||
declare function withAuth(resolve: GraphqlAuth.Resolver): GraphqlAuth.Resolver; | ||
declare function withAuth(scopes: string[], resolver: GraphqlAuth.Resolver): GraphqlAuth.Resolver; | ||
type Resolver = (root: any, args: any, context: any, info: any) => any | ||
declare namespace withAuth { } | ||
// Internal scope, avoid collision with other global definitions | ||
declare namespace GraphqlAuth { | ||
type Resolver = (root: any, args: any, context: any, info: any) => any | ||
} |
{ | ||
"name": "graphql-auth", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "GraphQL authentication and authorization middleware", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -134,6 +134,6 @@ # GraphQL Auth | ||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
| [<img src="https://avatars1.githubusercontent.com/u/332115?v=4" width="100px;"/><br /><sub>artgibson</sub>](https://github.com/artgibson)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=artgibson "Code") | [<img src="https://avatars3.githubusercontent.com/u/1265681?v=4" width="100px;"/><br /><sub>HaNdTriX</sub>](http://henrikwenz.de/)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=HaNdTriX "Code") [📖](https://github.com/kkemple/graphql-auth/commits?author=HaNdTriX "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/841956?v=4" width="100px;"/><br /><sub>Pascal Birchler</sub>](https://pascalbirchler.com)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=swissspidy "Code") | | ||
| :---: | :---: | :---: | | ||
| [<img src="https://avatars1.githubusercontent.com/u/332115?v=4" width="100px;"/><br /><sub>artgibson</sub>](https://github.com/artgibson)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=artgibson "Code") | [<img src="https://avatars3.githubusercontent.com/u/1265681?v=4" width="100px;"/><br /><sub>HaNdTriX</sub>](http://henrikwenz.de/)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=HaNdTriX "Code") [📖](https://github.com/kkemple/graphql-auth/commits?author=HaNdTriX "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/841956?v=4" width="100px;"/><br /><sub>Pascal Birchler</sub>](https://pascalbirchler.com)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=swissspidy "Code") | [<img src="https://avatars2.githubusercontent.com/u/6640835?v=4" width="100px;"/><br /><sub>Andréas Hanss</sub>](https://www.linkedin.com/in/andreas-hanss/)<br />[💻](https://github.com/kkemple/graphql-auth/commits?author=ScreamZ "Code") [📖](https://github.com/kkemple/graphql-auth/commits?author=ScreamZ "Documentation") | | ||
| :---: | :---: | :---: | :---: | | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! |
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
129260
187