puppeteer/src/common
Jack Franklin b2f69183aa
fix: configure debug logging in browser (#6210)
The Node debug library uses the `DEBUG` environment variable to
configure what gets logged. Our browser version just logs everything;
this commit changes it to look for `window.__PUPPETEER_DEBUG` and matches the behaviour accordingly:

* If the value is not set, nothing is logged.
* If the value is set to `*` everything is logged.
* If the value is set to a string `foo`, messages with that prefix are
  logged.
* If the value is set to a string ending in `*`, e.g. `foo*`, messages
  with prefixes that start with `foo` are logged.
2020-07-20 11:05:12 +01:00
..
Accessibility.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
assert.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Browser.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
Connection.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
ConnectionTransport.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
ConsoleMessage.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
Coverage.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
Debug.ts fix: configure debug logging in browser (#6210) 2020-07-20 11:05:12 +01:00
DeviceDescriptors.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Dialog.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
DOMWorld.ts feat: change QueryHandler to contain QueryOne and QueryAll methods (#6218) 2020-07-17 07:29:42 +02:00
EmulationManager.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
Errors.ts docs(new): migrate TimeoutError to TSDoc (#6062) 2020-06-22 10:34:57 +02:00
EvalTypes.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
EventEmitter.ts chore: vendor Mitt & update project structure (#6209) 2020-07-14 16:57:29 +01:00
Events.ts chore: migrate NetworkManager events (#6174) 2020-07-07 16:43:55 +01:00
ExecutionContext.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
FileChooser.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
FrameManager.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
helper.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
HTTPRequest.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
HTTPResponse.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
Input.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
JSHandle.ts feat: change QueryHandler to contain QueryOne and QueryAll methods (#6218) 2020-07-17 07:29:42 +02:00
LifecycleWatcher.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
NetworkManager.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
Page.ts chore(docs): migrate page.pdf() docs (#6228) 2020-07-17 13:58:56 +01:00
PDFOptions.ts chore(docs): migrate page.pdf() docs (#6228) 2020-07-17 13:58:56 +01:00
Puppeteer.ts chore(docs): migrate page.pdf() docs (#6228) 2020-07-17 13:58:56 +01:00
PuppeteerViewport.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
QueryHandler.ts feat: change QueryHandler to contain QueryOne and QueryAll methods (#6218) 2020-07-17 07:29:42 +02:00
SecurityDetails.ts chore: use devtools-protocol package (#6172) 2020-07-10 11:51:52 +01:00
Target.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
TimeoutSettings.ts chore(docs): fix DOMWorld doc warnings (#6166) 2020-07-06 12:37:16 +01:00
Tracing.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
USKeyboardLayout.ts chore(docs): reduce warnings when generating docs (#6138) 2020-07-02 12:15:39 +01:00
WebSocketTransport.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00
WebWorker.ts chore: enforce file extensions on imports (#6202) 2020-07-13 10:22:26 +01:00