@contember/engine-http 2.0.0-alpha.35 → 2.0.0-alpha.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contember/engine-http",
3
- "version": "2.0.0-alpha.35",
3
+ "version": "2.0.0-alpha.36",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/production/index.js",
6
6
  "typings": "./dist/types/index.d.ts",
@@ -26,20 +26,20 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "@contember/config-loader": "2.0.0-alpha.35",
30
- "@contember/database": "2.0.0-alpha.35",
31
- "@contember/database-migrations": "2.0.0-alpha.35",
32
- "@contember/dic": "2.0.0-alpha.35",
33
- "@contember/engine-common": "2.0.0-alpha.35",
34
- "@contember/engine-content-api": "2.0.0-alpha.35",
35
- "@contember/engine-system-api": "2.0.0-alpha.35",
36
- "@contember/engine-tenant-api": "2.0.0-alpha.35",
37
- "@contember/graphql-utils": "2.0.0-alpha.35",
38
- "@contember/logger": "2.0.0-alpha.35",
39
- "@contember/schema": "2.0.0-alpha.35",
40
- "@contember/schema-migrations": "2.0.0-alpha.35",
41
- "@contember/schema-utils": "2.0.0-alpha.35",
42
- "@contember/typesafe": "2.0.0-alpha.35",
29
+ "@contember/config-loader": "2.0.0-alpha.36",
30
+ "@contember/database": "2.0.0-alpha.36",
31
+ "@contember/database-migrations": "2.0.0-alpha.36",
32
+ "@contember/dic": "2.0.0-alpha.36",
33
+ "@contember/engine-common": "2.0.0-alpha.36",
34
+ "@contember/engine-content-api": "2.0.0-alpha.36",
35
+ "@contember/engine-system-api": "2.0.0-alpha.36",
36
+ "@contember/engine-tenant-api": "2.0.0-alpha.36",
37
+ "@contember/graphql-utils": "2.0.0-alpha.36",
38
+ "@contember/logger": "2.0.0-alpha.36",
39
+ "@contember/schema": "2.0.0-alpha.36",
40
+ "@contember/schema-migrations": "2.0.0-alpha.36",
41
+ "@contember/schema-utils": "2.0.0-alpha.36",
42
+ "@contember/typesafe": "2.0.0-alpha.36",
43
43
  "@graphql-tools/merge": "^9.0.8",
44
44
  "@graphql-tools/schema": "^10.0.7",
45
45
  "@koa/cors": "^5.0.0",
@@ -32,12 +32,12 @@ const cache = new ContentApiSpecificCache<Schema, Schema>({})
32
32
  const getSchema = (schema: Schema, options: { stage?: string; normalize?: boolean }) => {
33
33
  const cacheKey = [options.stage, options.normalize].join('\xff')
34
34
  return cache.fetch(schema, cacheKey, () => {
35
- const result = schema
35
+ let result = schema
36
36
  if (options.normalize) {
37
- return normalizeSchema(result)
37
+ result = normalizeSchema(result)
38
38
  }
39
39
  if (options.stage) {
40
- return filterSchemaByStage(result, options.stage)
40
+ result = filterSchemaByStage(result, options.stage)
41
41
  }
42
42
  return result
43
43
  })