@graphql-yoga/plugin-jwt 2.6.0 → 2.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.
Files changed (2) hide show
  1. package/cjs/index.js +1 -2
  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.useJWT = void 0;
3
+ exports.useJWT = useJWT;
4
4
  const tslib_1 = require("tslib");
5
5
  const graphql_yoga_1 = require("graphql-yoga");
6
6
  const jsonwebtoken_1 = tslib_1.__importDefault(require("jsonwebtoken"));
@@ -50,7 +50,6 @@ function useJWT(options) {
50
50
  },
51
51
  };
52
52
  }
53
- exports.useJWT = useJWT;
54
53
  function unauthorizedError(message, options) {
55
54
  return (0, graphql_yoga_1.createGraphQLError)(message, {
56
55
  extensions: {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@graphql-yoga/plugin-jwt",
3
- "version": "2.6.0",
3
+ "version": "2.6.1-alpha-20240701184805-40467cd7",
4
4
  "description": "jwt plugin for GraphQL Yoga.",
5
5
  "peerDependencies": {
6
6
  "graphql": "^16.5.0",
7
- "graphql-yoga": "^5.6.0"
7
+ "graphql-yoga": "^5.6.1-alpha-20240701184805-40467cd7"
8
8
  },
9
9
  "dependencies": {
10
10
  "jsonwebtoken": "^9.0.0",