altair-express-middleware 8.1.3 → 8.1.4

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.
@@ -1,8 +1,8 @@
1
1
 
2
- > altair-express-middleware@8.1.3 bootstrap /home/runner/work/altair/altair/packages/altair-express-middleware
2
+ > altair-express-middleware@8.1.4 bootstrap /home/runner/work/altair/altair/packages/altair-express-middleware
3
3
  > pnpm declarations
4
4
 
5
5
 
6
- > altair-express-middleware@8.1.3 declarations /home/runner/work/altair/altair/packages/altair-express-middleware
6
+ > altair-express-middleware@8.1.4 declarations /home/runner/work/altair/altair/packages/altair-express-middleware
7
7
  > tsc --declaration
8
8
 
package/build/index.js CHANGED
@@ -18,7 +18,7 @@ const altairExpress = (opts) => {
18
18
  });
19
19
  app.get('/initial_options.js', (req, res) => {
20
20
  res.set('Content-Type', 'text/javascript');
21
- return res.send((0, altair_static_1.renderInitialOptions)(opts));
21
+ return res.send((0, altair_static_1.renderInitSnippet)(opts));
22
22
  });
23
23
  app.use(express.static((0, altair_static_1.getDistDirectory)()));
24
24
  /**
package/index.ts CHANGED
@@ -4,7 +4,7 @@ import * as express from 'express';
4
4
  import {
5
5
  getDistDirectory,
6
6
  renderAltair,
7
- renderInitialOptions,
7
+ renderInitSnippet,
8
8
  RenderOptions,
9
9
  } from 'altair-static';
10
10
 
@@ -24,7 +24,7 @@ export const altairExpress = (opts: RenderOptions): express.Express => {
24
24
  });
25
25
  app.get('/initial_options.js', (req, res) => {
26
26
  res.set('Content-Type', 'text/javascript');
27
- return res.send(renderInitialOptions(opts));
27
+ return res.send(renderInitSnippet(opts));
28
28
  });
29
29
  app.use(express.static(getDistDirectory()));
30
30
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "altair-express-middleware",
3
3
  "description": "Express middleware for altair graphql client",
4
- "version": "8.1.3",
4
+ "version": "8.1.4",
5
5
  "author": "Samuel Imolorhe <altair@sirmuel.design> (https://sirmuel.design)",
6
6
  "bugs": "https://github.com/altair-graphql/altair/issues",
7
7
  "dependencies": {
8
8
  "express": "^4.19.2",
9
- "altair-static": "8.1.3"
9
+ "altair-static": "8.1.4"
10
10
  },
11
11
  "devDependencies": {
12
12
  "@types/express": "^4.17.13",
@@ -14,7 +14,7 @@
14
14
  "nodemon": "^2.0.2",
15
15
  "ts-node": "^8.5.4",
16
16
  "typescript": "^5.5.4",
17
- "eslint-config-altair": "8.1.3"
17
+ "eslint-config-altair": "8.1.4"
18
18
  },
19
19
  "engines": {
20
20
  "node": ">= 12"