@cripty2001/utils 0.0.197 → 0.0.198

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.
@@ -138,7 +138,11 @@ class Appserver {
138
138
  this.unsafeRegister(`/exec/${action}`, inputSchema, false, handler);
139
139
  }
140
140
  registerPrivate(action, inputSchema, handler) {
141
- this.unsafeRegister(`/exec/${action}`, inputSchema, true, (input, user) => handler(input, user));
141
+ this.unsafeRegister(`/exec/${action}`, inputSchema, true, (input, user) => {
142
+ if (user === null)
143
+ throw new AppserverAuthError();
144
+ return handler(input, user);
145
+ });
142
146
  }
143
147
  unsafeRegister(action, inputSchema, auth, handler) {
144
148
  if (this.registered.has(action))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cripty2001/utils",
3
- "version": "0.0.197",
3
+ "version": "0.0.198",
4
4
  "description": "Internal Set of utils. If you need them use them, otherwise go to the next package ;)",
5
5
  "homepage": "https://github.com/cripty2001/utils#readme",
6
6
  "bugs": {