mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
Revert "Updates node_modules and update script"
This reverts commit 4df552c652.
Reason for revert: Breaks esprima.
Original change's description:
> Updates node_modules and update script
>
> Change-Id: I3fcf49bc416301a030d298cfc48c448bfeba4335
> Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1878808
> Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
> Reviewed-by: Yang Guo <yangguo@chromium.org>
> Commit-Queue: Paul Lewis <aerotwist@chromium.org>
TBR=yangguo@chromium.org,aerotwist@chromium.org,tvanderlippe@chromium.org
Change-Id: Iad2bcdf98a486476715d1e829cdce450c5f218af
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1880098
Reviewed-by: Lorne Mitchell <lomitch@microsoft.com>
Commit-Queue: Lorne Mitchell <lomitch@microsoft.com>
This commit is contained in:
committed by
Commit Bot
parent
4df552c652
commit
db3885dd80
+4
-5
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
||||
});
|
||||
exports.default = void 0;
|
||||
|
||||
var _flatten2 = _interopRequireDefault(require("lodash/flatten"));
|
||||
|
||||
var _times2 = _interopRequireDefault(require("lodash/times"));
|
||||
var _lodash = _interopRequireDefault(require("lodash"));
|
||||
|
||||
var _wrapCell = _interopRequireDefault(require("./wrapCell"));
|
||||
|
||||
@@ -22,12 +20,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
||||
const mapDataUsingRowHeightIndex = (unmappedRows, rowHeightIndex, config) => {
|
||||
const tableWidth = unmappedRows[0].length;
|
||||
const mappedRows = unmappedRows.map((cells, index0) => {
|
||||
const rowHeight = (0, _times2.default)(rowHeightIndex[index0], () => {
|
||||
const rowHeight = _lodash.default.times(rowHeightIndex[index0], () => {
|
||||
return new Array(tableWidth).fill('');
|
||||
}); // rowHeight
|
||||
// [{row index within rowSaw; index2}]
|
||||
// [{cell index within a virtual row; index1}]
|
||||
|
||||
|
||||
cells.forEach((value, index1) => {
|
||||
const cellLines = (0, _wrapCell.default)(value, config.columns[index1].width, config.columns[index1].wrapWord);
|
||||
cellLines.forEach((cellLine, index2) => {
|
||||
@@ -36,7 +35,7 @@ const mapDataUsingRowHeightIndex = (unmappedRows, rowHeightIndex, config) => {
|
||||
});
|
||||
return rowHeight;
|
||||
});
|
||||
return (0, _flatten2.default)(mappedRows);
|
||||
return _lodash.default.flatten(mappedRows);
|
||||
};
|
||||
|
||||
var _default = mapDataUsingRowHeightIndex;
|
||||
|
||||
Reference in New Issue
Block a user