@aeriajs/builtins 0.0.258 → 0.0.259

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.
@@ -128,7 +128,7 @@ const authenticate = async (props, context) => {
128
128
  }
129
129
  return types_1.Result.result(await (0, authentication_js_1.successfulAuthentication)(user, context));
130
130
  }
131
- if (typeof props.email !== 'string' || typeof props.password !== 'string') {
131
+ if (!props.email || !props.password) {
132
132
  return context.error(types_1.HTTPStatus.Unauthorized, {
133
133
  code: authentication_js_1.AuthenticationError.InvalidCredentials,
134
134
  });
@@ -124,7 +124,7 @@ export const authenticate = async (props, context) => {
124
124
  }
125
125
  return Result.result(await successfulAuthentication(user2, context));
126
126
  }
127
- if (typeof props.email !== "string" || typeof props.password !== "string") {
127
+ if (!props.email || !props.password) {
128
128
  return context.error(HTTPStatus.Unauthorized, {
129
129
  code: AuthenticationError.InvalidCredentials
130
130
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/builtins",
3
- "version": "0.0.258",
3
+ "version": "0.0.259",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -45,10 +45,10 @@
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@aeriajs/common": "^0.0.144",
48
- "@aeriajs/core": "^0.0.258",
48
+ "@aeriajs/core": "^0.0.259",
49
49
  "@aeriajs/entrypoint": "^0.0.149",
50
50
  "@aeriajs/types": "^0.0.126",
51
- "@aeriajs/validation": "^0.0.161"
51
+ "@aeriajs/validation": "^0.0.162"
52
52
  },
53
53
  "scripts": {
54
54
  "test": "echo skipping",