Skip to content

Commit b3b3916

Browse files
authored
Merge pull request #5 from cgsimmons/max_payload
1.2.0 Add MAX_PAYLOAD_EXCEEDED
2 parents c610685 + 076d77d commit b3b3916

File tree

6 files changed

+87
-65
lines changed

6 files changed

+87
-65
lines changed

index.node.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.web.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 31 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
{
2-
"name": "@adgorithmics/graphql-errors",
3-
"version": "1.1.0",
4-
"description": "Response erorr codes for graphql.",
5-
"main": "index.node.js",
6-
"browser": "index.web.js",
7-
"types": "src/index.d.ts",
8-
"files": [
9-
"/src",
10-
"/index.web.js",
11-
"/index.node.js"
12-
],
13-
"scripts": {
14-
"build": "webpack",
15-
"precommit": "npm run lint",
16-
"prepush": "npm run lint",
17-
"lint": "concurrently \"npm run lint:eslint\" \"npm run lint:prettier\"",
18-
"lint:eslint": "eslint . --ext ts",
19-
"lint:eslint:fix": "eslint . --ext ts --fix",
20-
"lint:prettier": "prettier \"./src/**/*.ts\" -l",
21-
"lint:prettier:fix": "prettier \"./src/**/*.ts\" --write"
22-
},
23-
"repository": {
24-
"type": "git",
25-
"url": "git+ssh://[email protected]/adgorithmics-inc/graphql-errors.git"
26-
},
27-
"author": "Adgorithmics, LLC",
28-
"license": "ISC",
29-
"bugs": {
30-
"url": "https://github.com/adgorithmics-inc/graphql-errors/issues"
31-
},
32-
"homepage": "https://github.com/adgorithmics-inc/graphql-errors#readme",
33-
"devDependencies": {
34-
"@adgorithmics/eslint-config-base": "^1.3.0",
35-
"concurrently": "4.1.2",
36-
"prettier": "1.18.2",
37-
"ts-loader": "6.0.4",
38-
"typescript": "3.5.3",
39-
"webpack": "4.39.3",
40-
"webpack-cli": "3.3.7",
41-
"@typescript-eslint/eslint-plugin": "2.0.0",
42-
"@typescript-eslint/parser": "2.0.0",
43-
"eslint": "6.2.0",
44-
"eslint-config-prettier": "6.1.0"
45-
},
46-
"prettier": {
47-
"trailingComma": "all",
48-
"tabWidth": 4,
49-
"singleQuote": true
50-
}
2+
"name": "@adgorithmics/graphql-errors",
3+
"version": "1.2.0",
4+
"description": "Response error codes for graphql.",
5+
"main": "index.node.js",
6+
"browser": "index.web.js",
7+
"types": "src/index.d.ts",
8+
"files": [
9+
"/src",
10+
"/index.web.js",
11+
"/index.node.js"
12+
],
13+
"scripts": {
14+
"build": "webpack",
15+
"precommit": "npm run lint",
16+
"prepush": "npm run lint",
17+
"lint": "concurrently \"npm run lint:eslint\" \"npm run lint:prettier\"",
18+
"lint:eslint": "eslint . --ext ts",
19+
"lint:eslint:fix": "eslint . --ext ts --fix",
20+
"lint:prettier": "prettier \"./src/**/*.ts\" -l",
21+
"lint:prettier:fix": "prettier \"./src/**/*.ts\" --write"
22+
},
23+
"repository": {
24+
"type": "git",
25+
"url": "git+ssh://[email protected]/adgorithmics-inc/graphql-errors.git"
26+
},
27+
"author": "Adgorithmics, LLC",
28+
"license": "ISC",
29+
"bugs": {
30+
"url": "https://github.com/adgorithmics-inc/graphql-errors/issues"
31+
},
32+
"homepage": "https://github.com/adgorithmics-inc/graphql-errors#readme",
33+
"devDependencies": {
34+
"@adgorithmics/eslint-config-base": "^1.3.0",
35+
"concurrently": "4.1.2",
36+
"prettier": "1.18.2",
37+
"ts-loader": "6.0.4",
38+
"typescript": "3.5.3",
39+
"webpack": "4.39.3",
40+
"webpack-cli": "3.3.7",
41+
"@typescript-eslint/eslint-plugin": "2.0.0",
42+
"@typescript-eslint/parser": "2.0.0",
43+
"eslint": "6.2.0",
44+
"eslint-config-prettier": "6.1.0"
45+
},
46+
"prettier": {
47+
"trailingComma": "all",
48+
"tabWidth": 4,
49+
"singleQuote": true
50+
}
5151
}

src/lib/codes.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ export declare enum codes {
1414
INPUT_LIST_MIN = "INPUT_LIST_MIN",
1515
INPUT_LIST_MAX = "INPUT_LIST_MAX",
1616
INPUT_INVALID = "INPUT_INVALID",
17-
UNKNOWN_ERROR = "UKNOWN_ERROR"
17+
UNKNOWN_ERROR = "UNKNOWN_ERROR",
18+
MAX_PAYLOAD_EXCEEDED = "MAX_PAYLOAD_EXCEEDED"
1819
}

src/lib/codes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ export enum codes {
4141

4242
// Mystery Flags
4343
// New phone, who dis?
44-
UNKNOWN_ERROR = 'UKNOWN_ERROR',
44+
UNKNOWN_ERROR = 'UNKNOWN_ERROR',
45+
46+
MAX_PAYLOAD_EXCEEDED = 'MAX_PAYLOAD_EXCEEDED',
4547
}

0 commit comments

Comments
 (0)