We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f31f9 commit e1318b6Copy full SHA for e1318b6
packages/database/test/helpers/util.ts
@@ -15,7 +15,6 @@
15
* limitations under the License.
16
*/
17
18
-
19
import { uuidv4 } from '@firebase/util';
20
import { Database, ref } from '../../src';
21
import { ConnectionTarget } from '../../src/api/test_access';
packages/util/src/uuid.ts
@@ -19,10 +19,10 @@
* Copied from https://stackoverflow.com/a/2117523
* Generates a new uuid.
22
-export const uuidv4 = function(): string {
+export const uuidv4 = function (): string {
23
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
24
const r = (Math.random() * 16) | 0,
25
v = c === 'x' ? r : (r & 0x3) | 0x8;
26
return v.toString(16);
27
});
28
-}
+};
0 commit comments