@bangle.dev/js-utils
Advanced tools
Comparing version 0.21.0-alpha.2 to 0.21.0-alpha.3
let counter = 0; | ||
let unique = Math.random(); | ||
export class ObjectUID extends WeakMap { | ||
@@ -8,3 +9,3 @@ get(obj) { | ||
} | ||
uid = (counter++).toString(); | ||
uid = (counter++).toString() + '-' + unique; | ||
this.set(obj, uid); | ||
@@ -11,0 +12,0 @@ return uid; |
let counter = 0; | ||
let unique = Math.random(); | ||
@@ -9,3 +10,3 @@ export class ObjectUID extends WeakMap { | ||
} | ||
uid = (counter++).toString(); | ||
uid = (counter++).toString() + '-' + unique; | ||
this.set(obj, uid); | ||
@@ -12,0 +13,0 @@ return uid; |
{ | ||
"name": "@bangle.dev/js-utils", | ||
"version": "0.21.0-alpha.2", | ||
"version": "0.21.0-alpha.3", | ||
"homepage": "https://bangle.dev", | ||
@@ -5,0 +5,0 @@ "authors": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63580
1134