@arsedizioni/ars-utils 20.4.10 → 20.4.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.
package/core/index.d.ts CHANGED
@@ -408,39 +408,6 @@ declare class SystemUtils {
408
408
  * @returns true if the color is light
409
409
  */
410
410
  static isColorLight(color: string, minimumLuminance?: number): boolean;
411
- /**
412
- * Get a unique machine id
413
- * @returns : the machine id
414
- */
415
- static getMachineId(): string;
416
- /**
417
- * Browser fingerprint
418
- */
419
- private static collectFingerprint;
420
- /**
421
- * Canvas fingerprinting
422
- */
423
- private static getCanvasFingerprint;
424
- /**
425
- * WebGL fingerprinting
426
- */
427
- private static getWebGLFingerprint;
428
- /**
429
- * Audio context fingerprinting
430
- */
431
- private static getAudioFingerprint;
432
- /**
433
- * Rileva font disponibili
434
- */
435
- private static detectFonts;
436
- /**
437
- * Ottiene lista plugins
438
- */
439
- private static getPlugins;
440
- /**
441
- * Genera hash SHA-256-like da stringa (semplificato)
442
- */
443
- private static generateHash;
444
411
  }
445
412
 
446
413
  interface DoneResult<T> {
@@ -2061,8 +2061,8 @@ class ClipperService {
2061
2061
  if (!sessionStorage.getItem('clipper_client_id')) {
2062
2062
  sessionStorage.setItem('clipper_client_id', SystemUtils.generateUUID());
2063
2063
  }
2064
- if (!sessionStorage.getItem('clipper_machine_id')) {
2065
- sessionStorage.setItem('clipper_machine_id', SystemUtils.getMachineId());
2064
+ if (!localStorage.getItem('clipper_machine_id')) {
2065
+ localStorage.setItem('clipper_machine_id', SystemUtils.generateUUID());
2066
2066
  }
2067
2067
  // Initialize
2068
2068
  this._serviceUri = serviceUri;