shogun-core 1.3.1 → 1.3.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/core.js CHANGED
@@ -601,34 +601,5 @@ class ShogunCore {
601
601
  getAuthMethod() {
602
602
  return this.currentAuthMethod;
603
603
  }
604
- // *********************************************************************************************************
605
- // 🔐 CRYPTO CONVENIENCE METHODS 🔐
606
- // *********************************************************************************************************
607
- /**
608
- * Encrypts data using Gun.SEA (convenience method)
609
- * @param data Data to encrypt
610
- * @param key Encryption key
611
- * @returns Promise that resolves with the encrypted data
612
- */
613
- async encrypt(data, key) {
614
- return this.gundb.encrypt(data, key);
615
- }
616
- /**
617
- * Decrypts data using Gun.SEA (convenience method)
618
- * @param encryptedData Encrypted data
619
- * @param key Decryption key
620
- * @returns Promise that resolves with the decrypted data
621
- */
622
- async decrypt(encryptedData, key) {
623
- return this.gundb.decrypt(encryptedData, key);
624
- }
625
- /**
626
- * Hashes text using Gun.SEA (convenience method)
627
- * @param text Text to hash
628
- * @returns Promise that resolves with the hashed text
629
- */
630
- async hashText(text) {
631
- return this.gundb.hashText(text);
632
- }
633
604
  }
634
605
  exports.ShogunCore = ShogunCore;
@@ -11,7 +11,6 @@ export * from "./gundb";
11
11
  export * from "./gundb/rxjs-integration";
12
12
  export * from "./plugins";
13
13
  export type * from "./types/plugin";
14
- export type * from "./utils/errorHandler";
15
14
  export type { IGunUserInstance, IGunInstance } from "./gundb/gun-es/gun-es";
16
15
  export { SEA, Gun };
17
16
  export * from "./types/shogun";
@@ -197,24 +196,4 @@ export declare class ShogunCore implements IShogunCore {
197
196
  * @returns The current authentication method or undefined if not set
198
197
  */
199
198
  getAuthMethod(): AuthMethod | undefined;
200
- /**
201
- * Encrypts data using Gun.SEA (convenience method)
202
- * @param data Data to encrypt
203
- * @param key Encryption key
204
- * @returns Promise that resolves with the encrypted data
205
- */
206
- encrypt(data: any, key: string): Promise<string>;
207
- /**
208
- * Decrypts data using Gun.SEA (convenience method)
209
- * @param encryptedData Encrypted data
210
- * @param key Decryption key
211
- * @returns Promise that resolves with the decrypted data
212
- */
213
- decrypt(encryptedData: string, key: string): Promise<string | any>;
214
- /**
215
- * Hashes text using Gun.SEA (convenience method)
216
- * @param text Text to hash
217
- * @returns Promise that resolves with the hashed text
218
- */
219
- hashText(text: string): Promise<string | any>;
220
199
  }
@@ -5,3 +5,4 @@ export * from "./errors";
5
5
  export * from "./utils";
6
6
  export * from "./crypto";
7
7
  export { default as derive } from "./derive";
8
+ export type { DeriveOptions } from "./derive";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shogun-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "SHOGUN SDK - Core library for Shogun SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",