shogun-core 3.3.2 → 3.3.5
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/browser/defaultVendors-node_modules_shogun-ipfs_node_modules_axios_index_js.shogun-core.js +4078 -0
- package/dist/browser/defaultVendors-node_modules_shogun-ipfs_node_modules_axios_index_js.shogun-core.js.map +1 -0
- package/dist/browser/defaultVendors-node_modules_shogun-ipfs_node_modules_is-ipfs_dist_src_index_js.shogun-core.js +4908 -0
- package/dist/browser/defaultVendors-node_modules_shogun-ipfs_node_modules_is-ipfs_dist_src_index_js.shogun-core.js.map +1 -0
- package/dist/browser/defaultVendors-node_modules_shogun-ipfs_node_modules_uint8-varint_dist_src_index_js-node_modu-0db5ba.shogun-core.js +2109 -0
- package/dist/browser/defaultVendors-node_modules_shogun-ipfs_node_modules_uint8-varint_dist_src_index_js-node_modu-0db5ba.shogun-core.js.map +1 -0
- package/dist/browser/shogun-core.js +154301 -43558
- package/dist/browser/shogun-core.js.map +1 -1
- package/dist/ship/examples/identity-cli.js +12 -4
- package/dist/ship/examples/vault-cli.js +2 -2
- package/dist/ship/implementation/SHIP_06.js +574 -289
- package/dist/ship/interfaces/ISHIP_06.js +135 -85
- package/dist/src/gundb/db.js +7 -49
- package/dist/src/index.js +1 -0
- package/dist/types/ship/implementation/SHIP_06.d.ts +90 -55
- package/dist/types/ship/interfaces/ISHIP_06.d.ts +383 -231
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +14 -5
- package/dist/ship/examples/ephemeral-cli.js +0 -234
- package/dist/ship/implementation/SHIP_07.js +0 -635
- package/dist/ship/interfaces/ISHIP_07.js +0 -194
- package/dist/types/ship/examples/ephemeral-cli.d.ts +0 -13
- package/dist/types/ship/implementation/SHIP_07.d.ts +0 -101
- package/dist/types/ship/interfaces/ISHIP_07.d.ts +0 -522
|
@@ -49,11 +49,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
49
49
|
return result;
|
|
50
50
|
};
|
|
51
51
|
})();
|
|
52
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
53
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
54
|
+
};
|
|
52
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
56
|
exports.IdentityCLI = void 0;
|
|
54
57
|
const SHIP_00_1 = require("../implementation/SHIP_00");
|
|
55
58
|
const readline = __importStar(require("readline"));
|
|
56
59
|
const fs = __importStar(require("fs"));
|
|
60
|
+
const figlet_1 = __importDefault(require("figlet"));
|
|
57
61
|
// ============================================================================
|
|
58
62
|
// CLI Interface
|
|
59
63
|
// ============================================================================
|
|
@@ -405,10 +409,14 @@ class IdentityCLI {
|
|
|
405
409
|
// Utilities
|
|
406
410
|
// ==========================================================================
|
|
407
411
|
printHeader() {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
+
(0, figlet_1.default)("SHOGUN IDENTITY", { font: 'Standard' }, function (err, data) {
|
|
413
|
+
if (err) {
|
|
414
|
+
console.log('Qualcosa è andato storto...');
|
|
415
|
+
console.dir(err);
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
console.log(data);
|
|
419
|
+
});
|
|
412
420
|
}
|
|
413
421
|
async prompt(question) {
|
|
414
422
|
return new Promise((resolve) => {
|
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
})();
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
const SHIP_00_1 = require("../implementation/SHIP_00");
|
|
49
|
-
const
|
|
49
|
+
const SHIP_06_1 = require("../implementation/SHIP_06");
|
|
50
50
|
const readline = __importStar(require("readline"));
|
|
51
51
|
const fs = __importStar(require("fs"));
|
|
52
52
|
// ============================================================================
|
|
@@ -127,7 +127,7 @@ async function main() {
|
|
|
127
127
|
// ========================================================================
|
|
128
128
|
console.log("🔐 INITIALIZING VAULT (SHIP-07)");
|
|
129
129
|
console.log("-".repeat(70));
|
|
130
|
-
const vault = new
|
|
130
|
+
const vault = new SHIP_06_1.SHIP_06(identity);
|
|
131
131
|
await vault.initialize();
|
|
132
132
|
console.log("✅ Vault initialized");
|
|
133
133
|
console.log();
|