Share uuid

Summary: Expose uuid from flipper-common as it is required in multiple packages

Reviewed By: lblasa

Differential Revision: D36441889

fbshipit-source-id: 1fa539cb437976dbefe7d5d9a52e5e098a6402a7
This commit is contained in:
Andrey Goncharov
2022-05-18 03:13:31 -07:00
committed by Facebook GitHub Bot
parent 88bc3110a5
commit 0f038218f8
11 changed files with 24 additions and 19 deletions

View File

@@ -24,12 +24,10 @@
"react-color": "^2.19.3",
"react-element-to-jsx-string": "^14.3.4",
"react-virtual": "^2.10.4",
"string-natural-compare": "^3.0.0",
"uuid": "^8.3.2"
"string-natural-compare": "^3.0.0"
},
"devDependencies": {
"@types/string-natural-compare": "^3.0.2",
"@types/uuid": "^8.3.4",
"jest-mock-console": "^1.2.3"
},
"peerDependencies": {

View File

@@ -137,7 +137,6 @@ export {createTablePlugin} from './utils/createTablePlugin';
export {textContent} from './utils/textContent';
import * as path from './utils/path';
export {path};
export * from './utils/uuid';
export {safeStringify} from './utils/safeStringify';
// It's not ideal that this exists in flipper-plugin sources directly,
@@ -150,6 +149,7 @@ export {
sleep,
timeout,
createControlledPromise,
uuid,
DeviceOS,
DeviceType,
DeviceLogEntry,

View File

@@ -11,13 +11,13 @@
import * as path from './utils/path';
export {path};
export * from './utils/uuid';
export {safeStringify} from './utils/safeStringify';
export {
sleep,
timeout,
createControlledPromise,
uuid,
ServerAddOn,
ServerAddOnPluginConnection,
FlipperServerForServerAddOn,

View File

@@ -10,7 +10,7 @@
import React, {useMemo} from 'react';
import {Children, cloneElement, createContext, useContext} from 'react';
import reactElementToJSXString from 'react-element-to-jsx-string';
import {v4 as uuid} from 'uuid';
import {uuid} from 'flipper-common';
export type InteractionReport = {
// Duration of the event handler itself, not including any time the promise handler might have been pending

View File

@@ -1,11 +0,0 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {v4 as uuid} from 'uuid';
export {uuid};