@velocitycareerlabs/common-fetchers 1.24.0-testnet-build.1a8cdfca7 → 1.25.0-dev-build.15d1dcff7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/common-fetchers",
3
- "version": "1.24.0-testnet-build.1a8cdfca7",
3
+ "version": "1.25.0-dev-build.15d1dcff7",
4
4
  "description": "Set of fetchers used by Velocity Network servers",
5
5
  "repository": "https://github.com/velocitycareerlabs/packages",
6
6
  "main": "src/index.js",
@@ -15,20 +15,20 @@
15
15
  "author": "Andres Olave",
16
16
  "license": "Apache-2.0",
17
17
  "dependencies": {
18
- "lodash": "~4.17.20"
18
+ "lodash": "^4.17.21"
19
19
  },
20
20
  "devDependencies": {
21
- "eslint": "7.32.0",
21
+ "eslint": "8.57.1",
22
22
  "eslint-config-airbnb-base": "14.2.1",
23
23
  "eslint-config-prettier": "8.10.0",
24
24
  "eslint-plugin-autofix": "1.1.0",
25
- "eslint-plugin-better-mutation": "1.5.0",
26
- "eslint-plugin-import": "2.29.1",
27
- "eslint-plugin-prefer-arrow-functions": "3.3.2",
25
+ "eslint-plugin-better-mutation": "1.6.0",
26
+ "eslint-plugin-import": "2.31.0",
27
+ "eslint-plugin-prefer-arrow-functions": "3.6.2",
28
28
  "eslint-plugin-prettier": "4.2.1",
29
29
  "eslint-watch": "7.0.0",
30
30
  "jest": "29.7.0",
31
31
  "prettier": "2.8.8"
32
32
  },
33
- "gitHead": "6c41252e54380fc0a7f03c3d8ce04fa6dc5df05d"
33
+ "gitHead": "e070326888e6f8cb568054837cde6dc765c6535a"
34
34
  }
@@ -18,7 +18,9 @@ const getOrganizationVerifiedProfile = async (
18
18
  orgDid,
19
19
  { registrarFetch, cache }
20
20
  ) => {
21
- const path = `api/v0.6/organizations/${orgDid}/verified-profile`;
21
+ const path = `api/v0.6/organizations/${encodeURIComponent(
22
+ orgDid
23
+ )}/verified-profile`;
22
24
  const options = { cache };
23
25
  if (registrarFetch.responseType === 'promise') {
24
26
  const response = await registrarFetch.get(path, options);
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  const resolveDid = async (orgDid, { registrarFetch }) => {
18
- const path = `api/v0.6/resolve-did/${orgDid}`;
18
+ const path = `api/v0.6/resolve-did/${encodeURIComponent(orgDid)}`;
19
19
  if (registrarFetch.responseType === 'promise') {
20
20
  const response = await registrarFetch.get(path);
21
21
  return response.json();