@constructive-io/graphql-server 4.16.2 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/middleware/graphile.js +13 -0
- package/middleware/graphile.js +13 -0
- package/package.json +2 -2
|
@@ -30,6 +30,19 @@ const SAFE_ERROR_CODES = new Set([
|
|
|
30
30
|
'INVITE_LIMIT',
|
|
31
31
|
'INVITE_EMAIL_NOT_FOUND',
|
|
32
32
|
'INVALID_CREDENTIALS',
|
|
33
|
+
// CSRF
|
|
34
|
+
'CSRF_TOKEN_REQUIRED',
|
|
35
|
+
'INVALID_CSRF_TOKEN',
|
|
36
|
+
// Rate limiting / throttling
|
|
37
|
+
'TOO_MANY_REQUESTS',
|
|
38
|
+
'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS',
|
|
39
|
+
// TOTP
|
|
40
|
+
'TOTP_NOT_ENABLED',
|
|
41
|
+
// Account / resource operations
|
|
42
|
+
'NULL_VALUES_DISALLOWED',
|
|
43
|
+
'OBJECT_NOT_FOUND',
|
|
44
|
+
'LIMIT_REACHED',
|
|
45
|
+
'REQUIRES_ONE_OWNER',
|
|
33
46
|
// PublicKeySignature
|
|
34
47
|
'FEATURE_DISABLED',
|
|
35
48
|
'INVALID_PUBLIC_KEY',
|
package/middleware/graphile.js
CHANGED
|
@@ -39,6 +39,19 @@ const SAFE_ERROR_CODES = new Set([
|
|
|
39
39
|
'INVITE_LIMIT',
|
|
40
40
|
'INVITE_EMAIL_NOT_FOUND',
|
|
41
41
|
'INVALID_CREDENTIALS',
|
|
42
|
+
// CSRF
|
|
43
|
+
'CSRF_TOKEN_REQUIRED',
|
|
44
|
+
'INVALID_CSRF_TOKEN',
|
|
45
|
+
// Rate limiting / throttling
|
|
46
|
+
'TOO_MANY_REQUESTS',
|
|
47
|
+
'PASSWORD_RESET_LOCKED_EXCEED_ATTEMPTS',
|
|
48
|
+
// TOTP
|
|
49
|
+
'TOTP_NOT_ENABLED',
|
|
50
|
+
// Account / resource operations
|
|
51
|
+
'NULL_VALUES_DISALLOWED',
|
|
52
|
+
'OBJECT_NOT_FOUND',
|
|
53
|
+
'LIMIT_REACHED',
|
|
54
|
+
'REQUIRES_ONE_OWNER',
|
|
42
55
|
// PublicKeySignature
|
|
43
56
|
'FEATURE_DISABLED',
|
|
44
57
|
'INVALID_PUBLIC_KEY',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-server",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.17.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive GraphQL Server",
|
|
6
6
|
"main": "index.js",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"nodemon": "^3.1.14",
|
|
91
91
|
"ts-node": "^10.9.2"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "d4ab16de23b2434617e820fcffaec0f008a7b6a0"
|
|
94
94
|
}
|