did-sdk-dev
Version:
SAN did sdk
31 lines • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var index_1 = require("./did/index");
var index_2 = require("./issuer/index");
var index_3 = require("./claim/index");
var index_4 = require("./crypto/index");
var utils_1 = require("./utils");
var SANClient = (function () {
function SANClient(option) {
if (option && option.serviceEndpoint) {
this.serviceEndpoint = option.serviceEndpoint;
}
else {
this.serviceEndpoint = global.serviceEndpoint;
}
if (option && option.fetch) {
this.fetch = option.fetch;
}
else {
this.fetch = global.fetch;
}
this.did = new index_1.did(this);
this.claim = new index_3.claim(this);
this.issuer = new index_2.issuer(this);
this.crypto = new index_4.crypto();
this.utils = new utils_1.utils();
}
return SANClient;
}());
exports.SANClient = SANClient;
//# sourceMappingURL=SANClient.js.map