@akemona-org/strapi 3.12.4 → 3.13.0

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.
@@ -58,6 +58,7 @@ module.exports = async function ({ build, watchAdmin, polling, browser }) {
58
58
  case 'stop':
59
59
  worker.kill();
60
60
  process.exit(1);
61
+ // eslint-disable-next-line no-fallthrough
61
62
  default:
62
63
  return;
63
64
  }
@@ -45,7 +45,8 @@ const boomMethods = [
45
45
  const formatBoomPayload = (boomError) => {
46
46
  if (!Boom.isBoom(boomError)) {
47
47
  boomError = Boom.boomify(boomError, {
48
- statusCode: boomError.status || 500,
48
+ // added to handle undefined/null boomError
49
+ statusCode: boomError?.status || 500,
49
50
  });
50
51
  }
51
52
 
@@ -6,12 +6,12 @@ const codeToColor = (code) => {
6
6
  return code >= 500
7
7
  ? chalk.red(code)
8
8
  : code >= 400
9
- ? chalk.yellow(code)
10
- : code >= 300
11
- ? chalk.cyan(code)
12
- : code >= 200
13
- ? chalk.green(code)
14
- : code;
9
+ ? chalk.yellow(code)
10
+ : code >= 300
11
+ ? chalk.cyan(code)
12
+ : code >= 200
13
+ ? chalk.green(code)
14
+ : code;
15
15
  };
16
16
 
17
17
  /**
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.12.4",
6
+ "version": "3.13.0",
7
7
  "description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MongoDB, MySQL, MariaDB, PostgreSQL, SQLite",
8
8
  "homepage": "https://strapi.akemona.com",
9
9
  "directories": {
@@ -15,16 +15,16 @@
15
15
  "strapi": "./bin/strapi.js"
16
16
  },
17
17
  "dependencies": {
18
- "@akemona-org/strapi-database": "3.12.4",
19
- "@akemona-org/strapi-generate": "3.12.4",
20
- "@akemona-org/strapi-generate-api": "3.12.4",
21
- "@akemona-org/strapi-generate-controller": "3.12.4",
22
- "@akemona-org/strapi-generate-model": "3.12.4",
23
- "@akemona-org/strapi-generate-new": "3.12.4",
24
- "@akemona-org/strapi-generate-plugin": "3.12.4",
25
- "@akemona-org/strapi-generate-policy": "3.12.4",
26
- "@akemona-org/strapi-generate-service": "3.12.4",
27
- "@akemona-org/strapi-utils": "3.12.4",
18
+ "@akemona-org/strapi-database": "3.13.0",
19
+ "@akemona-org/strapi-generate": "3.13.0",
20
+ "@akemona-org/strapi-generate-api": "3.13.0",
21
+ "@akemona-org/strapi-generate-controller": "3.13.0",
22
+ "@akemona-org/strapi-generate-model": "3.13.0",
23
+ "@akemona-org/strapi-generate-new": "3.13.0",
24
+ "@akemona-org/strapi-generate-plugin": "3.13.0",
25
+ "@akemona-org/strapi-generate-policy": "3.13.0",
26
+ "@akemona-org/strapi-generate-service": "3.13.0",
27
+ "@akemona-org/strapi-utils": "3.13.0",
28
28
  "@koa/cors": "3.4.3",
29
29
  "@koa/router": "12.0.0",
30
30
  "async": "^2.1.2",
@@ -139,5 +139,5 @@
139
139
  "react",
140
140
  "reactjs"
141
141
  ],
142
- "gitHead": "edf7db826c8babebcfa519e136874ba729667f8b"
142
+ "gitHead": "8bb7b41ae9cc2110f94b9338f0ec2df437e49161"
143
143
  }