gatsby-plugin-altair-graphql 5.0.9 → 5.0.14

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/README.md CHANGED
@@ -18,4 +18,4 @@ Just add the plugin to the plugins array in your `gatsby-config.js`
18
18
 
19
19
  ```
20
20
  plugins: [`gatsby-plugin-altair-graphql`]
21
- ```
21
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-plugin-altair-graphql",
3
- "version": "5.0.9",
3
+ "version": "5.0.14",
4
4
  "description": "A gatsby plugin for using Altair GraphQL client",
5
5
  "main": "gatsby-node.js",
6
6
  "scripts": {
@@ -25,14 +25,16 @@
25
25
  },
26
26
  "homepage": "https://github.com/altair-graphql/altair#readme",
27
27
  "devDependencies": {
28
- "typescript": "4.7.4"
28
+ "@types/express": "^4.17.15",
29
+ "express": "^4.18.2",
30
+ "typescript": "^4.9.4"
29
31
  },
30
32
  "dependencies": {
31
- "altair-express-middleware": "^5.0.9"
33
+ "altair-express-middleware": "^5.0.14"
32
34
  },
33
35
  "funding": {
34
36
  "type": "opencollective",
35
37
  "url": "https://opencollective.com/altair"
36
38
  },
37
- "gitHead": "bb19c4d45b1c36dc8f380d87d05297c63f447a2e"
39
+ "gitHead": "973420e96faf2c099c806a26a119659c10c0f4ee"
38
40
  }
@@ -1,10 +1,16 @@
1
1
  import { altairExpress } from 'altair-express-middleware';
2
+ import { Application } from 'express';
2
3
 
3
- export const onCreateDevServer = ({ app }) => {
4
- app.use('/___altair', altairExpress({
5
- endpointURL: '/___graphql',
6
- initialQuery: `# GATSBY + ALTAIR GRAPHQL ❤️.\n# Enter your graphQL query here.`,
7
- }));
4
+ export const onCreateDevServer = ({ app }: { app: Application }) => {
5
+ app.use(
6
+ '/___altair',
7
+ altairExpress({
8
+ endpointURL: '/___graphql',
9
+ initialQuery: `# GATSBY + ALTAIR GRAPHQL ❤️.\n# Enter your graphQL query here.`,
10
+ })
11
+ );
8
12
 
9
- console.log('\nYippee! 🎉 Altair GraphQL Client is now running at `/___altair`\n');
13
+ console.log(
14
+ '\nYippee! 🎉 Altair GraphQL Client is now running at `/___altair`\n'
15
+ );
10
16
  };
package/tsconfig.json CHANGED
@@ -1,4 +1,5 @@
1
1
  {
2
+ "extends": "../../tsconfig.json",
2
3
  "compilerOptions": {
3
4
  "outDir": ".",
4
5
  "rootDir": "src",
@@ -6,13 +7,8 @@
6
7
  "target": "es2020",
7
8
  "module": "commonjs",
8
9
  "sourceMap": true,
9
- "lib": [
10
- "dom",
11
- "esnext"
12
- ],
13
- "types": [
14
- "node"
15
- ]
10
+ "lib": ["dom", "esnext"],
11
+ "types": ["node"]
16
12
  },
17
13
  "include": ["src"],
18
14
  "exclude": []