emblem-vault-sdk 1.1.0 → 1.1.2
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/bundle.js +6 -3
- package/docs/bundle.js +684781 -0
- package/{demos → docs}/index.html +3 -2
- package/package.json +2 -2
- package/src/utils.ts +4 -2
package/dist/bundle.js
CHANGED
|
@@ -684189,7 +684189,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
684189
684189
|
};
|
|
684190
684190
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
684191
684191
|
const utils_1 = require("./utils");
|
|
684192
|
-
const SDK_VERSION = '1.1.
|
|
684192
|
+
const SDK_VERSION = '1.1.2';
|
|
684193
684193
|
class EmblemVaultSDK {
|
|
684194
684194
|
constructor(apiKey, baseUrl) {
|
|
684195
684195
|
this.apiKey = apiKey;
|
|
@@ -684644,7 +684644,7 @@ function generateTemplate(record) {
|
|
|
684644
684644
|
}
|
|
684645
684645
|
}
|
|
684646
684646
|
else {
|
|
684647
|
-
if (balance && balance[0].balance) {
|
|
684647
|
+
if (balance && balance.length > 0 && balance[0].balance) {
|
|
684648
684648
|
balanceDescription = balance[0].balance;
|
|
684649
684649
|
}
|
|
684650
684650
|
else if (balance) {
|
|
@@ -684674,7 +684674,7 @@ function generateTemplate(record) {
|
|
|
684674
684674
|
name: _this.loadTypes.includes('detailed') ? { type: "user-provided" } : _this.loadTypes.includes('select') ? { type: "selection-provided" } : "Loading...",
|
|
684675
684675
|
image: _this.loadTypes.includes('detailed') ? { type: "user-provided" } : _this.loadTypes.includes('select') ? { type: "selection-provided" } : _this.loading(),
|
|
684676
684676
|
description: _this.loadTypes.includes('detailed') ? { type: "user-provided" } : null,
|
|
684677
|
-
ownedImage: _this.loadTypes.includes('detailed') ? { type: "user-provided" } :
|
|
684677
|
+
ownedImage: _this.loadTypes.includes('detailed') ? { type: "user-provided" } : null,
|
|
684678
684678
|
projectName: _this.loadTypes.includes('select') ? _this.name : null
|
|
684679
684679
|
}
|
|
684680
684680
|
};
|
|
@@ -684721,6 +684721,9 @@ function templateGuard(input) {
|
|
|
684721
684721
|
errors.push(e.message);
|
|
684722
684722
|
}
|
|
684723
684723
|
}
|
|
684724
|
+
else if (value == "") {
|
|
684725
|
+
errors.push(`'${key}' is a required field`);
|
|
684726
|
+
}
|
|
684724
684727
|
if (errors.length > 0) {
|
|
684725
684728
|
throw new Error(errors.join(", "));
|
|
684726
684729
|
}
|