@strapi/database 4.2.2 → 4.2.3

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.
@@ -7,7 +7,7 @@ const { Umzug } = require('umzug');
7
7
  const createStorage = require('./storage');
8
8
 
9
9
  const wrapTransaction = db => fn => () =>
10
- db.getConnection().transaction(trx => Promise.resolve(fn(trx)));
10
+ db.connection.transaction(trx => Promise.resolve(fn(trx)));
11
11
 
12
12
  // TODO: check multiple commands in one sql statement
13
13
  const migrationResolver = ({ name, path, context }) => {
@@ -133,7 +133,7 @@ const processWhere = (where, ctx) => {
133
133
  }
134
134
 
135
135
  if (isOperator(key)) {
136
- throw new Error(`Only $and, $or and $not can by used as root level operators. Found ${key}.`);
136
+ throw new Error(`Only $and, $or and $not can only be used as root level operators. Found ${key}.`);
137
137
  }
138
138
 
139
139
  const attribute = meta.attributes[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/database",
3
- "version": "4.2.2",
3
+ "version": "4.2.3",
4
4
  "description": "Strapi's database layer",
5
5
  "homepage": "https://strapi.io",
6
6
  "bugs": {
@@ -31,7 +31,7 @@
31
31
  "test:unit": "jest --verbose"
32
32
  },
33
33
  "dependencies": {
34
- "date-fns": "2.22.1",
34
+ "date-fns": "2.28.0",
35
35
  "debug": "4.3.1",
36
36
  "fs-extra": "10.0.0",
37
37
  "knex": "1.0.4",
@@ -42,5 +42,5 @@
42
42
  "node": ">=14.19.1 <=16.x.x",
43
43
  "npm": ">=6.0.0"
44
44
  },
45
- "gitHead": "376ff3133c13f6eb10d0c90f4b5eb701592aff97"
45
+ "gitHead": "fe296baf71cb932d45183d5335285eaf30a6fad6"
46
46
  }