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

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,20 @@
1
1
  # @twin.org/identity-connector-Universal - Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Features
7
+
8
+ * improve url construction ([544a435](https://github.com/twinfoundation/identity/commit/544a435dadb90b9e29533f4a4ce09725268d04bd))
9
+ * re-use vault keys if available ([5a848d7](https://github.com/twinfoundation/identity/commit/5a848d7520829d9c891ec889fd773fbc0ee77ba5))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * dependencies
16
+ * @twin.org/identity-models bumped from 0.0.1-next.55 to 0.0.1-next.56
17
+
3
18
  ## [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
19
 
5
20
 
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.56",
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.56",
19
19
  "@twin.org/nameof": "next",
20
20
  "@twin.org/standards-w3c-did": "next",
21
21
  "@twin.org/web": "next"