@constructive-io/graphql-explorer 5.20.1 → 5.20.2

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/server.js CHANGED
@@ -2,7 +2,7 @@ import { getEnvOptions } from '@constructive-io/graphql-env';
2
2
  import { middleware as parseDomains } from '@constructive-io/url-domains';
3
3
  import { cors, healthz, poweredBy } from '@pgpmjs/server-utils';
4
4
  import express from 'express';
5
- import { createGraphileInstance, graphileCache } from 'graphile-cache';
5
+ import { cacheGraphileInstance, createGraphileInstance, graphileCache } from 'graphile-cache';
6
6
  import { makePgService } from 'graphile-settings';
7
7
  import { getPgPool } from 'pg-cache';
8
8
  import { getPgEnvOptions } from 'pg-env';
@@ -37,7 +37,7 @@ export const GraphQLExplorer = (rawOpts = {}) => {
37
37
  },
38
38
  };
39
39
  const instance = await createGraphileInstance({ preset, cacheKey: key });
40
- graphileCache.set(key, instance);
40
+ await cacheGraphileInstance(key, instance);
41
41
  return instance;
42
42
  };
43
43
  const app = express();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/graphql-explorer",
3
- "version": "5.20.1",
3
+ "version": "5.20.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive GraphQL Explorer",
6
6
  "main": "index.js",
@@ -34,15 +34,15 @@
34
34
  "test:watch": "jest --watch"
35
35
  },
36
36
  "dependencies": {
37
- "@constructive-io/graphql-env": "^3.37.0",
37
+ "@constructive-io/graphql-env": "^3.37.1",
38
38
  "@constructive-io/graphql-types": "^3.36.0",
39
39
  "@constructive-io/url-domains": "^2.32.0",
40
40
  "@pgpmjs/server-utils": "^3.30.0",
41
41
  "express": "^5.2.1",
42
42
  "grafserv": "1.0.1",
43
- "graphile-cache": "^4.16.0",
43
+ "graphile-cache": "^4.16.1",
44
44
  "graphile-config": "1.1.0",
45
- "graphile-settings": "^6.26.1",
45
+ "graphile-settings": "^6.26.2",
46
46
  "graphql": "16.13.0",
47
47
  "pg-cache": "^3.30.0",
48
48
  "pg-env": "^1.33.0",
@@ -61,5 +61,5 @@
61
61
  "constructive",
62
62
  "interface"
63
63
  ],
64
- "gitHead": "6cbaa8605270a2e019439fd9f444a35b3f2a9de0"
64
+ "gitHead": "91e18cc80da92331fb3aadd5baa43251c8934bc8"
65
65
  }
package/server.js CHANGED
@@ -43,7 +43,7 @@ const GraphQLExplorer = (rawOpts = {}) => {
43
43
  },
44
44
  };
45
45
  const instance = await (0, graphile_cache_1.createGraphileInstance)({ preset, cacheKey: key });
46
- graphile_cache_1.graphileCache.set(key, instance);
46
+ await (0, graphile_cache_1.cacheGraphileInstance)(key, instance);
47
47
  return instance;
48
48
  };
49
49
  const app = (0, express_1.default)();