@fiado/api-invoker 1.0.11 → 1.0.13
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.
|
@@ -28,8 +28,8 @@ let IdentityApi = class IdentityApi {
|
|
|
28
28
|
if (ids.length === 0) {
|
|
29
29
|
throw new Error("At least one people ID is required.");
|
|
30
30
|
}
|
|
31
|
-
const url = `${this.baseUrl}identities/people?${ids.map(id => `
|
|
32
|
-
return await this.httpRequest.
|
|
31
|
+
const url = `${this.baseUrl}identities/people?${ids.map(id => `id=${encodeURIComponent(id)}`).join('&')}`;
|
|
32
|
+
return await this.httpRequest.get(`${url}`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
exports.IdentityApi = IdentityApi;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -17,9 +17,9 @@ export class IdentityApi implements IIdentityApi {
|
|
|
17
17
|
throw new Error("At least one people ID is required.")
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const url = `${this.baseUrl}identities/people?${ids.map(id => `
|
|
20
|
+
const url = `${this.baseUrl}identities/people?${ids.map(id => `id=${encodeURIComponent(id)}`).join('&')}`;
|
|
21
21
|
|
|
22
|
-
return await this.httpRequest.
|
|
22
|
+
return await this.httpRequest.get(`${url}`);
|
|
23
23
|
|
|
24
24
|
}
|
|
25
25
|
}
|