directus 9.20.2 → 9.20.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.
@@ -287,6 +287,7 @@ class FieldsService {
287
287
  }
288
288
  }
289
289
  async updateField(collection, field) {
290
+ var _a, _b;
290
291
  if (this.accountability && this.accountability.admin !== true) {
291
292
  throw new exceptions_1.ForbiddenException();
292
293
  }
@@ -304,9 +305,9 @@ class FieldsService {
304
305
  ? await this.knex.select('id').from('directus_fields').where({ collection, field: field.field }).first()
305
306
  : null;
306
307
  if ((hookAdjustedField.type === 'alias' ||
307
- this.schema.collections[collection].fields[field.field].type === 'alias') &&
308
+ ((_a = this.schema.collections[collection].fields[field.field]) === null || _a === void 0 ? void 0 : _a.type) === 'alias') &&
308
309
  hookAdjustedField.type &&
309
- hookAdjustedField.type !== this.schema.collections[collection].fields[field.field].type) {
310
+ hookAdjustedField.type !== ((_b = this.schema.collections[collection].fields[field.field]) === null || _b === void 0 ? void 0 : _b.type)) {
310
311
  throw new exceptions_1.InvalidPayloadException('Alias type cannot be changed');
311
312
  }
312
313
  if (hookAdjustedField.schema) {
@@ -1,2 +1,2 @@
1
1
  import { GraphQLScalarType } from 'graphql';
2
- export declare const GraphQLBigInt: GraphQLScalarType<string | number, string>;
2
+ export declare const GraphQLBigInt: GraphQLScalarType<string | number, unknown>;
@@ -6,6 +6,10 @@ exports.GraphQLBigInt = new graphql_1.GraphQLScalarType({
6
6
  name: 'GraphQLBigInt',
7
7
  description: 'BigInt value',
8
8
  serialize(value) {
9
+ if (!value)
10
+ return value;
11
+ if (typeof value === 'string')
12
+ return value;
9
13
  if (typeof value !== 'number') {
10
14
  throw new Error('Value must be a Number');
11
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "directus",
3
- "version": "9.20.2",
3
+ "version": "9.20.4",
4
4
  "license": "GPL-3.0-only",
5
5
  "homepage": "https://github.com/directus/directus#readme",
6
6
  "description": "Directus is a real-time API and App dashboard for managing SQL database content.",
@@ -67,16 +67,16 @@
67
67
  "dependencies": {
68
68
  "@authenio/samlify-node-xmllint": "2.0.0",
69
69
  "@aws-sdk/client-ses": "3.190.0",
70
- "@directus/app": "9.20.2",
71
- "@directus/drive": "9.20.2",
72
- "@directus/drive-azure": "9.20.2",
73
- "@directus/drive-gcs": "9.20.2",
74
- "@directus/drive-s3": "9.20.1",
75
- "@directus/extensions-sdk": "9.20.2",
70
+ "@directus/app": "9.20.4",
71
+ "@directus/drive": "9.20.4",
72
+ "@directus/drive-azure": "9.20.4",
73
+ "@directus/drive-gcs": "9.20.4",
74
+ "@directus/drive-s3": "9.20.4",
75
+ "@directus/extensions-sdk": "9.20.4",
76
76
  "@directus/format-title": "9.15.0",
77
- "@directus/schema": "9.20.2",
78
- "@directus/shared": "9.20.2",
79
- "@directus/specs": "9.20.2",
77
+ "@directus/schema": "9.20.4",
78
+ "@directus/shared": "9.20.4",
79
+ "@directus/specs": "9.20.4",
80
80
  "@godaddy/terminus": "4.11.2",
81
81
  "@rollup/plugin-alias": "4.0.0",
82
82
  "@rollup/plugin-virtual": "3.0.0",