File tree Expand file tree Collapse file tree 9 files changed +58
-10
lines changed Expand file tree Collapse file tree 9 files changed +58
-10
lines changed Original file line number Diff line number Diff line change @@ -23753,6 +23753,14 @@ Users.prototype.list = function () {
23753
23753
return usersList;
23754
23754
};
23755
23755
23756
+ /**
23757
+ * Returns the number of registered identities
23758
+ * @return {number}
23759
+ */
23760
+ Users.prototype.count = function () {
23761
+ return Object.keys(this.list()).length;
23762
+ };
23763
+
23756
23764
/**
23757
23765
* Remove an identity
23758
23766
* @param {string} userId - The ID of the user
@@ -23921,8 +23929,12 @@ function Client(options) {
23921
23929
options.requestTimeout = 4000;
23922
23930
}
23923
23931
23932
+ if (!options.oidc) {
23933
+ options.oidc = {};
23934
+ }
23935
+
23924
23936
// Set the client name using the current lib version and provided application info
23925
- options.clientName = "MIRACL Client.js/8.2 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23937
+ options.clientName = "MIRACL Client.js/8.5 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23926
23938
23927
23939
self.options = options;
23928
23940
Original file line number Diff line number Diff line change @@ -23753,6 +23753,14 @@ Users.prototype.list = function () {
23753
23753
return usersList;
23754
23754
};
23755
23755
23756
+ /**
23757
+ * Returns the number of registered identities
23758
+ * @return {number}
23759
+ */
23760
+ Users.prototype.count = function () {
23761
+ return Object.keys(this.list()).length;
23762
+ };
23763
+
23756
23764
/**
23757
23765
* Remove an identity
23758
23766
* @param {string} userId - The ID of the user
@@ -23921,8 +23929,12 @@ function Client(options) {
23921
23929
options.requestTimeout = 4000;
23922
23930
}
23923
23931
23932
+ if (!options.oidc) {
23933
+ options.oidc = {};
23934
+ }
23935
+
23924
23936
// Set the client name using the current lib version and provided application info
23925
- options.clientName = "MIRACL Client.js/8.2 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23937
+ options.clientName = "MIRACL Client.js/8.5 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23926
23938
23927
23939
self.options = options;
23928
23940
Original file line number Diff line number Diff line change @@ -23754,6 +23754,14 @@ Users.prototype.list = function () {
23754
23754
return usersList;
23755
23755
};
23756
23756
23757
+ /**
23758
+ * Returns the number of registered identities
23759
+ * @return {number}
23760
+ */
23761
+ Users.prototype.count = function () {
23762
+ return Object.keys(this.list()).length;
23763
+ };
23764
+
23757
23765
/**
23758
23766
* Remove an identity
23759
23767
* @param {string} userId - The ID of the user
@@ -23922,8 +23930,12 @@ function Client(options) {
23922
23930
options.requestTimeout = 4000;
23923
23931
}
23924
23932
23933
+ if (!options.oidc) {
23934
+ options.oidc = {};
23935
+ }
23936
+
23925
23937
// Set the client name using the current lib version and provided application info
23926
- options.clientName = "MIRACL Client.js/8.2 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23938
+ options.clientName = "MIRACL Client.js/8.5 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23927
23939
23928
23940
self.options = options;
23929
23941
Original file line number Diff line number Diff line change @@ -23754,6 +23754,14 @@ Users.prototype.list = function () {
23754
23754
return usersList;
23755
23755
};
23756
23756
23757
+ /**
23758
+ * Returns the number of registered identities
23759
+ * @return {number}
23760
+ */
23761
+ Users.prototype.count = function () {
23762
+ return Object.keys(this.list()).length;
23763
+ };
23764
+
23757
23765
/**
23758
23766
* Remove an identity
23759
23767
* @param {string} userId - The ID of the user
@@ -23922,8 +23930,12 @@ function Client(options) {
23922
23930
options.requestTimeout = 4000;
23923
23931
}
23924
23932
23933
+ if (!options.oidc) {
23934
+ options.oidc = {};
23935
+ }
23936
+
23925
23937
// Set the client name using the current lib version and provided application info
23926
- options.clientName = "MIRACL Client.js/8.2 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23938
+ options.clientName = "MIRACL Client.js/8.5 .0" + (options.applicationInfo ? " " + options.applicationInfo : "");
23927
23939
23928
23940
self.options = options;
23929
23941
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @miracl/client-js" ,
3
- "version" : " 8.4 .0" ,
3
+ "version" : " 8.5 .0" ,
4
4
"description" : " MIRACL Trust client library" ,
5
5
"main" : " ./src/client.js" ,
6
6
"exports" : {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default function Client(options) {
56
56
}
57
57
58
58
// Set the client name using the current lib version and provided application info
59
- options . clientName = "MIRACL Client.js/8.4 .0" + ( options . applicationInfo ? " " + options . applicationInfo : "" ) ;
59
+ options . clientName = "MIRACL Client.js/8.5 .0" + ( options . applicationInfo ? " " + options . applicationInfo : "" ) ;
60
60
61
61
self . options = options ;
62
62
You can’t perform that action at this time.
0 commit comments