@strapi/database 4.0.2 → 4.0.6

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.
@@ -9,7 +9,7 @@ const getDialectClass = client => {
9
9
  case 'sqlite':
10
10
  return require('./sqlite');
11
11
  default:
12
- throw new Error(`Unknow dialect ${client}`);
12
+ throw new Error(`Unknown dialect ${client}`);
13
13
  }
14
14
  };
15
15
 
@@ -390,7 +390,7 @@ const createJoinTable = (metadata, { attributeName, attribute, meta }) => {
390
390
  const targetMeta = metadata.get(attribute.target);
391
391
 
392
392
  if (!targetMeta) {
393
- throw new Error(`Unknow target ${attribute.target}`);
393
+ throw new Error(`Unknown target ${attribute.target}`);
394
394
  }
395
395
 
396
396
  const joinTableName = _.snakeCase(`${meta.tableName}_${attributeName}_links`);
@@ -177,7 +177,7 @@ const getColumnType = attribute => {
177
177
  return { type: 'boolean' };
178
178
  }
179
179
  default: {
180
- throw new Error(`Unknow type ${attribute.type}`);
180
+ throw new Error(`Unknown type ${attribute.type}`);
181
181
  }
182
182
  }
183
183
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/database",
3
- "version": "4.0.2",
3
+ "version": "4.0.6",
4
4
  "description": "Strapi's database layer",
5
5
  "homepage": "https://strapi.io",
6
6
  "bugs": {
@@ -39,8 +39,8 @@
39
39
  "umzug": "2.3.0"
40
40
  },
41
41
  "engines": {
42
- "node": ">=12.x.x <=16.x.x",
42
+ "node": ">=12.22.0 <=16.x.x",
43
43
  "npm": ">=6.0.0"
44
44
  },
45
- "gitHead": "fd656a47698e0a33aae42abd4330410c8cba1d08"
45
+ "gitHead": "5b48053946aacfb564ff423342fe70d79cd6d66d"
46
46
  }