@xtr-dev/rondevu-client 0.12.3 → 0.12.4
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/rondevu-service.js +11 -0
- package/package.json +1 -1
package/dist/rondevu-service.js
CHANGED
|
@@ -36,14 +36,25 @@ export class RondevuService {
|
|
|
36
36
|
this.username = options.username;
|
|
37
37
|
this.keypair = options.keypair || null;
|
|
38
38
|
this.api = new RondevuAPI(options.apiUrl, options.credentials);
|
|
39
|
+
console.log('[RondevuService] Constructor called:', {
|
|
40
|
+
username: this.username,
|
|
41
|
+
hasKeypair: !!this.keypair,
|
|
42
|
+
publicKey: this.keypair?.publicKey
|
|
43
|
+
});
|
|
39
44
|
}
|
|
40
45
|
/**
|
|
41
46
|
* Initialize the service - generates keypair if not provided
|
|
42
47
|
* Call this before using other methods
|
|
43
48
|
*/
|
|
44
49
|
async initialize() {
|
|
50
|
+
console.log('[RondevuService] Initialize called, hasKeypair:', !!this.keypair);
|
|
45
51
|
if (!this.keypair) {
|
|
52
|
+
console.log('[RondevuService] Generating new keypair...');
|
|
46
53
|
this.keypair = await RondevuAPI.generateKeypair();
|
|
54
|
+
console.log('[RondevuService] Generated keypair, publicKey:', this.keypair.publicKey);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
console.log('[RondevuService] Using existing keypair, publicKey:', this.keypair.publicKey);
|
|
47
58
|
}
|
|
48
59
|
// Register with API if no credentials provided
|
|
49
60
|
if (!this.api['credentials']) {
|
package/package.json
CHANGED