mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-30 01:07:01 +08:00
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>
node-environment-flags
Polyfill/shim for
process.allowedNodeEnvironmentFlags
node-environment-flags is a rough polyfill and shim for process.allowedNodeEnvironmentFlags, which was introduced in Node.js v10.10.0.
Table of Contents
Install
Requires Node.js v6.0.0 or newer.
$ npm i node-environment-flags
Usage
If the current Node.js version is v10.10.0 or newer, the native implementation will be provided instead.
As Polyfill (Recommended)
const nodeEnvironmentFlags = require('node-environment-flags');
nodeEnvironmentFlags.has('--require'); // true
As Shim
require('node-environment-flags/shim')();
process.allowedNodeEnvironmentFlags.has('--require'); // true
Notes
- This module approximates what
process.allowedNodeEnvironmentFlagsprovides in versions of Node.js prior to v10.10.0. Sinceprocess.allowedNodeEnvironmentFlagsis based onNODE_OPTIONS(introduced in v8.0.0), the set of supported flags for versions older than v8.0.0 is highly theoretical. - Version ranges are matched using semver.
- This module is granular to the minor Node.js version number; patch version numbers are not considered.
- Results for unmaintained (odd) versions of Node.js are based on data for the most recent LTS version; e.g., running this module against Node.js v7.10.0 will yield the same results as would v6.14.0.
- Prior art: @ljharb's util.promisify
Maintainers
License
Copyright © 2018 Christopher Hiller. Licensed Apache-2.0.