@pronto-tools-and-more/network-process 5.8.0 → 5.10.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/network-process",
3
- "version": "5.8.0",
3
+ "version": "5.10.0",
4
4
  "description": "",
5
5
  "main": "src/networkProcessMain.js",
6
6
  "type": "module",
@@ -3,8 +3,12 @@ import ky from "ky";
3
3
  import * as Assert from "../Assert/Assert.js";
4
4
 
5
5
  const getBodyFormData = (userEmail, userPassword) => {
6
- Assert.string(userEmail);
7
- Assert.string(userPassword);
6
+ if (!userEmail) {
7
+ throw new Error("user email is required");
8
+ }
9
+ if (!userPassword) {
10
+ throw new Error("user password is required");
11
+ }
8
12
  const formData = new URLSearchParams();
9
13
  formData.set("client_id", "experience-builder");
10
14
  formData.set("grant_type", "password");