graphql-auth
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,2 @@ | ||
class ContextError extends Error { | ||
export class ContextError extends Error { | ||
constructor(message = '`auth` property not found on context!') { | ||
@@ -9,3 +9,3 @@ super(message); | ||
class AuthorizationError extends Error { | ||
export class AuthorizationError extends Error { | ||
constructor(message = 'Permission Denied!') { | ||
@@ -12,0 +12,0 @@ super(message); |
{ | ||
"name": "graphql-auth", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "GraphQL authentication and authorization middleware", | ||
"main": "build/index.js", | ||
"scripts": { | ||
"build:watch": "babel -w --source-maps --ignore '**/__tests__/**' index.js --out-dir build", | ||
"build": "rimraf build && babel --source-maps --ignore '**/__tests__/**' index.js --out-dir build", | ||
"build:watch": "babel -w --source-maps --ignore '**/__tests__/**' index.js --out-dir build", | ||
"test": "exit 0" | ||
"contrib:add": "all-contributors add", | ||
"contrib:build": "all-contributors generate", | ||
"test": "jest test" | ||
}, | ||
@@ -28,2 +30,3 @@ "repository": { | ||
"devDependencies": { | ||
"all-contributors-cli": "^4.5.0", | ||
"babel-cli": "^6.24.1", | ||
@@ -33,4 +36,5 @@ "babel-plugin-transform-runtime": "^6.23.0", | ||
"babel-preset-stage-2": "^6.24.1", | ||
"jest": "^21.2.1", | ||
"rimraf": "^2.6.1" | ||
} | ||
} |
@@ -1,3 +0,5 @@ | ||
# GraphQL Auth | ||
# GraphQL Auth | ||
[![Travis Build Status](https://travis-ci.org/kkemple/graphql-auth.svg?branch=master)](https://travis-ci.org/kkemple/graphql-auth) | ||
🔒 Authentication and authorization middleware for GraphQL. | ||
@@ -126,1 +128,12 @@ | ||
``` | ||
## Contributors | ||
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
<!-- 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") | | ||
| :---: | :---: | | ||
<!-- 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
135036
12
166
139
7