@contember/engine-system-api 2.1.0-alpha.29 → 2.1.0-alpha.30

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-system-api",
3
- "version": "2.1.0-alpha.29",
3
+ "version": "2.1.0-alpha.30",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/production/index.js",
6
6
  "typings": "./dist/types/index.d.ts",
@@ -23,21 +23,21 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@contember/authorization": "2.1.0-alpha.29",
27
- "@contember/database": "2.1.0-alpha.29",
28
- "@contember/database-migrations": "2.1.0-alpha.29",
29
- "@contember/dic": "2.1.0-alpha.29",
30
- "@contember/graphql-utils": "2.1.0-alpha.29",
31
- "@contember/logger": "2.1.0-alpha.29",
32
- "@contember/queryable": "2.1.0-alpha.29",
33
- "@contember/schema": "2.1.0-alpha.29",
34
- "@contember/schema-migrations": "2.1.0-alpha.29",
35
- "@contember/schema-utils": "2.1.0-alpha.29",
26
+ "@contember/authorization": "2.1.0-alpha.30",
27
+ "@contember/database": "2.1.0-alpha.30",
28
+ "@contember/database-migrations": "2.1.0-alpha.30",
29
+ "@contember/dic": "2.1.0-alpha.30",
30
+ "@contember/graphql-utils": "2.1.0-alpha.30",
31
+ "@contember/logger": "2.1.0-alpha.30",
32
+ "@contember/queryable": "2.1.0-alpha.30",
33
+ "@contember/schema": "2.1.0-alpha.30",
34
+ "@contember/schema-migrations": "2.1.0-alpha.30",
35
+ "@contember/schema-utils": "2.1.0-alpha.30",
36
36
  "@graphql-tools/utils": "^10.5.5",
37
37
  "graphql-tag": "^2.12.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@contember/schema-definition": "2.1.0-alpha.29",
40
+ "@contember/schema-definition": "2.1.0-alpha.30",
41
41
  "@types/node": "^20.17.22",
42
42
  "graphql": "^16.9.0",
43
43
  "pg": "^8.12.0"
@@ -34,11 +34,10 @@ export class SchemaProvider {
34
34
 
35
35
  const partialResult = newMigrations.reduce<SchemaWithMeta>(
36
36
  (schema, migration) => {
37
- if (migration.type !== 'schema') {
38
- return schema
39
- }
40
37
  return {
41
- schema: this.schemaMigrator.applyModifications(schema.schema, migration.modifications, migration.formatVersion),
38
+ schema: migration.type !== 'schema'
39
+ ? schema.schema
40
+ : this.schemaMigrator.applyModifications(schema.schema, migration.modifications, migration.formatVersion),
42
41
  meta: {
43
42
  version: migration.version,
44
43
  id: migration.id,
@@ -63,7 +62,7 @@ export class SchemaProvider {
63
62
  }
64
63
  }
65
64
 
66
- public async fetch({ db, currentSchema }: {
65
+ public async fetch({ db, currentSchema }: {
67
66
  db: DatabaseContext
68
67
  currentSchema?: SchemaWithMeta | null
69
68
  }): Promise<SchemaWithMeta> {