@twin.org/identity-connector-universal 0.0.1-next.55 → 0.0.1-next.57

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.
@@ -40,7 +40,7 @@ class UniversalResolverConnector {
40
40
  */
41
41
  async resolveDocument(documentId) {
42
42
  try {
43
- const result = await web.FetchHelper.fetchJson(this.CLASS_NAME, `${this._resolverEndpoint}/1.0/identifiers/${encodeURIComponent(documentId)}`, web.HttpMethod.GET);
43
+ const result = await web.FetchHelper.fetchJson(this.CLASS_NAME, `${core.StringHelper.trimTrailingSlashes(this._resolverEndpoint)}/1.0/identifiers/${encodeURIComponent(documentId)}`, web.HttpMethod.GET);
44
44
  return result.didDocument;
45
45
  }
46
46
  catch (error) {
@@ -1,4 +1,4 @@
1
- import { Guards, GeneralError } from '@twin.org/core';
1
+ import { Guards, StringHelper, GeneralError } from '@twin.org/core';
2
2
  import { FetchHelper, HttpMethod } from '@twin.org/web';
3
3
 
4
4
  // Copyright 2024 IOTA Stiftung.
@@ -38,7 +38,7 @@ class UniversalResolverConnector {
38
38
  */
39
39
  async resolveDocument(documentId) {
40
40
  try {
41
- const result = await FetchHelper.fetchJson(this.CLASS_NAME, `${this._resolverEndpoint}/1.0/identifiers/${encodeURIComponent(documentId)}`, HttpMethod.GET);
41
+ const result = await FetchHelper.fetchJson(this.CLASS_NAME, `${StringHelper.trimTrailingSlashes(this._resolverEndpoint)}/1.0/identifiers/${encodeURIComponent(documentId)}`, HttpMethod.GET);
42
42
  return result.didDocument;
43
43
  }
44
44
  catch (error) {
package/docs/changelog.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # @twin.org/identity-connector-Universal - Changelog
2
2
 
3
+ ## [0.0.1-next.57](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.1-next.56...identity-connector-universal-v0.0.1-next.57) (2025-07-08)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **identity-connector-universal:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/identity-models bumped from 0.0.1-next.56 to 0.0.1-next.57
16
+
17
+ ## [0.0.1-next.56](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.1-next.55...identity-connector-universal-v0.0.1-next.56) (2025-06-30)
18
+
19
+
20
+ ### Features
21
+
22
+ * improve url construction ([544a435](https://github.com/twinfoundation/identity/commit/544a435dadb90b9e29533f4a4ce09725268d04bd))
23
+ * re-use vault keys if available ([5a848d7](https://github.com/twinfoundation/identity/commit/5a848d7520829d9c891ec889fd773fbc0ee77ba5))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/identity-models bumped from 0.0.1-next.55 to 0.0.1-next.56
31
+
3
32
  ## [0.0.1-next.55](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.1-next.54...identity-connector-universal-v0.0.1-next.55) (2025-06-26)
4
33
 
5
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-connector-universal",
3
- "version": "0.0.1-next.55",
3
+ "version": "0.0.1-next.57",
4
4
  "description": "Identity connector implementation using universal resolver",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@twin.org/core": "next",
18
- "@twin.org/identity-models": "0.0.1-next.55",
18
+ "@twin.org/identity-models": "0.0.1-next.57",
19
19
  "@twin.org/nameof": "next",
20
20
  "@twin.org/standards-w3c-did": "next",
21
21
  "@twin.org/web": "next"