@graphql-yoga/plugin-csrf-prevention 3.6.0 → 3.6.1-alpha-20240701184805-40467cd7
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/cjs/index.js +1 -2
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useCSRFPrevention =
|
|
3
|
+
exports.useCSRFPrevention = useCSRFPrevention;
|
|
4
4
|
const graphql_yoga_1 = require("graphql-yoga");
|
|
5
5
|
const NON_PREFLIGHTED_CONTENT_TYPES = [
|
|
6
6
|
'application/x-www-form-urlencoded',
|
|
@@ -38,7 +38,6 @@ function useCSRFPrevention(options = {}) {
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
exports.useCSRFPrevention = useCSRFPrevention;
|
|
42
41
|
const wasTheRequestAlreadyPreflightChecked = (contentType) => {
|
|
43
42
|
if (!contentType) {
|
|
44
43
|
return false;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-csrf-prevention",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1-alpha-20240701184805-40467cd7",
|
|
4
4
|
"description": "CSRF prevention plugin for GraphQL Yoga that requires the clients to have a specific header set.",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"graphql-yoga": "^5.6.
|
|
6
|
+
"graphql-yoga": "^5.6.1-alpha-20240701184805-40467cd7"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|