@twin.org/identity-connector-universal 0.0.2-next.7 → 0.0.2-next.9

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.
@@ -16,7 +16,7 @@ class UniversalResolverConnector {
16
16
  /**
17
17
  * Runtime name for the class.
18
18
  */
19
- CLASS_NAME = "UniversalResolverConnector";
19
+ static CLASS_NAME = "UniversalResolverConnector";
20
20
  /**
21
21
  * The url for the resolver.
22
22
  * @internal
@@ -27,9 +27,9 @@ class UniversalResolverConnector {
27
27
  * @param options The options for the identity connector.
28
28
  */
29
29
  constructor(options) {
30
- core.Guards.object(this.CLASS_NAME, "options", options);
31
- core.Guards.object(this.CLASS_NAME, "options.config", options.config);
32
- core.Guards.stringValue(this.CLASS_NAME, "options.config.endpoint", options.config.endpoint);
30
+ core.Guards.object(UniversalResolverConnector.CLASS_NAME, "options", options);
31
+ core.Guards.object(UniversalResolverConnector.CLASS_NAME, "options.config", options.config);
32
+ core.Guards.stringValue(UniversalResolverConnector.CLASS_NAME, "options.config.endpoint", options.config.endpoint);
33
33
  this._resolverEndpoint = options.config.endpoint;
34
34
  }
35
35
  /**
@@ -40,11 +40,11 @@ class UniversalResolverConnector {
40
40
  */
41
41
  async resolveDocument(documentId) {
42
42
  try {
43
- const result = await web.FetchHelper.fetchJson(this.CLASS_NAME, `${core.StringHelper.trimTrailingSlashes(this._resolverEndpoint)}/1.0/identifiers/${encodeURIComponent(documentId)}`, web.HttpMethod.GET);
43
+ const result = await web.FetchHelper.fetchJson(UniversalResolverConnector.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) {
47
- throw new core.GeneralError(this.CLASS_NAME, "resolveDocumentFailed", { documentId }, error);
47
+ throw new core.GeneralError(UniversalResolverConnector.CLASS_NAME, "resolveDocumentFailed", { documentId }, error);
48
48
  }
49
49
  }
50
50
  }
@@ -14,7 +14,7 @@ class UniversalResolverConnector {
14
14
  /**
15
15
  * Runtime name for the class.
16
16
  */
17
- CLASS_NAME = "UniversalResolverConnector";
17
+ static CLASS_NAME = "UniversalResolverConnector";
18
18
  /**
19
19
  * The url for the resolver.
20
20
  * @internal
@@ -25,9 +25,9 @@ class UniversalResolverConnector {
25
25
  * @param options The options for the identity connector.
26
26
  */
27
27
  constructor(options) {
28
- Guards.object(this.CLASS_NAME, "options", options);
29
- Guards.object(this.CLASS_NAME, "options.config", options.config);
30
- Guards.stringValue(this.CLASS_NAME, "options.config.endpoint", options.config.endpoint);
28
+ Guards.object(UniversalResolverConnector.CLASS_NAME, "options", options);
29
+ Guards.object(UniversalResolverConnector.CLASS_NAME, "options.config", options.config);
30
+ Guards.stringValue(UniversalResolverConnector.CLASS_NAME, "options.config.endpoint", options.config.endpoint);
31
31
  this._resolverEndpoint = options.config.endpoint;
32
32
  }
33
33
  /**
@@ -38,11 +38,11 @@ class UniversalResolverConnector {
38
38
  */
39
39
  async resolveDocument(documentId) {
40
40
  try {
41
- const result = await FetchHelper.fetchJson(this.CLASS_NAME, `${StringHelper.trimTrailingSlashes(this._resolverEndpoint)}/1.0/identifiers/${encodeURIComponent(documentId)}`, HttpMethod.GET);
41
+ const result = await FetchHelper.fetchJson(UniversalResolverConnector.CLASS_NAME, `${StringHelper.trimTrailingSlashes(this._resolverEndpoint)}/1.0/identifiers/${encodeURIComponent(documentId)}`, HttpMethod.GET);
42
42
  return result.didDocument;
43
43
  }
44
44
  catch (error) {
45
- throw new GeneralError(this.CLASS_NAME, "resolveDocumentFailed", { documentId }, error);
45
+ throw new GeneralError(UniversalResolverConnector.CLASS_NAME, "resolveDocumentFailed", { documentId }, error);
46
46
  }
47
47
  }
48
48
  }
@@ -12,7 +12,7 @@ export declare class UniversalResolverConnector implements IIdentityResolverConn
12
12
  /**
13
13
  * Runtime name for the class.
14
14
  */
15
- readonly CLASS_NAME: string;
15
+ static readonly CLASS_NAME: string;
16
16
  /**
17
17
  * Create a new instance of UniversalResolverConnector.
18
18
  * @param options The options for the identity connector.
package/docs/changelog.md CHANGED
@@ -1,5 +1,33 @@
1
1
  # @twin.org/identity-connector-Universal - Changelog
2
2
 
3
+ ## [0.0.2-next.9](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.2-next.8...identity-connector-universal-v0.0.2-next.9) (2025-10-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * add validate-locales ([04d74b4](https://github.com/twinfoundation/identity/commit/04d74b4d1ebe42672e8ca75a7bdb8e3556afd0be))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/identity-models bumped from 0.0.2-next.8 to 0.0.2-next.9
16
+
17
+ ## [0.0.2-next.8](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.2-next.7...identity-connector-universal-v0.0.2-next.8) (2025-09-25)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **identity-connector-universal:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/identity-models bumped from 0.0.2-next.7 to 0.0.2-next.8
30
+
3
31
  ## [0.0.2-next.7](https://github.com/twinfoundation/identity/compare/identity-connector-universal-v0.0.2-next.6...identity-connector-universal-v0.0.2-next.7) (2025-09-23)
4
32
 
5
33
 
@@ -38,14 +38,10 @@ The namespace supported by the identity connector.
38
38
 
39
39
  ### CLASS\_NAME
40
40
 
41
- > `readonly` **CLASS\_NAME**: `string`
41
+ > `readonly` `static` **CLASS\_NAME**: `string`
42
42
 
43
43
  Runtime name for the class.
44
44
 
45
- #### Implementation of
46
-
47
- `IIdentityResolverConnector.CLASS_NAME`
48
-
49
45
  ## Methods
50
46
 
51
47
  ### resolveDocument()
package/locales/en.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "error": {
3
3
  "universalResolverConnector": {
4
- "documentNotFound": "The document could not be found",
5
4
  "resolveDocumentFailed": "Resolving the document failed \"{documentId}\""
6
5
  }
7
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-connector-universal",
3
- "version": "0.0.2-next.7",
3
+ "version": "0.0.2-next.9",
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.2-next.7",
18
+ "@twin.org/identity-models": "0.0.2-next.9",
19
19
  "@twin.org/nameof": "next",
20
20
  "@twin.org/standards-w3c-did": "next",
21
21
  "@twin.org/web": "next"
@@ -37,5 +37,23 @@
37
37
  "dist/types",
38
38
  "locales",
39
39
  "docs"
40
- ]
40
+ ],
41
+ "keywords": [
42
+ "twin",
43
+ "trade",
44
+ "iota",
45
+ "framework",
46
+ "blockchain",
47
+ "identity",
48
+ "did",
49
+ "credentials",
50
+ "authentication",
51
+ "connector",
52
+ "adapter",
53
+ "integration"
54
+ ],
55
+ "bugs": {
56
+ "url": "git+https://github.com/twinfoundation/identity/issues"
57
+ },
58
+ "homepage": "https://twindev.org"
41
59
  }