@twin.org/identity-connector-universal 0.0.1-next.53 → 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.
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.mjs +2 -2
- package/docs/changelog.md +52 -0
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -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) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -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,57 @@
|
|
|
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
|
+
|
|
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)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add mainnet support ([af56a38](https://github.com/twinfoundation/identity/commit/af56a382837896cd4e13d5814c0924c46658b99c))
|
|
24
|
+
* identity key separator use slash ([1319d0d](https://github.com/twinfoundation/identity/commit/1319d0d07164a36b3ec279e6421b8835ffefc3d3))
|
|
25
|
+
* update comment ([436e030](https://github.com/twinfoundation/identity/commit/436e030e9480bdc4e35b44ad7199a5ccc7a7b31e))
|
|
26
|
+
* use shared store mechanism ([#27](https://github.com/twinfoundation/identity/issues/27)) ([ce41f3f](https://github.com/twinfoundation/identity/commit/ce41f3fc3da1b206ec06da7ea5b2c968f788804d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* Import path and bump version ([#21](https://github.com/twinfoundation/identity/issues/21)) ([ccea845](https://github.com/twinfoundation/identity/commit/ccea845bf32562267280bc1b3dde1c9af1a00360))
|
|
32
|
+
* Install sdk-wasm ([#20](https://github.com/twinfoundation/identity/issues/20)) ([75ec14e](https://github.com/twinfoundation/identity/commit/75ec14e072f8c219863a1c028a3b0783802086e9))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Dependencies
|
|
36
|
+
|
|
37
|
+
* The following workspace dependencies were updated
|
|
38
|
+
* dependencies
|
|
39
|
+
* @twin.org/identity-models bumped from 0.0.1-next.54 to 0.0.1-next.55
|
|
40
|
+
|
|
41
|
+
## [0.0.1-next.54](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.1-next.53...identity-connector-universal-v0.0.1-next.54) (2025-06-26)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Miscellaneous Chores
|
|
45
|
+
|
|
46
|
+
* **identity-connector-universal:** Synchronize repo versions
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Dependencies
|
|
50
|
+
|
|
51
|
+
* The following workspace dependencies were updated
|
|
52
|
+
* dependencies
|
|
53
|
+
* @twin.org/identity-models bumped from 0.0.1-next.53 to 0.0.1-next.54
|
|
54
|
+
|
|
3
55
|
## [0.0.1-next.53](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.1-next.52...identity-connector-universal-v0.0.1-next.53) (2025-06-23)
|
|
4
56
|
|
|
5
57
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-connector-universal",
|
|
3
|
-
"version": "0.0.1-next.
|
|
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.
|
|
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"
|