storybook 9.1.0-alpha.0 → 9.1.0-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/assets/browser/favicon-wrapper.svg +46 -0
  2. package/assets/browser/favicon.svg +1 -1
  3. package/dist/actions/index.cjs +16 -16
  4. package/dist/actions/index.d.ts +1 -38
  5. package/dist/actions/index.js +12 -12
  6. package/dist/bin/index.cjs +62 -69
  7. package/dist/bin/index.js +43 -50
  8. package/dist/builder-manager/index.cjs +379 -378
  9. package/dist/builder-manager/index.d.ts +567 -2
  10. package/dist/builder-manager/index.js +280 -279
  11. package/dist/cli/bin/index.cjs +945 -945
  12. package/dist/cli/bin/index.js +673 -672
  13. package/dist/cli/index.cjs +14965 -14973
  14. package/dist/cli/index.d.ts +713 -15
  15. package/dist/cli/index.js +13488 -13495
  16. package/dist/common/index.cjs +11211 -11103
  17. package/dist/common/index.d.ts +351 -72
  18. package/dist/common/index.js +18491 -18379
  19. package/dist/components/index.cjs +4606 -4425
  20. package/dist/components/index.d.ts +11 -12
  21. package/dist/components/index.js +3020 -2834
  22. package/dist/controls/index.cjs +16 -16
  23. package/dist/controls/index.d.ts +1 -36
  24. package/dist/core-server/index.cjs +6690 -6624
  25. package/dist/core-server/index.d.ts +14 -2
  26. package/dist/core-server/index.js +6088 -6023
  27. package/dist/core-server/presets/common-manager.js +3582 -3475
  28. package/dist/core-server/presets/common-preset.cjs +85015 -5213
  29. package/dist/core-server/presets/common-preset.js +85107 -5291
  30. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.cjs +28728 -0
  31. package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +28729 -0
  32. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.cjs +29339 -0
  33. package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +29340 -0
  34. package/dist/csf/index.cjs +3019 -104
  35. package/dist/csf/index.d.ts +301 -18
  36. package/dist/csf/index.js +3031 -98
  37. package/dist/csf-tools/index.cjs +489 -488
  38. package/dist/csf-tools/index.js +311 -309
  39. package/dist/highlight/index.cjs +15 -15
  40. package/dist/highlight/index.d.ts +1 -12
  41. package/dist/highlight/index.js +4 -4
  42. package/dist/instrumenter/index.cjs +1308 -1239
  43. package/dist/instrumenter/index.d.ts +25 -3
  44. package/dist/instrumenter/index.js +1345 -1280
  45. package/dist/manager/globals-module-info.cjs +1 -1
  46. package/dist/manager/globals-module-info.js +1 -1
  47. package/dist/manager/globals-runtime.js +42257 -44665
  48. package/dist/manager/runtime.js +3715 -3536
  49. package/dist/manager-api/index.cjs +74 -74
  50. package/dist/manager-api/index.d.ts +4 -1
  51. package/dist/manager-api/index.js +142 -142
  52. package/dist/node-logger/index.cjs +8520 -994
  53. package/dist/node-logger/index.d.ts +395 -2
  54. package/dist/node-logger/index.js +8535 -995
  55. package/dist/preview/runtime.js +13701 -16331
  56. package/dist/preview-api/index.cjs +1434 -1458
  57. package/dist/preview-api/index.d.ts +13 -10
  58. package/dist/preview-api/index.js +950 -976
  59. package/dist/server-errors.cjs +201 -242
  60. package/dist/server-errors.d.ts +1 -12
  61. package/dist/server-errors.js +182 -223
  62. package/dist/telemetry/index.cjs +1919 -1638
  63. package/dist/telemetry/index.d.ts +4 -2
  64. package/dist/telemetry/index.js +1972 -1690
  65. package/dist/test/index.cjs +9184 -9816
  66. package/dist/test/index.d.ts +8 -1
  67. package/dist/test/index.js +8390 -9029
  68. package/dist/types/index.d.ts +19 -17
  69. package/dist/viewport/index.cjs +17 -24
  70. package/dist/viewport/index.d.ts +9 -532
  71. package/dist/viewport/index.js +9 -16
  72. package/package.json +18 -187
  73. package/templates/mocker-runtime.template.js +89 -0
  74. package/dist/actions/preview.cjs +0 -159
  75. package/dist/actions/preview.d.ts +0 -555
  76. package/dist/actions/preview.js +0 -149
  77. package/dist/backgrounds/index.cjs +0 -148
  78. package/dist/backgrounds/index.d.ts +0 -592
  79. package/dist/backgrounds/index.js +0 -130
  80. package/dist/backgrounds/preview.cjs +0 -143
  81. package/dist/backgrounds/preview.d.ts +0 -555
  82. package/dist/backgrounds/preview.js +0 -127
  83. package/dist/component-testing/index.cjs +0 -23
  84. package/dist/component-testing/index.d.ts +0 -3
  85. package/dist/component-testing/index.js +0 -5
  86. package/dist/component-testing/preview.cjs +0 -40
  87. package/dist/component-testing/preview.d.ts +0 -5
  88. package/dist/component-testing/preview.js +0 -25
  89. package/dist/controls/preview.cjs +0 -26
  90. package/dist/controls/preview.d.ts +0 -555
  91. package/dist/controls/preview.js +0 -9
  92. package/dist/highlight/preview.cjs +0 -590
  93. package/dist/highlight/preview.d.ts +0 -555
  94. package/dist/highlight/preview.js +0 -574
  95. package/dist/measure/index.cjs +0 -476
  96. package/dist/measure/index.d.ts +0 -567
  97. package/dist/measure/index.js +0 -464
  98. package/dist/measure/preview.cjs +0 -466
  99. package/dist/measure/preview.d.ts +0 -560
  100. package/dist/measure/preview.js +0 -450
  101. package/dist/outline/index.cjs +0 -528
  102. package/dist/outline/index.d.ts +0 -567
  103. package/dist/outline/index.js +0 -500
  104. package/dist/outline/preview.cjs +0 -518
  105. package/dist/outline/preview.d.ts +0 -560
  106. package/dist/outline/preview.js +0 -486
  107. package/dist/test/preview.cjs +0 -73
  108. package/dist/test/preview.d.ts +0 -555
  109. package/dist/test/preview.js +0 -66
  110. package/dist/viewport/preview.cjs +0 -35
  111. package/dist/viewport/preview.d.ts +0 -569
  112. package/dist/viewport/preview.js +0 -19
@@ -1,5 +1,8 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
+ import { Buffer } from 'node:buffer';
4
+ import { ChildProcess } from 'node:child_process';
5
+ import { Readable, Writable } from 'node:stream';
3
6
 
4
7
  declare namespace npmlog {
5
8
  // TODO: newStream, newGroup, setGaugeTemplate and setGaugeTemplateSet need to be added
@@ -81,6 +84,375 @@ declare namespace npmlog {
81
84
 
82
85
  declare var npmlog: npmlog.Logger;
83
86
 
87
+ /** Detects URLs in text and prevents them from being broken across lines */
88
+ declare function protectUrls(text: string, options?: {
89
+ maxUrlLength?: number;
90
+ maxLineWidth?: number;
91
+ }): string;
92
+ /**
93
+ * Creates a hyperlink with custom title text if supported, otherwise falls back to "title: url"
94
+ * format
95
+ */
96
+ declare function createHyperlink(title: string, url: string): string;
97
+ declare function wrapTextForClack(text: string, width?: number): string;
98
+
99
+ type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent';
100
+
101
+ type Primitive = Readonly<string | boolean | number>;
102
+ type Option<T> = T extends Primitive ? {
103
+ value: T;
104
+ label?: string;
105
+ hint?: string;
106
+ } : {
107
+ value: T;
108
+ label: string;
109
+ hint?: string;
110
+ };
111
+ interface BasePromptOptions {
112
+ message: string;
113
+ }
114
+ interface TextPromptOptions extends BasePromptOptions {
115
+ placeholder?: string;
116
+ initialValue?: string;
117
+ validate?: (value: string) => string | Error | undefined;
118
+ }
119
+ interface ConfirmPromptOptions extends BasePromptOptions {
120
+ initialValue?: boolean;
121
+ active?: string;
122
+ inactive?: string;
123
+ }
124
+ interface SelectPromptOptions<T> extends BasePromptOptions {
125
+ options: Option<T>[];
126
+ initialValue?: T;
127
+ }
128
+ interface MultiSelectPromptOptions<T> extends BasePromptOptions {
129
+ options: Option<T>[];
130
+ initialValues?: T[];
131
+ required?: boolean;
132
+ }
133
+ interface PromptOptions {
134
+ onCancel?: () => void;
135
+ }
136
+ interface SpinnerInstance {
137
+ start: (message?: string) => void;
138
+ stop: (message?: string) => void;
139
+ message: (text: string) => void;
140
+ }
141
+ interface TaskLogInstance {
142
+ message: (text: string) => void;
143
+ success: (message: string, options?: {
144
+ showLog?: boolean;
145
+ }) => void;
146
+ error: (message: string) => void;
147
+ }
148
+ interface SpinnerOptions {
149
+ /** The id of the task, to be used by the log tracker. */
150
+ id: string;
151
+ }
152
+ interface TaskLogOptions {
153
+ /** The id of the task, to be used by the log tracker. */
154
+ id: string;
155
+ title: string;
156
+ retainLog?: boolean;
157
+ limit?: number;
158
+ }
159
+ declare abstract class PromptProvider {
160
+ abstract text(options: TextPromptOptions, promptOptions?: PromptOptions): Promise<string>;
161
+ abstract confirm(options: ConfirmPromptOptions, promptOptions?: PromptOptions): Promise<boolean>;
162
+ abstract select<T>(options: SelectPromptOptions<T>, promptOptions?: PromptOptions): Promise<T>;
163
+ abstract multiselect<T>(options: MultiSelectPromptOptions<T>, promptOptions?: PromptOptions): Promise<T[]>;
164
+ abstract spinner(options: SpinnerOptions): SpinnerInstance;
165
+ abstract taskLog(options: TaskLogOptions): TaskLogInstance;
166
+ }
167
+
168
+ type StdoutStderrAll = string | Buffer | undefined;
169
+
170
+ type ExecaReturnBase<StdoutStderrType extends StdoutStderrAll> = {
171
+ /**
172
+ The file and arguments that were run, for logging purposes.
173
+
174
+ This is not escaped and should not be executed directly as a process, including using `execa()` or `execaCommand()`.
175
+ */
176
+ command: string;
177
+
178
+ /**
179
+ Same as `command` but escaped.
180
+
181
+ This is meant to be copy and pasted into a shell, for debugging purposes.
182
+ Since the escaping is fairly basic, this should not be executed directly as a process, including using `execa()` or `execaCommand()`.
183
+ */
184
+ escapedCommand: string;
185
+
186
+ /**
187
+ The numeric exit code of the process that was run.
188
+ */
189
+ exitCode: number;
190
+
191
+ /**
192
+ The output of the process on stdout.
193
+ */
194
+ stdout: StdoutStderrType;
195
+
196
+ /**
197
+ The output of the process on stderr.
198
+ */
199
+ stderr: StdoutStderrType;
200
+
201
+ /**
202
+ Whether the process failed to run.
203
+ */
204
+ failed: boolean;
205
+
206
+ /**
207
+ Whether the process timed out.
208
+ */
209
+ timedOut: boolean;
210
+
211
+ /**
212
+ Whether the process was killed.
213
+ */
214
+ killed: boolean;
215
+
216
+ /**
217
+ The name of the signal that was used to terminate the process. For example, `SIGFPE`.
218
+
219
+ If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`.
220
+ */
221
+ signal?: string;
222
+
223
+ /**
224
+ A human-friendly description of the signal that was used to terminate the process. For example, `Floating point arithmetic error`.
225
+
226
+ If a signal terminated the process, this property is defined and included in the error message. Otherwise it is `undefined`. It is also `undefined` when the signal is very uncommon which should seldomly happen.
227
+ */
228
+ signalDescription?: string;
229
+
230
+ /**
231
+ The `cwd` of the command if provided in the command options. Otherwise it is `process.cwd()`.
232
+ */
233
+ cwd: string;
234
+ };
235
+
236
+ type ExecaSyncReturnValue<StdoutStderrType extends StdoutStderrAll = string> = {
237
+ } & ExecaReturnBase<StdoutStderrType>;
238
+
239
+ /**
240
+ Result of a child process execution. On success this is a plain object. On failure this is also an `Error` instance.
241
+
242
+ The child process fails when:
243
+ - its exit code is not `0`
244
+ - it was killed with a signal
245
+ - timing out
246
+ - being canceled
247
+ - there's not enough memory or there are already too many child processes
248
+ */
249
+ type ExecaReturnValue<StdoutStderrType extends StdoutStderrAll = string> = {
250
+ /**
251
+ The output of the process with `stdout` and `stderr` interleaved.
252
+
253
+ This is `undefined` if either:
254
+ - the `all` option is `false` (default value)
255
+ - `execaSync()` was used
256
+ */
257
+ all?: StdoutStderrType;
258
+
259
+ /**
260
+ Whether the process was canceled.
261
+
262
+ You can cancel the spawned process using the [`signal`](https://github.com/sindresorhus/execa#signal-1) option.
263
+ */
264
+ isCanceled: boolean;
265
+ } & ExecaSyncReturnValue<StdoutStderrType>;
266
+
267
+ type ExecaSyncError<StdoutStderrType extends StdoutStderrAll = string> = {
268
+ /**
269
+ Error message when the child process failed to run. In addition to the underlying error message, it also contains some information related to why the child process errored.
270
+
271
+ The child process stderr then stdout are appended to the end, separated with newlines and not interleaved.
272
+ */
273
+ message: string;
274
+
275
+ /**
276
+ This is the same as the `message` property except it does not include the child process stdout/stderr.
277
+ */
278
+ shortMessage: string;
279
+
280
+ /**
281
+ Original error message. This is the same as the `message` property except it includes neither the child process stdout/stderr nor some additional information added by Execa.
282
+
283
+ This is `undefined` unless the child process exited due to an `error` event or a timeout.
284
+ */
285
+ originalMessage?: string;
286
+ } & Error & ExecaReturnBase<StdoutStderrType>;
287
+
288
+ type ExecaError<StdoutStderrType extends StdoutStderrAll = string> = {
289
+ /**
290
+ The output of the process with `stdout` and `stderr` interleaved.
291
+
292
+ This is `undefined` if either:
293
+ - the `all` option is `false` (default value)
294
+ - `execaSync()` was used
295
+ */
296
+ all?: StdoutStderrType;
297
+
298
+ /**
299
+ Whether the process was canceled.
300
+ */
301
+ isCanceled: boolean;
302
+ } & ExecaSyncError<StdoutStderrType>;
303
+
304
+ type KillOptions = {
305
+ /**
306
+ Milliseconds to wait for the child process to terminate before sending `SIGKILL`.
307
+
308
+ Can be disabled with `false`.
309
+
310
+ @default 5000
311
+ */
312
+ forceKillAfterTimeout?: number | false;
313
+ };
314
+
315
+ type ExecaChildPromise<StdoutStderrType extends StdoutStderrAll> = {
316
+ /**
317
+ Stream combining/interleaving [`stdout`](https://nodejs.org/api/child_process.html#child_process_subprocess_stdout) and [`stderr`](https://nodejs.org/api/child_process.html#child_process_subprocess_stderr).
318
+
319
+ This is `undefined` if either:
320
+ - the `all` option is `false` (the default value)
321
+ - both `stdout` and `stderr` options are set to [`'inherit'`, `'ipc'`, `Stream` or `integer`](https://nodejs.org/dist/latest-v6.x/docs/api/child_process.html#child_process_options_stdio)
322
+ */
323
+ all?: Readable;
324
+
325
+ catch<ResultType = never>(
326
+ onRejected?: (reason: ExecaError<StdoutStderrType>) => ResultType | PromiseLike<ResultType>
327
+ ): Promise<ExecaReturnValue<StdoutStderrType> | ResultType>;
328
+
329
+ /**
330
+ Same as the original [`child_process#kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal), except if `signal` is `SIGTERM` (the default value) and the child process is not terminated after 5 seconds, force it by sending `SIGKILL`. Note that this graceful termination does not work on Windows, because Windows [doesn't support signals](https://nodejs.org/api/process.html#process_signal_events) (`SIGKILL` and `SIGTERM` has the same effect of force-killing the process immediately.) If you want to achieve graceful termination on Windows, you have to use other means, such as [`taskkill`](https://github.com/sindresorhus/taskkill).
331
+ */
332
+ kill(signal?: string, options?: KillOptions): void;
333
+
334
+ /**
335
+ Similar to [`childProcess.kill()`](https://nodejs.org/api/child_process.html#child_process_subprocess_kill_signal). This used to be preferred when cancelling the child process execution as the error is more descriptive and [`childProcessResult.isCanceled`](#iscanceled) is set to `true`. But now this is deprecated and you should either use `.kill()` or the `signal` option when creating the child process.
336
+ */
337
+ cancel(): void;
338
+
339
+ /**
340
+ [Pipe](https://nodejs.org/api/stream.html#readablepipedestination-options) the child process's `stdout` to `target`, which can be:
341
+ - Another `execa()` return value
342
+ - A writable stream
343
+ - A file path string
344
+
345
+ If the `target` is another `execa()` return value, it is returned. Otherwise, the original `execa()` return value is returned. This allows chaining `pipeStdout()` then `await`ing the final result.
346
+
347
+ The `stdout` option] must be kept as `pipe`, its default value.
348
+ */
349
+ pipeStdout?<Target extends ExecaChildPromise<StdoutStderrAll>>(target: Target): Target;
350
+ pipeStdout?(target: Writable | string): ExecaChildProcess<StdoutStderrType>;
351
+
352
+ /**
353
+ Like `pipeStdout()` but piping the child process's `stderr` instead.
354
+
355
+ The `stderr` option must be kept as `pipe`, its default value.
356
+ */
357
+ pipeStderr?<Target extends ExecaChildPromise<StdoutStderrAll>>(target: Target): Target;
358
+ pipeStderr?(target: Writable | string): ExecaChildProcess<StdoutStderrType>;
359
+
360
+ /**
361
+ Combines both `pipeStdout()` and `pipeStderr()`.
362
+
363
+ Either the `stdout` option or the `stderr` option must be kept as `pipe`, their default value. Also, the `all` option must be set to `true`.
364
+ */
365
+ pipeAll?<Target extends ExecaChildPromise<StdoutStderrAll>>(target: Target): Target;
366
+ pipeAll?(target: Writable | string): ExecaChildProcess<StdoutStderrType>;
367
+ };
368
+
369
+ type ExecaChildProcess<StdoutStderrType extends StdoutStderrAll = string> = ChildProcess &
370
+ ExecaChildPromise<StdoutStderrType> &
371
+ Promise<ExecaReturnValue<StdoutStderrType>>;
372
+
373
+ declare const prompt: {
374
+ executeTask: (childProcessFactories: (() => ExecaChildProcess) | (() => ExecaChildProcess)[], { id, intro, error, success, limitLines, }: {
375
+ id: string;
376
+ intro: string;
377
+ error: string;
378
+ success: string;
379
+ limitLines?: number;
380
+ }) => Promise<void>;
381
+ executeTaskWithSpinner: (childProcessFactories: (() => ExecaChildProcess) | (() => ExecaChildProcess)[], { id, intro, error, success }: {
382
+ id: string;
383
+ intro: string;
384
+ error: string;
385
+ success: string;
386
+ }) => Promise<void>;
387
+ setPromptLibrary: (library: "clack" | "prompts") => void;
388
+ getPromptLibrary: () => "clack" | "prompts";
389
+ getPromptProvider: () => PromptProvider;
390
+ isClackEnabled: () => boolean;
391
+ isPromptsEnabled: () => boolean;
392
+ getPreferredStdio: () => "inherit" | "pipe";
393
+ text: (options: TextPromptOptions, promptOptions?: PromptOptions) => Promise<string>;
394
+ confirm: (options: ConfirmPromptOptions, promptOptions?: PromptOptions) => Promise<boolean>;
395
+ select: <T>(options: SelectPromptOptions<T>, promptOptions?: PromptOptions) => Promise<T>;
396
+ multiselect: <T>(options: MultiSelectPromptOptions<T>, promptOptions?: PromptOptions) => Promise<T[]>;
397
+ spinner: (options: SpinnerOptions) => SpinnerInstance;
398
+ taskLog: (options: TaskLogOptions) => TaskLogInstance;
399
+ };
400
+
401
+ type Metadata = Record<string, any>;
402
+ interface LogEntry {
403
+ timestamp: Date;
404
+ level: LogLevel | 'prompt';
405
+ message: string;
406
+ metadata?: Metadata;
407
+ }
408
+ /**
409
+ * Tracks and manages logs for Storybook CLI operations. Provides functionality to collect, store
410
+ * and write logs to a file.
411
+ */
412
+ declare class LogTracker {
413
+ #private;
414
+ constructor();
415
+ /** Enables writing logs to file. */
416
+ enableLogWriting(): void;
417
+ /** Returns whether logs should be written to file. */
418
+ get shouldWriteLogsToFile(): boolean;
419
+ /** Returns the configured log file path. */
420
+ get logFilePath(): string;
421
+ /** Returns a copy of all stored logs. */
422
+ get logs(): LogEntry[];
423
+ /**
424
+ * Adds a new log entry.
425
+ *
426
+ * @param level - The log level
427
+ * @param message - The log message
428
+ * @param metadata - Optional metadata to attach to the log, can be any JSON serializable value
429
+ */
430
+ addLog(level: LogEntry['level'], message: string, metadata?: Metadata): void;
431
+ /** Clears all stored logs. */
432
+ clear(): void;
433
+ /**
434
+ * Writes all stored logs to a file and clears the log store.
435
+ *
436
+ * @param filePath - Optional custom file path to write logs to
437
+ * @returns The path where logs were written, by default is debug-storybook.log in current working
438
+ * directory
439
+ */
440
+ writeToFile(filePath?: string): Promise<string>;
441
+ }
442
+ declare const logTracker: LogTracker;
443
+
444
+ type Formatter = (input: string | number | null | undefined) => string
445
+
446
+ declare const CLI_COLORS: {
447
+ success: Formatter;
448
+ error: Formatter;
449
+ warning: Formatter;
450
+ info: Formatter;
451
+ debug: Formatter;
452
+ cta: Formatter;
453
+ };
454
+
455
+ /** @deprecated Use CLI_COLORS instead */
84
456
  declare const colors: {
85
457
  pink: (text: string) => string;
86
458
  purple: (text: string) => string;
@@ -100,8 +472,29 @@ declare const logger: {
100
472
  message: string;
101
473
  time: [number, number];
102
474
  }) => void;
103
- setLevel: (level?: string) => void;
475
+ setLevel: (level?: LogLevel) => void;
104
476
  error: (message: Error | string) => void;
477
+ setLogLevel: (level: LogLevel) => void;
478
+ getLogLevel: () => LogLevel;
479
+ shouldLog: (level: LogLevel) => boolean;
480
+ debug: (...args: any[]) => void;
481
+ log: (...args: any[]) => void;
482
+ logBox: (message: string, options?: {
483
+ borderStyle?: "round" | "none";
484
+ padding?: number;
485
+ title?: string;
486
+ titleAlignment?: "left" | "center" | "right";
487
+ borderColor?: string;
488
+ backgroundColor?: string;
489
+ }) => void;
490
+ intro: (message: string) => void;
491
+ outro: (message: string) => void;
492
+ step: (message: string) => void;
493
+ SYMBOLS: {
494
+ success: string;
495
+ error: string;
496
+ };
497
+ wrapTextForClack: typeof wrapTextForClack;
105
498
  };
106
499
 
107
500
  declare const once: {
@@ -114,4 +507,4 @@ declare const once: {
114
507
  };
115
508
  declare const deprecate: (message: string) => void;
116
509
 
117
- export { colors, deprecate, npmlog as instance, logger, once };
510
+ export { CLI_COLORS, type SpinnerInstance, type TaskLogInstance, colors, createHyperlink, deprecate, npmlog as instance, logTracker, logger, once, prompt, protectUrls };