@steedos/service-api 2.2.16 → 2.2.19

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.
Files changed (3) hide show
  1. package/LICENSE.txt +2 -2
  2. package/index.js +1 -1
  3. package/package.json +3 -3
package/LICENSE.txt CHANGED
@@ -15,8 +15,8 @@ On request, licenses under different terms are available.
15
15
  Project templates can be found in the folders steedos-projects/
16
16
 
17
17
  Source code of enterprise features are files that
18
- * are in folders named "ee" or end with "_ee", or in subfolders of such folders.
19
- * contain the strings "_ee" in its filename name.
18
+ * are in folders named "ee" or start with "ee_", or in subfolders of such folders.
19
+ * contain the strings "ee_" in its filename name.
20
20
  The files can be found by running the command `find . -iname ee -or -iname "*_ee*" -or -iname "*ee_*"`
21
21
 
22
22
  STEEDOS TRADEMARK GUIDELINES
package/index.js CHANGED
@@ -228,7 +228,7 @@ module.exports = {
228
228
  const user = ctx.meta.user;
229
229
 
230
230
  if (!user) {
231
- return res.status(401).send('NO_RIGHTS');
231
+ throw new ApiGateway.Errors.UnAuthorizedError("NO_RIGHTS");
232
232
  }
233
233
 
234
234
  // // It check the `auth` property in action schema.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@steedos/service-api",
3
- "version": "2.2.16",
3
+ "version": "2.2.19",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
7
- "@steedos/auth": "2.2.16",
7
+ "@steedos/auth": "2.2.19",
8
8
  "graphql-type-json": "^0.3.2",
9
9
  "moleculer-apollo-server": "^0.3.3",
10
10
  "moleculer-web": "^0.10.4"
@@ -13,5 +13,5 @@
13
13
  "publishConfig": {
14
14
  "access": "public"
15
15
  },
16
- "gitHead": "cb243763c0b81f01c414c617725583bdc831ee9f"
16
+ "gitHead": "952067d4517fd07335b75c63fec4700f18db73ec"
17
17
  }