@esfaenza/extensions 11.2.8 → 11.2.12

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.
@@ -15,13 +15,21 @@ export declare class HashingService {
15
15
  * @param {number} level Livello di ricorsione nel caso venga effettuato l'hash di un oggetto che contiene altri oggetti
16
16
  * @param {boolean} navigateFullDepth Indica se navigare l'oggetto per l'intera lunghezza. In caso contrario si ferma al secondo livello
17
17
  *
18
- * @returns {string} md5 generato per l'oggetto in questione
18
+ * @returns {string} Hash generato per l'oggetto in questione
19
19
  */
20
- hashObject(o: any, level?: number, navigateFullDepth?: boolean): string;
20
+ hashObject(o: any, level?: number, navigateFullDepth?: boolean, precise?: boolean): string;
21
+ /**
22
+ * Hash più semplice e più veloce dell'md5, ma meno sicuro
23
+ *
24
+ * Vedi https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript
25
+ *
26
+ * @param {string} str Stringa di cui calcolare l'hash
27
+ */
28
+ private simpleHash;
21
29
  /**
22
30
  * Blacklist dei tipi da ignorare quando si effettua l'hashing degli oggetti
23
31
  */
24
- private ObjectHashingBlacklist;
32
+ private objBlacklist;
25
33
  /**
26
34
  * Genera una stringa che identifica univocamente l'oggetto in questione
27
35
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/extensions",
3
- "version": "11.2.8",
3
+ "version": "11.2.12",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },