@twin.org/identity-service 0.0.1-next.21 → 0.0.1-next.23
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
CHANGED
|
@@ -630,7 +630,7 @@ class IdentityResolverService {
|
|
|
630
630
|
/**
|
|
631
631
|
* The namespace supported by the identity service.
|
|
632
632
|
*/
|
|
633
|
-
static NAMESPACE = "
|
|
633
|
+
static NAMESPACE = "identity-resolver";
|
|
634
634
|
/**
|
|
635
635
|
* Runtime name for the class.
|
|
636
636
|
*/
|
|
@@ -691,9 +691,9 @@ class IdentityResolverService {
|
|
|
691
691
|
*/
|
|
692
692
|
getConnectorByUri(id) {
|
|
693
693
|
const idUri = core.Urn.fromValidString(id);
|
|
694
|
-
if (idUri.namespaceIdentifier() !==
|
|
694
|
+
if (idUri.namespaceIdentifier() !== "did") {
|
|
695
695
|
throw new core.GeneralError(this.CLASS_NAME, "namespaceMismatch", {
|
|
696
|
-
namespace:
|
|
696
|
+
namespace: "did",
|
|
697
697
|
id
|
|
698
698
|
});
|
|
699
699
|
}
|
|
@@ -733,7 +733,7 @@ class IdentityService {
|
|
|
733
733
|
/**
|
|
734
734
|
* The namespace supported by the identity service.
|
|
735
735
|
*/
|
|
736
|
-
static NAMESPACE = "
|
|
736
|
+
static NAMESPACE = "identity";
|
|
737
737
|
/**
|
|
738
738
|
* Runtime name for the class.
|
|
739
739
|
*/
|
|
@@ -991,9 +991,9 @@ class IdentityService {
|
|
|
991
991
|
*/
|
|
992
992
|
getConnectorByUri(id) {
|
|
993
993
|
const idUri = core.Urn.fromValidString(id);
|
|
994
|
-
if (idUri.namespaceIdentifier() !==
|
|
994
|
+
if (idUri.namespaceIdentifier() !== "did") {
|
|
995
995
|
throw new core.GeneralError(this.CLASS_NAME, "namespaceMismatch", {
|
|
996
|
-
namespace:
|
|
996
|
+
namespace: "did",
|
|
997
997
|
id
|
|
998
998
|
});
|
|
999
999
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -628,7 +628,7 @@ class IdentityResolverService {
|
|
|
628
628
|
/**
|
|
629
629
|
* The namespace supported by the identity service.
|
|
630
630
|
*/
|
|
631
|
-
static NAMESPACE = "
|
|
631
|
+
static NAMESPACE = "identity-resolver";
|
|
632
632
|
/**
|
|
633
633
|
* Runtime name for the class.
|
|
634
634
|
*/
|
|
@@ -689,9 +689,9 @@ class IdentityResolverService {
|
|
|
689
689
|
*/
|
|
690
690
|
getConnectorByUri(id) {
|
|
691
691
|
const idUri = Urn.fromValidString(id);
|
|
692
|
-
if (idUri.namespaceIdentifier() !==
|
|
692
|
+
if (idUri.namespaceIdentifier() !== "did") {
|
|
693
693
|
throw new GeneralError(this.CLASS_NAME, "namespaceMismatch", {
|
|
694
|
-
namespace:
|
|
694
|
+
namespace: "did",
|
|
695
695
|
id
|
|
696
696
|
});
|
|
697
697
|
}
|
|
@@ -731,7 +731,7 @@ class IdentityService {
|
|
|
731
731
|
/**
|
|
732
732
|
* The namespace supported by the identity service.
|
|
733
733
|
*/
|
|
734
|
-
static NAMESPACE = "
|
|
734
|
+
static NAMESPACE = "identity";
|
|
735
735
|
/**
|
|
736
736
|
* Runtime name for the class.
|
|
737
737
|
*/
|
|
@@ -989,9 +989,9 @@ class IdentityService {
|
|
|
989
989
|
*/
|
|
990
990
|
getConnectorByUri(id) {
|
|
991
991
|
const idUri = Urn.fromValidString(id);
|
|
992
|
-
if (idUri.namespaceIdentifier() !==
|
|
992
|
+
if (idUri.namespaceIdentifier() !== "did") {
|
|
993
993
|
throw new GeneralError(this.CLASS_NAME, "namespaceMismatch", {
|
|
994
|
-
namespace:
|
|
994
|
+
namespace: "did",
|
|
995
995
|
id
|
|
996
996
|
});
|
|
997
997
|
}
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-service",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.23",
|
|
4
4
|
"description": "Identity contract implementation and REST endpoint definitions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@twin.org/entity": "next",
|
|
23
23
|
"@twin.org/entity-storage-connector-memory": "next",
|
|
24
24
|
"@twin.org/entity-storage-models": "next",
|
|
25
|
-
"@twin.org/identity-connector-entity-storage": "0.0.1-next.
|
|
26
|
-
"@twin.org/identity-models": "0.0.1-next.
|
|
25
|
+
"@twin.org/identity-connector-entity-storage": "0.0.1-next.23",
|
|
26
|
+
"@twin.org/identity-models": "0.0.1-next.23",
|
|
27
27
|
"@twin.org/standards-w3c-did": "next",
|
|
28
28
|
"@twin.org/vault-connector-entity-storage": "next",
|
|
29
29
|
"@twin.org/vault-models": "next",
|