@keycloakify/angular 0.2.11 → 0.2.12

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.
package/README.md CHANGED
@@ -33,13 +33,12 @@
33
33
 
34
34
  ## Using the library
35
35
 
36
- Don't it's not ready yet. Subscribe to alerts on the repo to get notified when it is.
37
-
38
- Angular | @keycloakify/angular | Maintained
39
- ------------- | --------------------- | --------------------------
40
- 19 | 0.2.x+ | yes
41
- 18 | 0.1.8 | no
36
+ See [getting started](https://docs.keycloakify.dev/).
42
37
 
38
+ | Angular | @keycloakify/angular | Maintained |
39
+ | ------- | -------------------- | ---------- |
40
+ | 19 | 0.2.x+ | yes |
41
+ | 18 | 0.1.8 | no |
43
42
 
44
43
  ## Contributing
45
44
 
package/bin/187.index.js CHANGED
@@ -14,8 +14,8 @@ __webpack_require__.d(__webpack_exports__, {
14
14
  // EXTERNAL MODULE: external "child_process"
15
15
  var external_child_process_ = __webpack_require__(317);
16
16
  var external_child_process_default = /*#__PURE__*/__webpack_require__.n(external_child_process_);
17
- // EXTERNAL MODULE: ./node_modules/chalk/source/index.js + 3 modules
18
- var source = __webpack_require__(797);
17
+ // EXTERNAL MODULE: ./node_modules/chalk/source/index.js + 6 modules
18
+ var source = __webpack_require__(276);
19
19
  // EXTERNAL MODULE: external "path"
20
20
  var external_path_ = __webpack_require__(928);
21
21
  // EXTERNAL MODULE: external "fs"
@@ -262,7 +262,7 @@ function readThisNpmPackageVersion() {
262
262
  /* harmony import */ var fs_promises__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs_promises__WEBPACK_IMPORTED_MODULE_1__);
263
263
  /* harmony import */ var tsafe_id__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94);
264
264
  /* harmony import */ var tsafe_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(966);
265
- /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(797);
265
+ /* harmony import */ var chalk__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(276);
266
266
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(982);
267
267
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_3__);
268
268
  /* harmony import */ var tsafe_is__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(289);
@@ -1,681 +1,7 @@
1
- export const id = 811;
2
- export const ids = [811];
1
+ export const id = 279;
2
+ export const ids = [279];
3
3
  export const modules = {
4
4
 
5
- /***/ 797:
6
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
7
-
8
-
9
- // EXPORTS
10
- __webpack_require__.d(__webpack_exports__, {
11
- Ay: () => (/* binding */ source)
12
- });
13
-
14
- // UNUSED EXPORTS: Chalk, backgroundColorNames, backgroundColors, chalkStderr, colorNames, colors, foregroundColorNames, foregroundColors, modifierNames, modifiers, supportsColor, supportsColorStderr
15
-
16
- ;// CONCATENATED MODULE: ./node_modules/chalk/source/vendor/ansi-styles/index.js
17
- const ANSI_BACKGROUND_OFFSET = 10;
18
-
19
- const wrapAnsi16 = (offset = 0) => code => `\u001B[${code + offset}m`;
20
-
21
- const wrapAnsi256 = (offset = 0) => code => `\u001B[${38 + offset};5;${code}m`;
22
-
23
- const wrapAnsi16m = (offset = 0) => (red, green, blue) => `\u001B[${38 + offset};2;${red};${green};${blue}m`;
24
-
25
- const styles = {
26
- modifier: {
27
- reset: [0, 0],
28
- // 21 isn't widely supported and 22 does the same thing
29
- bold: [1, 22],
30
- dim: [2, 22],
31
- italic: [3, 23],
32
- underline: [4, 24],
33
- overline: [53, 55],
34
- inverse: [7, 27],
35
- hidden: [8, 28],
36
- strikethrough: [9, 29],
37
- },
38
- color: {
39
- black: [30, 39],
40
- red: [31, 39],
41
- green: [32, 39],
42
- yellow: [33, 39],
43
- blue: [34, 39],
44
- magenta: [35, 39],
45
- cyan: [36, 39],
46
- white: [37, 39],
47
-
48
- // Bright color
49
- blackBright: [90, 39],
50
- gray: [90, 39], // Alias of `blackBright`
51
- grey: [90, 39], // Alias of `blackBright`
52
- redBright: [91, 39],
53
- greenBright: [92, 39],
54
- yellowBright: [93, 39],
55
- blueBright: [94, 39],
56
- magentaBright: [95, 39],
57
- cyanBright: [96, 39],
58
- whiteBright: [97, 39],
59
- },
60
- bgColor: {
61
- bgBlack: [40, 49],
62
- bgRed: [41, 49],
63
- bgGreen: [42, 49],
64
- bgYellow: [43, 49],
65
- bgBlue: [44, 49],
66
- bgMagenta: [45, 49],
67
- bgCyan: [46, 49],
68
- bgWhite: [47, 49],
69
-
70
- // Bright color
71
- bgBlackBright: [100, 49],
72
- bgGray: [100, 49], // Alias of `bgBlackBright`
73
- bgGrey: [100, 49], // Alias of `bgBlackBright`
74
- bgRedBright: [101, 49],
75
- bgGreenBright: [102, 49],
76
- bgYellowBright: [103, 49],
77
- bgBlueBright: [104, 49],
78
- bgMagentaBright: [105, 49],
79
- bgCyanBright: [106, 49],
80
- bgWhiteBright: [107, 49],
81
- },
82
- };
83
-
84
- const modifierNames = Object.keys(styles.modifier);
85
- const foregroundColorNames = Object.keys(styles.color);
86
- const backgroundColorNames = Object.keys(styles.bgColor);
87
- const colorNames = [...foregroundColorNames, ...backgroundColorNames];
88
-
89
- function assembleStyles() {
90
- const codes = new Map();
91
-
92
- for (const [groupName, group] of Object.entries(styles)) {
93
- for (const [styleName, style] of Object.entries(group)) {
94
- styles[styleName] = {
95
- open: `\u001B[${style[0]}m`,
96
- close: `\u001B[${style[1]}m`,
97
- };
98
-
99
- group[styleName] = styles[styleName];
100
-
101
- codes.set(style[0], style[1]);
102
- }
103
-
104
- Object.defineProperty(styles, groupName, {
105
- value: group,
106
- enumerable: false,
107
- });
108
- }
109
-
110
- Object.defineProperty(styles, 'codes', {
111
- value: codes,
112
- enumerable: false,
113
- });
114
-
115
- styles.color.close = '\u001B[39m';
116
- styles.bgColor.close = '\u001B[49m';
117
-
118
- styles.color.ansi = wrapAnsi16();
119
- styles.color.ansi256 = wrapAnsi256();
120
- styles.color.ansi16m = wrapAnsi16m();
121
- styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
122
- styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
123
- styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
124
-
125
- // From https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js
126
- Object.defineProperties(styles, {
127
- rgbToAnsi256: {
128
- value(red, green, blue) {
129
- // We use the extended greyscale palette here, with the exception of
130
- // black and white. normal palette only has 4 greyscale shades.
131
- if (red === green && green === blue) {
132
- if (red < 8) {
133
- return 16;
134
- }
135
-
136
- if (red > 248) {
137
- return 231;
138
- }
139
-
140
- return Math.round(((red - 8) / 247) * 24) + 232;
141
- }
142
-
143
- return 16
144
- + (36 * Math.round(red / 255 * 5))
145
- + (6 * Math.round(green / 255 * 5))
146
- + Math.round(blue / 255 * 5);
147
- },
148
- enumerable: false,
149
- },
150
- hexToRgb: {
151
- value(hex) {
152
- const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
153
- if (!matches) {
154
- return [0, 0, 0];
155
- }
156
-
157
- let [colorString] = matches;
158
-
159
- if (colorString.length === 3) {
160
- colorString = [...colorString].map(character => character + character).join('');
161
- }
162
-
163
- const integer = Number.parseInt(colorString, 16);
164
-
165
- return [
166
- /* eslint-disable no-bitwise */
167
- (integer >> 16) & 0xFF,
168
- (integer >> 8) & 0xFF,
169
- integer & 0xFF,
170
- /* eslint-enable no-bitwise */
171
- ];
172
- },
173
- enumerable: false,
174
- },
175
- hexToAnsi256: {
176
- value: hex => styles.rgbToAnsi256(...styles.hexToRgb(hex)),
177
- enumerable: false,
178
- },
179
- ansi256ToAnsi: {
180
- value(code) {
181
- if (code < 8) {
182
- return 30 + code;
183
- }
184
-
185
- if (code < 16) {
186
- return 90 + (code - 8);
187
- }
188
-
189
- let red;
190
- let green;
191
- let blue;
192
-
193
- if (code >= 232) {
194
- red = (((code - 232) * 10) + 8) / 255;
195
- green = red;
196
- blue = red;
197
- } else {
198
- code -= 16;
199
-
200
- const remainder = code % 36;
201
-
202
- red = Math.floor(code / 36) / 5;
203
- green = Math.floor(remainder / 6) / 5;
204
- blue = (remainder % 6) / 5;
205
- }
206
-
207
- const value = Math.max(red, green, blue) * 2;
208
-
209
- if (value === 0) {
210
- return 30;
211
- }
212
-
213
- // eslint-disable-next-line no-bitwise
214
- let result = 30 + ((Math.round(blue) << 2) | (Math.round(green) << 1) | Math.round(red));
215
-
216
- if (value === 2) {
217
- result += 60;
218
- }
219
-
220
- return result;
221
- },
222
- enumerable: false,
223
- },
224
- rgbToAnsi: {
225
- value: (red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)),
226
- enumerable: false,
227
- },
228
- hexToAnsi: {
229
- value: hex => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)),
230
- enumerable: false,
231
- },
232
- });
233
-
234
- return styles;
235
- }
236
-
237
- const ansiStyles = assembleStyles();
238
-
239
- /* harmony default export */ const ansi_styles = (ansiStyles);
240
-
241
- // EXTERNAL MODULE: external "node:process"
242
- var external_node_process_ = __webpack_require__(708);
243
- // EXTERNAL MODULE: external "node:os"
244
- var external_node_os_ = __webpack_require__(161);
245
- // EXTERNAL MODULE: external "node:tty"
246
- var external_node_tty_ = __webpack_require__(66);
247
- ;// CONCATENATED MODULE: ./node_modules/chalk/source/vendor/supports-color/index.js
248
-
249
-
250
-
251
-
252
- // From: https://github.com/sindresorhus/has-flag/blob/main/index.js
253
- /// function hasFlag(flag, argv = globalThis.Deno?.args ?? process.argv) {
254
- function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : external_node_process_.argv) {
255
- const prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');
256
- const position = argv.indexOf(prefix + flag);
257
- const terminatorPosition = argv.indexOf('--');
258
- return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
259
- }
260
-
261
- const {env} = external_node_process_;
262
-
263
- let flagForceColor;
264
- if (
265
- hasFlag('no-color')
266
- || hasFlag('no-colors')
267
- || hasFlag('color=false')
268
- || hasFlag('color=never')
269
- ) {
270
- flagForceColor = 0;
271
- } else if (
272
- hasFlag('color')
273
- || hasFlag('colors')
274
- || hasFlag('color=true')
275
- || hasFlag('color=always')
276
- ) {
277
- flagForceColor = 1;
278
- }
279
-
280
- function envForceColor() {
281
- if ('FORCE_COLOR' in env) {
282
- if (env.FORCE_COLOR === 'true') {
283
- return 1;
284
- }
285
-
286
- if (env.FORCE_COLOR === 'false') {
287
- return 0;
288
- }
289
-
290
- return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
291
- }
292
- }
293
-
294
- function translateLevel(level) {
295
- if (level === 0) {
296
- return false;
297
- }
298
-
299
- return {
300
- level,
301
- hasBasic: true,
302
- has256: level >= 2,
303
- has16m: level >= 3,
304
- };
305
- }
306
-
307
- function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
308
- const noFlagForceColor = envForceColor();
309
- if (noFlagForceColor !== undefined) {
310
- flagForceColor = noFlagForceColor;
311
- }
312
-
313
- const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
314
-
315
- if (forceColor === 0) {
316
- return 0;
317
- }
318
-
319
- if (sniffFlags) {
320
- if (hasFlag('color=16m')
321
- || hasFlag('color=full')
322
- || hasFlag('color=truecolor')) {
323
- return 3;
324
- }
325
-
326
- if (hasFlag('color=256')) {
327
- return 2;
328
- }
329
- }
330
-
331
- // Check for Azure DevOps pipelines.
332
- // Has to be above the `!streamIsTTY` check.
333
- if ('TF_BUILD' in env && 'AGENT_NAME' in env) {
334
- return 1;
335
- }
336
-
337
- if (haveStream && !streamIsTTY && forceColor === undefined) {
338
- return 0;
339
- }
340
-
341
- const min = forceColor || 0;
342
-
343
- if (env.TERM === 'dumb') {
344
- return min;
345
- }
346
-
347
- if (external_node_process_.platform === 'win32') {
348
- // Windows 10 build 10586 is the first Windows release that supports 256 colors.
349
- // Windows 10 build 14931 is the first release that supports 16m/TrueColor.
350
- const osRelease = external_node_os_.release().split('.');
351
- if (
352
- Number(osRelease[0]) >= 10
353
- && Number(osRelease[2]) >= 10_586
354
- ) {
355
- return Number(osRelease[2]) >= 14_931 ? 3 : 2;
356
- }
357
-
358
- return 1;
359
- }
360
-
361
- if ('CI' in env) {
362
- if ('GITHUB_ACTIONS' in env || 'GITEA_ACTIONS' in env) {
363
- return 3;
364
- }
365
-
366
- if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
367
- return 1;
368
- }
369
-
370
- return min;
371
- }
372
-
373
- if ('TEAMCITY_VERSION' in env) {
374
- return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
375
- }
376
-
377
- if (env.COLORTERM === 'truecolor') {
378
- return 3;
379
- }
380
-
381
- if (env.TERM === 'xterm-kitty') {
382
- return 3;
383
- }
384
-
385
- if ('TERM_PROGRAM' in env) {
386
- const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
387
-
388
- switch (env.TERM_PROGRAM) {
389
- case 'iTerm.app': {
390
- return version >= 3 ? 3 : 2;
391
- }
392
-
393
- case 'Apple_Terminal': {
394
- return 2;
395
- }
396
- // No default
397
- }
398
- }
399
-
400
- if (/-256(color)?$/i.test(env.TERM)) {
401
- return 2;
402
- }
403
-
404
- if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
405
- return 1;
406
- }
407
-
408
- if ('COLORTERM' in env) {
409
- return 1;
410
- }
411
-
412
- return min;
413
- }
414
-
415
- function createSupportsColor(stream, options = {}) {
416
- const level = _supportsColor(stream, {
417
- streamIsTTY: stream && stream.isTTY,
418
- ...options,
419
- });
420
-
421
- return translateLevel(level);
422
- }
423
-
424
- const supportsColor = {
425
- stdout: createSupportsColor({isTTY: external_node_tty_.isatty(1)}),
426
- stderr: createSupportsColor({isTTY: external_node_tty_.isatty(2)}),
427
- };
428
-
429
- /* harmony default export */ const supports_color = (supportsColor);
430
-
431
- ;// CONCATENATED MODULE: ./node_modules/chalk/source/utilities.js
432
- // TODO: When targeting Node.js 16, use `String.prototype.replaceAll`.
433
- function stringReplaceAll(string, substring, replacer) {
434
- let index = string.indexOf(substring);
435
- if (index === -1) {
436
- return string;
437
- }
438
-
439
- const substringLength = substring.length;
440
- let endIndex = 0;
441
- let returnValue = '';
442
- do {
443
- returnValue += string.slice(endIndex, index) + substring + replacer;
444
- endIndex = index + substringLength;
445
- index = string.indexOf(substring, endIndex);
446
- } while (index !== -1);
447
-
448
- returnValue += string.slice(endIndex);
449
- return returnValue;
450
- }
451
-
452
- function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
453
- let endIndex = 0;
454
- let returnValue = '';
455
- do {
456
- const gotCR = string[index - 1] === '\r';
457
- returnValue += string.slice(endIndex, (gotCR ? index - 1 : index)) + prefix + (gotCR ? '\r\n' : '\n') + postfix;
458
- endIndex = index + 1;
459
- index = string.indexOf('\n', endIndex);
460
- } while (index !== -1);
461
-
462
- returnValue += string.slice(endIndex);
463
- return returnValue;
464
- }
465
-
466
- ;// CONCATENATED MODULE: ./node_modules/chalk/source/index.js
467
-
468
-
469
-
470
-
471
- const {stdout: stdoutColor, stderr: stderrColor} = supports_color;
472
-
473
- const GENERATOR = Symbol('GENERATOR');
474
- const STYLER = Symbol('STYLER');
475
- const IS_EMPTY = Symbol('IS_EMPTY');
476
-
477
- // `supportsColor.level` → `ansiStyles.color[name]` mapping
478
- const levelMapping = [
479
- 'ansi',
480
- 'ansi',
481
- 'ansi256',
482
- 'ansi16m',
483
- ];
484
-
485
- const source_styles = Object.create(null);
486
-
487
- const applyOptions = (object, options = {}) => {
488
- if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
489
- throw new Error('The `level` option should be an integer from 0 to 3');
490
- }
491
-
492
- // Detect level if not set manually
493
- const colorLevel = stdoutColor ? stdoutColor.level : 0;
494
- object.level = options.level === undefined ? colorLevel : options.level;
495
- };
496
-
497
- class Chalk {
498
- constructor(options) {
499
- // eslint-disable-next-line no-constructor-return
500
- return chalkFactory(options);
501
- }
502
- }
503
-
504
- const chalkFactory = options => {
505
- const chalk = (...strings) => strings.join(' ');
506
- applyOptions(chalk, options);
507
-
508
- Object.setPrototypeOf(chalk, createChalk.prototype);
509
-
510
- return chalk;
511
- };
512
-
513
- function createChalk(options) {
514
- return chalkFactory(options);
515
- }
516
-
517
- Object.setPrototypeOf(createChalk.prototype, Function.prototype);
518
-
519
- for (const [styleName, style] of Object.entries(ansi_styles)) {
520
- source_styles[styleName] = {
521
- get() {
522
- const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
523
- Object.defineProperty(this, styleName, {value: builder});
524
- return builder;
525
- },
526
- };
527
- }
528
-
529
- source_styles.visible = {
530
- get() {
531
- const builder = createBuilder(this, this[STYLER], true);
532
- Object.defineProperty(this, 'visible', {value: builder});
533
- return builder;
534
- },
535
- };
536
-
537
- const getModelAnsi = (model, level, type, ...arguments_) => {
538
- if (model === 'rgb') {
539
- if (level === 'ansi16m') {
540
- return ansi_styles[type].ansi16m(...arguments_);
541
- }
542
-
543
- if (level === 'ansi256') {
544
- return ansi_styles[type].ansi256(ansi_styles.rgbToAnsi256(...arguments_));
545
- }
546
-
547
- return ansi_styles[type].ansi(ansi_styles.rgbToAnsi(...arguments_));
548
- }
549
-
550
- if (model === 'hex') {
551
- return getModelAnsi('rgb', level, type, ...ansi_styles.hexToRgb(...arguments_));
552
- }
553
-
554
- return ansi_styles[type][model](...arguments_);
555
- };
556
-
557
- const usedModels = ['rgb', 'hex', 'ansi256'];
558
-
559
- for (const model of usedModels) {
560
- source_styles[model] = {
561
- get() {
562
- const {level} = this;
563
- return function (...arguments_) {
564
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'color', ...arguments_), ansi_styles.color.close, this[STYLER]);
565
- return createBuilder(this, styler, this[IS_EMPTY]);
566
- };
567
- },
568
- };
569
-
570
- const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
571
- source_styles[bgModel] = {
572
- get() {
573
- const {level} = this;
574
- return function (...arguments_) {
575
- const styler = createStyler(getModelAnsi(model, levelMapping[level], 'bgColor', ...arguments_), ansi_styles.bgColor.close, this[STYLER]);
576
- return createBuilder(this, styler, this[IS_EMPTY]);
577
- };
578
- },
579
- };
580
- }
581
-
582
- const proto = Object.defineProperties(() => {}, {
583
- ...source_styles,
584
- level: {
585
- enumerable: true,
586
- get() {
587
- return this[GENERATOR].level;
588
- },
589
- set(level) {
590
- this[GENERATOR].level = level;
591
- },
592
- },
593
- });
594
-
595
- const createStyler = (open, close, parent) => {
596
- let openAll;
597
- let closeAll;
598
- if (parent === undefined) {
599
- openAll = open;
600
- closeAll = close;
601
- } else {
602
- openAll = parent.openAll + open;
603
- closeAll = close + parent.closeAll;
604
- }
605
-
606
- return {
607
- open,
608
- close,
609
- openAll,
610
- closeAll,
611
- parent,
612
- };
613
- };
614
-
615
- const createBuilder = (self, _styler, _isEmpty) => {
616
- // Single argument is hot path, implicit coercion is faster than anything
617
- // eslint-disable-next-line no-implicit-coercion
618
- const builder = (...arguments_) => applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
619
-
620
- // We alter the prototype because we must return a function, but there is
621
- // no way to create a function with a different prototype
622
- Object.setPrototypeOf(builder, proto);
623
-
624
- builder[GENERATOR] = self;
625
- builder[STYLER] = _styler;
626
- builder[IS_EMPTY] = _isEmpty;
627
-
628
- return builder;
629
- };
630
-
631
- const applyStyle = (self, string) => {
632
- if (self.level <= 0 || !string) {
633
- return self[IS_EMPTY] ? '' : string;
634
- }
635
-
636
- let styler = self[STYLER];
637
-
638
- if (styler === undefined) {
639
- return string;
640
- }
641
-
642
- const {openAll, closeAll} = styler;
643
- if (string.includes('\u001B')) {
644
- while (styler !== undefined) {
645
- // Replace any instances already present with a re-opening code
646
- // otherwise only the part of the string until said closing code
647
- // will be colored, and the rest will simply be 'plain'.
648
- string = stringReplaceAll(string, styler.close, styler.open);
649
-
650
- styler = styler.parent;
651
- }
652
- }
653
-
654
- // We can move both next actions out of loop, because remaining actions in loop won't have
655
- // any/visible effect on parts we add here. Close the styling before a linebreak and reopen
656
- // after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
657
- const lfIndex = string.indexOf('\n');
658
- if (lfIndex !== -1) {
659
- string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
660
- }
661
-
662
- return openAll + string + closeAll;
663
- };
664
-
665
- Object.defineProperties(createChalk.prototype, source_styles);
666
-
667
- const chalk = createChalk();
668
- const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});
669
-
670
-
671
-
672
-
673
-
674
- /* harmony default export */ const source = (chalk);
675
-
676
-
677
- /***/ }),
678
-
679
5
  /***/ 94:
680
6
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
681
7